TCP Port: 1337
Message format:
{
"op": "<command>",
"<parameter0>": "<value0>",
"<parameter1>": "<value1>",
...
}
Just replies with the same package, that was sent
Moves the robot by n
squares into the current facing direction
n
: int
Turns the robot to n
degree relative to starting position
n
: int
Returns current value of the color sensor as rgb value
Response: {"color": [int, int, int]}
Scans the surrounding for walls relative to current orientation. The results are returned in the order left, front, right
Response: {"color": [int, int, int]}
Prints msg
to the robots stdout
msg
: str
Reads from robots stdin. First prints msg
if present
msg
: str
Response: {"input": str}
Set the led group group
to the color color
. If color
is not a valid color the leds shut off
group
: "LEFT"
or "RIGHT"
color
: "BLACK"
, "RED"
, "GREEN"
, "AMBER"
, "ORANGE"
or "YELLOW"
Resets everything (Not implemented)
Returns the robot status (Not implemented)