19#ifndef LM_TRAINMODULE__
20#define LM_TRAINMODULE__
94 yarp::os::BufferedPort<VectorPair> train_in;
99 yarp::os::Port model_out;
109 TrainModule(
const TrainModule& other);
114 TrainModule& operator=(
const TrainModule& other);
129 void printOptions(std::string
error =
"");
134 void printMachineList();
154 virtual bool configure(yarp::os::ResourceFinder& opt);
164 virtual bool respond(
const yarp::os::Bottle&
cmd, yarp::os::Bottle& reply);
IMachineProcessor(MachinePortable &mp)
Constructor.
void unregisterAllPorts()
Unregisters all ports used by this module.
MachinePortable machinePortable
A concrete wrapper around a learning machine.
void registerAllPorts()
Registers all ports used by this module.
PredictModule(const PredictModule &other)
Copy constructor (private and unimplemented on purpose).
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.
virtual void onRead(VectorPair &sample)
TrainProcessor(MachinePortable &mp)
Constructor.
A pair of vectors using the wire format formerly provided by yarp::os::PortablePair<yarp::sig::Vector...
PortableT< IMachineLearner > MachinePortable
A portable wrapper around an IMachineLearner.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.