Difference between revisions of "Matlab rest"

From RobotinoWiki
(Created page with "==Introduction== {|class="wikitable" cellpadding="20" vertical-align="top" |- |Image:Robotino_matlab_icon_64.png |This page describes how to access Robotino's sensors and...")
 
(Introduction)
Line 5: Line 5:
 
|This page describes how to access Robotino's sensors and actors from Matlab by making use of Robotino's [[Rest_api|REST-API]].
 
|This page describes how to access Robotino's sensors and actors from Matlab by making use of Robotino's [[Rest_api|REST-API]].
 
|}
 
|}
 +
==Example==
 +
<pre>
 +
//Read the value of Robotino's bumper
 +
webread('http://192.168.0.1/data/bumper')
 +
 +
//Drive Robotino forward with 1m/s
 +
webwrite('http://192.168.0.1/data/omnidrive',[1 0 0])
 +
</pre>

Revision as of 13:04, 18 March 2019

Introduction

Robotino matlab icon 64.png This page describes how to access Robotino's sensors and actors from Matlab by making use of Robotino's REST-API.

Example

//Read the value of Robotino's bumper
webread('http://192.168.0.1/data/bumper')

//Drive Robotino forward with 1m/s
webwrite('http://192.168.0.1/data/omnidrive',[1 0 0])