1/创建工作空间
mkdir -p ~/wheeltec/src
mkdir -p ~/chenrobot/src
cd ~/chenrobot/src
catkin_init_workspace
cd .. //返回上一级路径src中去
2/编译
(1)将相应文件放进去
(2)编译操作
export ROS_PYTHON_VERSION=3
catkin_make_isolated -j2 -DPYTHON_EXECUTABLE=/usr/bin/python3
或则
catkin_make -j2 -DPYTHON_EXECUTABLE=/usr/bin/python3
参考
catkin_make -j2 -DPYTHON_EXECUTABLE=/usr/bin/python3 //-j4
3/相关错误处理
(1)bug1
Could not find a package configuration file provided by "uuid_msgs" with
jiejue:下载后放入src
git clone https://github.com/ros-geographic-info/unique_identifier.git
(2)bug2
Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)
jiejue:
sudo apt-get install libsdl1.2-dev
继续报错:Could NOT find SDL_image (missing:SDL_IMAGE_LIBRA

这篇博客详细记录了在ROS Melodic中编译遇到的一系列问题及解决方案,包括找不到uuid_msgs、SDL、libuvc、orocos-bfl等包的配置文件,以及serial、tf2_sensor_msgs、move_base_msgs、costmap_converter、mbf_costmap_core、mbf_msgs、SuiteSparse、libg2o和async_web_server_cpp等依赖的缺失问题,提供了相应的解决步骤和安装命令。
最低0.47元/天 解锁文章
3740

被折叠的 条评论
为什么被折叠?



