Yet Another Robot Platform
How to use Intel RealSense cameras as a YARP device

The IntelĀ® RealSenseā„¢ cameras currently compatible with YARP are:


Before proceeding further, please install the following dependencies:

Configure YARP

Before proceeding further, please enable the following CMake flags in YARP:


How to use a RealSense D435

As <tt>yarpmanager</tt> application

You can write a yarp application to launch the camera and see the RGB and Depth images. Here is a simple example:

<parameters> --from sensors/RealSense_conf.ini </parameters>
<parameters>--name /view/rgb:i</parameters>
<parameters>--name /view/depth:i</parameters>
<to> /view/rgb:i</to>

:bulb: NOTE: When using the camera locally and, not over a network, the user can substitute the protocol used for visualizing the depth image as follows:


From the command line

Set the YARP_ROBOT_NAME to either CER01, CER02 or CER03. Then, run the command:

yarpdev --from sensors/RealSense_conf.ini

By setting the YARP_ROBOT_NAME, YARP finds the configuration file RealSense_conf.ini automatically.

RealSense_conf.ini contains the following settings:

device RGBDSensorWrapper
subdevice realsense2
name /depthCamera
depthResolution (480 270) #Other possible values (424 240) or (640 480)
rgbResolution (424 240) #Other possible values (424 240) or (640 480)
framerate 30
enableEmitter true
needAlignment true
alignmentFrame RGB
clipPlanes (0.2 10.0)

:warning: WARNING: the user might have to change the parameters depthResolution and rgbResolution. These parameters change depending on the firmware version installed on the used camera.

How to use a RealSense D435i

:construction: UNDER CONSTRUCTION :construction:

How to use a RealSense T256

From the command line

The device retrieving the RealSense T256 data is the multipleanalogsensorserver and it must be run as follows:

yarpdev --device multipleanalogsensorsserver --name /t256 --period 10 --subdevice realsense2Tracking

:bulb: NOTE: the user should specify the parameters --name and --period as needed.

The data from a RealSense T256 will be streamed on the port named /t256/measures:o following the format described in the SensorStreamingData class.

The type on information currently made available are:

  • the Gyroscope measures,
  • the Accelerometer measures, and
  • the Pose (position and orientation).