iCub-main
|
Helper class providing useful methods to deal with Cartesian Solver options. More...
#include <iKinHlp.h>
Static Public Member Functions | |
static void | addTargetOption (yarp::os::Bottle &b, const yarp::sig::Vector &xd) |
Appends to a bottle all data needed to command a target. More... | |
static void | addDOFOption (yarp::os::Bottle &b, const yarp::sig::Vector &dof) |
Appends to a bottle all data needed to reconfigure chain's dof. More... | |
static void | addJointsResPosOption (yarp::os::Bottle &b, const yarp::sig::Vector &restPos) |
Appends to a bottle all data needed to modify joints rest position. More... | |
static void | addJointsRestWeightsOption (yarp::os::Bottle &b, const yarp::sig::Vector &restWeights) |
Appends to a bottle all data needed to modify joints rest weights. More... | |
static void | addPoseOption (yarp::os::Bottle &b, const unsigned int pose) |
Appends to a bottle all data needed to change the pose mode. More... | |
static void | addModeOption (yarp::os::Bottle &b, const bool tracking) |
Appends to a bottle all data needed to change the tracking mode. More... | |
static void | addTokenOption (yarp::os::Bottle &b, const double token) |
Appends to a bottle a token to be exchanged with the solver. More... | |
static yarp::os::Bottle * | getTargetOption (const yarp::os::Bottle &b) |
Retrieves commanded target data from a bottle. More... | |
static yarp::os::Bottle * | getEndEffectorPoseOption (const yarp::os::Bottle &b) |
Retrieves the end-effector pose data. More... | |
static yarp::os::Bottle * | getJointsOption (const yarp::os::Bottle &b) |
Retrieves the joints configuration data. More... | |
static bool | getTokenOption (const yarp::os::Bottle &b, double *token) |
Retrieves the token from the bottle. More... | |
static bool | computeFixationPointData (iKinChain &eyeL, iKinChain &eyeR, yarp::sig::Vector &fp) |
Retrieves current fixation point given the current kinematics configuration of the eyes. More... | |
static bool | computeFixationPointData (iKinChain &eyeL, iKinChain &eyeR, yarp::sig::Vector &fp, yarp::sig::Matrix &J) |
Retrieves current fixation point and its Jacobian wrt eyes tilt-pan-vergence dofs given the current kinematics configuration of the eyes. More... | |
Static Protected Member Functions | |
static void | addVectorOption (yarp::os::Bottle &b, const int vcb, const yarp::sig::Vector &v) |
static bool | getDesiredOption (const yarp::os::Bottle &reply, yarp::sig::Vector &xdhat, yarp::sig::Vector &odhat, yarp::sig::Vector &qdhat) |
Helper class providing useful methods to deal with Cartesian Solver options.
|
static |
Appends to a bottle all data needed to reconfigure chain's dof.
b | is the bottle where to append the data. |
dof | is the vector of new chain's dof configuration. |
Definition at line 93 of file iKinHlp.cpp.
|
static |
Appends to a bottle all data needed to modify joints rest position.
b | is the bottle where to append the data. |
restPos | is the vector of new joints rest position expressed in [deg]. |
Definition at line 100 of file iKinHlp.cpp.
|
static |
Appends to a bottle all data needed to modify joints rest weights.
b | is the bottle where to append the data. |
restWeights | is the vector of new joints rest weights. |
Definition at line 107 of file iKinHlp.cpp.
|
static |
Appends to a bottle all data needed to change the tracking mode.
b | is the bottle where to append the data. |
tracking | true to enable tracking mode. |
Definition at line 127 of file iKinHlp.cpp.
|
static |
Appends to a bottle all data needed to change the pose mode.
b | is the bottle where to append the data. |
pose | is the new pose mode. IKINCTRL_POSE_FULL => complete pose control. IKINCTRL_POSE_XYZ => translational part of pose controlled. |
Definition at line 114 of file iKinHlp.cpp.
|
static |
Appends to a bottle all data needed to command a target.
b | is the bottle where to append the data. |
xd | is the target [7-components vector]. |
Definition at line 86 of file iKinHlp.cpp.
|
static |
Appends to a bottle a token to be exchanged with the solver.
token. |
Definition at line 140 of file iKinHlp.cpp.
|
staticprotected |
Definition at line 26 of file iKinHlp.cpp.
|
static |
Retrieves current fixation point given the current kinematics configuration of the eyes.
eyeL | the current configuration of the left eye. |
eyeR | the current configuration of the right eye. |
fp | the Vector where to store the fixation point coordinates. |
|
static |
Retrieves current fixation point and its Jacobian wrt eyes tilt-pan-vergence dofs given the current kinematics configuration of the eyes.
eyeL | the current configuration of the left eye. |
eyeR | the current configuration of the right eye. |
fp | the Vector where to store the fixation point coordinates. |
J | the fixation point Jacobian wrt eyes configuration. |
|
staticprotected |
Definition at line 38 of file iKinHlp.cpp.
|
static |
Retrieves the end-effector pose data.
b | is the bottle containing the data to be retrieved. |
Definition at line 156 of file iKinHlp.cpp.
|
static |
Retrieves the joints configuration data.
b | is the bottle containing the data to be retrieved. |
Definition at line 163 of file iKinHlp.cpp.
|
static |
Retrieves commanded target data from a bottle.
b | is the bottle containing the data to be retrieved. |
Definition at line 149 of file iKinHlp.cpp.
|
static |
Retrieves the token from the bottle.
b | is the bottle containing the data to be retrieved. |
token | is the pointer where to return the token. |
Definition at line 170 of file iKinHlp.cpp.