19 #ifndef LM_ITRANSFORMER__
20 #define LM_ITRANSFORMER__
25 #include <yarp/os/IConfig.h>
26 #include <yarp/os/Portable.h>
27 #include <yarp/os/Bottle.h>
28 #include <yarp/sig/Vector.h>
31 namespace learningmachine {
58 class ITransformer :
public yarp::os::IConfig,
public yarp::os::Portable {
105 virtual yarp::sig::Vector
transform(
const yarp::sig::Vector& input) {
107 return yarp::sig::Vector();
117 std::ostringstream buffer;
118 buffer <<
"Type: " << this->
getName() <<
", ";
119 buffer <<
"Sample Count: " << this->sampleCount << std::endl;
127 this->sampleCount = 0;
155 return std::string(
"Transformer configuration options for '") +
169 virtual bool configure(yarp::os::Searchable& config) {
return true; }
174 bool write(yarp::os::ConnectionWriter& connection)
const {
175 yarp::os::Bottle model;
177 return model.write(connection);
183 bool read(yarp::os::ConnectionReader& connection) {
184 yarp::os::Bottle model;
185 model.read(connection);
196 yarp::os::Bottle model;
198 return model.toString().c_str();
207 yarp::os::Bottle model(str.c_str());
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.