Skip to content

Commit 78ad969

Browse files
DeanIsMebmagyar
authored andcommitted
JointTrajectoryController: Fix tolerance checking to use state error…
…from the correct joints This fix was already applied to noetic-devel branch. ef2272d
1 parent 0906eb5 commit 78ad969

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

joint_trajectory_controller/include/joint_trajectory_controller/joint_trajectory_controller_impl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,11 @@ update(const ros::Time& time, const ros::Duration& period)
381381
"Unexpected error: No trajectory defined at current time. Please contact the package maintainer.");
382382
return;
383383
}
384+
385+
// Get state error for current joint
386+
state_joint_error_.position[0] = state_error_.position[i];
387+
state_joint_error_.velocity[0] = state_error_.velocity[i];
388+
state_joint_error_.acceleration[0] = state_error_.acceleration[i];
384389

385390
//Check tolerances
386391
const RealtimeGoalHandlePtr rt_segment_goal = segment_it->getGoalHandle();

0 commit comments

Comments
 (0)