Align Nav2 with physics time and preserve complete simulation scenes

This commit is contained in:
DCCONSTRUCTIONS
2026-10-09 22:15:20 +03:00
parent 3376b1a9e6
commit 16865574d0
15 changed files with 262 additions and 65 deletions
+9
View File
@@ -72,3 +72,12 @@ def test_clearance_potential_spans_the_local_intent_horizon(configured):
cost = lambda d: 252*math.exp(-layer['cost_scaling_factor']*d)
assert cost(1.) > cost(2.) > cost(3.) > 1.
assert grid['footprint_padding'] == .05 and grid['track_unknown_space']
def test_simulation_clock_reaches_every_native_node_and_costmap(configured):
configure, inputs, robot = configured
config = configure(inputs, robot, use_sim_time=True)
for name in ('planner_server', 'controller_server', 'behavior_server'):
assert config[name]['ros__parameters']['use_sim_time'] is True
for name in ('global_costmap', 'local_costmap'):
assert config[name][name]['ros__parameters']['use_sim_time'] is True