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

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:

    rostestConfig.cmake
    rostest-config.cmake

  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
0

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

Comments

@pra-dan, did this solve your problem?

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

Question Tools

2 followers

Stats

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

Seen: 700 times

Last updated: Oct 28 '20