[ROS2] launch-based testing

asked 2019-07-02 15:06:57 -0500

updated 2019-07-02 15:07:16 -0500

Hi all,

Does anyone have some good references for writing launch-based ROS 2 tests ??
The example in launch_testing_ros is kinda minimalist and I'm annoyed by the fact that the test has to be installed in share.

Thanks !

edit retag flag offensive close merge delete



As of ROS 2 Dashing, packages in both https://github.com/ros2/system_tests and https://github.com/ros2/demos repositories make extensive use of launch-based ROS 2 tests. For instance, see test_executable_output.py.in in test_rclcpp. Note that in this case the test is configured by CMake at build time. This solely obeys to the testing needs of test_rclcpp and it is not a requirement for launch-based tests in general. Hope it helps.

hidmic gravatar image hidmic  ( 2019-07-04 12:42:20 -0500 )edit

Hi, thanks for the links ! I'll look at them this week and see if I can find my way out of them.

artivis gravatar image artivis  ( 2019-07-15 08:37:26 -0500 )edit