Turtlebot3的仿真環境搭建

本人電腦環境:ubuntu16.04+Ros Kinetic

1.  創建turtlebot3所在的文件夾

mkdir -p catkin_ws/src
cd catkin_ws/src

2. 安裝turtlebot3依賴包

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-image-view ros-kinetic-gmapping ros-kinetic-navigation ros-kinetic-interactive-markers

3.安裝turtlebot3_msgs包、turtlebot3包和turtlebot3_simulation包

在src文件夾下下載源碼

git clone https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git
git clone https://github.com/ROBOTIS-GIT/turtlebot3.git
git clone https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git

編譯

cd ..
catkin_make

4. 環境設置

設置機器人型號時可以根據需要選擇burger或者waffle

echo "export TURTLEBOT3_MODEL=burger" >> ~/.bashrc 
echo "source ~/turtlebot/catkin_ws/devel/setup.bash" >> ~/.bashrc

到此,就完成安裝了~

驗證一下

新打開一個終端

roslaunch turtlebot3_gazebo turtlebot3_world.launch 

看看仿真環境是不是可以打開啦~(PS: 第一次打開仿真環境可能需要較長的等待時間)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章