We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c5c3f6 commit 910b840Copy full SHA for 910b840
ur_controllers/src/scaled_joint_trajectory_controller.cpp
@@ -90,7 +90,7 @@ controller_interface::return_type ScaledJointTrajectoryController::update(const
90
auto compute_error_for_joint = [&](JointTrajectoryPoint& error, size_t index, const JointTrajectoryPoint& current,
91
const JointTrajectoryPoint& desired) {
92
// error defined as the difference between current and desired
93
- if (normalize_joint_error_[index]) {
+ if (joints_angle_wraparound_[index]) {
94
// if desired, the shortest_angular_distance is calculated, i.e., the error is
95
// normalized between -pi<error<pi
96
error.positions[index] = angles::shortest_angular_distance(current.positions[index], desired.positions[index]);
0 commit comments