iCub-main
|
A module for transforming vectors. More...
#include <TransformModule.h>
Public Member Functions | |
TransformModule (std::string pp="/lm/transform") | |
Constructor. | |
virtual | ~TransformModule () |
Destructor (empty). | |
virtual bool | configure (yarp::os::ResourceFinder &opt) |
virtual bool | interruptModule () |
virtual bool | respond (const yarp::os::Bottle &cmd, yarp::os::Bottle &reply) |
virtual ITransformer & | getTransformer () |
Retrieve the transformer that is used in this TransformModule. | |
virtual TransformerPortable & | getTransformerPortable () |
Retrieve the transformer portable. | |
Public Member Functions inherited from iCub::learningmachine::IMachineLearnerModule | |
IMachineLearnerModule (std::string pp) | |
Constructor. | |
virtual | ~IMachineLearnerModule () |
Destructor (empty). | |
virtual bool | close () |
Close the module. | |
virtual bool | updateModule () |
Default empty update loop with 1 second delay. | |
Additional Inherited Members | |
Protected Member Functions inherited from iCub::learningmachine::IMachineLearnerModule | |
IMachineLearnerModule (const IMachineLearnerModule &other) | |
Copy Constructor (private and unimplemented on purpose). | |
IMachineLearnerModule & | operator= (const IMachineLearnerModule &other) |
Assignment operator (private and unimplemented on purpose). | |
void | registerPort (yarp::os::Contactable &port, std::string name) |
Register a port with a given name. | |
virtual void | loadCommandFile (std::string fname, yarp::os::Bottle *out=(yarp::os::Bottle *) 0) |
Reads bottles from a file and sends these one by one to the respond method. | |
virtual yarp::os::ResourceFinder & | getResourceFinder () |
Returns a reference to the cached ResourceFinder. | |
std::string | findFile (std::string fname) |
Finds the full path to a specified filename using the ResourceFinder. | |
virtual void | setResourceFinder (yarp::os::ResourceFinder *rf) |
Mutator for the locally stored ResourceFinder. | |
Protected Attributes inherited from iCub::learningmachine::IMachineLearnerModule | |
yarp::os::Port | cmd_in |
An input port for commands. | |
std::string | portPrefix |
A prefix path for the ports that will be registered. | |
DispatcherManager | dmanager |
An instance of the DispatchManager to configure event listeners. | |
yarp::os::ResourceFinder * | rf |
A pointer to the ResourceFinder. | |
A module for transforming vectors.
This most common use of this module will be data preprocessing (e.g. standardization), although it also supports much more advanced transformations of the data.
Definition at line 176 of file TransformModule.h.
|
inline |
Constructor.
pp | the default prefix used for the ports. |
Definition at line 249 of file TransformModule.h.
|
inlinevirtual |
Destructor (empty).
Definition at line 258 of file TransformModule.h.
|
virtual |
Definition at line 134 of file TransformModule.cpp.
|
inlinevirtual |
Retrieve the transformer that is used in this TransformModule.
Definition at line 280 of file TransformModule.h.
|
inlinevirtual |
Retrieve the transformer portable.
Definition at line 289 of file TransformModule.h.
|
virtual |
Definition at line 125 of file TransformModule.cpp.
|
virtual |
Definition at line 216 of file TransformModule.cpp.