yarp-devices
Loading...
Searching...
No Matches
roboticslab::test::YarpDeviceMapperTest Class Reference

Wrapper class for dummy driver instances.

Inheritance diagram for roboticslab::test::YarpDeviceMapperTest:

Public Member Functions

void SetUp () override
void TearDown () override

Protected Member Functions

yarp::dev::IPositionDirectRaw * getDummyMotor ()
 Retrieve interface pointer to a singleton DummyPositionDirectRaw instance.
yarp::dev::ISixAxisForceTorqueSensors * getDummySensor ()
 Retrieve interface pointer to a singleton DummySixAxisForceTorqueSensors instance.
template<typename T>
yarp::dev::PolyDriver * createDriver ()
 Instantiate a wrapped dummy driver device.

Static Protected Attributes

static constexpr double EPSILON = 1e-9

Private Attributes

yarp::dev::IPositionDirectRaw * dummyMotor
yarp::dev::ISixAxisForceTorqueSensors * dummySensor
yarp::dev::PolyDriverList drivers

Member Function Documentation

◆ createDriver()

template<typename T>
yarp::dev::PolyDriver * roboticslab::test::YarpDeviceMapperTest::createDriver ( )
inlineprotected

The lifetime of created devices ends by the destruction of this class.

Template Parameters
TAny specialized class template of a dummy driver.
Returns
A pointer to the created device.

The documentation for this class was generated from the following file:
  • tests/testYarpDeviceMapperLib.cpp