Skip to content

Commit aef0ce0

Browse files
author
Lennart Nachtigall
committed
Add goal time violated fix
1 parent b8cd152 commit aef0ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

joint_trajectory_controller/src/joint_trajectory_controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ controller_interface::return_type JointTrajectoryController::update(
204204
// time_difference is
205205
// - negative until first point is reached
206206
// - counting from zero to time_from_start of next point
207-
double time_difference = time.seconds() - segment_time_from_start.seconds();
207+
const double time_difference = time_data.uptime.seconds() - segment_time_from_start.seconds();
208208
bool tolerance_violated_while_moving = false;
209209
bool outside_goal_tolerance = false;
210210
bool within_goal_time = true;

0 commit comments

Comments
 (0)