Skip to content

Instantly share code, notes, and snippets.

@NamWoo
Created February 10, 2022 09:53
Show Gist options
  • Select an option

  • Save NamWoo/00b08c419e64a284cc4d1c68c5c3c186 to your computer and use it in GitHub Desktop.

Select an option

Save NamWoo/00b08c419e64a284cc4d1c68c5c3c186 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "------------------------------"
echo "------install start-----------"
echo "------------------------------"
sudo apt-get install -y ros-foxy-gazebo-* ros-foxy-cartographer ros-foxy-cartographer-ros
sudo apt-get install -y ros-foxy-navigation2 ros-foxy-nav2-bringup
#sudo apt install -y ros-foxy-dynamixel-sdk
#sudo apt remove ros-foxy-turtlebot3-msgs
#sudo apt remove ros-foxy-turtlebot3
mkdir -p ~/turtlebot3_ws/src
cd ~/turtlebot3_ws/src/
git clone -b foxy-devel https://github.com/ROBOTIS-GIT/DynamixelSDK.git
git clone -b foxy-devel https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git
git clone -b foxy-devel https://github.com/ROBOTIS-GIT/turtlebot3.git
cd ~/turtlebot3_ws
colcon build --symlink-install
echo 'source ~/turtlebot3_ws/install/setup.bash' >> ~/.bashrc
echo 'export ROS_DOMAIN_ID=30 #TURTLEBOT3' >> ~/.bashrc
source ~/.bashrc
echo "------------------------------"
echo "------install done------------"
echo "------------------------------"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment