Link Search Menu Expand Document (external link)

Motion Requests


GET

/motion

List all motions.

Example

localhost:50000/motion

Response

{
  "data": [
    {
      "id": 0,
      "name": "basic_motion",
      "button": "A"
    },
	...
    {
      "id": 13,
      "name": "pc_control",
      "button": "A"
    }
  ],
  "message": "findAllMotions"
}

GET

/motion/id

Returns information on motion id

Argument Description Range
id Motion id 0-13

Example

Return information on motion 1

localhost:50000/motion/1

Response

{
  "data": {
      "id": 1,
      "name": "kick_right",
      "button": "B"
    },
      "message": "getMotionInfo"
}

GET

/motion/name

Executes motion name and returns motion information.

Argument Description
name Motion name

Example

Execute basic_motion

localhost:50000/motion/basic_motion

Response

{
  "data": {
      "id": 0,
      "name": "basic_motion",
      "button": "A"
    },
      "message": "execMotion"
}