YARP
Yet Another Robot Platform
FrameTransformSetMultiplexer Class Reference

A multiplexer which forwards the input of one IFrameTransformStorageSet interfaces to many. More...

#include <frameTransformSet/FrameTransformSetMultiplexer.h>

+ Inheritance diagram for FrameTransformSetMultiplexer:

Public Member Functions

 FrameTransformSetMultiplexer ()=default
 
 FrameTransformSetMultiplexer (const FrameTransformSetMultiplexer &)=delete
 
 FrameTransformSetMultiplexer (FrameTransformSetMultiplexer &&)=delete
 
FrameTransformSetMultiplexeroperator= (const FrameTransformSetMultiplexer &)=delete
 
FrameTransformSetMultiplexeroperator= (FrameTransformSetMultiplexer &&)=delete
 
bool open (yarp::os::Searchable &config) override
 Device driver interface. More...
 
bool close () override
 Close the DeviceDriver. More...
 
bool attachAll (const yarp::dev::PolyDriverList &devices2attach) override
 Attach to a list of objects. More...
 
bool detachAll () override
 Detach the object (you must have first called attach). More...
 
bool setTransform (const yarp::math::FrameTransform &transform) override
 Save a frame transform in a storage. More...
 
bool setTransforms (const std::vector< yarp::math::FrameTransform > &transforms) override
 Save some frame transforms in a storage. More...
 
virtual bool deleteTransform (std::string t1, std::string t2) override
 Delete a single transform in the storage. More...
 
virtual bool clearAll () override
 Delete all transforms in a storage. More...
 
- Public Member Functions inherited from yarp::dev::DeviceDriver
 ~DeviceDriver () override=default
 Destructor. More...
 
template<class T >
bool view (T *&x)
 Get an interface to the device driver. More...
 
virtual DeviceDrivergetImplementation ()
 Some drivers are bureaucrats, pointing at others. More...
 
- Public Member Functions inherited from yarp::os::IConfig
virtual ~IConfig ()
 Destructor. More...
 
virtual bool configure (Searchable &config)
 Change online parameters. More...
 
- Public Member Functions inherited from yarp::dev::IFrameTransformStorageSet
virtual ~IFrameTransformStorageSet ()
 
- Public Member Functions inherited from yarp::dev::WrapperMultiple
 ~WrapperMultiple () override
 Destructor. More...
 
bool attach (PolyDriver *driver) final
 Attach to another object. More...
 
bool detach () final
 Detach the object (you must have first called attach). More...
 
- Public Member Functions inherited from yarp::dev::IWrapper
virtual ~IWrapper ()
 Destructor. More...
 
- Public Member Functions inherited from yarp::dev::IMultipleWrapper
virtual ~IMultipleWrapper ()
 Destructor. More...
 

Detailed Description

A multiplexer which forwards the input of one IFrameTransformStorageSet interfaces to many.

This device is a simple multiplexer of devices that implements the IFrameTransformStorageSet interface. It can be attached to multiple devices and when the functions setTransform or setTransforms are called they are forwarded to all the devices attached.
For further information see FrameTransform: start all the required devices needed for transforming frames.

Definition at line 23 of file FrameTransformSetMultiplexer.h.

Constructor & Destructor Documentation

◆ FrameTransformSetMultiplexer() [1/3]

FrameTransformSetMultiplexer::FrameTransformSetMultiplexer ( )
default

◆ FrameTransformSetMultiplexer() [2/3]

FrameTransformSetMultiplexer::FrameTransformSetMultiplexer ( const FrameTransformSetMultiplexer )
delete

◆ FrameTransformSetMultiplexer() [3/3]

FrameTransformSetMultiplexer::FrameTransformSetMultiplexer ( FrameTransformSetMultiplexer &&  )
delete

Member Function Documentation

◆ attachAll()

bool FrameTransformSetMultiplexer::attachAll ( const yarp::dev::PolyDriverList drivers)
overridevirtual

Attach to a list of objects.

Parameters
driversthe polydriver list that you want to attach to.
Returns
true/false on success failure.

Implements yarp::dev::IMultipleWrapper.

Definition at line 51 of file FrameTransformSetMultiplexer.cpp.

◆ clearAll()

bool FrameTransformSetMultiplexer::clearAll ( )
overridevirtual

Delete all transforms in a storage.

Returns
true/false

Implements yarp::dev::IFrameTransformStorageSet.

Definition at line 125 of file FrameTransformSetMultiplexer.cpp.

◆ close()

bool FrameTransformSetMultiplexer::close ( )
overridevirtual

Close the DeviceDriver.

Returns
true/false on success/failure.

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 43 of file FrameTransformSetMultiplexer.cpp.

◆ deleteTransform()

bool FrameTransformSetMultiplexer::deleteTransform ( std::string  src,
std::string  dst 
)
overridevirtual

Delete a single transform in the storage.

Parameters
srcthe source of frame transform to delete
dstthe destination of frame transform to delete
Returns
true/false

Implements yarp::dev::IFrameTransformStorageSet.

Definition at line 110 of file FrameTransformSetMultiplexer.cpp.

◆ detachAll()

bool FrameTransformSetMultiplexer::detachAll ( )
overridevirtual

Detach the object (you must have first called attach).

Returns
true/false on success failure.

Implements yarp::dev::IMultipleWrapper.

Definition at line 36 of file FrameTransformSetMultiplexer.cpp.

◆ open()

bool FrameTransformSetMultiplexer::open ( yarp::os::Searchable config)
overridevirtual

Device driver interface.

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 25 of file FrameTransformSetMultiplexer.cpp.

◆ operator=() [1/2]

FrameTransformSetMultiplexer& FrameTransformSetMultiplexer::operator= ( const FrameTransformSetMultiplexer )
delete

◆ operator=() [2/2]

FrameTransformSetMultiplexer& FrameTransformSetMultiplexer::operator= ( FrameTransformSetMultiplexer &&  )
delete

◆ setTransform()

bool FrameTransformSetMultiplexer::setTransform ( const yarp::math::FrameTransform transform)
overridevirtual

Save a frame transform in a storage.

Parameters
transformsthe transform to be stored
Returns
true/false

Implements yarp::dev::IFrameTransformStorageSet.

Definition at line 95 of file FrameTransformSetMultiplexer.cpp.

◆ setTransforms()

bool FrameTransformSetMultiplexer::setTransforms ( const std::vector< yarp::math::FrameTransform > &  transforms)
overridevirtual

Save some frame transforms in a storage.

Parameters
transformsthe list of transforms to be stored
Returns
true/false

Implements yarp::dev::IFrameTransformStorageSet.

Definition at line 79 of file FrameTransformSetMultiplexer.cpp.


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