Skip to content

Commit

Permalink
test: speed up sensors tests with Eigen3
Browse files Browse the repository at this point in the history
Instead of stepping single steps and computing statistics iteratively
we now perform the steps at once, buffer messages, convert values to
Eigen matrices and compute statistics via the Eigen api.
  • Loading branch information
DavidPL1 committed Dec 6, 2024
1 parent 4269d55 commit a2bdb7b
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 239 deletions.
2 changes: 2 additions & 0 deletions mujoco_ros_sensors/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
find_package(rostest REQUIRED)
find_package(Eigen3 REQUIRED)

add_rostest_gtest(mujoco_sensors_test
launch/mujoco_sensors.test
Expand All @@ -12,4 +13,5 @@ add_dependencies(mujoco_sensors_test

target_link_libraries(mujoco_sensors_test
${catkin_LIBRARIES}
Eigen3::Eigen
)
2 changes: 1 addition & 1 deletion mujoco_ros_sensors/test/launch/mujoco_sensors.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
</rosparam>

<param name="/use_sim_time" value="true"/>
<test test-name="mujoco_sensors_test" pkg="mujoco_ros_sensors" type="mujoco_sensors_test" time-limit="120.0" retry="5" />
<test test-name="mujoco_sensors_test" pkg="mujoco_ros_sensors" type="mujoco_sensors_test" time-limit="45.0" retry="5" />
</launch>
Loading

0 comments on commit a2bdb7b

Please sign in to comment.