Skip to content

Localization

AMCL and Cartographer pure localization, helper nodes, and the handoff to navigation.

nav_competition_2026.launch switches mode with loc_mode:

ModeArgumentNotes
Cartographerloc_mode:=cartographer (match default)Loads map2.pbstream
AMCLloc_mode:=amclParticle filter on the static map
Localization modes

prep always uses:

roslaunch raicom2026 nav_competition_2026.launch start_nav:=false loc_mode:=cartographer

Cartographer helper nodes

NodeRole
odom_cleaner.pyClean timestamps on /odom
carto_init.pyInject the starting pose
carto_relocalize.pyManual relocalization from RViz 2D Pose Estimate

Configuration: config/cartographer/localization.lua

When nav_competition.py starts it:

  1. Waits for /map
  2. Connects to move_base
  3. Publishes the initial pose
  4. Waits about 3 seconds for convergence
  5. Cruises the course

In Cartographer mode, anti-tank detection also uses /tracked_pose to convert into the map frame.