Getting started

To start with, you need to be able to compile a liburbi-based program. There are several ways to do so, depending on the fact that you are on Linux or Windows, with Borland or Microsoft compiler, etc. In general, you are simply supposed to include liburbi.h and link your code with the "-lurbi" parameters (gcc) or similar syntax specific to other compilers. See the appropriate documentation for more details.

On the code side, the first thing you need to do is to create a client connected to your robot "myrobot.mydomain.com". For this purpose, you have a UClient class in liburbi-C++:

UClient* client = new UClient("myrobot.mydomain.com");

If you have an IP address, you can use it instead of the server name.

Alternatively to explicitly calling the UClient class, you might want to use a function from the urbi namespace instead:

UClient* client = urbi::connect("myrobot.mydomain.com");

Of course, you can create as many clients as you like with these methods.