Skip to content

Commit

Permalink
Update joint_trajectory_controller/test/test_trajectory_actions.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Sai Kishor Kothakota <[email protected]>
  • Loading branch information
fmauch and saikishor authored Nov 28, 2024
1 parent 425a443 commit 9e97d9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions joint_trajectory_controller/test/test_trajectory_actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,9 @@ class TestTrajectoryActions : public TrajectoryControllerTest
// controller hardware cycle update loop
auto clock = rclcpp::Clock(RCL_STEADY_TIME);
auto now_time = clock.now();
auto start_time = now_time;
auto last_time = start_time;
auto last_time = now_time;
rclcpp::Duration wait = rclcpp::Duration::from_seconds(2.0);
auto end_time = start_time + wait;
auto end_time = last_time + wait;
while (clock.now() < end_time)
{
now_time = clock.now();
Expand Down

0 comments on commit 9e97d9f

Please sign in to comment.