YARP
Yet Another Robot Platform
DepthImageConverter Class Reference

#include <depthimage2_portmonitor/DepthImage2.h>

+ Inheritance diagram for DepthImageConverter:

Public Member Functions

bool create (const yarp::os::Property &options) override
 This will be called when the dll is properly loaded by the portmonitor carrier. More...
 
void destroy () override
 This will be called when the portmonitor object destroyes. More...
 
bool setparam (const yarp::os::Property &params) override
 This will be called when the portmonitor carrier parameters are set via Yarp admin port. More...
 
bool getparam (yarp::os::Property &params) override
 This will be called when the portmonitor carrier parameters are requested via Yarp admin port. More...
 
bool accept (yarp::os::Things &thing) override
 This will be called when the data reach the portmonitor object. More...
 
yarp::os::Thingsupdate (yarp::os::Things &thing) override
 After data get accpeted in the accept() callback, an instance of that is given to the update function where the data can be accessed and modified. More...
 
bool create (const yarp::os::Property &options) override
 This will be called when the dll is properly loaded by the portmonitor carrier. More...
 
void destroy () override
 This will be called when the portmonitor object destroyes. More...
 
bool setparam (const yarp::os::Property &params) override
 This will be called when the portmonitor carrier parameters are set via Yarp admin port. More...
 
bool getparam (yarp::os::Property &params) override
 This will be called when the portmonitor carrier parameters are requested via Yarp admin port. More...
 
bool accept (yarp::os::Things &thing) override
 This will be called when the data reach the portmonitor object. More...
 
yarp::os::Thingsupdate (yarp::os::Things &thing) override
 After data get accpeted in the accept() callback, an instance of that is given to the update function where the data can be accessed and modified. More...
 
- Public Member Functions inherited from yarp::os::MonitorObject
virtual ~MonitorObject ()
 
virtual void trig ()
 This will be called when one of the peer connections to the same import port receives data. More...
 
virtual yarp::os::ThingsupdateReply (yarp::os::Things &thing)
 The updateReply makes it possible to modify a reply from a port when the portmonitor object is attached to a two-ways connection (e.g., RPC). More...
 

Detailed Description

Definition at line 20 of file DepthImage2.h.

Member Function Documentation

◆ accept() [1/2]

bool DepthImageConverter::accept ( yarp::os::Things thing)
overridevirtual

This will be called when the data reach the portmonitor object.

Parameters
thingAn instance of yarp::os::Thing object which can be used to typecast the data to the correct type.
Returns
returning false will avoid delivering data to an input port or transmitting through the output port

Reimplemented from yarp::os::MonitorObject.

Definition at line 75 of file DepthImage2.cpp.

◆ accept() [2/2]

bool DepthImageConverter::accept ( yarp::os::Things thing)
overridevirtual

This will be called when the data reach the portmonitor object.

Parameters
thingAn instance of yarp::os::Thing object which can be used to typecast the data to the correct type.
Returns
returning false will avoid delivering data to an input port or transmitting through the output port

Reimplemented from yarp::os::MonitorObject.

◆ create() [1/2]

bool DepthImageConverter::create ( const yarp::os::Property options)
overridevirtual

This will be called when the dll is properly loaded by the portmonitor carrier.

Parameters
optionsA set of useful information of the current connection which the monitor object is attached.
Returns
Returning false will stop the portmonitor object to procced

Reimplemented from yarp::os::MonitorObject.

Definition at line 53 of file DepthImage2.cpp.

◆ create() [2/2]

bool DepthImageConverter::create ( const yarp::os::Property options)
overridevirtual

This will be called when the dll is properly loaded by the portmonitor carrier.

Parameters
optionsA set of useful information of the current connection which the monitor object is attached.
Returns
Returning false will stop the portmonitor object to procced

Reimplemented from yarp::os::MonitorObject.

◆ destroy() [1/2]

void DepthImageConverter::destroy ( )
overridevirtual

This will be called when the portmonitor object destroyes.

Reimplemented from yarp::os::MonitorObject.

Definition at line 61 of file DepthImage2.cpp.

◆ destroy() [2/2]

void DepthImageConverter::destroy ( )
overridevirtual

This will be called when the portmonitor object destroyes.

Reimplemented from yarp::os::MonitorObject.

◆ getparam() [1/2]

bool DepthImageConverter::getparam ( yarp::os::Property params)
overridevirtual

This will be called when the portmonitor carrier parameters are requested via Yarp admin port.

Parameters
paramsThe Property
Returns
Returns true of any parameter is available

Reimplemented from yarp::os::MonitorObject.

Definition at line 70 of file DepthImage2.cpp.

◆ getparam() [2/2]

bool DepthImageConverter::getparam ( yarp::os::Property params)
overridevirtual

This will be called when the portmonitor carrier parameters are requested via Yarp admin port.

Parameters
paramsThe Property
Returns
Returns true of any parameter is available

Reimplemented from yarp::os::MonitorObject.

◆ setparam() [1/2]

bool DepthImageConverter::setparam ( const yarp::os::Property params)
overridevirtual

This will be called when the portmonitor carrier parameters are set via Yarp admin port.

Parameters
paramsThe Property
Returns
Returns true if parameters are correctly set

Reimplemented from yarp::os::MonitorObject.

Definition at line 65 of file DepthImage2.cpp.

◆ setparam() [2/2]

bool DepthImageConverter::setparam ( const yarp::os::Property params)
overridevirtual

This will be called when the portmonitor carrier parameters are set via Yarp admin port.

Parameters
paramsThe Property
Returns
Returns true if parameters are correctly set

Reimplemented from yarp::os::MonitorObject.

◆ update() [1/2]

yarp::os::Things & DepthImageConverter::update ( yarp::os::Things thing)
overridevirtual

After data get accpeted in the accept() callback, an instance of that is given to the update function where the data can be accessed and modified.

Parameters
thingAn instance of yarp::os::Thing object which can be used to typecast the data to the correct type.
Returns
An instance of modified data in form of Thing

Reimplemented from yarp::os::MonitorObject.

Definition at line 96 of file DepthImage2.cpp.

◆ update() [2/2]

yarp::os::Things& DepthImageConverter::update ( yarp::os::Things thing)
overridevirtual

After data get accpeted in the accept() callback, an instance of that is given to the update function where the data can be accessed and modified.

Parameters
thingAn instance of yarp::os::Thing object which can be used to typecast the data to the correct type.
Returns
An instance of modified data in form of Thing

Reimplemented from yarp::os::MonitorObject.


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