YARP
Yet Another Robot Platform
Check your installation

Check basic YARP functionalities

The first step is to have the yarpserver running.

At a terminal type:

yarpserver

Depending on your system the console will look something like this:

If you type on a web browser http://127.0.0.1:10000 you get information about the name server (registered ports, info, etc.).

We can just check functionality by running a simple example. On another terminal type:

yarp read /portread

on a third terminal:

yarp write /portwrite

and on yet another terminal:

yarp connect /portwrite /portread

you'll see the effect on the name server:

yarp: registration name /portwrite ip 127.0.0.1 port 10012 type tcp
yarp: registration name /portread ip 127.0.0.1 port 10002 type tcp

Now, anything typed on the YARP write will be sent and printed on the read side.

Play a recorded sequence

You can also use the yarpdataplayer to replay a recorded sequence. This will reproduce all the sensory information available on the real robot during a simple experiment. Follow the instructions here:

yarpdataplayer example application

You are now ready to learn more, proceed to the YARP Tutorials.

yarp::sig::file::read
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
Definition: ImageFile.cpp:827
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::sig::file::write
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
Definition: ImageFile.cpp:971