frameTransformSet_nwc_yarp
: A network wrapper client which publishes the transforms received on the thrift interface FrameTransformStorageSetRPC to yarp::dev::IFrameTransformStorageSet interface.
More...
#include <frameTransformSet/FrameTransformSet_nwc_yarp.h>
Public Member Functions | |
FrameTransformSet_nwc_yarp ()=default | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. | |
bool | close () override |
Close the DeviceDriver. | |
bool | setTransforms (const std::vector< yarp::math::FrameTransform > &transforms) override |
Save some frame transforms in a storage. | |
bool | setTransform (const yarp::math::FrameTransform &transform) override |
Save a frame transform in a storage. | |
bool | deleteTransform (std::string t1, std::string t2) override |
Delete a single transform in the storage. | |
bool | clearAll () override |
Delete all transforms in a storage. | |
Public Member Functions inherited from yarp::dev::DeviceDriver | |
DeviceDriver () | |
DeviceDriver (const DeviceDriver &other)=delete | |
DeviceDriver (DeviceDriver &&other) noexcept=delete | |
DeviceDriver & | operator= (const DeviceDriver &other)=delete |
DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
virtual | ~DeviceDriver () |
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 DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. | |
Public Member Functions inherited from yarp::dev::IFrameTransformStorageSet | |
virtual | ~IFrameTransformStorageSet () |
frameTransformSet_nwc_yarp
: A network wrapper client which publishes the transforms received on the thrift interface FrameTransformStorageSetRPC to yarp::dev::IFrameTransformStorageSet interface.
This device is paired with its server called FrameTransformSet_nws_yarp.
Parameters required by this device are:
Parameter name | SubParameter | Type | Units | Default Value | Required | Description |
---|---|---|---|---|---|---|
default-client | - | bool | - | true | No | tells whether or not the nwc is instantiated by the frameTransformClient device. If true, "/frameTransformClient" will appended to the port name prefix |
default-server | - | bool | - | true | No | tells whether or not the nws is instantiated by the frameTransformServer device. If true, "/frameTransformServer/frameTransformSet_nws_yarp" will appended to the port name prefix |
nwc_thrift_port_prefix | - | string | - | "" | No | a prefix for the nwc thrift rpc port name |
nws_thrift_port_prefix | - | string | - | "" | No | a prefix for the nws thrift rpc port name |
Here follow some examples of port names obtained with different parameters configurations
/frameTransformClient/frameTransformSet_nwc_yarp/thrift
/cer/frameTransformClient/frameTransformSet_nwc_yarp/thrift
/cer/frameTransformSet_nwc_yarp/thrift
/frameTransformServer/frameTransformSet_nws_yarp/thrift
/cer/frameTransformServer/frameTransformSet_nws_yarp/thrift
/cer/thrift
Definition at line 70 of file FrameTransformSet_nwc_yarp.h.
|
default |
|
overridevirtual |
Delete all transforms in a storage.
Implements yarp::dev::IFrameTransformStorageSet.
Definition at line 127 of file FrameTransformSet_nwc_yarp.cpp.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 85 of file FrameTransformSet_nwc_yarp.cpp.
|
overridevirtual |
Delete a single transform in the storage.
src | the source of frame transform to delete |
dst | the destination of frame transform to delete |
Implements yarp::dev::IFrameTransformStorageSet.
Definition at line 116 of file FrameTransformSet_nwc_yarp.cpp.
|
overridevirtual |
Open the DeviceDriver.
config | is a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 23 of file FrameTransformSet_nwc_yarp.cpp.
|
overridevirtual |
Save a frame transform in a storage.
transforms | the transform to be stored |
Implements yarp::dev::IFrameTransformStorageSet.
Definition at line 94 of file FrameTransformSet_nwc_yarp.cpp.
|
overridevirtual |
Save some frame transforms in a storage.
transforms | the list of transforms to be stored |
Implements yarp::dev::IFrameTransformStorageSet.
Definition at line 105 of file FrameTransformSet_nwc_yarp.cpp.