edic-nus / EG2310

You pass the mod if the bot moves past the start line, its that simple.
MIT License
5 stars 6 forks source link

HTTP Documentation #2

Closed roystonshieh closed 9 months ago

roystonshieh commented 9 months ago

@wr1159 where http docu

Post

{
  "action": "openDoor",
  "parameters": {
    "robotId": "TurtleBot3_ID"
  }
}

Response

{
  "status": "success",
  "data": {
    "doorOpened":  random(1, 3) == 1 ? "door1" : "door2"
  }
}
{
  "status": "error",
  "message": "Error description"
}