19#ifndef LM_TRAINMODULE__
20#define LM_TRAINMODULE__
22#include <yarp/os/PortablePair.h>
28namespace learningmachine {
67 virtual void onRead(yarp::os::PortablePair<yarp::sig::Vector,yarp::sig::Vector>& sample);
95 yarp::os::BufferedPort< yarp::os::PortablePair<yarp::sig::Vector,yarp::sig::Vector> > train_in;
100 yarp::os::Port model_out;
120 void registerAllPorts();
125 void unregisterAllPorts();
130 void printOptions(std::string
error =
"");
135 void printMachineList();
155 virtual bool configure(yarp::os::ResourceFinder& opt);
165 virtual bool respond(
const yarp::os::Bottle&
cmd, yarp::os::Bottle& reply);
Generic abstract class for machine based processors.
A module for predictions.
MachinePortable machinePortable
A concrete wrapper around a learning machine.
virtual bool configure(yarp::os::ResourceFinder &opt)
TrainModule(std::string pp="/lm/train")
Constructor.
virtual bool interruptModule()
virtual bool respond(const yarp::os::Bottle &cmd, yarp::os::Bottle &reply)
virtual ~TrainModule()
Destructor (empty).
Port processor helper class for incoming training samples.
virtual void setEnabled(bool val)
Enables or disables processing of training samples.
TrainProcessor(MachinePortable &mp)
Constructor.
virtual void onRead(yarp::os::PortablePair< yarp::sig::Vector, yarp::sig::Vector > &sample)
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.