Table of Contents
The derived class USyncClient implements methods to
synchronously get the result of URBI commands. You must be aware that
these functions are less efficient, and that they they are not easily
portable.
To get the value of
a device, you can use the method syncGetDevice or
syncGetNormalizedDevice. The first parameter is the name
of the device (for instance, "neck"), the second is a double that is filled
with the received value. The difference between the two methods is that
syncGetDevice retreives the value with a "val" command,
whereas syncGetNormalizedDevice uses "valn" (see
urbidoc.html for more details about "val" and "valn").
double neckVal;
syncClient->syncGetDevice("neck",neckVal):