Skip to content

Commit aaf450a

Browse files
committed
Merge branch 'humble' into dev-humble-launch
2 parents 2acca2f + 81406e6 commit aaf450a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lbr_fri_ros2/src/command_guard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bool CommandGuard::command_in_velocity_limits_(const_idl_command_t_ref lbr_comma
5050
prev_measured_joint_position_ = lbr_state.measured_joint_position;
5151
return true;
5252
}
53-
for (std::size_t i = 0; i < lbr_command.joint_position[i]; ++i) {
53+
for (std::size_t i = 0; i < lbr_command.joint_position.size(); ++i) {
5454
if (std::abs(prev_measured_joint_position_[i] - lbr_state.measured_joint_position[i]) / dt >
5555
parameters_.max_velocities[i]) {
5656
RCLCPP_ERROR_STREAM(rclcpp::get_logger(LOGGER_NAME),

0 commit comments

Comments
 (0)