19#ifndef LM_TRANSFORMMODULE__
20#define LM_TRANSFORMMODULE__
22#include <yarp/os/PortablePair.h>
29namespace learningmachine {
105 virtual bool read(yarp::os::ConnectionReader& connection);
129 :
public ITransformProcessor,
public yarp::os::TypedReaderCallback< yarp::os::PortablePair<yarp::sig::Vector,yarp::sig::Vector> > {
134 yarp::os::BufferedPort<yarp::os::PortablePair<yarp::sig::Vector,yarp::sig::Vector> >& train_out;
143 yarp::os::BufferedPort< yarp::os::PortablePair<yarp::sig::Vector,yarp::sig::Vector> >&
p)
149 virtual void onRead(yarp::os::PortablePair<yarp::sig::Vector,yarp::sig::Vector>& input);
156 virtual yarp::os::BufferedPort<yarp::os::PortablePair<yarp::sig::Vector,yarp::sig::Vector> >&
getOutputPort() {
157 return this->train_out;
186 yarp::os::BufferedPort<yarp::os::PortablePair<yarp::sig::Vector,yarp::sig::Vector> > train_in;
191 yarp::os::BufferedPort<yarp::os::PortablePair<yarp::sig::Vector,yarp::sig::Vector> > train_out;
196 yarp::os::BufferedPort<yarp::sig::Vector> predict_inout;
201 yarp::os::Port predictRelay_inout;
226 void registerAllPorts();
231 void unregisterAllPorts();
236 void printOptions(std::string
error =
"");
241 void printTransformerList();
251 trainProcessor(transformerPortable, train_out),
252 predictProcessor(transformerPortable, predictRelay_inout) {
263 virtual bool configure(yarp::os::ResourceFinder& opt);
273 virtual bool respond(
const yarp::os::Bottle&
cmd, yarp::os::Bottle& reply);
290 return this->transformerPortable;
An abstract base module for the machine learning YARP interface.
T & getWrapped() const
The accessor for the wrapped object.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.