iCub-main
|
clientgazecontroller
: implements the client part of the the Gaze Control Interface.
More...
#include <ClientGazeController.h>
Public Member Functions | |
ClientGazeController () | |
ClientGazeController (yarp::os::Searchable &config) | |
bool | open (yarp::os::Searchable &config) |
bool | close () |
bool | setTrackingMode (const bool f) |
bool | getTrackingMode (bool *f) |
bool | setStabilizationMode (const bool f) |
bool | getStabilizationMode (bool *f) |
bool | getFixationPoint (yarp::sig::Vector &fp, yarp::os::Stamp *stamp=NULL) |
bool | getAngles (yarp::sig::Vector &ang, yarp::os::Stamp *stamp=NULL) |
bool | lookAtFixationPoint (const yarp::sig::Vector &fp) |
bool | lookAtAbsAngles (const yarp::sig::Vector &ang) |
bool | lookAtRelAngles (const yarp::sig::Vector &ang) |
bool | lookAtMonoPixel (const int camSel, const yarp::sig::Vector &px, const double z=1.0) |
bool | lookAtMonoPixelWithVergence (const int camSel, const yarp::sig::Vector &px, const double ver) |
bool | lookAtStereoPixels (const yarp::sig::Vector &pxl, const yarp::sig::Vector &pxr) |
bool | lookAtFixationPointSync (const yarp::sig::Vector &fp) |
bool | lookAtAbsAnglesSync (const yarp::sig::Vector &ang) |
bool | lookAtRelAnglesSync (const yarp::sig::Vector &ang) |
bool | lookAtMonoPixelSync (const int camSel, const yarp::sig::Vector &px, const double z=1.0) |
bool | lookAtMonoPixelWithVergenceSync (const int camSel, const yarp::sig::Vector &px, const double ver) |
bool | lookAtStereoPixelsSync (const yarp::sig::Vector &pxl, const yarp::sig::Vector &pxr) |
bool | getNeckTrajTime (double *t) |
bool | getEyesTrajTime (double *t) |
bool | getVORGain (double *gain) |
bool | getOCRGain (double *gain) |
bool | getSaccadesMode (bool *f) |
bool | getSaccadesInhibitionPeriod (double *period) |
bool | getSaccadesActivationAngle (double *angle) |
bool | getLeftEyePose (yarp::sig::Vector &x, yarp::sig::Vector &o, yarp::os::Stamp *stamp=NULL) |
bool | getRightEyePose (yarp::sig::Vector &x, yarp::sig::Vector &o, yarp::os::Stamp *stamp=NULL) |
bool | getHeadPose (yarp::sig::Vector &x, yarp::sig::Vector &o, yarp::os::Stamp *stamp=NULL) |
bool | get2DPixel (const int camSel, const yarp::sig::Vector &x, yarp::sig::Vector &px) |
bool | get3DPoint (const int camSel, const yarp::sig::Vector &px, const double z, yarp::sig::Vector &x) |
bool | get3DPointOnPlane (const int camSel, const yarp::sig::Vector &px, const yarp::sig::Vector &plane, yarp::sig::Vector &x) |
bool | get3DPointFromAngles (const int mode, const yarp::sig::Vector &ang, yarp::sig::Vector &x) |
bool | getAnglesFrom3DPoint (const yarp::sig::Vector &x, yarp::sig::Vector &ang) |
bool | triangulate3DPoint (const yarp::sig::Vector &pxl, const yarp::sig::Vector &pxr, yarp::sig::Vector &x) |
bool | getJointsDesired (yarp::sig::Vector &qdes) |
bool | getJointsVelocities (yarp::sig::Vector &qdot) |
bool | getStereoOptions (yarp::os::Bottle &options) |
bool | setNeckTrajTime (const double t) |
bool | setEyesTrajTime (const double t) |
bool | setVORGain (const double gain) |
bool | setOCRGain (const double gain) |
bool | setSaccadesMode (const bool f) |
bool | setSaccadesInhibitionPeriod (const double period) |
bool | setSaccadesActivationAngle (const double angle) |
bool | setStereoOptions (const yarp::os::Bottle &options) |
bool | bindNeckPitch (const double min, const double max) |
bool | blockNeckPitch (const double val) |
bool | blockNeckPitch () |
bool | bindNeckRoll (const double min, const double max) |
bool | blockNeckRoll (const double val) |
bool | blockNeckRoll () |
bool | bindNeckYaw (const double min, const double max) |
bool | blockNeckYaw (const double val) |
bool | blockNeckYaw () |
bool | blockEyes (const double ver) |
bool | blockEyes () |
bool | getNeckPitchRange (double *min, double *max) |
bool | getNeckRollRange (double *min, double *max) |
bool | getNeckYawRange (double *min, double *max) |
bool | getBlockedVergence (double *ver) |
bool | clearNeckPitch () |
bool | clearNeckRoll () |
bool | clearNeckYaw () |
bool | clearEyes () |
bool | getNeckAngleUserTolerance (double *angle) |
bool | setNeckAngleUserTolerance (const double angle) |
bool | checkMotionDone (bool *f) |
bool | waitMotionDone (const double period=0.1, const double timeout=0.0) |
bool | checkSaccadeDone (bool *f) |
bool | waitSaccadeDone (const double period=0.1, const double timeout=0.0) |
bool | stopControl () |
bool | storeContext (int *id) |
bool | restoreContext (const int id) |
bool | deleteContext (const int id) |
bool | getInfo (yarp::os::Bottle &info) |
bool | registerEvent (yarp::dev::GazeEvent &event) |
bool | unregisterEvent (yarp::dev::GazeEvent &event) |
bool | tweakSet (const yarp::os::Bottle &options) |
bool | tweakGet (yarp::os::Bottle &options) |
virtual | ~ClientGazeController () |
Protected Member Functions | |
void | init () |
bool | deleteContexts () |
bool | getPose (const std::string &poseSel, yarp::sig::Vector &x, yarp::sig::Vector &o, yarp::os::Stamp *stamp=NULL) |
bool | blockNeckJoint (const std::string &joint, const double min, const double max) |
bool | blockNeckJoint (const std::string &joint, const int j) |
bool | getNeckJointRange (const std::string &joint, double *min, double *max) |
bool | clearJoint (const std::string &joint) |
void | eventHandling (yarp::os::Bottle &event) |
bool | getInfoHelper (yarp::os::Bottle &info) |
Protected Attributes | |
bool | connected |
bool | closed |
double | timeout |
double | lastFpMsgArrivalTime |
double | lastAngMsgArrivalTime |
yarp::sig::Vector | fixationPoint |
yarp::sig::Vector | angles |
yarp::os::Stamp | fpStamp |
yarp::os::Stamp | anglesStamp |
yarp::os::BufferedPort< yarp::sig::Vector > | portStateFp |
yarp::os::BufferedPort< yarp::sig::Vector > | portStateAng |
yarp::os::BufferedPort< yarp::sig::Vector > | portStateHead |
yarp::os::BufferedPort< yarp::os::Bottle > | portCmdFp |
yarp::os::BufferedPort< yarp::os::Bottle > | portCmdAng |
yarp::os::BufferedPort< yarp::os::Bottle > | portCmdMono |
yarp::os::BufferedPort< yarp::os::Bottle > | portCmdStereo |
yarp::os::RpcClient | portRpc |
std::set< int > | contextIdList |
std::map< std::string, yarp::dev::GazeEvent * > | eventsMap |
GazeEventHandler | portEvents |
Friends | |
class | GazeEventHandler |
clientgazecontroller
: implements the client part of the the Gaze Control Interface.
YARP device name |
---|
clientgazecontroller |
Definition at line 62 of file ClientGazeController.h.
ClientGazeController::ClientGazeController | ( | ) |
Definition at line 58 of file ClientGazeController.cpp.
ClientGazeController::ClientGazeController | ( | yarp::os::Searchable & | config | ) |
|
virtual |
Definition at line 2071 of file ClientGazeController.cpp.
bool ClientGazeController::bindNeckPitch | ( | const double | min, |
const double | max | ||
) |
Definition at line 1437 of file ClientGazeController.cpp.
bool ClientGazeController::bindNeckRoll | ( | const double | min, |
const double | max | ||
) |
Definition at line 1458 of file ClientGazeController.cpp.
bool ClientGazeController::bindNeckYaw | ( | const double | min, |
const double | max | ||
) |
Definition at line 1479 of file ClientGazeController.cpp.
bool ClientGazeController::blockEyes | ( | ) |
Definition at line 1521 of file ClientGazeController.cpp.
bool ClientGazeController::blockEyes | ( | const double | ver | ) |
Definition at line 1500 of file ClientGazeController.cpp.
|
protected |
Definition at line 1355 of file ClientGazeController.cpp.
|
protected |
Definition at line 1378 of file ClientGazeController.cpp.
bool ClientGazeController::blockNeckPitch | ( | ) |
Definition at line 1451 of file ClientGazeController.cpp.
bool ClientGazeController::blockNeckPitch | ( | const double | val | ) |
Definition at line 1444 of file ClientGazeController.cpp.
bool ClientGazeController::blockNeckRoll | ( | ) |
Definition at line 1472 of file ClientGazeController.cpp.
bool ClientGazeController::blockNeckRoll | ( | const double | val | ) |
Definition at line 1465 of file ClientGazeController.cpp.
bool ClientGazeController::blockNeckYaw | ( | ) |
Definition at line 1493 of file ClientGazeController.cpp.
bool ClientGazeController::blockNeckYaw | ( | const double | val | ) |
Definition at line 1486 of file ClientGazeController.cpp.
bool ClientGazeController::checkMotionDone | ( | bool * | f | ) |
Definition at line 1654 of file ClientGazeController.cpp.
bool ClientGazeController::checkSaccadeDone | ( | bool * | f | ) |
Definition at line 1698 of file ClientGazeController.cpp.
bool ClientGazeController::clearEyes | ( | ) |
Definition at line 1600 of file ClientGazeController.cpp.
|
protected |
Definition at line 1417 of file ClientGazeController.cpp.
bool ClientGazeController::clearNeckPitch | ( | ) |
Definition at line 1579 of file ClientGazeController.cpp.
bool ClientGazeController::clearNeckRoll | ( | ) |
Definition at line 1586 of file ClientGazeController.cpp.
bool ClientGazeController::clearNeckYaw | ( | ) |
Definition at line 1593 of file ClientGazeController.cpp.
bool ClientGazeController::close | ( | ) |
Definition at line 161 of file ClientGazeController.cpp.
bool ClientGazeController::deleteContext | ( | const int | id | ) |
Definition at line 1806 of file ClientGazeController.cpp.
|
protected |
Definition at line 1832 of file ClientGazeController.cpp.
|
protected |
Definition at line 1897 of file ClientGazeController.cpp.
bool ClientGazeController::get2DPixel | ( | const int | camSel, |
const yarp::sig::Vector & | x, | ||
yarp::sig::Vector & | px | ||
) |
Definition at line 861 of file ClientGazeController.cpp.
bool ClientGazeController::get3DPoint | ( | const int | camSel, |
const yarp::sig::Vector & | px, | ||
const double | z, | ||
yarp::sig::Vector & | x | ||
) |
Definition at line 899 of file ClientGazeController.cpp.
bool ClientGazeController::get3DPointFromAngles | ( | const int | mode, |
const yarp::sig::Vector & | ang, | ||
yarp::sig::Vector & | x | ||
) |
Definition at line 980 of file ClientGazeController.cpp.
bool ClientGazeController::get3DPointOnPlane | ( | const int | camSel, |
const yarp::sig::Vector & | px, | ||
const yarp::sig::Vector & | plane, | ||
yarp::sig::Vector & | x | ||
) |
Definition at line 938 of file ClientGazeController.cpp.
bool ClientGazeController::getAngles | ( | yarp::sig::Vector & | ang, |
yarp::os::Stamp * | stamp = NULL |
||
) |
Definition at line 313 of file ClientGazeController.cpp.
bool ClientGazeController::getAnglesFrom3DPoint | ( | const yarp::sig::Vector & | x, |
yarp::sig::Vector & | ang | ||
) |
Definition at line 1019 of file ClientGazeController.cpp.
bool ClientGazeController::getBlockedVergence | ( | double * | ver | ) |
Definition at line 1553 of file ClientGazeController.cpp.
bool ClientGazeController::getEyesTrajTime | ( | double * | t | ) |
Definition at line 631 of file ClientGazeController.cpp.
bool ClientGazeController::getFixationPoint | ( | yarp::sig::Vector & | fp, |
yarp::os::Stamp * | stamp = NULL |
||
) |
Definition at line 291 of file ClientGazeController.cpp.
bool ClientGazeController::getHeadPose | ( | yarp::sig::Vector & | x, |
yarp::sig::Vector & | o, | ||
yarp::os::Stamp * | stamp = NULL |
||
) |
Definition at line 854 of file ClientGazeController.cpp.
bool ClientGazeController::getInfo | ( | yarp::os::Bottle & | info | ) |
Definition at line 1887 of file ClientGazeController.cpp.
|
protected |
Definition at line 1859 of file ClientGazeController.cpp.
bool ClientGazeController::getJointsDesired | ( | yarp::sig::Vector & | qdes | ) |
Definition at line 1094 of file ClientGazeController.cpp.
bool ClientGazeController::getJointsVelocities | ( | yarp::sig::Vector & | qdot | ) |
Definition at line 1126 of file ClientGazeController.cpp.
bool ClientGazeController::getLeftEyePose | ( | yarp::sig::Vector & | x, |
yarp::sig::Vector & | o, | ||
yarp::os::Stamp * | stamp = NULL |
||
) |
Definition at line 840 of file ClientGazeController.cpp.
bool ClientGazeController::getNeckAngleUserTolerance | ( | double * | angle | ) |
Definition at line 1607 of file ClientGazeController.cpp.
|
protected |
Definition at line 1389 of file ClientGazeController.cpp.
bool ClientGazeController::getNeckPitchRange | ( | double * | min, |
double * | max | ||
) |
Definition at line 1532 of file ClientGazeController.cpp.
bool ClientGazeController::getNeckRollRange | ( | double * | min, |
double * | max | ||
) |
Definition at line 1539 of file ClientGazeController.cpp.
bool ClientGazeController::getNeckTrajTime | ( | double * | t | ) |
Definition at line 605 of file ClientGazeController.cpp.
bool ClientGazeController::getNeckYawRange | ( | double * | min, |
double * | max | ||
) |
Definition at line 1546 of file ClientGazeController.cpp.
bool ClientGazeController::getOCRGain | ( | double * | gain | ) |
Definition at line 683 of file ClientGazeController.cpp.
|
protected |
Definition at line 787 of file ClientGazeController.cpp.
bool ClientGazeController::getRightEyePose | ( | yarp::sig::Vector & | x, |
yarp::sig::Vector & | o, | ||
yarp::os::Stamp * | stamp = NULL |
||
) |
Definition at line 847 of file ClientGazeController.cpp.
bool ClientGazeController::getSaccadesActivationAngle | ( | double * | angle | ) |
Definition at line 761 of file ClientGazeController.cpp.
bool ClientGazeController::getSaccadesInhibitionPeriod | ( | double * | period | ) |
Definition at line 735 of file ClientGazeController.cpp.
bool ClientGazeController::getSaccadesMode | ( | bool * | f | ) |
Definition at line 709 of file ClientGazeController.cpp.
bool ClientGazeController::getStabilizationMode | ( | bool * | f | ) |
Definition at line 265 of file ClientGazeController.cpp.
bool ClientGazeController::getStereoOptions | ( | yarp::os::Bottle & | options | ) |
Definition at line 1158 of file ClientGazeController.cpp.
bool ClientGazeController::getTrackingMode | ( | bool * | f | ) |
Definition at line 218 of file ClientGazeController.cpp.
bool ClientGazeController::getVORGain | ( | double * | gain | ) |
Definition at line 657 of file ClientGazeController.cpp.
|
protected |
Definition at line 73 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtAbsAngles | ( | const yarp::sig::Vector & | ang | ) |
Definition at line 353 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtAbsAnglesSync | ( | const yarp::sig::Vector & | ang | ) |
Definition at line 476 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtFixationPoint | ( | const yarp::sig::Vector & | fp | ) |
Definition at line 335 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtFixationPointSync | ( | const yarp::sig::Vector & | fp | ) |
Definition at line 452 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtMonoPixel | ( | const int | camSel, |
const yarp::sig::Vector & | px, | ||
const double | z = 1.0 |
||
) |
Definition at line 391 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtMonoPixelSync | ( | const int | camSel, |
const yarp::sig::Vector & | px, | ||
const double | z = 1.0 |
||
) |
Definition at line 524 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtMonoPixelWithVergence | ( | const int | camSel, |
const yarp::sig::Vector & | px, | ||
const double | ver | ||
) |
Definition at line 411 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtMonoPixelWithVergenceSync | ( | const int | camSel, |
const yarp::sig::Vector & | px, | ||
const double | ver | ||
) |
Definition at line 551 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtRelAngles | ( | const yarp::sig::Vector & | ang | ) |
Definition at line 372 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtRelAnglesSync | ( | const yarp::sig::Vector & | ang | ) |
Definition at line 500 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtStereoPixels | ( | const yarp::sig::Vector & | pxl, |
const yarp::sig::Vector & | pxr | ||
) |
Definition at line 433 of file ClientGazeController.cpp.
bool ClientGazeController::lookAtStereoPixelsSync | ( | const yarp::sig::Vector & | pxl, |
const yarp::sig::Vector & | pxr | ||
) |
Definition at line 579 of file ClientGazeController.cpp.
bool ClientGazeController::open | ( | yarp::os::Searchable & | config | ) |
Definition at line 90 of file ClientGazeController.cpp.
bool ClientGazeController::registerEvent | ( | yarp::dev::GazeEvent & | event | ) |
Definition at line 1949 of file ClientGazeController.cpp.
bool ClientGazeController::restoreContext | ( | const int | id | ) |
Definition at line 1786 of file ClientGazeController.cpp.
bool ClientGazeController::setEyesTrajTime | ( | const double | t | ) |
Definition at line 1208 of file ClientGazeController.cpp.
bool ClientGazeController::setNeckAngleUserTolerance | ( | const double | angle | ) |
Definition at line 1633 of file ClientGazeController.cpp.
bool ClientGazeController::setNeckTrajTime | ( | const double | t | ) |
Definition at line 1187 of file ClientGazeController.cpp.
bool ClientGazeController::setOCRGain | ( | const double | gain | ) |
Definition at line 1250 of file ClientGazeController.cpp.
bool ClientGazeController::setSaccadesActivationAngle | ( | const double | angle | ) |
Definition at line 1313 of file ClientGazeController.cpp.
bool ClientGazeController::setSaccadesInhibitionPeriod | ( | const double | period | ) |
Definition at line 1292 of file ClientGazeController.cpp.
bool ClientGazeController::setSaccadesMode | ( | const bool | f | ) |
Definition at line 1271 of file ClientGazeController.cpp.
bool ClientGazeController::setStabilizationMode | ( | const bool | f | ) |
Definition at line 244 of file ClientGazeController.cpp.
bool ClientGazeController::setStereoOptions | ( | const yarp::os::Bottle & | options | ) |
Definition at line 1334 of file ClientGazeController.cpp.
bool ClientGazeController::setTrackingMode | ( | const bool | f | ) |
Definition at line 197 of file ClientGazeController.cpp.
bool ClientGazeController::setVORGain | ( | const double | gain | ) |
Definition at line 1229 of file ClientGazeController.cpp.
bool ClientGazeController::stopControl | ( | ) |
Definition at line 1742 of file ClientGazeController.cpp.
bool ClientGazeController::storeContext | ( | int * | id | ) |
Definition at line 1761 of file ClientGazeController.cpp.
bool ClientGazeController::triangulate3DPoint | ( | const yarp::sig::Vector & | pxl, |
const yarp::sig::Vector & | pxr, | ||
yarp::sig::Vector & | x | ||
) |
Definition at line 1055 of file ClientGazeController.cpp.
bool ClientGazeController::tweakGet | ( | yarp::os::Bottle & | options | ) |
Definition at line 2040 of file ClientGazeController.cpp.
bool ClientGazeController::tweakSet | ( | const yarp::os::Bottle & | options | ) |
Definition at line 2019 of file ClientGazeController.cpp.
bool ClientGazeController::unregisterEvent | ( | yarp::dev::GazeEvent & | event | ) |
Definition at line 1984 of file ClientGazeController.cpp.
bool ClientGazeController::waitMotionDone | ( | const double | period = 0.1 , |
const double | timeout = 0.0 |
||
) |
Definition at line 1680 of file ClientGazeController.cpp.
bool ClientGazeController::waitSaccadeDone | ( | const double | period = 0.1 , |
const double | timeout = 0.0 |
||
) |
Definition at line 1724 of file ClientGazeController.cpp.
|
friend |
Definition at line 92 of file ClientGazeController.h.
|
protected |
Definition at line 74 of file ClientGazeController.h.
|
protected |
Definition at line 77 of file ClientGazeController.h.
|
protected |
Definition at line 67 of file ClientGazeController.h.
|
protected |
Definition at line 66 of file ClientGazeController.h.
|
protected |
Definition at line 89 of file ClientGazeController.h.
|
protected |
Definition at line 90 of file ClientGazeController.h.
|
protected |
Definition at line 73 of file ClientGazeController.h.
|
protected |
Definition at line 76 of file ClientGazeController.h.
|
protected |
Definition at line 71 of file ClientGazeController.h.
|
protected |
Definition at line 70 of file ClientGazeController.h.
|
protected |
Definition at line 84 of file ClientGazeController.h.
|
protected |
Definition at line 83 of file ClientGazeController.h.
|
protected |
Definition at line 85 of file ClientGazeController.h.
|
protected |
Definition at line 86 of file ClientGazeController.h.
|
protected |
Definition at line 91 of file ClientGazeController.h.
|
protected |
Definition at line 87 of file ClientGazeController.h.
|
protected |
Definition at line 80 of file ClientGazeController.h.
|
protected |
Definition at line 79 of file ClientGazeController.h.
|
protected |
Definition at line 81 of file ClientGazeController.h.
|
protected |
Definition at line 69 of file ClientGazeController.h.