Separate forbidden ground from body collision and retain capture phase
This commit is contained in:
@@ -265,7 +265,8 @@ class Navigation:
|
||||
route_observation=route, diagnostic=dict(terrain=observed['metrics'], controller='nav2'))
|
||||
# This is a proposal returned to the mission layer; /control supplies
|
||||
# the separately admitted command bound to current pose/range/intent.
|
||||
self.control.accept(value, result, terrain, detections=observed['detected'])
|
||||
self.control.accept(value, result, terrain, detections=observed['detected'],
|
||||
collision_terrain=observed['collision_terrain'])
|
||||
return result
|
||||
|
||||
|
||||
|
||||
@@ -130,9 +130,11 @@ class TerrainObservation:
|
||||
detected = self.detections.without_ground(candidates,
|
||||
self.semantics.permitted_terrain(ground, time.monotonic()))
|
||||
points = self.detections.overlay(points, detected)
|
||||
collision = points.copy()
|
||||
points, forbidden = self.semantics.apply(points, time.monotonic())
|
||||
search, _ = self.support_obstacles.apply(points, pose=pose, monitor=self.monitor)
|
||||
return dict(terrain=points, search_terrain=search, physical_terrain=physical, detected=detected,
|
||||
return dict(terrain=points, collision_terrain=collision, search_terrain=search,
|
||||
physical_terrain=physical, detected=detected,
|
||||
permitted_terrain=(self.semantics.permitted_terrain(points, time.monotonic())
|
||||
if request.get("route_transition_target") is not None else None),
|
||||
current_points=current,
|
||||
|
||||
Reference in New Issue
Block a user