YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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.
 
bool close () override
 Close the DeviceDriver.
 
bool attachAll (const yarp::dev::PolyDriverList &devices2attach) override
 Attach to a list of objects.
 
bool detachAll () override
 Detach the object (you must have first called attach).
 
bool setTransform (const yarp::math::FrameTransform &transform) override
 Save a frame transform in a storage.
 
bool setTransforms (const std::vector< yarp::math::FrameTransform > &transforms) override
 Save some frame transforms in a storage.
 
virtual bool deleteTransform (std::string t1, std::string t2) override
 Delete a single transform in the storage.
 
virtual bool clearAll () override
 Delete all transforms in a storage.
 
void startThreads ()
 
void stopThreads ()
 
- Public Member Functions inherited from yarp::dev::DeviceDriver
 DeviceDriver ()
 
 DeviceDriver (const DeviceDriver &other)=delete
 
 DeviceDriver (DeviceDriver &&other) noexcept=delete
 
DeviceDriveroperator= (const DeviceDriver &other)=delete
 
DeviceDriveroperator= (DeviceDriver &&other) noexcept=delete
 
 ~DeviceDriver () override
 
virtual std::string id () const
 Return the id assigned to the PolyDriver.
 
virtual void setId (const std::string &id)
 Set the id for this device.
 
template<class T >
bool view (T *&x)
 Get an interface to the device driver.
 
virtual DeviceDrivergetImplementation ()
 Some drivers are bureaucrats, pointing at others.
 
- Public Member Functions inherited from yarp::os::IConfig
virtual ~IConfig ()
 Destructor.
 
virtual bool configure (Searchable &config)
 Change online parameters.
 
- Public Member Functions inherited from yarp::dev::IFrameTransformStorageSet
virtual ~IFrameTransformStorageSet ()
 
- Public Member Functions inherited from yarp::dev::WrapperMultiple
 ~WrapperMultiple () override
 Destructor.
 
bool attach (PolyDriver *driver) final
 Attach to another object.
 
bool detach () final
 Detach the object (you must have first called attach).
 
- Public Member Functions inherited from yarp::dev::IWrapper
virtual ~IWrapper ()
 Destructor.
 
- Public Member Functions inherited from yarp::dev::IMultipleWrapper
virtual ~IMultipleWrapper ()
 Destructor.
 

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 45 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 135 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 37 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 112 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 30 of file FrameTransformSetMultiplexer.cpp.

◆ open()

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

Device driver interface.

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 19 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 97 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 81 of file FrameTransformSetMultiplexer.cpp.

◆ startThreads()

void FrameTransformSetMultiplexer::startThreads ( )

Definition at line 165 of file FrameTransformSetMultiplexer.cpp.

◆ stopThreads()

void FrameTransformSetMultiplexer::stopThreads ( )

Definition at line 155 of file FrameTransformSetMultiplexer.cpp.


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