diff --git a/Orchestrator.py b/Orchestrator.py index d2f8b3d..7083f40 100644 --- a/Orchestrator.py +++ b/Orchestrator.py @@ -104,6 +104,9 @@ def __init__(self, numRobots, initX, initY, relayAlgorithm="Recovery", lowerPdrT #======================== public ========================================== #=== admin + def getActiveDotbotAddress(self): + activeDotBotAddresses = {} + return activeDotBotAddresses def moveRawPhysicalDotbot(self, left_y=100, right_y=10): "Control physical DotBot" @@ -112,7 +115,7 @@ def moveRawPhysicalDotbot(self, left_y=100, right_y=10): base_url = "http://localhost:8000" # Set the endpoint for the API - endpoint = "/controller/dotbots/2f6bc46cd94828f8/move_raw" + endpoint = "/controller/dotbots/0f434ab73c908fc0/move_raw" # Set the data for the new user data = { @@ -279,7 +282,7 @@ def _downstreamTimeoutCb(self): self.simEngine.currentTime()+self.COMM_DOWNSTREAM_PERIOD_S, self._downstreamTimeoutCb, ) - for (_, dotBotId) in self.dotBotsView: + for (_, dotBotId) in self.dotBotsView.items(): self.moveRawPhysicalDotbot()