Skip to content

Commit

Permalink
Added status message for goal deconflict
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-riley committed Mar 3, 2020
1 parent eba614c commit c2d5452
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/multi_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ def deconflictGoals(self):
# If our cost is more than the neighbor, don't go to this goal
if goals[i].cost.data > neighbor.goal.cost.data:
conflict = True
if not self.newTask:
self.newTask = 'Replanning'
print(str(self.id) + " replanning")
# Don't need to check any more neighbors for this goal if conflict
break
Expand Down Expand Up @@ -1241,7 +1243,8 @@ def start(self):
self.deployBeacon(True, 'Regain comms')
self.mode = 'Explore'
else:
self.agent.status += '+++Regain comms deploy'
if not self.newTask:
self.newTask = 'Regain comms deploy'
self.setGoalPoint('Home')
elif self.agent.guiGoalAccept:
if (getDist(self.agent.odometry.pose.pose.position,
Expand Down

0 comments on commit c2d5452

Please sign in to comment.