Separate Nav2 body collision from ground search costs

This commit is contained in:
DCCONSTRUCTIONS
2026-10-09 12:22:26 +03:00
parent 39dd3bb551
commit 51406fc90c
6 changed files with 192 additions and 7 deletions
@@ -167,4 +167,9 @@ def observed_configuration(inputs, robot, origin_count):
costmap.update(rolling_window=True, width=16, height=16,
plugins=['obstacle_layer', 'inflation_layer'],
obstacle_layer=copy.deepcopy(layer))
# Global path search retains forbidden/unsafe ground hints. Local DWB
# and native behaviors use the full-body physical collision domain;
# support and surface permission remain hard command-admission gates.
if name == 'global_costmap':
costmap['obstacle_layer']['hazards']['topic'] = '/observed_search_hazards'
return config