ROS ERROR: Could NOT find depth_image_proc (missing: depth_image_proc_DIR)
报错内容如下,
-- Could NOT find depth_image_proc (missing: depth_image_proc_DIR)
-- Could not find the required component 'depth_image_proc'. 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 "depth_image_proc"
with any of the following names:
depth_image_procConfig.cmake
depth_image_proc-config.cmake
Add the installation prefix of "depth_image_proc" to CMAKE_PREFIX_PATH or
set "depth_image_proc_DIR" to a directory containing one of the above
files. If "depth_image_proc" provides a separate development package or
SDK, be sure it has been installed.
解决办法,
根据你的ROS版本,
sudo apt-get install ros-kinetic-depth-image-proc
或者
sudo apt-get install ros-melodic-depth-image-proc