We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2acca2f + 81406e6 commit aaf450aCopy full SHA for aaf450a
lbr_fri_ros2/src/command_guard.cpp
@@ -50,7 +50,7 @@ bool CommandGuard::command_in_velocity_limits_(const_idl_command_t_ref lbr_comma
50
prev_measured_joint_position_ = lbr_state.measured_joint_position;
51
return true;
52
}
53
- for (std::size_t i = 0; i < lbr_command.joint_position[i]; ++i) {
+ for (std::size_t i = 0; i < lbr_command.joint_position.size(); ++i) {
54
if (std::abs(prev_measured_joint_position_[i] - lbr_state.measured_joint_position[i]) / dt >
55
parameters_.max_velocities[i]) {
56
RCLCPP_ERROR_STREAM(rclcpp::get_logger(LOGGER_NAME),
0 commit comments