Skip to content

Commit

Permalink
do not comm when there only is 1 agent
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperg3 committed Jan 29, 2024
1 parent a474fd8 commit ebceabe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trajallocpy/Experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ def solve(self, profiling_enabled=False, debug=False):
for robot in self.robot_list:
print(robot.path)

# Do not communicate if there is only one robot
if len(self.robot_list) > 1:
break
# Communication stage
# Send winning bid list to neighbors (depend on env)
message_pool = [robot.send_message() for robot in self.robot_list]
Expand Down

0 comments on commit ebceabe

Please # to comment.