xv_11_laser_driver icon indicating copy to clipboard operation
xv_11_laser_driver copied to clipboard

catkin_make error on cmake

Open aaryswastaken opened this issue 4 years ago • 5 comments

Hi, I bought a neato xv-11 last year and I now have time to interrest me on. So I tried some python scripts in order to make preliminary tests. And now I decided to implement it in ROS and on catkin_make I have troubles in the cmake with the ros-sensor-message :

Running command: "make cmake_check_build_system" in "/home/vsahler/catkin_ws/build"

-- Using CATKIN_DEVEL_PREFIX: /home/vsahler/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/vsahler/catkin_ws/devel -- This workspace overlays: /home/vsahler/catkin_ws/devel -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/vsahler/catkin_ws/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- nosetests not found, Python tests can not be run (try installing package 'python-nose') -- catkin 0.7.8 -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 1 packages in topological order: -- ~~ - xv_11_laser_driver -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'xv_11_laser_driver' -- ==> add_subdirectory(xv_11_laser_driver) -- Could NOT find sensor_msgs (missing: sensor_msgs_DIR) -- Could not find the required component 'sensor_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:82 (find_package): Could not find a package configuration file provided by "sensor_msgs" with any of the following names:

sensor_msgsConfig.cmake sensor_msgs-config.cmake

Add the installation prefix of "sensor_msgs" to CMAKE_PREFIX_PATH or set "sensor_msgs_DIR" to a directory containing one of the above files. If "sensor_msgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): xv_11_laser_driver/CMakeLists.txt:7 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/vsahler/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/vsahler/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:292: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed`

So I tried an sudo apt install ros-sensor-msgs and it didn't work.

I had a lot of troubles while Installing ROS because I'm on mint 19. I had installed ROS on a ubuntu last year and I had no troubles while playing with this type of message

Hope you can help me

aaryswastaken avatar Dec 01 '19 17:12 aaryswastaken