Sending URBI commands

The urbiSend function simply sends the string given as argument to the Urbi server:

>> urbiSend(myrobot,'var x=1+1;');

The urbiInteract function also send commands to the server, but displays the server answer:

>> urbiInteract(myrobot,'x;');
[59619492] 2

Note

Note that when using urbiInteract, the returned message cannot be processed afterward in Matlab. This function should therefore mostly be used for debugging purposes.

If you have written an Urbi script stored in a .u file, it can be send with urbiSendScript

>> urbiSendFile(myrobot,'myscript.u');