我安装的是ubuntu18.04 和 melodic的ros
首先安装turtlebot3的依赖包
sudo apt-get install ros-melodic-joy ros-melodic-teleop-twist-joy ros-melodic-teleop-twist-keyboard ros-melodic-laser-proc ros-melodic-rgbd-launch ros-melodic-depthimage-to-laserscan ros-melodic-rosserial-arduino ros-melodic-rosserial-python ros-melodic-rosserial-server ros-melodic-rosserial-client ros-melodic-rosserial-msgs ros-melodic-amcl ros-melodic-map-server ros-melodic-move-base ros-melodic-urdf ros-melodic-xacro ros-melodic-compressed-image-transport ros-melodic-rqt-image-view ros-melodic-gmapping ros-melodic-navigation ros-melodic-interactive-markers
然后在catkin_ws下的src文件夹下终端打开
git clone https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git
git clone -b melodic-devel https://github.com/ROBOTIS-GIT/turtlebot3.git
git clone https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git
安装完成后进行编译:在catkin_ws下进行catkin_make
我这里出现错误,然后我上网查完感觉是缺少依赖包,然后又加上的依赖包<

本文档详细记录了在Ubuntu 18.04操作系统上安装ROS Melodic及Turtlebot3仿真环境的过程。首先安装必要的依赖包,接着在catkin工作空间的src目录下操作,通过catkin_make编译项目。在遇到编译错误并解决依赖问题后,最终成功完成编译。此外,还介绍了如何在.bashrc文件中添加相关路径以确保环境配置正确。
最低0.47元/天 解锁文章
1815

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



