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

CMake Error "could not find package sensor_mgs"

asked 2022-10-14 03:09:07 -0500

NightDog gravatar image

updated 2022-10-15 09:02:41 -0500

gvdhoorn gravatar image

While trying to implement a broadcaster for the first time, when using the catkin_make command I get the error message:

CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "sensor_mgs" with
  any of the following names:

    sensor_mgsConfig.cmake
    sensor_mgs-config.cmake

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

Which seems strange, since I didnt specify any sensors in my project.

edit retag flag offensive close merge delete

Comments

There's also a typo here - sensor_msgs not mgs, might be part of your issue.

stevemacenski gravatar image stevemacenski  ( 2022-10-14 15:11:04 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-15 08:30:20 -0500

Mike Scheutzow gravatar image

Your CMakeLists.txt file is asking for this package. Search for the string "sensor_mgs" and fix it or comment it out.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2022-10-14 03:09:07 -0500

Seen: 282 times

Last updated: Oct 15 '22