Table of Contents
In synchronous operations, the interactions with the Urbi server are controlled by the matlab function calls. These functions send Urbi commands and wait for the server reply before exiting.
Although you could simply use urbiSend followed by urbiGet to get any variable value, a few convenience functions are provided that encapsulate these function calls.
urbiGetVariable can be used to get any variable value. The first return value is the value field of the corresponding umessage and therefore changes with the variable type. The time stamp and the message type are also returned by the function:
>> [x,ts,type]=urbiGetVariable(myrobot,'x')
x =
2
ts =
60802173
type =
numeric