icub-test
Public Member Functions
CameraTest Class Reference

Check if a camera is publishing images at desired framerate. More...

#include <CameraTest.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 camera is publishing images at desired framerate.

Accepts the following parameters:

Parameter name Type Units Default Value Required Description Notes
name string - "CameraTest" No The name of the test. -
portname string - - Yes The yarp port name of the camera to test. -
measure_time int s 1 No The duration of the test.
expected_frequency int Hz 30 No The expected framerate of the camera.
tolerance int Number of frames 5 No The tolerance on the total number of frames read during the period (expected_frequency*measure_time) to consider the test sucessful.

Definition at line 44 of file CameraTest.h.


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