Skip to content

Commit

Permalink
JointTrajectoryController: Fix tolerance checking to use state error…
Browse files Browse the repository at this point in the history
…from the correct joints
This fix was already applied to noetic-devel branch. ef2272d
  • Loading branch information
DeanIsMe authored and bmagyar committed Jan 20, 2021
1 parent 0906eb5 commit 78ad969
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,11 @@ update(const ros::Time& time, const ros::Duration& period)
"Unexpected error: No trajectory defined at current time. Please contact the package maintainer.");
return;
}

// Get state error for current joint
state_joint_error_.position[0] = state_error_.position[i];
state_joint_error_.velocity[0] = state_error_.velocity[i];
state_joint_error_.acceleration[0] = state_error_.acceleration[i];

//Check tolerances
const RealtimeGoalHandlePtr rt_segment_goal = segment_it->getGoalHandle();
Expand Down

0 comments on commit 78ad969

Please sign in to comment.