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

Unknown CMake command "add_rostest".

asked 2020-10-28 01:43:00 -0500

pra-dan gravatar image

I am following the tutorial on overlaying on catkin workspaces and run catkin as $ catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3 but I get

CMake Warning at ros_tutorials/rospy_tutorials/CMakeLists.txt:102 (find_package):
  By not providing "Findrostest.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "rostest", but
  CMake did not find one.

  Could not find a package configuration file provided by "rostest" with any
  of the following names:


  Add the installation prefix of "rostest" to CMAKE_PREFIX_PATH or set
  "rostest_DIR" to a directory containing one of the above files.  If
  "rostest" provides a separate development package or SDK, be sure it has
  been installed.

CMake Error at ros_tutorials/rospy_tutorials/CMakeLists.txt:112 (add_rostest):
  Unknown CMake command "add_rostest".

-- Configuring incomplete, errors occurred!
See also "/home/pra-dan/ros/overlay_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/pra-dan/ros/overlay_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

What's wrong here ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-10-28 02:58:56 -0500

bob-ROS gravatar image


sudo apt install ros-noetic-rostest

or replace noetic with whatever version you use.

edit flag offensive delete link more


It worked. Thanks

pra-dan gravatar image pra-dan  ( 2020-10-28 04:11:19 -0500 )edit

Question Tools

1 follower


Asked: 2020-10-28 01:43:00 -0500

Seen: 602 times

Last updated: Oct 28 '20