ego-planner编译问题

ego-planner编译过程中报错:
– Could NOT find pcl_ros (missing: pcl_ros_DIR)
– 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/melodic/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):
uav_simulator/local_sensing/CMakeLists.txt:69 (find_package)

– Configuring incomplete, errors occurred!
See also “/home/zp/catkin_ws/ego-planner-swarm-master/build/CMakeFiles/CMakeOutput.log”.
See also “/home/zp/catkin_ws/ego-planner-swarm-master/build/CMakeFiles/CMakeError.log”.
Invoking “cmake” failed

解决:sudo apt-get install ros-melodic-pcl-ros,其中melodic表示ros版本,请针对自己的ros版本匹配,如kinetic版本的ros请使用sudo apt-get install ros-kinetic-pcl-ros
参考:https://www.cnblogs.com/Lei-HongweiNO11/p/12005172.html

你可能感兴趣的:(ego-planner编译问题)