19 #ifndef __LOCALIZER_H__
20 #define __LOCALIZER_H__
25 #include <yarp/os/all.h>
26 #include <yarp/sig/all.h>
27 #include <yarp/math/Math.h>
31 #include <iCub/utils.h>
34 using namespace yarp::os;
35 using namespace yarp::sig;
36 using namespace yarp::math;
71 void handleMonocularInput();
72 void handleStereoInput();
73 void handleAnglesInput();
74 void handleAnglesOutput();
80 double getDistFromVergence(
const double ver);
81 void getPidOptions(Bottle &options);
82 void setPidOptions(
const Bottle &options);
83 bool projectPoint(
const string &type,
const Vector &
x, Vector &px);
84 bool projectPoint(
const string &type,
const double u,
const double v,
85 const double z, Vector &
x);
86 bool projectPoint(
const string &type,
const double u,
const double v,
87 const Vector &plane, Vector &
x);
88 bool triangulatePoint(
const Vector &pxl,
const Vector &pxr, Vector &
x);
89 Vector getAbsAngles(
const Vector &
x);
90 Vector get3DPoint(
const string &type,
const Vector &ang);
91 bool getIntrinsicsMatrix(
const string &type, Matrix &M,
int &w,
int &
h);
92 bool setIntrinsicsMatrix(
const string &type,
const Matrix &M,
const int w,
const int h);
95 void afterStart(
bool s);
BufferedPort< Bottle > port_stereo
BufferedPort< Bottle > port_mono
BufferedPort< Bottle > port_anglesIn
BufferedPort< Vector > port_anglesOut
General structure of parallel (non-interactive) PID.