-- Could not find the required component 'pcl_ros'. The following CMake error indicates that you either

安装雷达驱动过程中遇到的问题,走一步坑一步

~/robosense$ catkin_make
Base path: /home/leo2/robosense
Source space: /home/leo2/robosense/src
Build space: /home/leo2/robosense/build
Devel space: /home/leo2/robosense/devel
Install space: /home/leo2/robosense/install
####
#### Running command: "cmake /home/leo2/robosense/src -DCATKIN_DEVEL_PREFIX=/home/leo2/robosense/devel -DCMAKE_INSTALL_PREFIX=/home/leo2/robosense/install -G Unix Makefiles" in "/home/leo2/robosense/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/leo2/robosense/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- 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/leo2/robosense/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.18
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 5 packages in topological order:
-- ~~  - rslidar (metapackage)
-- ~~  - rslidar_msgs
-- ~~  - rslidar_driver
-- ~~  - rslidar_pointcloud
-- ~~  - rslidar_rangeimage
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'rslidar'
-- ==> add_subdirectory(ros_rslidar_robosense/rslidar)
-- +++ processing catkin package: 'rslidar_msgs'
-- ==> add_subdirectory(ros_rslidar_robosense/rslidar_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- rslidar_msgs: 2 messages, 0 services
-- +++ processing catkin package: 'rslidar_driver'
-- ==> add_subdirectory(ros_rslidar_robosense/rslidar_driver)
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by "pcl_ros" with any
  of the following names:

    pcl_rosConfig.cmake
    pcl_ros-config.cmake

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


-- Could not find the required component 'pcl_ros'. 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 /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "pcl_ros" with any
  of the following names:

    pcl_rosConfig.cmake
    pcl_ros-config.cmake

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


-- Configuring incomplete, errors occurred!
See also "/home/leo2/robosense/build/CMakeFiles/CMakeOutput.log".
See also "/home/leo2/robosense/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

解决方式:

大师兄路过,随手就给我弄了sudo apt-get install ros-kinetic-pcl-ros

完事。。。。

猜你喜欢

转载自www.cnblogs.com/Lei-HongweiNO11/p/12005172.html
今日推荐