Difference between revisions of "Rest api"

From RobotinoWiki
(GET)
(PUT)
Line 22: Line 22:
 
   "vy" : "y-vel in m/s",
 
   "vy" : "y-vel in m/s",
 
   "omega" : "rot-vel in rad/s"
 
   "omega" : "rot-vel in rad/s"
 +
}
 +
</pre>
 +
 +
===data/uploadProgram===
 +
Upload Robotino View program to /home/robotino/programs.
 +
<pre>
 +
{
 +
  "name" : "filename with extension",
 +
  "size" : size of raw (unencoded) binary data,
 +
  "data" : file data base64 encoded
 +
}
 +
</pre>
 +
 +
'''Response'''
 +
<pre>
 +
{
 +
  "message" : "message what happend on the server",
 +
  "success" : boolean showing if operation was successfull
 
}
 
}
 
</pre>
 
</pre>

Revision as of 15:09, 20 February 2019

Installation

Robotino rest icon 64.png REST-API is already running at http://RobotinoIP.

Package links

nothing to install

GET

/cam0

Get camera image from cam0. The response is image/jpeg.

PUT

/data/omnidrive

Set forwward and rotational velocity. You have to send data periodically at least every 200ms. If no data is received for more than 200ms Robotino will stop.

{
  "vx": "x-vel in m/s",
  "vy" : "y-vel in m/s",
  "omega" : "rot-vel in rad/s"
}

data/uploadProgram

Upload Robotino View program to /home/robotino/programs.

{
  "name" : "filename with extension",
  "size" : size of raw (unencoded) binary data,
  "data" : file data base64 encoded
}

Response

{
  "message" : "message what happend on the server",
  "success" : boolean showing if operation was successfull
}