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
+5 -1
View File
@@ -44,7 +44,11 @@ def configuration(inputs, robot):
static_layer=dict(plugin='nav2_costmap_2d::StaticLayer', map_topic='/observed_map',
map_subscribe_transient_local=True, subscribe_to_updates=False),
inflation_layer=dict(plugin='nav2_costmap_2d::InflationLayer',
cost_scaling_factor=3.0, inflation_radius=math.hypot(x, y) + 0.15),
# A gentle field over the local goal horizon makes observed
# obstacles influence the path before the body is beside them.
# Full footprint, lethal cells and support gates are unchanged.
cost_scaling_factor=1.0 / geometry['width_m'],
inflation_radius=max(3.5, math.hypot(x, y) + 0.15)),
)
# Bound the corner displacement from a full angular bin to half a map
# cell. Humble floors the start heading; a coarse primitive lattice can