ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Catkin provides no built-in equivalent. You'll need to code it yourself using CMake commands.
Maybe something like this would work:
if (CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
if (DEFINED ENV{DISPLAY})
add_rostest(tests/simulation.test)
else()
add_rostest(tests/robot.test)
endif()
endif()