robotoc
robotoc - efficient ROBOT Optimal Control solvers
|
Composed of data used to compute the cost function and its derivatives. More...
#include <cost_function_data.hpp>
Public Member Functions | |
CostFunctionData (const Robot &robot) | |
Constructor. More... | |
CostFunctionData () | |
Default constructor. More... | |
~CostFunctionData ()=default | |
Default destructor. More... | |
CostFunctionData (const CostFunctionData &)=default | |
Default copy constructor. More... | |
CostFunctionData & | operator= (const CostFunctionData &)=default |
Default copy operator. More... | |
CostFunctionData (CostFunctionData &&) noexcept=default | |
Default move constructor. More... | |
CostFunctionData & | operator= (CostFunctionData &&) noexcept=default |
Default move assign operator. More... | |
Public Attributes | |
Eigen::VectorXd | qdiff |
Vector used for computing the difference of the configurations in JointSpaceCost. Be allocated only when Robot::hasFloatingBase() is true. Then the size is Robot::dimv(). More... | |
Eigen::VectorXd | q_ref |
Vector used for computing the time-varying reference configuration in ConfigurationCost. The size is Robot::dimq(). More... | |
Eigen::VectorXd | x3d_ref |
Vector used for set the reference position of the end-effector in TaskSpace3DCost. Be allocated only when CostFunction has TaskSpace3DCost. Then the size is 3. More... | |
Eigen::VectorXd | diff_3d |
Vector used for computing the difference of the position of the end-effector in TaskSpace3DCost. Be allocated only when CostFunction has TaskSpace3DCost. Then the size is 3. More... | |
Eigen::VectorXd | diff_6d |
Vector used for computing the difference of the position and rotation of the end-effector in TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace6DCost. Then the size is 6. More... | |
SE3 | x6d_ref |
Vector used for computing the reference SE3 of the end-effector in TaskSpace6DCost. More... | |
SE3 | x6d_ref_inv |
Vector used for computing the inverse of the reference SE3 of the end-effector in TaskSpace6DCost. More... | |
SE3 | diff_x6d |
Vector used for computing the difference of the SE3 of the end-effector in TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace6DCost. More... | |
Eigen::MatrixXd | J_qdiff |
Jacobian of the difference of the configurations used in JointSpaceCost. Be allocated only when Robot::hasFloatingBase() is true. Then the size is Robot::dimv() x Robot::dimv(). More... | |
Eigen::MatrixXd | J_6d |
Jacobian used in TaskSpace3DCost and TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace3DCost or TaskSpace6DCost. Size is 6 x Robot::dimv(). More... | |
Eigen::MatrixXd | J_3d |
Jacobian used in TaskSpace3DCost and TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace3DCost or TaskSpace6DCost. Size is 3 x Robot::dimv(). More... | |
Eigen::MatrixXd | J_66 |
Jacobian used in TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace6DCost. Size is 6 x 6. More... | |
Eigen::MatrixXd | JJ_6d |
Jacobian used in TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace6DCost. Size is 6 x Robot::dimv(). More... | |
Composed of data used to compute the cost function and its derivatives.
robotoc::CostFunctionData::CostFunctionData | ( | const Robot & | robot | ) |
Constructor.
[in] | robot | Robot model. |
robotoc::CostFunctionData::CostFunctionData | ( | ) |
Default constructor.
|
default |
Default destructor.
|
default |
Default copy constructor.
|
defaultnoexcept |
Default move constructor.
|
default |
Default copy operator.
|
defaultnoexcept |
Default move assign operator.
Eigen::VectorXd robotoc::CostFunctionData::diff_3d |
Vector used for computing the difference of the position of the end-effector in TaskSpace3DCost. Be allocated only when CostFunction has TaskSpace3DCost. Then the size is 3.
Eigen::VectorXd robotoc::CostFunctionData::diff_6d |
Vector used for computing the difference of the position and rotation of the end-effector in TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace6DCost. Then the size is 6.
SE3 robotoc::CostFunctionData::diff_x6d |
Vector used for computing the difference of the SE3 of the end-effector in TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace6DCost.
Eigen::MatrixXd robotoc::CostFunctionData::J_3d |
Jacobian used in TaskSpace3DCost and TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace3DCost or TaskSpace6DCost. Size is 3 x Robot::dimv().
Eigen::MatrixXd robotoc::CostFunctionData::J_66 |
Jacobian used in TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace6DCost. Size is 6 x 6.
Eigen::MatrixXd robotoc::CostFunctionData::J_6d |
Jacobian used in TaskSpace3DCost and TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace3DCost or TaskSpace6DCost. Size is 6 x Robot::dimv().
Eigen::MatrixXd robotoc::CostFunctionData::J_qdiff |
Jacobian of the difference of the configurations used in JointSpaceCost. Be allocated only when Robot::hasFloatingBase() is true. Then the size is Robot::dimv() x Robot::dimv().
Eigen::MatrixXd robotoc::CostFunctionData::JJ_6d |
Jacobian used in TaskSpace6DCost. Be allocated only when CostFunction has TaskSpace6DCost. Size is 6 x Robot::dimv().
Eigen::VectorXd robotoc::CostFunctionData::q_ref |
Vector used for computing the time-varying reference configuration in ConfigurationCost. The size is Robot::dimq().
Eigen::VectorXd robotoc::CostFunctionData::qdiff |
Vector used for computing the difference of the configurations in JointSpaceCost. Be allocated only when Robot::hasFloatingBase() is true. Then the size is Robot::dimv().
Eigen::VectorXd robotoc::CostFunctionData::x3d_ref |
Vector used for set the reference position of the end-effector in TaskSpace3DCost. Be allocated only when CostFunction has TaskSpace3DCost. Then the size is 3.
SE3 robotoc::CostFunctionData::x6d_ref |
Vector used for computing the reference SE3 of the end-effector in TaskSpace6DCost.
SE3 robotoc::CostFunctionData::x6d_ref_inv |
Vector used for computing the inverse of the reference SE3 of the end-effector in TaskSpace6DCost.