ubuntu20.04解决ROS(noetic版本)缺失drive base包

在编译ROS noetic的chapter3_tutorials工作包时遇到错误,提示缺失drive base包。解决方法包括检查并安装genmsg包,如果已安装,则在import sys后添加指定genmsg包位置的代码。
摘要由CSDN通过智能技术生成

问题描述:编译chapter3_tutorials工作包时出现如下报错:

-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- chapter2_tutorials: 1 messages, 1 services
-- +++ processing catkin package: 'chapter3_tutorials'
-- ==> add_subdirectory(chapter3_tutorials)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Could NOT find driver_base (missing: driver_base_DIR)
-- Could not find the required component 'driver_base'. 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/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "driver_base" with
  any of the following names:

    driver_baseConfig.cmake
    driver_base-config.cmake

  Add the installation prefix of "driver_base" to CMAKE_PREFIX_PAT
  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值