Guide local goals around observed obstacles and finish native recovery
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user