ROS 机器人小车编码编译问题解决

1.Could not find the required component ‘uuid_msgs’.
sudo apt-get install ros-melodic-uuid-msgs

2.Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)
sudo apt-get install libsdl-dev

3.Could NOT find SDL_image (missing: SDL_IMAGE_LIBRARIES
SDL_IMAGE_INCLUDE_DIRS)
sudo apt-get install libsdl-image1.2-dev

4.Could not find a package configuration file provided by “libuvc” with any
of the following names:
git clone https://github.com/libuvc/libuvc
cd libuvc
mkdir build
cd build
cmake …
make && sudo make install

5.CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (message):
Project ‘cv_bridge’ specifies ‘/usr/include/opencv’ as an include dir,
which is not found.

CMake Error at /opt/ros/melodic/share/image_geometry/cmake/image_geometryConfig.cmake:113 (message):
Project ‘image_geometry’ specifies ‘/usr/include/opencv’ as an include dir,
which is not found.

只需修改上述路径中的cv_bridgeconfig.cmke和image_geometryConfig.cmake文件,
将100行附近的两个opencv改成opencv4即可(注意,只需要改动单独一个的opencv,前面有连字符的opencv不需要改动)

6.CMake Error at realsense-ros-development/realsense2_camera/CMakeLists.txt:47 (message):
sudo apt-get install ros-melodic-realsense2-camera

7.Checking for module ‘orocos-bfl’
– No package ‘orocos-bfl’ found
sudo apt-get install ros-melodic-bfl

8.Could not find the required component ‘serial’.
sudo apt-get install ros-melodic-serial

9.Could NOT find tf2_sensor_msgs
sudo apt-get install ros-melodic-tf2-sensor-msgs

10.Could not find the required component ‘move_base_msgs’
sudo apt-get install ros-melodic-move-base-msgs

11.Could NOT find costmap_converter
sudo apt-get install ros-melodic-costmap-converter

12.Could not find a package configuration file provided by “mbf_costmap_core”
sudo apt-get install ros-melodic-mbf-costmap-core

13.Could not find a package configuration file provided by “mbf_msgs” with any
of the following names:
sudo apt-get install ros-melodic-mbf-msgs

14.Unable to find SuiteSparse
sudo apt-get install libsuitesparse-dev

15.Could not find libg2o!
sudo apt-get install ros-melodic-libg2o

16.Could NOT find async_web_server_cpp
sudo apt-get install ros-melodic-async-web-server-cpp

17.Could not find a package configuration file provided by “joy” with any of
the following names:
sudo apt-get install ros-melodic-joy

18.Could not find a package configuration file provided by “ZED” (requested
version 3) with any of the following names:
尚未解决,暂时删除zed-ros-wrapper-master文件夹

19./home/zsq/catkin_ws/src/ldlidar_14/src/cmd_interface_linux.cpp:11:10: fatal error: libudev.h: No such file or directory
sudo apt-get install libudev-dev

20./usr/bin/ld: cannot find -lmsc
sudo cp src/xf_mic_asr_offline/lib/arm64/libmsc.so /usr/lib/

21.error “OpenCV 4.x+ requires enabled C++11 support”
尚未解决,暂时删除darknet_ros文件夹

22.camera_driver.cpp:(.text+0xd00): undefined reference to `uvc_free_frame’
在ros_astra_camera的CmakeList.txt文件的find_package(libuvc REQUIRED)下方添加两条语句(根据你libuvc安装的地址修改)
set(libuvc_INCLUDE_DIRS “/home/zsq/catkin_ws/libuvc/build/include/libuvc”)
set(libuvc_LIBRARIES “/home/zsq/catkin_ws/libuvc/build/libuvc.so”)

23.c++: internal compiler error: 已杀死 (program cc1plus)
sudo d.d if=/dev/zero of=/swapfile bs=64M count=32
#count的大小就是增加的swap空间的大小,64M是块大小,所以空间大小是bs*count=2048MB
sudo mkswap /swapfile
#把刚才空间格式化成swap格式
chmod 0600 /swapfile
sudo swapon /swapfile
#使用刚才创建的swap空间

释放空间命令
swapoff -a
过程中可以使用free -m命令来查看交换空间使用情况。

24.执行rosrun turn_on_wheeltec_robot wheeltec_robot_node报
wheeltec_robot can not open serial port,Please check the serial port cable!

串口创建别名
https://blog.csdn.net/zong596568821xp/article/details/78579734
需要重新插拔USB
/dev/wheeltec_controller修改为/dev/ttyUSB0
chmod 777 /dev/ttyUSB0
————————————————
版权声明:本文为CSDN博主「~生而为赢~」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/zsq122021821/article/details/128316043

  • 2
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
ROS(Robot Operating System)是一个开源的机器人操作系统,它提供了一系列的软件库和工具,可以帮助开发者轻松地构建机器人应用程序。在ROS中,可以使用各种传感器和执行器来感知和操纵机器人,同时还有众多功能强大的软件包可供使用。 对于ROS机器人小车的建模,首先需要定义其物理模型和运动模型。物理模型涉及到小车的尺寸、质量分布以及各个部件之间的连接关系等,可以使用三维建模软件(如SolidWorks、Blender等)进行建模。在模型中,可以添加传感器和执行器的模型,以便在软件层面对其进行控制和感知。 接下来,需要在ROS中创建一个软件包,该软件包将包含小车的相关源代码和配置文件。在软件包中,可以编写小车的控制算法、传感器数据处理和与外部环境的通信接口等。根据小车的物理模型和运动模型,可以在软件包中定义小车的运动规划和控制算法,使其能够实现自主导航、避障等功能。 在ROS的开发过程中,可以使用ROS提供的各种工具和软件包快速构建和测试小车的功能。例如,可以使用Gazebo仿真平台对小车进行虚拟环境下的仿真测试,通过仿真可以更快速地验证和优化算法;同时,可以使用Rviz可视化工具对小车的运动、传感器数据等进行可视化展示和调试。 总之,ROS提供了丰富的功能和工具,可用于对机器人小车进行建模和开发。通过合理的物理模型设计和运动算法编写,可以实现小车的各种功能,从而实现自主导航、运动规划、避障等应用。在开发过程中,可以利用ROS的丰富生态系统和强大的社区支持,使机器人小车建模更加高效和便捷。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值