Skip to content

Commit 910b840

Browse files
author
Felix Exner
committed
Renamed normalize_joint_error_ to joints_angle_wraparound_
1 parent 9c5c3f6 commit 910b840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ur_controllers/src/scaled_joint_trajectory_controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ controller_interface::return_type ScaledJointTrajectoryController::update(const
9090
auto compute_error_for_joint = [&](JointTrajectoryPoint& error, size_t index, const JointTrajectoryPoint& current,
9191
const JointTrajectoryPoint& desired) {
9292
// error defined as the difference between current and desired
93-
if (normalize_joint_error_[index]) {
93+
if (joints_angle_wraparound_[index]) {
9494
// if desired, the shortest_angular_distance is calculated, i.e., the error is
9595
// normalized between -pi<error<pi
9696
error.positions[index] = angles::shortest_angular_distance(current.positions[index], desired.positions[index]);

0 commit comments

Comments
 (0)