hpp-constraints  4.9.1
Definition of basic geometric constraints for motion planning
hpp::constraints::LockedJoint Class Reference

#include <hpp/constraints/locked-joint.hh>

Inheritance diagram for hpp::constraints::LockedJoint:
Collaboration diagram for hpp::constraints::LockedJoint:

Public Member Functions

virtual ImplicitPtr_t copy () const
 Copy object and return shared pointer to copy. More...
 
size_type rankInConfiguration () const
 Get index of locked degree of freedom in robot configuration vector. More...
 
size_type rankInVelocity () const
 Get index of locked degree of freedom in robot velocity vector. More...
 
size_type configSize () const
 Get the configuration size of the joint. More...
 
size_type numberDof () const
 Get number of degrees of freedom of the joint. More...
 
const LiegroupSpacePtr_tconfigSpace () const
 Get configuration space of locked joint. More...
 
vectorIn_t value () const
 Get the value of the locked joint. More...
 
void value (vectorIn_t value)
 Set the value of the locked joint. More...
 
void rightHandSideFromConfig (ConfigurationIn_t config)
 Set the value of the locked joint from a configuration. More...
 
const JointPtr_tjoint ()
 Return shared pointer to joint. More...
 
const std::string & jointName () const
 Return the joint name. More...
 
std::ostream & print (std::ostream &os) const
 Print object in a stream. More...
 
- Public Member Functions inherited from hpp::constraints::Explicit
virtual DifferentiableFunctionPtr_t explicitFunction () const
 
const segments_toutputConf () const
 Get output configuration variables. More...
 
const segments_toutputVelocity () const
 Get output degrees of freedom. More...
 
const segments_tinputConf () const
 Get input configuration variables. More...
 
const segments_tinputVelocity () const
 Get input degrees of freedom. More...
 
virtual void implicitToExplicitRhs (vectorIn_t implicitRhs, vectorOut_t explicitRhs) const
 
virtual void explicitToImplicitRhs (vectorIn_t explicitRhs, vectorOut_t implicitRhs) const
 
- Public Member Functions inherited from hpp::constraints::Implicit
bool operator== (const Implicit &other) const
 Operator equality. More...
 
virtual ~Implicit ()
 
DifferentiableFunctionfunction () const
 Return a reference to function \(h\). More...
 
const DifferentiableFunctionPtr_tfunctionPtr () const
 Return a reference to function \(h\). More...
 
void rightHandSideFromConfig (ConfigurationIn_t config)
 
void rightHandSide (vectorIn_t rhs)
 
vectorIn_t rightHandSide () const
 Return the right hand side of the equation. More...
 
size_type rhsSize () const HPP_CONSTRAINTS_DEPRECATED
 
size_type parameterSize () const
 
size_type rightHandSideSize () const
 
const ComparisonTypes_tcomparisonType () const
 Return the ComparisonType. More...
 
void comparisonType (const ComparisonTypes_t &comp)
 Set the comparison type. More...
 
bool constantRightHandSide () const HPP_CONSTRAINTS_DEPRECATED
 
vectorOut_t rightHandSide ()
 
vectorOut_t nonConstRightHandSide () HPP_CONSTRAINTS_DEPRECATED
 
void rightHandSideFunction (const DifferentiableFunctionPtr_t &rhsF)
 
const DifferentiableFunctionPtr_trightHandSideFunction () const
 
vectorIn_t rightHandSideAt (const value_type &s)
 

Static Public Member Functions

static LockedJointPtr_t create (const JointPtr_t &joint, const LiegroupElement &value)
 
static LockedJointPtr_t create (const JointPtr_t &joint, const size_type index, vectorIn_t value)
 
static LockedJointPtr_t create (const DevicePtr_t &dev, const size_type index, vectorIn_t value)
 
static LockedJointPtr_t createCopy (LockedJointConstPtr_t other)
 
- Static Public Member Functions inherited from hpp::constraints::Explicit
static ExplicitPtr_t create (const DevicePtr_t &robot, const DifferentiableFunctionPtr_t &function, const segments_t &inputConf, const segments_t &outputConf, const segments_t &inputVelocity, const segments_t &outputVelocity, const ComparisonTypes_t &comp=ComparisonTypes_t()) HPP_CONSTRAINTS_DEPRECATED
 
