- Clone https://github.com/ROBOTIS-GIT/turtlebot3_simulations & place it under
src
dir - Checkout branch
foxy-devel
- Navigate to same dir level as this
README
file and runcolcon build --symlink-install
- Source overlay:
. install/local_setup.sh
(ros2 overlay sourced) or. install/setup.sh
(ros2 overlay NOT sourced) - Run demo
export TURTLEBOT3_MODEL=waffle_pi (or burger/waffle)
ros2 launch turtlebot3_gazebo empty_world.launch.py
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py
ros2 launch turtlebot3_gazebo turtlebot3_house.launch.py
NOTE: It may take a while for gazebo to download map components
- Manual control
ros2 run turtlebot3_teleop teleop_keyboard
- Self-driving
ros2 run turtlebot3_gazebo turtlebot3_drive
- Visualize data
ros2 launch turtlebot3_bringup rviz2.launch.py
- SLAM
ros2 launch turtlebot3_cartographer cartographer.launch.py use_sim_time:=True
- Save map
ros2 run nav2_map_server map_saver_cli -f ~/map
NOTE: If there is an error, add
--ros-args -p save_map_timeout:=10000
- Load map
ros2 launch turtlebot3_navigation2 navigation2.launch.py use_sim_time:=True map:=$HOME/map.yaml
- Navigation 2 - read more
NOTE: If loaded doesn't show tf of map origin, then init current pose may fail => reload map until it works
- Use fake node in stead of simulation
ros2 launch turtlebot3_fake_node turtlebot3_fake_node.launch.py