ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2014-05-30 04:47:29 -0500

joq gravatar image

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()