icub-test
Public Member Functions
SensorsDuplicateReadings Class Reference

Check if a yarp port is correctly publishing unique values at each update . More...

#include <SensorsDuplicateReadings.h>

Inherits yarp::robottestingframework::TestCase.

Public Member Functions

virtual bool setup (yarp::os::Property &property)
 
virtual void tearDown ()
 
virtual void run ()
 

Detailed Description

Check if a yarp port is correctly publishing unique values at each update .

For some sensors, such as strain gauge based force sensors, errors on the measurement ensure that two different readings of the sensors are always different. If on a port that is publishing a sensor reading you get two times exactly the same value, this could mean that the same sensor reading was sent multiple times. This could happen for several reasons:

Accepts the following parameters:

Parameter name Type Units Default Value Required Description Notes
name string - "SensorsDuplicateReadings" No The name of the test. -
time double s - Yes Duration of the test for each port. -
PORTS (group ) Bottle - - Yes List of couples of port/toleratedDuplicates with this format: (portname1, toleratedDuplicates1) (portname1, toleratedDuplicates1)

Definition at line 88 of file SensorsDuplicateReadings.h.


The documentation for this class was generated from the following files: