Guide local goals around observed obstacles and finish native recovery

This commit is contained in:
DCCONSTRUCTIONS
2026-10-09 13:06:04 +03:00
parent 51406fc90c
commit ade3c19d2a
10 changed files with 281 additions and 12 deletions
+14
View File
@@ -58,3 +58,17 @@ def test_mission_translation_rotation_and_endpoint_do_not_change_navigation_conf
changed["mission"]["route_xy"] = [[-500., 700.], [-503., 702.]]
changed["sha256"] = digest({k: v for k, v in changed.items() if k != "sha256"})
assert configure(changed, robot) == original
def test_clearance_potential_spans_the_local_intent_horizon(configured):
configure, inputs, robot = configured
config = configure(inputs, robot)
for name in ('global_costmap', 'local_costmap'):
grid = config[name][name]['ros__parameters']
layer = grid['inflation_layer']
assert layer['inflation_radius'] >= 3.5
# The native exponential must still distinguish the middle of a
# passage from its edge well outside the hard collision reserve.
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']