ubuntu 16.04 安装TurtleBot3 ROS功能包
安装依赖
sudo apt-get install ros-kinetic-joy ros-kinetic-teleop-twist-joy \ ros-kinetic-teleop-twist-keyboard ros-kinetic-laser-proc \ ros-kinetic-rgbd-launch ros-kinetic-depthimage-to-laserscan \ ros-kinetic-rosserial-arduino ros-kinetic-rosserial-python \ ros-kinetic-rosserial-server ros-kinetic-rosserial-client \ ros-kinetic-rosserial-msgs ros-kinetic-amcl ros-kinetic-map-server \ ros-kinetic-move-base ros-kinetic-urdf ros-kinetic-xacro \ ros-kinetic-compressed-image-transport ros-kinetic-rqt* \ ros-kinetic-gmapping ros-kinetic-navigation ros-kinetic-interactive-markers -y
安装功能包
cd ~/catkin_ws/src/ git clone -b kinetic-devel https://gitee.com/kay2020/DynamixelSDK.git git clone -b kinetic-devel https://gitee.com/kay2020/turtlebot3_msgs.git git clone -b kinetic-devel https://gitee.com/kay2020/turtlebot3.git cd ~/catkin_ws && catkin_make
设置环境变量
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
配置网络
export ROS_MASTER_URI=http://192.168.11.104:11311 export ROS_HOSTNAME=192.168.11.104
说明模型
export TURTLEBOT3_MODEL=burger #export TURTLEBOT3_MODEL=waffle_pi
雷达类型
export LDS_MODEL=LDS-01 export TURTLEBOT3_LASER_SENSOR=rplidar
作者:kay 出处:https://www.cnblogs.com/kay2018/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 如果文中有什么错误,欢迎指出。以免更多的人被误导。 |