Skip to content

Commit 57a207f

Browse files
this simple fix should fix the goal time violated issue (#882) (#1000)
Co-authored-by: Lennart Nachtigall <[email protected]> (cherry picked from commit 3f423ed) Co-authored-by: Lennart Nachtigall <[email protected]>
1 parent 3e35864 commit 57a207f

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
@@ -168,7 +168,7 @@ controller_interface::return_type ScaledJointTrajectoryController::update(const
168168
// time_difference is
169169
// - negative until first point is reached
170170
// - counting from zero to time_from_start of next point
171-
double time_difference = time.seconds() - segment_time_from_start.seconds();
171+
const double time_difference = time_data.uptime.seconds() - segment_time_from_start.seconds();
172172
bool tolerance_violated_while_moving = false;
173173
bool outside_goal_tolerance = false;
174174
bool within_goal_time = true;

0 commit comments

Comments
 (0)