Add vector infrastructure maps and persistent location experience
This commit is contained in:
@@ -175,7 +175,7 @@ class ObservedGoals:
|
||||
count = min(2*count, len(barriers))
|
||||
return cost
|
||||
|
||||
def maneuver(self, points, pose, target, prior, excluded, geometry, now, candidate_mask=None):
|
||||
def maneuver(self, points, pose, target, prior, excluded, geometry, now, candidate_mask=None, experience_cost=None):
|
||||
"""Measured local destinations may temporarily move away from the task.
|
||||
|
||||
This removes the greedy progress constraint ONLY during a surveyed
|
||||
@@ -254,6 +254,8 @@ class ObservedGoals:
|
||||
score = np.linalg.norm(candidates[:, :2]-target, axis=1) + .2*turning + .15*distance
|
||||
score += self.boundary_cost(candidates, geometry, now)
|
||||
score += self.clearance_cost(candidates, pose, geometry, now)[0]
|
||||
if experience_cost is not None:
|
||||
score += np.asarray(experience_cost(pose, candidates))
|
||||
# Recovery actions need a fair turn, as in Nav2's RoundRobin recovery
|
||||
# subtree. Distance-to-task alone can spend every retry on almost the
|
||||
# same forward approach before ever considering a measured retreat.
|
||||
|
||||
Reference in New Issue
Block a user