Skip to content

Commit 59aa7f3

Browse files
Lennart NachtigallRobertWilbrandt
Lennart Nachtigall
authored andcommitted
1 parent 0830c6e commit 59aa7f3

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
@@ -252,7 +252,7 @@ controller_interface::return_type JointTrajectoryController::update(
252252
// time_difference is
253253
// - negative until first point is reached
254254
// - counting from zero to time_from_start of next point
255-
double time_difference = time.seconds() - segment_time_from_start.seconds();
255+
const double time_difference = time_data.uptime.seconds() - segment_time_from_start.seconds();
256256
bool tolerance_violated_while_moving = false;
257257
bool outside_goal_tolerance = false;
258258
bool within_goal_time = true;

0 commit comments

Comments
 (0)