YARP  2.3.68+225-20170329.5+gitb0d3289
Yet Another Robot Platform
yarpdataplayer example application

Re-play a recorded sequence from the robot. More...

Re-play a recorded sequence from the robot.


This application demonstrates how to re-play a recorded sequence from the robot using the module yarpdataplayer: replay recorded data. To visualize the state of the robot we will use two viewers (yarpview) and the iCubGui.


No special dependencies are required, all the required modules will be executed by the application. Since yarpdataplayer: replay recorded data will open ports with the same name as the real robot/simulator make sure they are not running (or that you start an instance of the nameserver with your own namespace).

Instantiated Modules

How to run the Application

This example uses the iCubGui from the iCub Software Repository Make sure you compiled yarpview: visualize YARP images and yarpdataplayer: replay recorded data (in YARP) and the iCubGui in iCub) if you want to execute this tutorial on your computer.

Download example sequence. This sequence was recorded while the iCub was tracking and grasping a red ball:

Use this link if you have opencv installed (images are jpg compressed 46MB zipped).

Use this link if you do not have opencv installed (images are ppm 642MB zipped).

Unpack the content of the archive in a directory of your choice, e.g. /home/<user> . You should now have a directory called testData_20120803_095402 in /home/<user>.

On a console run yarpserver (if not already running).

You can run yarpmanager:


Inside the application folder in the yarpmanager gui you should see an entry called yarpdataplayer_example, double click and open it.

Now you are ready to run the application. Hit the run button. For windows should open like this:


In the yarpdataplayer: replay recorded data window select File->Open Directory.

And browse to the directory where you unpacked the example sequence, select the directory testData_20120803_095402.

Now you can connect the modules (notice that this cannot be done before the sequence is loaded in the yarpdataplayer: replay recorded data), hit connect on the yarpmanager gui.

You can now use the yarpdataplayer: replay recorded data to play the sequence (all commands should be pretty intuitive). The output will be something like this:

Lorenzo Natale and Vadim Tikhanoff

Copyright (C) 2012 Instituto Italiano di Tecnologia, Dep. of Robotics, Brain and Cognitive Sciences and iCub Facility.

CopyPolicy: Released under the terms of the GNU GPL v2.0.

See also
yarpdataplayer recording example

This file can be edited at main/app/yarpdataplayer/doc.dox