Constraint on the relative orientation of two robot joints. More...
#include <hpp/constraints/relative-orientation.hh>
Public Member Functions | |
virtual | ~RelativeOrientation () throw () |
void | reference (const matrix3_t &reference) |
Set desired relative orientation as a rotation matrix. | |
const matrix3_t & | reference () const |
Get desired relative orientation. | |
RelativeOrientation (const std::string &name, const DevicePtr_t &, const JointPtr_t &joint1, const JointPtr_t &joint2, const matrix3_t &reference, std::vector< bool > mask=boost::assign::list_of(true)(true)(true).convert_to_container< std::vector< bool > >()) | |
Constructor. | |
Static Public Member Functions | |
static EIGEN_MAKE_ALIGNED_OPERATOR_NEW RelativeOrientationPtr_t | create (const std::string &name, const DevicePtr_t &robot, const JointPtr_t &joint1, const JointPtr_t &joint2, const matrix3_t &reference, std::vector< bool > mask=boost::assign::list_of(true)(true)(true).convert_to_container< std::vector< bool > >()) |
Return a shared pointer to a new instance. | |
static RelativeOrientationPtr_t | create (const DevicePtr_t &robot, const JointPtr_t &joint1, const JointPtr_t &joint2, const matrix3_t &reference, std::vector< bool > mask=boost::assign::list_of(true)(true)(true).convert_to_container< std::vector< bool > >()) |
Return a shared pointer to a new instance. | |
Protected Member Functions | |
virtual void | impl_compute (vectorOut_t result, ConfigurationIn_t argument) const throw () |
Compute value of error. | |
virtual void | impl_jacobian (matrixOut_t jacobian, ConfigurationIn_t arg) const throw () |
Constraint on the relative orientation of two robot joints.
The value of the function is defined as follows:
where is the desired value of
and
virtual hpp::constraints::RelativeOrientation::~RelativeOrientation | ( | ) | throw () [inline, virtual] |
hpp::constraints::RelativeOrientation::RelativeOrientation | ( | const std::string & | name, |
const DevicePtr_t & | , | ||
const JointPtr_t & | joint1, | ||
const JointPtr_t & | joint2, | ||
const matrix3_t & | reference, | ||
std::vector< bool > | mask = boost::assign::list_of(true)(true)(true).convert_to_container< std::vector< bool > >() |
||
) |
Constructor.
name | the name of the constraints, |
robot | the robot the constraints is applied to, |
joint | the joint the orientation of which is constrained |
reference | reference orientation of the joint, |
mask | which component of the error vector to take into account. |
static EIGEN_MAKE_ALIGNED_OPERATOR_NEW RelativeOrientationPtr_t hpp::constraints::RelativeOrientation::create | ( | const std::string & | name, |
const DevicePtr_t & | robot, | ||
const JointPtr_t & | joint1, | ||
const JointPtr_t & | joint2, | ||
const matrix3_t & | reference, | ||
std::vector< bool > | mask = boost::assign::list_of(true)(true)(true).convert_to_container< std::vector< bool > >() |
||
) | [static] |
Return a shared pointer to a new instance.
name | the name of the constraints, |
robot | the robot the constraints is applied to, |
joint1 | the first joint the orientation of which is constrained |
joint2 | the second joint the orientation of which is constrained |
reference | desired relative orientation ![]() |
mask | which component of the error vector to take into account. |
static RelativeOrientationPtr_t hpp::constraints::RelativeOrientation::create | ( | const DevicePtr_t & | robot, |
const JointPtr_t & | joint1, | ||
const JointPtr_t & | joint2, | ||
const matrix3_t & | reference, | ||
std::vector< bool > | mask = boost::assign::list_of(true)(true)(true).convert_to_container< std::vector< bool > >() |
||
) | [static] |
Return a shared pointer to a new instance.
robot | the robot the constraints is applied to, |
joint1 | the first joint the orientation of which is constrained |
joint2 | the second joint the orientation of which is constrained |
reference | desired relative orientation ![]() |
mask | which component of the error vector to take into account. |
virtual void hpp::constraints::RelativeOrientation::impl_compute | ( | vectorOut_t | result, |
ConfigurationIn_t | argument | ||
) | const throw () [protected, virtual] |
Compute value of error.
argument | configuration of the robot, |
result | error vector |
virtual void hpp::constraints::RelativeOrientation::impl_jacobian | ( | matrixOut_t | jacobian, |
ConfigurationIn_t | arg | ||
) | const throw () [protected, virtual] |
void hpp::constraints::RelativeOrientation::reference | ( | const matrix3_t & | reference | ) | [inline] |
Set desired relative orientation as a rotation matrix.
const matrix3_t& hpp::constraints::RelativeOrientation::reference | ( | ) | const [inline] |
Get desired relative orientation.