19 #ifndef LM_TRAINEVENTLISTENER__
20 #define LM_TRAINEVENTLISTENER__
24 #include <yarp/sig/Vector.h>
30 namespace learningmachine {
42 for(
size_t i = 0; i < vec.size(); i++) {
43 bot.addFloat64(vec[i]);
void setName(std::string name)
Set the name of this IEventListener.
The abstract base class for EventListeners that output to a port.
void handle(TrainEvent &e)
Handling of a TrainEvent.
TrainEventListener(std::string pp="/lm/event/train")
Constructor.
TrainEventListener * clone()
Asks the event listener to return a new object of its type.
void vectorToBottle(const yarp::sig::Vector &vec, yarp::os::Bottle &bot)
A TrainEvent is raised when the machine handles a training sample.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.