Skip to content

Commit

Permalink
#261. bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Raa37 committed Jan 6, 2023
1 parent 3bcbccf commit 9a06e34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 = {
Expand Down Expand Up @@ -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()


Expand Down

0 comments on commit 9a06e34

Please sign in to comment.