Ask Your Question

Unknown CMake command "add_rostest"

asked 2020-10-27 10:30:39 -0500

pra-dan gravatar image

I am new to ROS and trying to go through the Creating a workspace tutorial. I follow everything properly and run ~/ros/overlay_ws$ catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3.

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 is wrong here ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-10-28 10:36:15 -0500

toebgen gravatar image

Have you tried (make sure to replace noetic in case you use a different ROS Distro):

sudo apt install ros-noetic-rostest
edit flag offensive delete link more


@pra-dan, did this solve your problem?

toebgen gravatar image toebgen  ( 2020-11-11 11:16:01 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-10-27 10:30:39 -0500

Seen: 306 times

Last updated: Oct 28 '20