ros(13):ros找不到包报错及解决办法--Config.cmake

2023-05-16

目录

一 基础包

1.1 rospy包

1.2 tf包

1.3 grid_map包

1.4 serial

二 专有包

2.1 dynamic_reconfigure包

2.2 rosparam_handler包

2.3 qt_build包

2.4 grid_map_sdf包

2.5 catkin_simple

2.6 camera_info_manager包

2.7 fake_localization包

2.8 laser_filters包

2.9 joint_state_publisher包

三 单独编译包

3.1 casadi包

3.2 ceres包

四 apt-get安装包

4.1 GTest


        注:melodic为ubuntu18.04对应的ros版本名称,ubuntu16.04对应kinetic,ubuntu20.04对应noetic;下面需要简单更改就好

一 基础包

1.1 rospy包

Could not find a package configuration file provided by "rospy" with any of
  the following names:

    rospyConfig.cmake
    rospy-config.cmake
sudo apt-get install ros-melodic-rospy

1.2 tf包

  Could not find a package configuration file provided by "tf" with any of
  the following names:

    tfConfig.cmake
    tf-config.cmake

        下面装了比较多的tf*包,解决方案比较暴力,也可以先一个个装,试试还报不报错

sudo apt-get install ros-melodic-tf*

1.3 grid_map包

  Could not find a package configuration file provided by "grid_map_ros" with
  any of the following names:

    grid_map_rosConfig.cmake
    grid_map_ros-config.cmake
sudo apt-get install ros-melodic-grid-map

1.4 serial

  Could not find a package configuration file provided by "serial" with any
  of the following names:

    serialConfig.cmake
    serial-config.cmake

sudo apt-get install ros-melodic-serial

二 专有包

2.1 dynamic_reconfigure包

  Could not find a package configuration file provided by
  "dynamic_reconfigure" with any of the following names:

    dynamic_reconfigureConfig.cmake
    dynamic_reconfigure-config.cmake

        这个好像是用于智能车辆规划控制的包

sudo apt-get install ros-melodic-dynamic-reconfigure

2.2 rosparam_handler包

  Could not find a package configuration file provided by "rosparam_handler"
  with any of the following names:

    rosparam_handlerConfig.cmake
    rosparam_handler-config.cmake

        这个好像是用于调参的包

sudo apt-get install ros-melodic-rosparam-handler

2.3 qt_build包

  Could not find a package configuration file provided by "qt_build" with any
  of the following names:

    qt_buildConfig.cmake
    qt_build-config.cmake
sudo apt-get install ros-melodic-qt-build

2.4 grid_map_sdf包

  Could not find a package configuration file provided by "grid_map_sdf" with
  any of the following names:

    grid_map_sdfConfig.cmake
    grid_map_sdf-config.cmake

        这个包好像独立于1.3 的grid_map?

sudo apt-get install ros-melodic-grid-map-sdf

2.5 catkin_simple

  Could not find a package configuration file provided by "catkin_simple"
  with any of the following names:

    catkin_simpleConfig.cmake
    catkin_simple-config.cmake
git clone https://github.com/catkin/catkin_simple

         放在src中即可

2.6 camera_info_manager包

  Could not find a package configuration file provided by
  "camera_info_manager" with any of the following names:

    camera_info_managerConfig.cmake
    camera_info_manager-config.cmake
sudo apt-get install ros-melodic-camera-info-manager

2.7 fake_localization包

  Could not find a package configuration file provided by "fake_localization"
  with any of the following names:

    fake_localizationConfig.cmake
    fake_localization-config.cmake
sudo apt-get install ros-melodic-fake-localization

2.8 laser_filters包

  Could not find a package configuration file provided by "laser_filters"
  with any of the following names:

    laser_filtersConfig.cmake
    laser_filters-config.cmake
sudo apt-get install ros-melodic-laser-filters

2.9 joint_state_publisher包

ERROR: cannot launch node of type [joint_state_publisher/joint_state_publisher]: joint_state_publisher
sudo apt-get install ros-melodic-joint-state-publisher

2.10 teleop_twist_keyboard包

[rospack] Error: package 'teleop_twist_keyboard' not found
sudo apt-get install ros-melodic-teleop-twist-keyboard 

三 单独编译包

3.1 casadi包

CMake Error at /home/xxxx/CMakeLists.txt:22 (find_package):
  By not providing "Findcasadi.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "casadi", but
  CMake did not find one.

  Could not find a package configuration file provided by "casadi" with any
  of the following names:

    casadiConfig.cmake
    casadi-config.cmake

        单独编译安装,在https://github.com/casadi/casadi上下载,安装:

cd casadi
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE
make
sudo make install

3.2 ceres包

CMake Error at /home/xxxx/opt_solver/CMakeLists.txt:25 (find_package):
  By not providing "FindCeres.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Ceres", but
  CMake did not find one.

  Could not find a package configuration file provided by "Ceres" with any of
  the following names:

    CeresConfig.cmake
    ceres-config.cmake

  Add the installation prefix of "Ceres" to CMAKE_PREFIX_PATH or set
  "Ceres_DIR" to a directory containing one of the above files.  If "Ceres"
  provides a separate development package or SDK, be sure it has been
  installed.

        一般为编译安装,具体参考各大博主

        不过可以安装二进制格式,我在Xavier NX上试过,不会引起程序报错

sudo apt install libceres-dev

四 apt-get安装包

4.1 GTest

        Could NOT find GTest (missing: GTEST_LIBRARY GTEST_MAIN_LIBRARY)

CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find GTest (missing: GTEST_LIBRARY GTEST_MAIN_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindGTest.cmake:196 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  tests/CMakeLists.txt:1 (find_package)

        大概是因为GTest虽然安装过,但是好像找不到头文件之类的

        解决办法:(重新安装、重新编译)

sudo apt-get install libgtest-dev
sudo apt-get install cmake
cd
cd /usr/src/gtest
sudo cmake CMakeLists.txt 
sudo make 
sudo cp *.a /usr/lib

参考链接:https://blog.csdn.net/numberors/article/details/109765131

@meng

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

ros(13):ros找不到包报错及解决办法--Config.cmake 的相关文章

随机推荐

  • ubuntu 换源深层次解析

    换源也是一个容易出错的问题 xff0c 本文以树莓派为例展开 xff0c x86也是一样的操作 那么假设成立的话 xff0c 就要记住我们是在树莓派 xff08 arm xff09 上安装的ubuntu xff0c 不是X86 xff0c
  • 1运动规划概述

    Motion planning autonomous robot 总结一下什么是自主机器人 xff1a 首先我们需要状态估计 xff08 定位 xff09 xff1b 基于此 xff0c 利用传感器融合人建立一个周围环境的三维地图 xff1
  • 5轨迹生成

    文章目录 Introduction全局与局部方法全局与局部对比 轨迹生成T xff08 what xff09 为什么需要平滑轨迹呢Y why W how 微分平坦 xff08 Differential Flatness xff09 TQua
  • java--通过JNI调用动态链接库(dll、so、dylib)

    公司项目需要用到第三方qt插件 xff0c 由于业务是偏底层的 xff0c 基本上用不到jar包 xff0c 因此只能通过jni的方式调用 没学过c 43 43 xff0c 十多天的摸爬滚打一路过来不容易啊 xff01 今天总算跑通了 网上
  • 在头文件实现函数的重定义问题

    例如一个头文件headfile h这样写 pragma once bool Func return true 在这个头文件被多个地方包含的时候就会出问题 xff0c 链接时报错 FuncB报重定义 fatal error LNK1169 找
  • 数字电路基础知识系列(六)之LC滤波器的基础知识

    针对设计过程的问题 xff0c 如有疑问 xff0c 欢迎留言讨论 xff01 点我返回目录 LC滤波器 xff0c 是指将电感 L 与电容器 进行组合设计构成的滤波电路 xff0c 可去除或通过特定频率的无源器件 电容器具有隔直流通交流
  • I-002 智能家居系列--ESP8266环境搭建

    智能家居系列 1 NodeMCU简介2 硬件介绍3 开发工具的选择3 1 软件介绍3 2 环境搭建 4 测试代码5 后续会更新这边文章 1 NodeMCU简介 NodeMCU简介 NodeMCU 是一个开源的 物联网 平台 它使用 Lua
  • I-000 智能家居系列--需求梳理

    智能家居系列 1 智能家居2 系统框架3 组成部分4 开发思路5 当前的进展 1 智能家居 智能家居的目的旨在提高人们的生活水平 xff0c 确保人们的生活更加舒适 2 系统框架 下图只是初版 xff0c 在具体的开发过程中 xff0c 会
  • Cartographer(二)使用思岚rplidar雷达进行cartographer建图

    一 修改launch文件和lua配置文件 xff08 1 xff09 修改revo lds lua 到目录下 xff0c 打开文件 home meng xx catographer ws src cartographer ros carto
  • 数字电路硬件设计系列(三)之缓启电路设计

    针对设计过程中的问题 xff0c 如有疑问 xff0c 欢迎留言评论 xff01 点我返回目录 1 简介 在一些大电压 大电流的产品中 xff0c 上电的瞬间通常会有较大的电流冲击 xff0c 下图是一款产品上电过程中波形 最大的电流达到1
  • 数字电路硬件设计系列(十)之RS485电路设计

    针对设计过程中的问题 xff0c 如有疑问 xff0c 欢迎留言评论 xff01 点我返回目录 1 简介 RS485通信属于串口通信中的半双工通信 xff0c RS485具有支持多节点 xff08 32个节点 xff09 传输距离远 xff
  • 数字电路硬件设计系列(五)之AT89C51/C52最小系统设计

    针对设计过程中的问题 xff0c 如有疑问 xff0c 欢迎留言评论 xff01 点我返回目录 1 简介 AT89C51 C52是指两个系列的产品 xff0c 具体包含AT89C51 AT89C52 xff0c 但是最小系统的组成基本上相差
  • 1.18 接地设计问题(非常实用)

    目录 1 简介 2 接地的分类 3 接地的目的 3 1 对地阻抗低 3 2 地平面稳定 3 3 对地均衡 4 共地耦合干扰 5 常用的基地方式 6 安全地 防雷击浪涌接地的接法 1 简介 在电路设计的过程中 xff0c 接地是一个老生常谈的
  • 1.0 硬件设计基础(面试题)

    1 滤波磁珠和滤波电感的区别 磁珠由导线穿过铁氧体组成 xff0c 直流电阻很小 xff0c 在低频时阻抗也很小 xff0c 对直流信号几乎没有影响 在高频 xff08 几十兆赫兹以上 xff09 时磁珠阻抗比较大 xff0c 高频电磁场在
  • 1.19 旁路电容与去耦电容

    1 简介 旁路电容和旁路电容是电路设计过程中十分常见 xff0c 但是很多应将工程师都没有真正区分这两者的功能 xff0c 我们先来看看这两个单词在英文中的意思 xff1a 电容英文中文解释旁路电容Bypass抄近道去耦电容couple是一
  • vins运行1

    vins fusion 运行笔记 安装code utils 1 fatal error elfutils libdw h 没有那个文件或目录 没有安装 sudo apt get install libdw dev 2 fatal error
  • 四旋翼无人机汇报

    我主要负责的是四旋翼无人机的组装和飞控参数的调试 遇到的问题 当初焊接时由于时间紧张用的是比较细的焊条 xff0c 虽然焊接成功 xff0c 但是导致了后续插拔导线时容易接触不良 xff0c 后来在焊点处重新焊接 由于未在地面站软件中修改无
  • 载波相位差分定位

    x1f30e 我接触差分定位是通过暑期在南京北斗一段时间的实习 x1f30e 我把 Lambda算法的zip和rar上传到了这里 x1f30e https wwi lanzoui com b01bp70yj x1f30e 再推荐一个gith
  • nRF SPI 与 TWI 操作相关 (BMI088 与 MLX90614 举例)

    SPI0 与 TWI0 的 ID相同 xff0c SPI0 与 TWI0 的 ID相同 编译时有报错 若要避免 xff0c 有两个方法 1 使用不同ID外设 2 使用模拟SPI或模拟IIC nRF SPI 初始化 sdk config h
  • ros(13):ros找不到包报错及解决办法--Config.cmake

    目录 一 基础包 1 1 rospy包 1 2 tf包 1 3 grid map包 1 4 serial 二 专有包 2 1 dynamic reconfigure包 2 2 rosparam handler包 2 3 qt build包