Skip to content

Navigation

Map, AMCL, move_base, and the parameter files in community_nav.

roslaunch community_nav nav_multi.launch starts the whole navigation stack. Localization is AMCL, not Cartographer.

Core pieces

PieceRoleLocation
map_serverPublishes /mapmaps/multi_map.yaml, multi_map.pgm
AMCLmap → odommove_base_multi.launch
move_baseGlobal planner plus DWASame launch; parameters in param/
EKF/odombringup_robot.launch

Map resolution is 0.05 m and the origin is [-5, -5, 0]. After replacing the map, remeasure the waypoints in main_nav.py. They are written into the script and are not loaded from yaml.

Parameter files

All of them are in community_nav/param/:

FileContents
costmap_common_params.yamlLoaded for both global and local costmaps
global_costmap_params.yamlGlobal costmap
local_costmap_params.yamlLocal costmap
global_planner_params.yamlGlobal planner
dwa_local_planner_params.yamlDWA
move_base_params.yamlmove_base itself
robot_localization.yamlEKF, loaded by bringup

In move_base_multi.launch, AMCL odom_model_type defaults to omni.

Velocity

Most of the time velocity comes from move_base. At the e-bike tracking stop (waypoint 32), main_nav.py waits there. yolo_onnx.py publishes /cmd_vel directly, then publishes a zero twist, and the mission node continues with the later waypoints.

The RViz config is rviz/nav_riz.rviz. use_rviz:=false turns it off.

Mapping

The match launch loads the existing multi_map. To rebuild it, use launch/gmapping_multi.launch. That launch is not part of the three-step start. After mapping, replace maps/multi_map.yaml and multi_map.pgm, then check the waypoints again.