Resources
Robot
The robot provides the entry point into the service.
Instruction
The instruction can be executed by creating it.
Executing instructions
A POST request will create new instruction to execute.
Response structure
| Path | Type | Description |
|---|---|---|
keyword |
String |
keyword descritpion |
parameter.jointNumber |
Number |
jointNumber |
parameter.displacement |
Number |
displacement |
parameter.speed |
Number |
speed |
Example request
$ curl 'http://localhost:8080/robots/1/instructions' -i -X POST -H 'Content-Type: application/json' -d '{
"keyword" : "drive",
"parameter" : {
"jointNumber" : 1,
"displacement" : 45.0,
"speed" : 100.0
}
}'
POST /robots/1/instructions HTTP/1.1
Content-Type: application/json
Host: localhost
Content-Length: 125
{
"keyword" : "drive",
"parameter" : {
"jointNumber" : 1,
"displacement" : 45.0,
"speed" : 100.0
}
}
Example response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 125
{
"keyword" : "drive",
"parameter" : {
"jointNumber" : 1,
"displacement" : 45.0,
"speed" : 100.0
}
}