Constraint on the orientation of a robot joint. More...
#include <hpp/constraints/orientation.hh>
Public Member Functions | |
virtual | ~Orientation () throw () |
void | reference (const matrix3_t &reference) |
Set desired orientation as a rotation matrix. More... | |
const matrix3_t & | reference () const |
Get desired orientation. More... | |
Orientation (const std::string &name, const DevicePtr_t &, const JointPtr_t &joint, const matrix3_t &reference, std::vector< bool > mask) | |
Constructor. More... | |
![]() | |
virtual | ~DifferentiableFunction () |
void | operator() (vectorOut_t result, vectorIn_t argument) const |
Evaluate the function at a given parameter. More... | |
void | jacobian (matrixOut_t jacobian, vectorIn_t argument) const |
Computes the jacobian. More... | |
size_type | inputSize () const |
Get dimension of input vector. More... | |
size_type | inputDerivativeSize () const |
Get dimension of input derivative vector. More... | |
size_type | outputSize () const |
Get dimension of output vector. More... | |
const std::string & | name () const |
Get function name. More... | |
virtual std::ostream & | print (std::ostream &o) const |
Display object in a stream. More... | |
Static Public Member Functions | |
static EIGEN_MAKE_ALIGNED_OPERATOR_NEW OrientationPtr_t | create (const std::string &name, const DevicePtr_t &robot, const JointPtr_t &joint, const matrix3_t &reference, std::vector< bool > mask=boost::assign::list_of(true)(true)(true)) |
Return a shared pointer to a new instance. More... | |
static OrientationPtr_t | create (const DevicePtr_t &robot, const JointPtr_t &joint, const matrix3_t &reference, std::vector< bool > mask=boost::assign::list_of(true)(true)(true)) |
Return a shared pointer to a new instance. More... | |
static size_type | size (std::vector< bool > mask) |
Get size of error with respect to mask. More... | |
Protected Member Functions | |
virtual void | impl_compute (vectorOut_t result, ConfigurationIn_t argument) const throw () |
Compute value of error. More... | |
virtual void | impl_jacobian (matrixOut_t jacobian, ConfigurationIn_t arg) const throw () |
![]() | |
DifferentiableFunction (size_type inputSize, size_type inputDerivativeSize, size_type outputSize, std::string name=std::string()) | |
Concrete class constructor should call this constructor. More... | |
virtual void | impl_compute (vectorOut_t result, vectorIn_t argument) const =0 |
User implementation of function evaluation. More... | |
virtual void | impl_jacobian (matrixOut_t jacobian, vectorIn_t arg) const =0 |
Constraint on the orientation of a robot joint.
The value of the function is defined as the rotation vector of the reference orientation expressed in the frame of the current orientation.
|
inlinevirtual |
hpp::constraints::Orientation::Orientation | ( | const std::string & | name, |
const DevicePtr_t & | , | ||
const JointPtr_t & | joint, | ||
const matrix3_t & | reference, | ||
std::vector< bool > | mask | ||
) |
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 |
Return a shared pointer to a new instance.
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 |
Return a shared pointer to a new instance.
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. |
|
protectedvirtual |
Compute value of error.
argument | configuration of the robot, |
result | error vector |
|
protectedvirtual |
|
inline |
Set desired orientation as a rotation matrix.
|
inline |
Get desired orientation.
|
static |
Get size of error with respect to mask.