This repository will contain the code and supporting files to run TurtleBot 2 demos using ROS 2.
sudo apt-get install ros-kinetic-kobuki-driver ros-kinetic-common-msgs ros-kinetic-astra-camera
Follow the usual instructions for getting ROS 2 code, then add a couple of repositories:
cd ~/ros2_ws/src
git clone git@github.com:ros2/turtlebot2_demo.git
git clone git@github.com:ros2/ros_astra_camera.git
# We'll eventually want to use the ROS 1 bridge, too
. /opt/ros/kinetic/setup.bash
cd ~/ros2_ws
./src/ament/ament_tools/scripts/ament.py build
# Astra device rule
cd ~/ros2_ws/src/ros_astra_camera
sudo cp 56-orbbec-usb.rules /etc/udev/rules.d
sudo service udev reload
sudo service udev restart
# Kobuki-specific device link (needed until we parameterize the driver)
sudo ln -s /dev/ttyUSB0 /dev/kobuki
. ~/ros2_ws/install/setup.bash
kobuki_node
. ~/ros2_ws/install/setup.bash
joy_node
. ~/ros2_ws/install/setup.bash
astra_camera_node
. ~/ros2_ws/install/setup.bash
follower