Files
VSAG_SENTRY_SIM_27RMUL/src/sentry_sim/config

config/

文件 说明
nav2_params.yaml Nav2 全部参数(代价地图、MPPI 控制器、AMCL、行为树…)
sentry.rviz RViz 布局(Map / LaserScan / TF / Costmap 已配好)

nav2_params.yaml 里改过的关键项

参数 值 为什么
footprint [[0.325,0.270],[0.325,-0.270],[-0.325,-0.270],[-0.325,0.270]] 车体 0.578×0.521 实测
inflation_radius 0.45(默认 0.70 会把 12×8 场地填死) 场地太小
consider_footprint true 与矩形 footprint 对齐,否则 MPPI 判碰撞不一致
enable_stamped_cmd_vel false(7 个节点都关了) 本版本默认发 TwistStamped,而 ros_gz 桥只认 Twist
default_server_timeout / wait_for_service_timeout 15000 本机启动慢,否则 BT 建树失败
local costmap plugins 只有 inflation_layer 2D 雷达会扫到车身自身,参与代价地图会把自己围死
global costmap plugins static_layer + inflation_layer 场地是静态的,用地图就够

改之前先看一眼注释,里面写了每处的原因。