Skip to content

Commit

Permalink
Renamed normalize_joint_error_ to joints_angle_wraparound_
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Nov 14, 2023
1 parent 9c5c3f6 commit 910b840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ur_controllers/src/scaled_joint_trajectory_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ controller_interface::return_type ScaledJointTrajectoryController::update(const
auto compute_error_for_joint = [&](JointTrajectoryPoint& error, size_t index, const JointTrajectoryPoint& current,
const JointTrajectoryPoint& desired) {
// error defined as the difference between current and desired
if (normalize_joint_error_[index]) {
if (joints_angle_wraparound_[index]) {
// if desired, the shortest_angular_distance is calculated, i.e., the error is
// normalized between -pi<error<pi
error.positions[index] = angles::shortest_angular_distance(current.positions[index], desired.positions[index]);
Expand Down

0 comments on commit 910b840

Please sign in to comment.