18#ifndef __DEPTH2KIN_METHODS_H__
19#define __DEPTH2KIN_METHODS_H__
24#include <yarp/os/Property.h>
25#include <yarp/sig/all.h>
36 std::deque<yarp::sig::Vector>
in,
out;
48 A=yarp::math::eye(3,3);
49 c=yarp::sig::Vector(3,0.0);
50 R=yarp::math::eye(4,4);
51 radii=yarp::sig::Vector(3,1.0);
63 virtual bool addPoints(
const yarp::sig::Vector &
in,
const yarp::sig::Vector &
out)=0;
65 virtual bool getPoints(std::deque<yarp::sig::Vector> &
in, std::deque<yarp::sig::Vector> &
out)
const=0;
68 virtual bool retrieve(
const yarp::sig::Vector &
in, yarp::sig::Vector &
out)=0;
70 virtual bool toProperty(yarp::os::Property &info)
const;
71 virtual bool fromProperty(
const yarp::os::Property &info);
87 virtual bool addPoints(
const yarp::sig::Vector &
in,
const yarp::sig::Vector &
out);
89 virtual bool getPoints(std::deque<yarp::sig::Vector> &
in, std::deque<yarp::sig::Vector> &
out)
const;
91 virtual bool retrieve(
const yarp::sig::Vector &
in, yarp::sig::Vector &
out);
92 virtual bool toProperty(yarp::os::Property &info)
const;
93 virtual bool fromProperty(
const yarp::os::Property &info);
107 virtual bool addPoints(
const yarp::sig::Vector &
in,
const yarp::sig::Vector &
out);
109 virtual bool getPoints(std::deque<yarp::sig::Vector> &
in, std::deque<yarp::sig::Vector> &
out)
const;
111 virtual bool retrieve(
const yarp::sig::Vector &
in, yarp::sig::Vector &
out);
112 virtual bool toProperty(yarp::os::Property &info)
const;
113 virtual bool fromProperty(
const yarp::os::Property &info);
128 virtual bool retrieve(
const yarp::sig::Vector &in, yarp::sig::Vector &
out);
129 virtual void clear();
virtual bool clearPoints()=0
virtual bool retrieve(const yarp::sig::Vector &in, yarp::sig::Vector &out)=0
virtual bool getExtrapolation() const
std::deque< yarp::sig::Vector > out
virtual bool toProperty(yarp::os::Property &info) const
virtual bool getPoints(std::deque< yarp::sig::Vector > &in, std::deque< yarp::sig::Vector > &out) const =0
virtual bool computeSpatialCompetence(const std::deque< yarp::sig::Vector > &points)
virtual bool addPoints(const yarp::sig::Vector &in, const yarp::sig::Vector &out)=0
virtual void setExtrapolation(const bool extrapolation)
virtual bool fromProperty(const yarp::os::Property &info)
void copySuperClassData(const Calibrator &src)
virtual bool calibrate(double &error)=0
virtual bool computeSpatialTransformation()
std::deque< yarp::sig::Vector > in
struct Calibrator::SpatialCompetence spatialCompetence
virtual size_t getNumPoints() const
virtual std::string getType() const
virtual double getSpatialCompetence(const yarp::sig::Vector &point)
virtual ~LSSVMCalibrator()
virtual bool addPoints(const yarp::sig::Vector &in, const yarp::sig::Vector &out)
virtual bool getPoints(std::deque< yarp::sig::Vector > &in, std::deque< yarp::sig::Vector > &out) const
virtual bool clearPoints()
iCub::learningmachine::IMachineLearner * impl
virtual bool toProperty(yarp::os::Property &info) const
virtual bool calibrate(double &error)
virtual bool fromProperty(const yarp::os::Property &info)
virtual bool retrieve(const yarp::sig::Vector &in, yarp::sig::Vector &out)
virtual LocallyWeightedExperts & operator<<(Calibrator &c)
virtual size_t size() const
virtual Calibrator * operator[](const size_t i)
virtual bool retrieve(const yarp::sig::Vector &in, yarp::sig::Vector &out)
std::deque< Calibrator * > models
virtual ~LocallyWeightedExperts()
virtual bool clearPoints()
virtual bool fromProperty(const yarp::os::Property &info)
virtual bool calibrate(double &error)
virtual bool retrieve(const yarp::sig::Vector &in, yarp::sig::Vector &out)
virtual bool addPoints(const yarp::sig::Vector &in, const yarp::sig::Vector &out)
virtual bool toProperty(yarp::os::Property &info) const
virtual bool getPoints(std::deque< yarp::sig::Vector > &in, std::deque< yarp::sig::Vector > &out) const
iCub::optimization::MatrixTransformationWithMatchedPoints * impl
virtual ~MatrixCalibrator()
A generalized interface for a learning machine for offline and online learning machines (e....