libplayerc example

An example. More...

An example.

libplayerc is based on a device proxy model, in which the client maintains a local proxy for each of the devices on the remote server. Thus, for example, one can create local proxies for the position2d and laser devices. There is also a special client proxy, used to control the Player server itself.

Programs using libplayerc will generally have the following structure:

This example can be built using the command:

$ gcc -o simpleclient `pkg-config --cflags playerc` simpleclient.c `pkg-config --libs playerc`

Make sure that libplayerc is installed somewhere that pkg-config can find it.

The above program can be broken into six steps, as follows.

Last updated 25 May 2011 21:17:00