Commit
41f29d4ece11d028cfdf68d9be82fa761d303ebc
by chenranfix: 障碍物尺寸对齐 PNC vehicle_config (直跨车 SC)
障碍物(他车)尺寸由 objects 节点经 CfgIMV::GetCfg 取 center_to_* 计算。 SC(type 12)走 IMV 配置, 此前硬编码 7.7/7.7/1.425/1.425 -> 15.4m x 2.85m, 明显偏大。 按 PNC vehicle_config 修正为: center_to_front/back = head_base2front/tail = 3.0 -> 长 6.0m center_to_left/right = upper_head_base2left/right = 1.64 -> 宽 3.28m 同步更新 CfgStaticIMV::Load() 默认值(objects 节点未传 --vehicle_config 时实际生效者) 与 vehicle.json 的 imv 条目。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
 | multi_sim_logic/data/config/vehicle.json |
 | multi_sim_logic/data/config/cfg_static_imv.cpp |
Commit
e7807f6efd40130b48e06dae557150b28b29b3e4
by chenranfix: 让 --center_to_* CLI 参数实际作用于障碍物/车辆尺寸
此前 CLI 参数写入 CfgStaticIMV 单例, 但障碍物/底盘读取的是 CfgIMV::cfg_static_imv_ 成员(由 cfg_static_imv_.Load() 重置为硬编码默认值), 两者互不相通, 导致 CLI 参数失效。
修改 CfgIMV::Load(): cfg_static_imv_.Load() 之后用 CfgStaticIMV 单例覆盖 cfg_static_imv_, 使无 vehicle_config 时的兜底尺寸跟随 CLI 参数。 同步把 node_objects / node_vehicle main.cpp 中 center_to_* 的 CLI 默认值 由 7.7/7.7/1.425/1.425 改为 PNC vehicle_config 对齐的 3.0/3.0/1.64/1.64。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
 | multi_sim_logic/data/config/cfg_imv.cpp |
 | multi_sim_logic/node_objects/main.cpp |
 | multi_sim_logic/node_vehicle/main.cpp |