19 #ifndef LM_PREDICTEVENTLISTENER__
20 #define LM_PREDICTEVENTLISTENER__
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 vectorToBottle(const yarp::sig::Vector &vec, yarp::os::Bottle &bot)
PredictEventListener * clone()
Asks the event listener to return a new object of its type.
PredictEventListener(std::string pp="/lm/event/predict")
Constructor.
void handle(PredictEvent &e)
Handling of a PredictEvent.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.