CLEARPATH Turtlebot4 User Manual page 129

Table of Contents

Advertisement

Navigation
This tutorial will cover various methods of navigating with the TurtleBot 4 and Nav2.
SLAM vs Localization
There are two localization methods we can use to figure out where the robot is on the map:
SLAM or Localization. SLAM allows us to generate the map as we navigate, while localization
requires that a map already exists.
SLAM
SLAM is useful for generating a new map, or navigating in unknown or dynamic environments. It
updates the map as it detects and changes, but cannot see areas of the environment that it has
not discovered yet.
Localization
Localization uses an existing map along with live odometry and laserscan data to figure out the
position of the robot on the given map. It does not update the map if any changes have been
made to the environment, but we can still avoid new obstacles when navigating. Because the
map doesn't change, we can get more repeatable navigation results.
For this tutorial, we will be using localization to navigate on a map
generated with
SLAM.
Nav2
The TurtleBot 4 uses the
Nav2
stack for navigation.
Launching navigation
For this tutorial we can launch navigation with
Nav
Bringup.
On a physical TurtleBot 4, call:
ros2 launch turtlebot4_navigation nav_bringup.launch.py slam:=off
localization:=true
map:=office.yaml
Replace
office.yaml
with your own map.
If you are using the simulator, call:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Turtlebot4 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Turtlebot 4 lite

Table of Contents