visual-tracking-control
|
#include <VisualProprioception.h>
Public Member Functions | |
VisualProprioception (const bool use_thumb, const bool use_forearm, const int num_images, const double resolution_ratio, const yarp::os::ConstString &cam_sel, const yarp::os::ConstString &laterality, const yarp::os::ConstString &context) | |
VisualProprioception (const VisualProprioception &proprio) | |
VisualProprioception (VisualProprioception &&proprio) noexcept | |
~VisualProprioception () noexcept | |
VisualProprioception & | operator= (const VisualProprioception &proprio) |
VisualProprioception & | operator= (VisualProprioception &&proprio) noexcept |
void | observe (const Eigen::Ref< const Eigen::MatrixXf > &cur_states, cv::OutputArray observations) override |
bool | setProperty (const std::string property) override |
int | getOGLTilesNumber () |
int | getOGLTilesRows () |
int | getOGLTilesCols () |
unsigned int | getCamWidth () |
unsigned int | getCamHeight () |
float | getCamFx () |
float | getCamFy () |
float | getCamCx () |
float | getCamCy () |
Protected Member Functions | |
yarp::sig::Matrix | getInvertedH (const double a, const double d, const double alpha, const double offset, const double q) |
bool | openGazeController () |
bool | openAnalogs () |
bool | closeAnalogs () |
bool | setiCubParams () |
void | setArmJoints (const yarp::sig::Vector &q) |
void | setArmJoints (const yarp::sig::Vector &q, const yarp::sig::Vector &analogs, const yarp::sig::Matrix &analog_bounds) |
void | getModelPose (const Eigen::Ref< const Eigen::MatrixXf > &cur_states, std::vector< Superimpose::ModelPoseContainer > &hand_poses) |
yarp::sig::Vector | readArmEncoders () |
yarp::sig::Vector | readTorso () |
yarp::sig::Vector | readRootToFingers () |
yarp::sig::Vector | readRootToEye (const yarp::os::ConstString cam_sel) |
bool | file_found (const yarp::os::ConstString &file) |
Protected Attributes | |
yarp::os::ConstString | log_ID_ = "[VisualProprioception]" |
yarp::os::ConstString | laterality_ |
yarp::dev::PolyDriver | drv_gaze_ |
yarp::dev::IGazeControl * | itf_gaze_ |
iCub::iKin::iCubArm | icub_arm_ |
iCub::iKin::iCubFinger | icub_kin_finger_ [3] |
iCub::iKin::iCubEye | icub_kin_eye_ |
yarp::os::BufferedPort< yarp::os::Bottle > | port_head_enc_ |
yarp::os::BufferedPort< yarp::os::Bottle > | port_torso_enc_ |
yarp::os::BufferedPort< yarp::os::Bottle > | port_arm_enc_ |
yarp::dev::PolyDriver | drv_right_hand_analog_ |
yarp::dev::IAnalogSensor * | itf_right_hand_analog_ |
yarp::sig::Matrix | right_hand_analogs_bounds_ |
bool | analogs_ = false |
yarp::os::ConstString | cam_sel_ |
double | cam_x_ [3] |
double | cam_o_ [4] |
unsigned int | cam_width_ |
unsigned int | cam_height_ |
float | cam_fx_ |
float | cam_cx_ |
float | cam_fy_ |
float | cam_cy_ |
double | resolution_ratio_ |
bool | use_thumb_ |
bool | use_forearm_ |
SICAD::ModelPathContainer | cad_obj_ |
SICAD * | si_cad_ |
int | ogl_tiles_rows_ |
int | ogl_tiles_cols_ |
Definition at line 20 of file VisualProprioception.h.
VisualProprioception::VisualProprioception | ( | const bool | use_thumb, |
const bool | use_forearm, | ||
const int | num_images, | ||
const double | resolution_ratio, | ||
const yarp::os::ConstString & | cam_sel, | ||
const yarp::os::ConstString & | laterality, | ||
const yarp::os::ConstString & | context | ||
) |
VisualProprioception::VisualProprioception | ( | const VisualProprioception & | proprio | ) |
Definition at line 263 of file VisualProprioception.cpp.
References cam_o_, cam_x_, icub_arm_, and icub_kin_finger_.
|
noexcept |
Definition at line 290 of file VisualProprioception.cpp.
References cam_o_, cam_x_, and icub_kin_finger_.
|
noexcept |
Definition at line 250 of file VisualProprioception.cpp.
References PlayGatePose::port_arm_enc_, and PlayGatePose::port_torso_enc_.
|
protected |
Definition at line 719 of file VisualProprioception.cpp.
References analogs_, and drv_right_hand_analog_.
Referenced by setProperty().
|
protected |
Definition at line 541 of file VisualProprioception.cpp.
References log_ID_.
float VisualProprioception::getCamCx | ( | ) |
Definition at line 595 of file VisualProprioception.cpp.
References cam_cx_.
float VisualProprioception::getCamCy | ( | ) |
Definition at line 601 of file VisualProprioception.cpp.
References cam_cy_.
float VisualProprioception::getCamFx | ( | ) |
Definition at line 583 of file VisualProprioception.cpp.
References cam_fx_.
float VisualProprioception::getCamFy | ( | ) |
Definition at line 589 of file VisualProprioception.cpp.
References cam_fy_.
unsigned int VisualProprioception::getCamHeight | ( | ) |
Definition at line 577 of file VisualProprioception.cpp.
References cam_height_.
unsigned int VisualProprioception::getCamWidth | ( | ) |
Definition at line 571 of file VisualProprioception.cpp.
References cam_width_.
|
protected |
Definition at line 607 of file VisualProprioception.cpp.
Referenced by getModelPose().
|
protected |
Definition at line 374 of file VisualProprioception.cpp.
References getInvertedH(), icub_arm_, icub_kin_finger_, use_forearm_, and use_thumb_.
Referenced by observe().
int VisualProprioception::getOGLTilesCols | ( | ) |
Definition at line 565 of file VisualProprioception.cpp.
References si_cad_.
int VisualProprioception::getOGLTilesNumber | ( | ) |
Definition at line 553 of file VisualProprioception.cpp.
References si_cad_.
int VisualProprioception::getOGLTilesRows | ( | ) |
Definition at line 559 of file VisualProprioception.cpp.
References si_cad_.
|
override |
Definition at line 451 of file VisualProprioception.cpp.
References cam_o_, cam_x_, getModelPose(), and si_cad_.
|
protected |
Definition at line 684 of file VisualProprioception.cpp.
References analogs_, cam_sel_, drv_right_hand_analog_, itf_right_hand_analog_, laterality_, and log_ID_.
Referenced by setProperty().
|
protected |
VisualProprioception & VisualProprioception::operator= | ( | const VisualProprioception & | proprio | ) |
Definition at line 325 of file VisualProprioception.cpp.
|
noexcept |
Definition at line 334 of file VisualProprioception.cpp.
References cad_obj_, cam_o_, cam_x_, icub_arm_, icub_kin_finger_, and si_cad_.
|
protected |
|
protected |
Definition at line 761 of file VisualProprioception.cpp.
References port_head_enc_, and readTorso().
Referenced by setiCubParams().
|
protected |
Definition at line 747 of file VisualProprioception.cpp.
References port_arm_enc_, and readTorso().
Referenced by setiCubParams().
|
protected |
Definition at line 733 of file VisualProprioception.cpp.
References port_torso_enc_.
Referenced by readRootToEye(), and readRootToFingers().
|
protected |
Referenced by setiCubParams().
|
protected |
|
protected |
Definition at line 477 of file VisualProprioception.cpp.
References analogs_, cam_o_, cam_sel_, cam_x_, icub_arm_, icub_kin_eye_, icub_kin_finger_, itf_right_hand_analog_, readRootToEye(), readRootToFingers(), right_hand_analogs_bounds_, and setArmJoints().
Referenced by setProperty().
|
override |
Definition at line 463 of file VisualProprioception.cpp.
References closeAnalogs(), openAnalogs(), and setiCubParams().
|
protected |
Definition at line 80 of file VisualProprioception.h.
Referenced by closeAnalogs(), openAnalogs(), and setiCubParams().
|
protected |
Definition at line 109 of file VisualProprioception.h.
Referenced by operator=().
|
protected |
Definition at line 102 of file VisualProprioception.h.
Referenced by getCamCx().
|
protected |
Definition at line 104 of file VisualProprioception.h.
Referenced by getCamCy().
|
protected |
Definition at line 101 of file VisualProprioception.h.
Referenced by getCamFx().
|
protected |
Definition at line 103 of file VisualProprioception.h.
Referenced by getCamFy().
|
protected |
Definition at line 100 of file VisualProprioception.h.
Referenced by getCamHeight().
|
protected |
Definition at line 98 of file VisualProprioception.h.
Referenced by observe(), operator=(), setiCubParams(), and VisualProprioception().
|
protected |
Definition at line 96 of file VisualProprioception.h.
Referenced by openAnalogs(), openGazeController(), and setiCubParams().
|
protected |
Definition at line 99 of file VisualProprioception.h.
Referenced by getCamWidth().
|
protected |
Definition at line 97 of file VisualProprioception.h.
Referenced by observe(), operator=(), setiCubParams(), and VisualProprioception().
|
protected |
Definition at line 62 of file VisualProprioception.h.
Referenced by openGazeController().
|
protected |
Definition at line 70 of file VisualProprioception.h.
Referenced by closeAnalogs(), and openAnalogs().
|
protected |
Definition at line 64 of file VisualProprioception.h.
Referenced by getModelPose(), operator=(), setiCubParams(), and VisualProprioception().
|
protected |
Definition at line 66 of file VisualProprioception.h.
Referenced by setiCubParams().
|
protected |
Definition at line 65 of file VisualProprioception.h.
Referenced by getModelPose(), operator=(), setiCubParams(), and VisualProprioception().
|
protected |
Definition at line 63 of file VisualProprioception.h.
Referenced by openGazeController().
|
protected |
Definition at line 71 of file VisualProprioception.h.
Referenced by openAnalogs(), and setiCubParams().
|
protected |
Definition at line 61 of file VisualProprioception.h.
Referenced by openAnalogs().
|
protected |
Definition at line 58 of file VisualProprioception.h.
Referenced by file_found(), openAnalogs(), and openGazeController().
|
protected |
Definition at line 112 of file VisualProprioception.h.
|
protected |
Definition at line 111 of file VisualProprioception.h.
|
protected |
Definition at line 69 of file VisualProprioception.h.
Referenced by readRootToFingers().
|
protected |
Definition at line 67 of file VisualProprioception.h.
Referenced by readRootToEye().
|
protected |
Definition at line 68 of file VisualProprioception.h.
Referenced by readTorso().
|
protected |
Definition at line 105 of file VisualProprioception.h.
|
protected |
Definition at line 72 of file VisualProprioception.h.
Referenced by setiCubParams().
|
protected |
Definition at line 110 of file VisualProprioception.h.
Referenced by getOGLTilesCols(), getOGLTilesNumber(), getOGLTilesRows(), observe(), and operator=().
|
protected |
Definition at line 108 of file VisualProprioception.h.
Referenced by getModelPose().
|
protected |
Definition at line 107 of file VisualProprioception.h.
Referenced by getModelPose().