Localization
AMCL and Cartographer pure localization, helper nodes, and the handoff to navigation.
nav_competition_2026.launch switches mode with loc_mode:
| Mode | Argument | Notes |
|---|---|---|
| Cartographer | loc_mode:=cartographer (match default) | Loads map2.pbstream |
| AMCL | loc_mode:=amcl | Particle filter on the static map |

prep always uses:
Cartographer helper nodes
| Node | Role |
|---|---|
odom_cleaner.py | Clean timestamps on /odom |
carto_init.py | Inject the starting pose |
carto_relocalize.py | Manual relocalization from RViz 2D Pose Estimate |
Configuration: config/cartographer/localization.lua
Handoff to nav_competition
When nav_competition.py starts it:
- Waits for
/map - Connects to
move_base - Publishes the initial pose
- Waits about 3 seconds for convergence
- Cruises the
course
In Cartographer mode, anti-tank detection also uses /tracked_pose to convert into the map frame.