Loading the lesson...
In the print dialog, choose "Save as PDF" as the destination.
TurtleBot3 - Lab 07
From a saved map to autonomous goal-reaching.
RVizsudo apt install ros-jazzy-navigation2 ros-jazzy-nav2-bringup
colcon build --packages-select turtlebot3_lab07
source install/setup.bash
export TURTLEBOT3_MODEL=waffle_pi
ros2 launch turtlebot3_lab07 lab07.launch.pyGazebo, the full Nav2 stack, and RVizmap:=$HOME/maps/my_map.yaml| Component | Description |
|---|---|
AMCL | Estimates robot pose on a known map |
| Map Server | Loads and serves the occupancy grid |
| Planner Server | Computes global paths start to goal |
| Controller Server | Executes path with local obstacle avoidance |
BT Navigator | Behavior-tree-based navigation orchestration |
RViz Goal
2D Goal Pose
BT Navigator
Planner
Global
Controller
Local
Behavior
Recovery
Global Costmap
Local Costmap
AMCL
Localize
BT Navigator orchestrates planning, control, and recovery behaviors as a behavior treeRequired
ros2 topic pub /initialpose geometry_msgs/msg/PoseWithCovarianceStamped \
"{header: {frame_id: 'map'}, pose: {pose: {position: {x: -2.0, y: -0.5, z: 0.0}, orientation: {w: 1.0}}}}" --onceRVizRVizros2 action send_goal /navigate_to_pose nav2_msgs/action/NavigateToPose \
"{pose: {header: {frame_id: 'map'}, pose: {position: {x: 0.5, y: 0.5}, orientation: {w: 1.0}}}}"| Topic | Purpose |
|---|---|
/map | Static map from the map server |
/scan | LiDAR data feeding AMCL localization |
/cmd_vel | Velocity commands to the robot |
/goal_pose | Navigation goal from RViz |
/plan | Computed global path |
30s for init, check /clock is advancingAMCL's particle filter convergeNav2 nodes are runningros2 node list | grep -E "amcl|planner|controller|bt_navigator"
ros2 run tf2_tools view_framesNav2 = AMCL (localization) + Planner + Controller + BT Navigator, all orchestrated as a behavior treeSLAM map (Lab 06) is Nav2's input, navigation needs a map before it can planRViz's 2D Pose Estimate and 2D Goal Pose tools are the primary way to interact with Nav2 in the labNav2 issues starts with ros2 node list (are AMCL, planner, controller, BT Navigator running?) and the TF treeMahmoud Abas|TurtleBot3 Lab 07 - Autonomous Navigation with Nav2