static ExplicitPtr_t create (const LiegroupSpacePtr_t &configSpace, const DifferentiableFunctionPtr_t &function, const segments_t &inputConf, const segments_t &outputConf, const segments_t &inputVelocity, const segments_t &outputVelocity, const ComparisonTypes_t &comp=ComparisonTypes_t())
 
static ExplicitPtr_t createCopy (const ExplicitPtr_t &other)
 Create a copy and return shared pointer. More...
 
- Static Public Member Functions inherited from hpp::constraints::Implicit
static ImplicitPtr_t create (const DifferentiableFunctionPtr_t &function)
 
static ImplicitPtr_t create (const DifferentiableFunctionPtr_t &function, ComparisonTypes_t comp)
 
static ImplicitPtr_t create (const DifferentiableFunctionPtr_t &function, ComparisonTypes_t comp, vectorIn_t rhs)
 
static ImplicitPtr_t createCopy (const ImplicitPtr_t &other)
 Create a copy and return shared pointer. More...
 

Protected Member Functions

 LockedJoint (const JointPtr_t &joint, const LiegroupElement &value)
 
 LockedJoint (const JointPtr_t &joint, const size_type index, vectorIn_t value)
 
 LockedJoint (const DevicePtr_t &robot, const size_type index, vectorIn_t value)
 
 LockedJoint (const LockedJoint &other)
 Copy constructor. More...
 
virtual bool isEqual (const Implicit &other, bool swapAndTest) const
 
void init (const LockedJointPtr_t &self)
 
- Protected Member Functions inherited from hpp::constraints::Explicit
 Explicit (const DevicePtr_t &robot, const DifferentiableFunctionPtr_t &function, const segments_t &inputConf, const segments_t &outputConf, const segments_t &inputVelocity, const segments_t &outputVelocity, const ComparisonTypes_t &comp) HPP_CONSTRAINTS_DEPRECATED
 
 Explicit (const LiegroupSpacePtr_t &configSpace, const DifferentiableFunctionPtr_t &function, const segments_t &inputConf, const segments_t &outputConf, const segments_t &inputVelocity, const segments_t &outputVelocity, const ComparisonTypes_t &comp)
 
 Explicit (const Explicit &other)
 Copy constructor. More...
 
void init (const ExplicitWkPtr_t &weak)
 
- Protected Member Functions inherited from hpp::constraints::Implicit
 Implicit (const DifferentiableFunctionPtr_t &function, ComparisonTypes_t comp)
 
 Implicit (const DifferentiableFunctionPtr_t &function, ComparisonTypes_t comp, vectorIn_t rhs)
 
 Implicit (const Implicit &other)
 Copy constructor. More...
 
void init (const ImplicitWkPtr_t &weak)
 

Additional Inherited Members

- Protected Attributes inherited from hpp::constraints::Explicit
DifferentiableFunctionPtr_t inputToOutput_
 
segments_t inputConf_
 
segments_t outputConf_
 
segments_t inputVelocity_
 
segments_t outputVelocity_
 

Detailed Description

Implementation of constraint specific to a locked joint.

The implicit formulation as defined in class Implicit is given by

\begin{equation} h (\mathbf{q}) = q_{out} - value \end{equation}

where \(value\) is an element of the configuration space of the locked joint passed to method create.

Note that \(h\) takes values in \(\mathbf{R}^{nv}\) where \(nv\) is the dimension of the joint tangent space.

The explicit formulation is given by

\begin{equation} q_{out} = value + rhs \end{equation}

where coordinates of \(rhs\) corresponding to comparison types different from Equality are set to 0.

As such, the relation between the explicit formulation and the implicit formulation is the default one.

Constructor & Destructor Documentation

◆ LockedJoint() [1/4]

hpp::constraints::LockedJoint::LockedJoint ( const JointPtr_t joint,
const LiegroupElement value 
)
protected

Constructor

Parameters
jointjoint that is locked,
valueof the constant joint config,

◆ LockedJoint() [2/4]

hpp::constraints::LockedJoint::LockedJoint ( const JointPtr_t joint,
const size_type  index,
vectorIn_t  value 
)
protected

Constructor of partial locked joint

Parameters
jointjoint that is locked,
indexfirst locked degree of freedom in the joint,
valueof the constant joint partial config, size of value determines the number of degrees of freedom locked.
Note
valid only for translation joints.

◆ LockedJoint() [3/4]

hpp::constraints::LockedJoint::LockedJoint ( const DevicePtr_t robot,
const size_type  index,
vectorIn_t  value 
)
protected

Constructor of locked degrees of freedom of extra config space

Parameters
robotrobot
indexindex of the first locked extra degree of freedom,
valueof the locked degrees of freedom, size of value determines the number of degrees of freedom locked.

◆ LockedJoint() [4/4]

hpp::constraints::LockedJoint::LockedJoint ( const LockedJoint other)
protected

Copy constructor.

Member Function Documentation

◆ configSize()

size_type hpp::constraints::LockedJoint::configSize ( ) const

Get the configuration size of the joint.

◆ configSpace()

const LiegroupSpacePtr_t& hpp::constraints::LockedJoint::configSpace ( ) const

Get configuration space of locked joint.

◆ copy()

virtual ImplicitPtr_t hpp::constraints::LockedJoint::copy ( ) const
virtual

Copy object and return shared pointer to copy.

Reimplemented from hpp::constraints::Explicit.

◆ create() [1/3]

static LockedJointPtr_t hpp::constraints::LockedJoint::create ( const JointPtr_t joint,
const LiegroupElement value 
)
static

Create locked joint and return shared pointer

Parameters
jointjoint that is locked,
valueof the constant joint config,

◆ create() [2/3]

static LockedJointPtr_t hpp::constraints::LockedJoint::create ( const JointPtr_t joint,
const size_type  index,
vectorIn_t  value 
)
static

Create partial locked joint (only some degrees of freedom)

Parameters
jointjoint that is locked,
indexfirst locked degree of freedom in the joint,
valueof the constant joint partial config, size of value determines the number of degrees of freedom locked.
Note
valid only for translation joints.

◆ create() [3/3]

static LockedJointPtr_t hpp::constraints::LockedJoint::create ( const DevicePtr_t dev,
const size_type  index,
vectorIn_t  value 
)
static

Create locked degrees of freedom of extra config space

Parameters
devrobot
indexindex of the first locked extra degree of freedom,
valueof the locked degrees of freedom, size of value determines the number of degrees of freedom locked.

◆ createCopy()

static LockedJointPtr_t hpp::constraints::LockedJoint::createCopy ( LockedJointConstPtr_t  other)
static

Return shared pointer to copy

Parameters
otherinstance to copy.

◆ init()

void hpp::constraints::LockedJoint::init ( const LockedJointPtr_t self)
protected

◆ isEqual()

virtual bool hpp::constraints::LockedJoint::isEqual ( const Implicit other,
bool  swapAndTest 
) const
protectedvirtual

Test equality with other instance

Parameters
otherobject to copy
swapAndTestwhether we should also check other == this

Reimplemented from hpp::constraints::Implicit.

◆ joint()

const JointPtr_t& hpp::constraints::LockedJoint::joint ( )
inline

Return shared pointer to joint.

◆ jointName()

const std::string& hpp::constraints::LockedJoint::jointName ( ) const
inline

Return the joint name.

◆ numberDof()

size_type hpp::constraints::LockedJoint::numberDof ( ) const

Get number of degrees of freedom of the joint.

◆ print()

std::ostream& hpp::constraints::LockedJoint::print ( std::ostream &  os) const

Print object in a stream.

◆ rankInConfiguration()

size_type hpp::constraints::LockedJoint::rankInConfiguration ( ) const

Get index of locked degree of freedom in robot configuration vector.

◆ rankInVelocity()

size_type hpp::constraints::LockedJoint::rankInVelocity ( ) const

Get index of locked degree of freedom in robot velocity vector.

◆ rightHandSideFromConfig()

void hpp::constraints::LockedJoint::rightHandSideFromConfig ( ConfigurationIn_t  config)

Set the value of the locked joint from a configuration.

◆ value() [1/2]

vectorIn_t hpp::constraints::LockedJoint::value ( ) const

Get the value of the locked joint.

◆ value() [2/2]

void hpp::constraints::LockedJoint::value ( vectorIn_t  value)

Set the value of the locked joint.


The documentation for this class was generated from the following file: