ROS编译过程中的错误

2023-05-16

一、catkin_make编译错误

(1)

    Could not find a package configuration file provided by
      "gazebo_ros_control" with any of the following names:
     
        gazebo_ros_controlConfig.cmake
        gazebo_ros_control-config.cmake

提示缺少“gazebo_ros_control”功能包,sudo apt-get install ros-kinetic-gazebo-ros-control

(3)

      Could not find a package configuration file provided by "move_base_msgs"
      with any of the following names:
     
        move_base_msgsConfig.cmake
        move_base_msgs-config.cmake

提示缺少“gazebo_ros_control”功能包,sudo apt-get install ros-kinetic-move-base-msgs

(2)

alsa/asoundlib.h: No such file or directory

缺少一个库,sudo apt-get install libasound2-dev

 

1.  关于"hardware_interface"

    CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
      Could not find a package configuration file provided by
      "hardware_interface" with any of the following names:
     
        hardware_interfaceConfig.cmake
        hardware_interface-config.cmake
     
      Add the installation prefix of "hardware_interface" to CMAKE_PREFIX_PATH or
      set "hardware_interface_DIR" to a directory containing one of the above
      files.  If "hardware_interface" provides a separate development package or
      SDK, be sure it has been installed.
    Call Stack (most recent call first):
      aubo_robot/aubo_new_driver/CMakeLists.txt:9 (find_package)
     
     
    -- Could not find the required component 'hardware_interface'. 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
      "hardware_interface" with any of the following names:
     
        hardware_interfaceConfig.cmake
        hardware_interface-config.cmake
     
      Add the installation prefix of "hardware_interface" to CMAKE_PREFIX_PATH or
      set "hardware_interface_DIR" to a directory containing one of the above
      files.  If "hardware_interface" provides a separate development package or
      SDK, be sure it has been installed.
    Call Stack (most recent call first):
      aubo_robot/aubo_new_driver/CMakeLists.txt:9 (find_package)
     
     
    -- Configuring incomplete, errors occurred!
    See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeOutput.log".
    See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeError.log".
    Makefile:1858: recipe for target 'cmake_check_build_system' failed
    make: *** [cmake_check_build_system] Error 1
    Invoking "make cmake_check_build_system" failed

解决办法

sudo apt-get install ros-kinetic-effort-controllers
sudo apt-get install ros-kinetic-joint-state-controller

2. 关于controller_manager

    CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
      Could not find a package configuration file provided by
      "controller_manager" with any of the following names:
     
        controller_managerConfig.cmake
        controller_manager-config.cmake
     
      Add the installation prefix of "controller_manager" to CMAKE_PREFIX_PATH or
      set "controller_manager_DIR" to a directory containing one of the above
      files.  If "controller_manager" provides a separate development package or
      SDK, be sure it has been installed.
    Call Stack (most recent call first):
      aubo_robot/aubo_new_driver/CMakeLists.txt:9 (find_package)
     
     
    -- Configuring incomplete, errors occurred!
    See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeOutput.log".
    See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeError.log".
    Makefile:1858: recipe for target 'cmake_check_build_system' failed
    make: *** [cmake_check_build_system] Error 1
    Invoking "make cmake_check_build_system" failed


解决办法
sudo apt-get install ros-kinetic-ros-control ros-kinetic-ros-controllers

3. 与Python兼容问题(No module catkin_dkg.package)

    -- Using Python nosetests: /usr/bin/nosetests-2.7
    ImportError: "from catkin_pkg.package import parse_package" failed: No module named catkin_pkg.package
    Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
    CMake Error at /opt/ros/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
      execute_process(/home/wgb/anaconda2/bin/python
      "/opt/ros/kinetic/share/catkin/cmake/parse_package_xml.py"
      "/opt/ros/kinetic/share/catkin/cmake/../package.xml"
      "/home/wgb/catkin_ws/build/catkin/catkin_generated/version/package.cmake")
      returned error code 1
    Call Stack (most recent call first):
      /opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:63 (safe_execute_process)
      /opt/ros/kinetic/share/catkin/cmake/all.cmake:151 (_catkin_package_xml)
      /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
      CMakeLists.txt:52 (find_package)
     
     
    -- Configuring incomplete, errors occurred!
    See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeOutput.log".
    See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeError.log".
    Invoking "cmake" failed

解决办法
检查一下Python的版本: wgb@wgb:~$ python -V
检查一下catkin依赖的Python版本: wgb@wgb:~$ dpkg -L python-catkin-pkg
如果Python的版本和catkin依赖的版本不一样,说明Python依赖包有问题,解决办法:

    conda install setuptools
     
    pip install -U rosdep rosinstall_generator wstool rosinstall six vcstools


4 No module named em 的问题

    ImportError: No module named em
    gazebo_ros_pkgs/gazebo_msgs/CMakeFiles/gazebo_msgs_generate_messages_cpp.dir/build.make:117: recipe for target '/home/wgb/catkin_ws/devel/include/gazebo_msgs/ContactState.h' failed
    make[2]: *** [/home/wgb/catkin_ws/devel/include/gazebo_msgs/ContactState.h] Error 1
    Traceback (most recent call last):
      File "/opt/ros/kinetic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module>
        import genmsg.template_tools
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in <module>
        import em
    ImportError: No module named em
    gazebo_ros_pkgs/gazebo_msgs/CMakeFiles/gazebo_msgs_generate_messages_cpp.dir/build.make:139: recipe for target '/home/wgb/catkin_ws/devel/include/gazebo_msgs/LinkStates.h' failed
    make[2]: *** [/home/wgb/catkin_ws/devel/include/gazebo_msgs/LinkStates.h] Error 1
    Traceback (most recent call last):
      File "/opt/ros/kinetic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module>
        import genmsg.template_tools
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in <module>
        import em
    ImportError: No module named em
    Traceback (most recent call last):
      File "/opt/ros/kinetic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module>
        import genmsg.template_tools
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in <module>
        import em
    ImportError: No module named em
    gazebo_ros_pkgs/gazebo_msgs/CMakeFiles/gazebo_msgs_generate_messages_cpp.dir/build.make:128: recipe for target '/home/wgb/catkin_ws/devel/include/gazebo_msgs/LinkState.h' failed
    make[2]: *** [/home/wgb/catkin_ws/devel/include/gazebo_msgs/LinkState.h] Error 1
    gazebo_ros_pkgs/gazebo_msgs/CMakeFiles/gazebo_msgs_generate_messages_cpp.dir/build.make:161: recipe for target '/home/wgb/catkin_ws/devel/include/gazebo_msgs/ModelStates.h' failed
    make[2]: *** [/home/wgb/catkin_ws/devel/include/gazebo_msgs/ModelStates.h] Error 1
    Traceback (most recent call last):
      File "/opt/ros/kinetic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in <module>
        import genmsg.template_tools
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in <module>
        import em
    ImportError: No module named em
    gazebo_ros_pkgs/gazebo_msgs/CMakeFiles/gazebo_msgs_generate_messages_cpp.dir/build.make:174: recipe for target '/home/wgb/catkin_ws/devel/include/gazebo_msgs/WorldState.h' failed
    make[2]: *** [/home/wgb/catkin_ws/devel/include/gazebo_msgs/WorldState.h] Error 1
    CMakeFiles/Makefile2:1511: recipe for target 'gazebo_ros_pkgs/gazebo_msgs/CMakeFiles/gazebo_msgs_generate_messages_cpp.dir/all' failed
    make[1]: *** [gazebo_ros_pkgs/gazebo_msgs/CMakeFiles/gazebo_msgs_generate_messages_cpp.dir/all] Error 2
    Makefile:138: recipe for target 'all' failed
    make: *** [all] Error 2
    Invoking "make -j12 -l12" failed

解决办法:
wgb@wgb:~/catkin_ws$ pip install empy

5. defusedxml.xmlrpc

    Traceback (most recent call last):
      File "/opt/ros/kinetic/lib/xacro/xacro", line 32, in <module>
        import xacro
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/xacro/__init__.py", line 42, in <module>
        from roslaunch import substitution_args
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 56, in <module>
        from .launch import ROSLaunchRunner
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/launch.py", line 55, in <module>
        from roslaunch.nodeprocess import create_master_process, create_node_process
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/nodeprocess.py", line 52, in <module>
        from rosmaster.master_api import NUM_WORKERS
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/__init__.py", line 35, in <module>
        from .main import rosmaster_main
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/main.py", line 43, in <module>
        import rosmaster.master
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/master.py", line 47, in <module>
        import rosmaster.master_api
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/master_api.py", line 72, in <module>
        from rosmaster.util import xmlrpcapi
      File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/util.py", line 48, in <module>
        from defusedxml.xmlrpc import monkey_patch
    ImportError: No module named defusedxml.xmlrpc
    while processing /home/wgb/catkin_ws/src/aubo_robot/aubo_description/launch/aubo_i5_upload.launch:
    Invalid <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro --inorder '/home/wgb/catkin_ws/src/aubo_robot/aubo_description/urdf/aubo_i5_robot.urdf.xacro'] returned with code [1].
     
    Param xml is <param command="$(find xacro)/xacro --inorder '$(find aubo_description)/urdf/aubo_i5_robot.urdf.xacro'" name="robot_description"/>
    The traceback for the exception was written to the log file

solving method
wgb@wgb:~$ conda install -c conda-forge defusedxml

6

    wgb@wgb:~$ roslaunch aubo_driver aubo_i5_bringup.launch robot_ip:=192.168.1.34
    [aubo_i5_bringup.launch] is neither a launch file in package [aubo_driver] nor is [aubo_driver] a launch file name
    The traceback for the exception was written to the log file


solving mehtod

    Without any further information or poitners to the source of that package it is hard to tell what is going on. Does the file tb_tables.launch actually exist? Did you source the setup.bash file?
     
    What does rospack find tb_tables output?
     
    If that gives an error, try executing source /home/gabriel/catkin_ws/devel/setup.bash and then try the roslaunch again.


解决办法:

source /home/wgb/catkin_ws/devel/setup.bash


7.

    -- Found gtest sources under '/usr/src/gtest': gtests will be built
    -- Using Python nosetests: /usr/bin/nosetests-2.7
    CMake Error at /opt/ros/kinetic/share/catkin/cmake/assert.cmake:17 (message):
      
     
      Assertion failed: check for file existence, but filename
      (RT_LIBRARY-NOTFOUND) unset.  Message: RT Library
     
    Call Stack (most recent call first):
      /opt/ros/kinetic/share/catkin/cmake/tools/rt.cmake:42 (assert_file_exists)
      /opt/ros/kinetic/share/catkin/cmake/all.cmake:147 (include)
      /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include)
      CMakeLists.txt:52 (find_package)
     
     
    -- Configuring incomplete, errors occurred!
    See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeOutput.log".
    See also "/home/wgb/catkin_ws/build/CMakeFiles/CMakeError.log".
    Invoking "cmake" failed

solving

ubuntu 文件夹/usr/lib/x86_64-linux-gnu/  shangmian you ge cha, xiang fa chuqu

8. /home/wgb/catkin_ws/build/gazebo_ros_pkgs/gazebo_plugins/setup_custom_pythonpath.sh: 4: exec: /home/wgb/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/cfg/CameraSynchronizer.cfg: Permission denied

    /home/wgb/catkin_ws/build/gazebo_ros_pkgs/gazebo_plugins/setup_custom_pythonpath.sh: 4: exec: /home/wgb/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/cfg/CameraSynchronizer.cfg: Permission denied
    gazebo_ros_pkgs/gazebo_plugins/CMakeFiles/gazebo_plugins_gencfg.dir/build.make:69: recipe for target '/home/wgb/catkin_ws/devel/include/gazebo_plugins/CameraSynchronizerConfig.h' failed
    make[2]: *** [/home/wgb/catkin_ws/devel/include/gazebo_plugins/CameraSynchronizerConfig.h] Error 126
    CMakeFiles/Makefile2:6310: recipe for target 'gazebo_ros_pkgs/gazebo_plugins/CMakeFiles/gazebo_plugins_gencfg.dir/all' failed
    make[1]: *** [gazebo_ros_pkgs/gazebo_plugins/CMakeFiles/gazebo_plugins_gencfg.dir/all] Error 2
    make[1]: *** 正在等待未完成的任务....
    [ 86%] Linking CXX shared library /home/wgb/catkin_ws/devel/lib/libgazebo_ros_joint_trajectory.so
    [ 86%] Built target gazebo_ros_joint_trajectory
    [ 86%] Linking CXX shared library /home/wgb/catkin_ws/devel/lib/libgazebo_ros_joint_state_publisher.so
    [ 86%] Linking CXX shared library /home/wgb/catkin_ws/devel/lib/libgazebo_ros_api_plugin.so
    [ 86%] Built target gazebo_ros_joint_state_publisher
    [ 86%] Built target gazebo_ros_api_plugin
    Makefile:138: recipe for target 'all' failed
    make: *** [all] Error 2
    Invoking "make -j4 -l4" failed

解决办法:

    wgb@wgb:~/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/cfg$ cd /home/wgb/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/cfg
    wgb@wgb:~/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/cfg$ chmod +x CameraSynchronizer.cfg

或者

    wgb@wgb:~/catkin_ws/src$ sudo chown -R wgb /home/wgb/catkin_ws/
    [sudo] wgb 的密码:
    wgb@wgb:~/catkin_ws/src$ sudo chmod -R +x /home/wgb/catkin_ws/

参考:

https://answers.ros.org/question/206860/error-when-calling-catkin_make-invoking-make-failed/

9. "moveit_ros_planning"

    moveit_ros_planningConfig.cmake
    moveit_ros_planning-config.cmake

问题

    CMake Warning at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
      Could not find a package configuration file provided by
      "moveit_ros_planning" with any of the following names:
     
        moveit_ros_planningConfig.cmake
        moveit_ros_planning-config.cmake
     
      Add the installation prefix of "moveit_ros_planning" to CMAKE_PREFIX_PATH
      or set "moveit_ros_planning_DIR" to a directory containing one of the above
      files.  If "moveit_ros_planning" provides a separate development package or
      SDK, be sure it has been installed.
    Call Stack (most recent call first):
      aubo_robot-indigo-devel/aubo_trajectory_filters/CMakeLists.txt:5 (find_package)
     
     
    -- Could not find the required component 'moveit_ros_planning'. 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/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
      Could not find a package configuration file provided by
      "moveit_ros_planning" with any of the following names:
     
        moveit_ros_planningConfig.cmake
        moveit_ros_planning-config.cmake
     
      Add the installation prefix of "moveit_ros_planning" to CMAKE_PREFIX_PATH
      or set "moveit_ros_planning_DIR" to a directory containing one of the above
      files.  If "moveit_ros_planning" provides a separate development package or
      SDK, be sure it has been installed.
    Call Stack (most recent call first):
      aubo_robot-indigo-devel/aubo_trajectory_filters/CMakeLists.txt:5 (find_package)
     
     
    -- Configuring incomplete, errors occurred!
    See also "/home/sensetime/catkin_ws/build/CMakeFiles/CMakeOutput.log".
    See also "/home/sensetime/catkin_ws/build/CMakeFiles/CMakeError.log".
    make: *** [cmake_check_build_system] Error 1
    Invoking "make cmake_check_build_system" failed


解决办法: 安装moveit,安装方法参考http://moveit.ros.org/install/

对于indigo

sudo apt-get install ros-indigo-moveit

sudo apt-get install ros-indigo-moveit-full-pr2

    source /opt/ros/indigo/setup.bash
     
    对于kinetic

sudo apt-get install ros-kinetic-moveit

source /opt/ros/kinetic/setup.bash
---------------------  
作者:wuguangbin1230  
来源:CSDN  
原文:https://blog.csdn.net/wuguangbin1230/article/details/77803017  
版权声明:本文为博主原创文章,转载请附上博文链接!


---------------------  
作者:tbaofang  
来源:CSDN  
原文:https://blog.csdn.net/t972409256/article/details/82661633  
版权声明:本文为博主原创文章,转载请附上博文链接!

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

ROS编译过程中的错误 的相关文章

  • FFmpeg源码分析:avformat_find_stream_info分析码流信息

    FFmpeg在调用avformat open input 之后 xff0c 可能码流信息不够完整 xff0c 可以使用avformat find stream info 获取更多的码流信息 比如获取视频帧率 视频宽高 xff0c 重新计算最
  • Miracast投屏协议深入剖析

    Miracast由WiFi联盟制定 xff0c 以WiFi Direct IEEE802 11为无线传输标准 xff0c 允许手机向电视或其他接收设备进行无线投送视频 图片 和Miracast类似的投屏协议 xff0c 还有Airplay
  • c++:DFS与BFS详解

    DFS xff08 深度优先搜索 xff09 xff1a 从某个状态开始 xff0c 不断转移状态到无法转移为止 xff0c 然后退回到前一步 xff0c 继续转移到其他状态 xff0c 不断重复 xff0c 直至找到最终的解 总是从最开始
  • 一文掌握OpenGL的shader内置函数

    OpenGL ES有大量的GLSL内置函数 xff0c 包括 xff1a 三角函数 指数函数 通用函数 浮点函数 几何函数 矩阵函数 矢量关系函数 纹理函数 原子函数 图像函数 插值函数等 目录 一 三角函数 1 radians degre
  • 安全可靠的SRT实时传输协议

    Secure Reliable Transport SRT 是安全 可靠 低延时的多媒体实时传输协议 SRT协议使用AES进行数据加密 xff0c 运用FEC进行前向纠错 xff0c 并且有流量控制 拥塞控制 类似于QUIC协议 xff0c
  • android端使用openCV实现车牌检测

    现在 xff0c 汽车的踪影无处不在 xff0c 公路上疾驰 xff0c 大街边临停 xff0c 小区中停靠 xff0c 车库里停泊 管理监控如此庞大数量的汽车是个头疼的问题 精明的人们把目光放在车牌上 xff0c 因为车牌是汽车的 身份证
  • android端使用openCV与深度学习实现车牌识别

    车牌识别的应用场景随处可见 xff1a 高速公路上超速抓拍 小区门口关卡 车库入口关卡 xff0c 甚至出现在车载设备上 它的工作原理大致这样 xff1a 使用摄像头充当 眼睛 xff0c 使用openCV与深度学习充当 大脑 实时车牌识别
  • FFmpeg音频处理——音频混合、拼接、剪切、转码

    接触FFmpeg有一段时间了 xff0c 它是音视频开发的开源库 xff0c 几乎其他所有播放器 直播平台都基于FFmpeg进行二次开发 本篇文章来总结下采用FFmpeg进行音频处理 xff1a 音频混合 音频剪切 音频拼接与音频转码 采用
  • Android三种方式截取任意界面屏幕

    一 使用MediaProjectionManager Android5 0之后 xff0c 开放截取屏幕的API xff0c 也就是利用MediaProjectionManager创建VirtualDisplay xff0c 传入与Imag
  • ijkplayer基于rtsp直播延时的深度优化

    现在ijkPlayer是许多播放器 直播平台的首选 xff0c 相信很多开发者都接触过ijkPlayer xff0c 无论是Android工程师还是iOS工程师 我曾经在Github上的ijkPlayer开源项目上提问过 xff1a 视频流
  • C++ 程序编译过程

    前言 C语言的编译链接过程要把我们编写的一个c程序 xff08 源代码 xff09 转换成可以在硬件上运行的程序 xff08 可执行代码 xff09 xff0c 需要进行编译和链接 编译就是把文本形式源代码翻译为机器语言形式的目标文件的过程
  • 自旋锁实现机理 spin_lock

    自旋锁的概念 自旋锁 xff08 spin lock xff09 是一种典型的对临界资源进行互斥访问的手段 xff0c 它是基于系统原子操作为基础 xff0c 自旋锁最多只能被一个可执行线程持有 xff0c 如果一个执行线程试图获得一个被已
  • 数据结构:图之DFS与BFS的复杂度分析

    BFS的复杂度分析 BFS是一种借用队列来存储的过程 xff0c 分层查找 xff0c 优先考虑距离出发点近的点 无论是在邻接表还是邻接矩阵中存储 xff0c 都需要借助一个辅助队列 xff0c v个顶点均需入队 xff0c 最坏的情况下
  • python中的os.path.dirname(__file__)的使用

    os path dirname file 返回脚本的路径 xff0c 但是需要注意一下几点 1 必须是实际存在的 py文件 xff0c 如果在命令行执行 xff0c 则会引发异常NameError name 39 file 39 is no
  • 北斗模块学习之初

    BD定义 xff1a 北斗卫星导航系统 xff08 BeiDou xff08 COMPASS xff09 NavigationSatellite System xff09 是中国正在实施的自主发展 独立运行的全球卫星导航系统 系统建设目标是
  • 关于Boost库和STL标准模板库

    一 关于STL 首先 xff0c 关于stl xff0c 最近也看了不少关于stl的博客 往大概的讲 xff0c stl即一种标准的模板库 xff0c 同时 xff0c 它也是静态库 xff0c 它存在的目的即是为了实现代码的服用性 xff
  • c语言char* 转char[]方法

    vector lt char gt splite by delim char host name char a 1000 strcpy a host name char p 61 strtok a split vector lt char
  • STL常用容器对比

    STL的常用容器大致有以下8个 xff1a 1 vector vector是一种动态数组 xff0c 在内存中具有连续的存储空间 xff0c 支持快速随机访问 由于具有连续的存储空间 xff0c 所以在插入和删除操作方面 xff0c 效率比
  • C 语言 stm32 无符号8位转换为int类型 uchar 转换为 int

    我做的是一个无线鼠标 xff0c stm32用nRF24L01无线传输模块发送数据时 xff0c 是传输无符号8位 uchar 三个数据是角度值 xff0c 有正负 直接使用无符号数据的话负数会出错 xff0c 在接收端要把数据恢复为整数
  • 常见IMU的性能比较

    型号gyr零偏稳定性gyr量程acc零偏稳定性acc量程HZ价格其他说明 EG320N xff08 epson xff09 http www canalgeomatics com wp content uploads 2020 06 oem

随机推荐

  • strcat函数用法的一点看法

    最近在刷题时碰到了strcat这个函数 xff0c 一开始没怎么理解它的用法 xff0c 出了错 xff0c 现在写点自己的理解吧 首先来看两个小程序 代码一 xff1a include lt iostream gt using names
  • CMake教程——QT项目使用CMake

    文章目录 1 Basic Cmake Based Project2 Executable VS Library3 Every module has its own CMakeList txt in its folder3 1 不推荐的做法
  • Proteus ISIS仿真软件中英文元件名称对照

    定时 计数器的使用方法 xff1a CLK xff1a 计数和测频状态时 xff0c 数字波的输入端 xff08 counter enable CE xff1a 计数使能端 xff1b 通过属性设置高还是低有效 无效暂停计数 RST 复位端
  • STL详解

    STL简介 编程的抽象发展 xff1a 面向过程 to 基于对象 to
  • 双目立体视觉 I:标定和校正

    点击上方 AI公园 xff0c 关注公众号 xff0c 选择加 星标 或 置顶 作者 xff1a Ali Yasin Eser 编译 xff1a ronghuaiyang 导读 双目立体校正和标定 大家好 xff01 今天我们将讨论什么是立
  • 4_竞赛无人机基本自动飞行支持函数与导航控制函数解析——零基础学习竞赛无人机搭积木式编程

    竞赛无人机基本自动飞行支持函数与导航控制函数解析 基本自动飞行支持函数 void basic auto flight support void 根据前面几讲的介绍 xff0c 要想实现无人机的自动飞行 xff0c 单依靠姿态自稳 高度控制远
  • Ubuntu20.04/Ubuntu22.04 配置VScode+Opencv+cmake(C++)

    下面介绍Ubuntu20 04下安装opencv xff0c 当然Ubuntu22 04也适用 xff0c 然后将opencv链接到VsCode 先主体按照 gt 点我 xff1a 链接1 lt 的第一点进行安装 xff0c 但是特别注意
  • makefile和cmake

    目录 作用优点cmake 作用 makefile关系到了整个工程的编译规则 一个工程中的源文件不计其数 xff0c 其按类型 功能 模块分别放在若干个目录中 xff0c makefile定义了一系列的规则来指定 xff0c 哪些文件需要先编
  • Linux查看线程的堆栈信息

    1 使用top命令 xff0c 查找pid 2 显示线程 xff0c 查找线程tid ps mp pid o THREAD tid time sort rn 3 将线程id转化为16进制0xtid printf 34 x n 34 tid
  • MPU6050 简介

    目录 关于MPU6050芯片 关于小板 关于厂家和DATASHEET 关于漂移 关于角加速度还是角速度 关于精度和量程 xff08 可调 xff0c 可选 xff09 关于功耗 xff0c 陀螺仪 43 加速器工作电流 xff1a 3 8m
  • 银河麒麟V10操作系统安装putty和cutecom和网络调试助手(mNetAssist)

    银河麒麟V10操作系统安装putty和cutecom和网络调试助手 xff08 mNetAssist xff09 安装Putty 需要连接网络 sudo apt get install putty 安装Cutecom 需要连接网络 sudo
  • STM32串口中断接收和中断发送

    STM32串口USART1中断接收和中断发送 先贴出中断函数 void USART1 IRQHandler void if USART GetITStatus USART1 USART IT RXNE 61 RESET USART Clea
  • ICP(Iterative Closest Point迭代最近点)算法学习笔记

    背景 xff1a 博主从百度百科开始学习icp算法 xff0c 主要是后期加得学习笔记 xff08 红色部分 xff09 ICP算法 xff1a 以点集对点集 xff08 PSTPS xff09 配准方法为基础 xff0c 他们阐述了一种曲
  • linux设备上的Onvif 实现21:解决大华摄像头无法使用问题

    好长时间没有再写该系列文章了 xff0c 最近刚好摸索着解决了大华摄像头无法使用问题 xff0c 记录下来 xff0c 应该对其他博友有所帮助 之前虽然写了一大堆文章说明了如何使用gsoap连接摄像头 xff0c 但这是针对一台海康的摄像头
  • NRF24L01工作原理(发送接收通道地址)解读 图示

    NRF24L01工作原理 xff08 发送接收通道地址 xff09 解读 图示 NRF24l01工作原理 xff08 发送接收通道地址 xff09 网上说明不清晰 xff0c 特制作本说明 xff0c xff08 制作 xff1a 流浪的蛙
  • Realsense D435i 使用

    工作之后才发现问题不是单线程地来找你 xff0c 而是多线程并发地涌向你 D435i是一款良心传感器 xff0c 美中不足的是你拿不到广角图像 虽然现在不负责传感器测试了 xff08 老大布置什么 xff0c 打工的就去做什么就好了 xff
  • Kalibr标定d435i

    figure it out 最近准备使用realsense d435i xff0c 先对其进行标定 整体环境是基于ROS的 xff0c 因为Kalibr是在ROS环境下 大致过程如下 xff1a imu标定 gt 双目标定 gt 双目 43
  • cout函数未定义问题和函数隐形类型转换

    cout函数未定义的一些问题 xff1a 看上面的图片 xff0c 有个朋友说 xff0c 按照上面using和修改了iostream为什么还是显示未定呢 xff1f 到底怎么办呢 xff1f 解决 xff1a include lt ios
  • C++ primer plus

    https github com lilinxiong cppPrimerPlus six https github com lilinxiong cppPrimerPlus six 最近在看C 43 43 primer plus这本书 x
  • ROS编译过程中的错误

    一 catkin make编译错误 xff08 1 xff09 Could not find a package configuration file provided by 34 gazebo ros control 34 with an