19 #ifndef LM_PREDICTMODULE__
20 #define LM_PREDICTMODULE__
26 namespace learningmachine {
95 virtual bool read(yarp::os::ConnectionReader& connection);
179 virtual bool configure(yarp::os::ResourceFinder& opt);
189 virtual bool respond(
const yarp::os::Bottle&
cmd, yarp::os::Bottle& reply);
An abstract base module for the machine learning YARP interface.
virtual bool close()
Close the module.
A generalized interface for a learning machine for offline and online learning machines (e....
virtual bool close()
Shut the object down.
Generic abstract class for machine based processors.
MachinePortable & machinePortable
A pointer to a concrete wrapper around a learning machine.
virtual MachinePortable & getMachinePortable()
Retrieve the machine portable machine wrapper.
virtual IMachineLearner & getMachine()
Convenience function to quickly retrieve the machine that is wrapped in the portable machine wrapper.
IMachineProcessor(MachinePortable &mp)
Constructor.
T & getWrapped() const
The accessor for the wrapped object.
A module for predictions.
virtual ~PredictModule()
Destructor (empty).
virtual bool interruptModule()
PredictModule & operator=(const PredictModule &other)
Assignment operator (private and unimplemented on purpose).
void unregisterAllPorts()
Unregisters all ports used by this module.
yarp::os::BufferedPort< yarp::sig::Vector > predict_inout
Buffered port for the incoming samples and corresponding replies.
MachinePortable machinePortable
A concrete wrapper around a learning machine.
virtual MachinePortable & getMachinePortable()
Retrieve the machine portable.
yarp::os::Port model_in
Incoming port for the models from the train module.
void printOptions(std::string error="")
Prints the accepted command line options with an optional error message.
virtual bool close()
Close the module.
PredictModule(std::string pp="/lm/predict")
Constructor.
void registerAllPorts()
Registers all ports used by this module.
virtual bool respond(const yarp::os::Bottle &cmd, yarp::os::Bottle &reply)
virtual bool configure(yarp::os::ResourceFinder &opt)
PredictProcessor predictProcessor
The processor handling prediction requests.
virtual IMachineLearner & getMachine()
Retrieve the machine that is wrapped in the portable machine wrapper.
PredictModule(const PredictModule &other)
Copy constructor (private and unimplemented on purpose).
Reply processor helper class for predictions.
virtual bool read(yarp::os::ConnectionReader &connection)
PredictProcessor(MachinePortable &mp)
Constructor.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.