Skip to content

Commit 01b8105

Browse files
committed
Add output to goal tolerance failures in passthrough controller
1 parent 496dc99 commit 01b8105

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ur_controllers/src/passthrough_trajectory_controller.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,9 +797,9 @@ bool PassthroughTrajectoryController::check_goal_tolerance()
797797
return false;
798798
}
799799
if (std::abs(joint_pos.value() - setpoint) > joint_tol.position) {
800-
// RCLCPP_ERROR(
801-
// get_node()->get_logger(), "Joint %s should be at position %f, but is at position %f, where tolerance is %f",
802-
// joint_position_state_interface_[i].get().get_name().c_str(), setpoint, joint_pos, joint_tol.position);
800+
RCLCPP_ERROR(
801+
get_node()->get_logger(), "Joint %s should be at position %f, but is at position %f, where tolerance is %f",
802+
joint_position_state_interface_[i].get().get_name().c_str(), setpoint, joint_pos.value(), joint_tol.position);
803803
return false;
804804
}
805805

0 commit comments

Comments
 (0)