19#ifndef LM_TRAINEVENTLISTENER__
20#define LM_TRAINEVENTLISTENER__
24#include <yarp/sig/Vector.h>
30namespace 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.
TrainEventListener(std::string pp="/lm/event/train")
Constructor.
void vectorToBottle(const yarp::sig::Vector &vec, yarp::os::Bottle &bot)
TrainEventListener * clone()
Asks the event listener to return a new object of its type.
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.