Skip to main content

Mapping & Localization

Purpose​

Mapping creates an environment map; localization estimates robot pose against an existing map. The J16 MOTO development source includes SLAM Toolbox configurations in amrj16_slam_toolbox/config/. Both amrj16_mapping_config.yaml and amrj16_slam_config.yaml use the following settings:

ParameterDevelopment value
scan_topic/scan_filtered
map_framemap
odom_frameodom
base_framebase_footprint
resolution0.05 m
map_update_interval5 s

These are source defaults, not measured accuracy or confirmed deployed parameters. The combined bringup selects amrj16_slam_config.yaml by default; it does not explicitly set mode in that YAML.

Inspect a running mapping or localization session​

Use an isolated simulation or authorized graph, with the relevant stack already running.

ros2 topic info /scan_filtered --verbose
ros2 topic info /map --verbose
ros2 run tf2_ros tf2_echo map base_footprint

In RViz2, select the existing map fixed frame and add Map, LaserScan and TF displays using the actual topics and compatible QoS. Check that the scan, map and robot transform are consistent. Absence of a transform or map requires diagnosis, not a motion command.

Map creation, saving, loading and initial-pose workflows depend on the deployed backend and must be validated before publishing an executable sequence. See Mapping UI.

Reference: Clearpath Humble SLAM and Localization.