Skip to content

Commit ed2f04d

Browse files
committed
Explicitly round mode
1 parent 250bca5 commit ed2f04d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_trajectory_point_interface.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <ur_client_library/control/trajectory_point_interface.h>
3333
#include <ur_client_library/comm/tcp_socket.h>
3434
#include <ur_client_library/control/motion_primitives.h>
35+
#include <cmath>
3536
#include "ur_client_library/exceptions.h"
3637

3738
using namespace urcl;
@@ -245,7 +246,7 @@ class TrajectoryPointInterfaceTest : public ::testing::Test
245246
(double)spl.blend_radius_or_spline_type / control::TrajectoryPointInterface::MULT_TIME,
246247
(double)spl.acc[1] / control::TrajectoryPointInterface::MULT_JOINTSTATE,
247248
(double)spl.acc[0] / control::TrajectoryPointInterface::MULT_JOINTSTATE,
248-
(double)spl.acc[2] / control::TrajectoryPointInterface::MULT_JOINTSTATE);
249+
round((double)spl.acc[2] / control::TrajectoryPointInterface::MULT_JOINTSTATE));
249250
}
250251
else
251252
{
@@ -603,4 +604,4 @@ int main(int argc, char* argv[])
603604
::testing::InitGoogleTest(&argc, argv);
604605

605606
return RUN_ALL_TESTS();
606-
}
607+
}

0 commit comments

Comments
 (0)