Skip to content

Commit

Permalink
fixed test_SetMaxTrajLength
Browse files Browse the repository at this point in the history
  • Loading branch information
ichumuh committed Nov 28, 2024
1 parent bdeb735 commit 1b2d3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_integration_pr2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ def test_SetMaxTrajLength(self, zero_pose: PR2TestWrapper):
zero_pose.set_cart_goal(base_goal, tip_link='base_footprint', root_link='map')
result = zero_pose.execute(expected_error_type=MaxTrajectoryLengthException)
dt = god_map.qp_controller.sample_period
np.testing.assert_almost_equal(len(result.trajectory.points) * dt, new_length + dt * 2)
np.testing.assert_almost_equal(len(result.trajectory.points) * dt, new_length + dt)

zero_pose.set_cart_goal(base_goal, tip_link='base_footprint', root_link='map')
result = zero_pose.execute(expected_error_type=MaxTrajectoryLengthException)
Expand Down

0 comments on commit 1b2d3db

Please sign in to comment.