CMake Error:Could NOT find base_local_planner ros编译报错问题解决思路

文章描述了一种在ROSKinetic环境中遇到的构建错误,具体是找不到base_local_planner组件。解决方案是通过运行sudoapt-getinstall命令安装缺失的依赖包,如ros-kinetic-base_local_planner,并确保CMAKE_PREFIX_PATH或base_local_planner_DIR设置正确。
摘要由CSDN通过智能技术生成
-- Could NOT find base_local_planner (missing: base_local_planner_DIR)
-- Could not find the required component 'base_local_planner'. 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
  "base_local_planner" with any of the following names:

    base_local_plannerConfig.cmake
    base_local_planner-config.cmake

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

此问题是缺少依赖包问题,基本只要带

 camera_info_managerConfig.cmake
 camera_info_manager-config.cmake

 

都是缺少依赖包

sudo apt-get install ros-版本名称-依赖包名字。

例子

sudo apt-get install ros-indigo-camera-info-manager

安装从新编译即可解决

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值