Skip to content

Commit

Permalink
Check for a specific duration
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyZe committed Nov 16, 2021
1 parent f6893ae commit c5d4b83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moveit_core/robot_trajectory/test/test_robot_trajectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ class RobotTrajectoryTestFixture : public testing::Test

// Modify the first waypoint duration
double trajectory_first_duration_before_update = trajectory->getWayPointDurationFromPrevious(0);
trajectory->setWayPointDurationFromPrevious(0, trajectory_first_duration_before_update + 0.1);
double new_duration = trajectory_first_duration_before_update + 0.1;
trajectory->setWayPointDurationFromPrevious(0, new_duration);

// Check that the trajectory's first duration was updated
EXPECT_EQ(trajectory->getWayPointDurationFromPrevious(0), new_duration);
EXPECT_NE(trajectory->getWayPointDurationFromPrevious(0), trajectory_first_duration_before_update);
}

Expand Down

0 comments on commit c5d4b83

Please sign in to comment.