Public Types | Public Member Functions | Public Attributes | List of all members
pinocchio::FrameTpl< _Scalar, _Options > Struct Template Reference

A Plucker coordinate frame attached to a parent joint inside a kinematic tree. More...

#include <frame.hpp>

Inheritance diagram for pinocchio::FrameTpl< _Scalar, _Options >:
Inheritance graph
[legend]

Public Types

enum  { Options = traits<ModelItemDerived>::Options }
 
typedef ModelItem< ModelItemDerivedBase
 
typedef InertiaTpl< Scalar, OptionsInertia
 
typedef pinocchio::JointIndex JointIndex
 
typedef traits< ModelItemDerived >::Scalar Scalar
 
typedef SE3Tpl< Scalar, OptionsSE3
 
- Public Types inherited from pinocchio::ModelItem< FrameTpl< _Scalar, _Options > >
enum  
 
typedef SE3Tpl< Scalar, OptionsSE3
 
- Public Types inherited from pinocchio::NumericalBase< FrameTpl< _Scalar, _Options > >
typedef traits< FrameTpl< _Scalar, _Options > >::Scalar Scalar
 

Public Member Functions

template<typename NewScalar >
FrameTpl< NewScalar, Optionscast () const
 
PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS FrameTpl ()
 Default constructor of a frame. More...
 
PINOCCHIO_COMPILER_DIAGNOSTIC_POP PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS FrameTpl (const FrameTpl &other)
 Copy constructor. More...
 
template<typename S2 , int O2>
PINOCCHIO_COMPILER_DIAGNOSTIC_POP PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS FrameTpl (const FrameTpl< S2, O2 > &other)
 Copy constructor by casting. More...
 
PINOCCHIO_COMPILER_DIAGNOSTIC_POP PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS FrameTpl (const std::string &name, const JointIndex parent_joint, const FrameIndex parent_frame, const SE3 &frame_placement, const FrameType type, const Inertia &inertia=Inertia::Zero())
 Builds a frame defined by its name, its joint parent id, its placement and its type. More...
 
PINOCCHIO_COMPILER_DIAGNOSTIC_POP PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS FrameTpl (const std::string &name, const JointIndex parentJoint, const SE3 &frame_placement, const FrameType type, const Inertia &inertia=Inertia::Zero())
 Builds a frame defined by its name, its joint parent id, its placement and its type. More...
 
template<typename S2 , int O2>
bool operator!= (const FrameTpl< S2, O2 > &other) const
 
PINOCCHIO_COMPILER_DIAGNOSTIC_POP FrameTpl< Scalar, Options > & operator= (const FrameTpl< Scalar, Options > &other)
 Copy assignment operator. It needs to be user-define because references cannot be re-assigned during copy. More...
 
template<typename S2 , int O2>
bool operator== (const FrameTpl< S2, O2 > &other) const
 Equality comparison operator. More...
 
- Public Member Functions inherited from pinocchio::ModelItem< FrameTpl< _Scalar, _Options > >
 ModelItem ()
 Default constructor of ModelItem. More...
 
 ModelItem (const std::string &name, const JointIndex parent_joint, const FrameIndex parent_frame, const SE3 &frame_placement)
 Builds a kinematic element defined by its name, its joint parent id, its parent frame id and its placement. More...
 
bool operator== (const ModelItem &other) const
 

Public Attributes

Inertia inertia
 Inertia information attached to the frame. This inertia will be appended to the inertia supported by the parent joint when calling ModelTpl::addFrame. It won't be processed otherwise by the algorithms. More...
 
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef FrameTpl< _Scalar, _Options > ModelItemDerived
 
std::string name
 Name of the kinematic element. More...
 
PINOCCHIO_DEPRECATED JointIndexparent
 Index of the parent joint. More...
 
FrameIndex parentFrame
 Index of the parent frame. More...
 
JointIndex parentJoint
 Index of the parent joint. More...
 
SE3 placement
 Position of kinematic element in parent joint frame. More...
 
PINOCCHIO_DEPRECATED FrameIndexpreviousFrame
 Index of the previous frame. More...
 
FrameType type
 Type of the frame. More...
 
- Public Attributes inherited from pinocchio::ModelItem< FrameTpl< _Scalar, _Options > >
std::string name
 Name of the kinematic element. More...
 
FrameIndex parentFrame
 Index of the parent frame. More...
 
JointIndex parentJoint
 Index of the parent joint. More...
 
SE3 placement
 Position of kinematic element in parent joint frame. More...
 
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef traits< FrameTpl< _Scalar, _Options > >::Scalar Scalar
 

Detailed Description

template<typename _Scalar, int _Options>
struct pinocchio::FrameTpl< _Scalar, _Options >

A Plucker coordinate frame attached to a parent joint inside a kinematic tree.

Definition at line 55 of file multibody/frame.hpp.

Member Typedef Documentation

◆ Base

template<typename _Scalar , int _Options>
typedef ModelItem<ModelItemDerived> pinocchio::FrameTpl< _Scalar, _Options >::Base

Definition at line 64 of file multibody/frame.hpp.

◆ Inertia

template<typename _Scalar , int _Options>
typedef InertiaTpl<Scalar, Options> pinocchio::FrameTpl< _Scalar, _Options >::Inertia

Definition at line 67 of file multibody/frame.hpp.

◆ JointIndex

template<typename _Scalar , int _Options>
typedef pinocchio::JointIndex pinocchio::FrameTpl< _Scalar, _Options >::JointIndex

Definition at line 68 of file multibody/frame.hpp.

◆ Scalar

template<typename _Scalar , int _Options>
typedef traits<ModelItemDerived>::Scalar pinocchio::FrameTpl< _Scalar, _Options >::Scalar

Definition at line 59 of file multibody/frame.hpp.

◆ SE3

template<typename _Scalar , int _Options>
typedef SE3Tpl<Scalar, Options> pinocchio::FrameTpl< _Scalar, _Options >::SE3

Definition at line 66 of file multibody/frame.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<typename _Scalar , int _Options>
anonymous enum
Enumerator
Options 

Definition at line 60 of file multibody/frame.hpp.

Constructor & Destructor Documentation

◆ FrameTpl() [1/5]

Default constructor of a frame.

Definition at line 75 of file multibody/frame.hpp.

◆ FrameTpl() [2/5]

template<typename _Scalar , int _Options>
PINOCCHIO_COMPILER_DIAGNOSTIC_POP PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS pinocchio::FrameTpl< _Scalar, _Options >::FrameTpl ( const std::string &  name,
const JointIndex  parentJoint,
const SE3 frame_placement,
const FrameType  type,
const Inertia inertia = Inertia::Zero() 
)
inline

Builds a frame defined by its name, its joint parent id, its placement and its type.

Parameters
[in]nameName of the frame.
[in]parentIndex of the parent joint in the kinematic tree.
[in]frame_placementPlacement of the frame wrt the parent joint frame.
[in]typeThe type of the frame, see the enum FrameType.
[in]inertiaInertia info attached to the frame.

Definition at line 96 of file multibody/frame.hpp.

◆ FrameTpl() [3/5]

template<typename _Scalar , int _Options>
PINOCCHIO_COMPILER_DIAGNOSTIC_POP PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS pinocchio::FrameTpl< _Scalar, _Options >::FrameTpl ( const std::string &  name,
const JointIndex  parent_joint,
const FrameIndex  parent_frame,
const SE3 frame_placement,
const FrameType  type,
const Inertia inertia = Inertia::Zero() 
)
inline

Builds a frame defined by its name, its joint parent id, its placement and its type.

Parameters
[in]nameName of the frame.
[in]parentIndex of the parent joint in the kinematic tree.
[in]parentFrameIndex of the parent frame in the kinematic tree.
[in]frame_placementPlacement of the frame wrt the parent joint frame.
[in]typeThe type of the frame, see the enum FrameType.
[in]inertiaInertia info attached to the frame.

Definition at line 123 of file multibody/frame.hpp.

◆ FrameTpl() [4/5]

template<typename _Scalar , int _Options>
PINOCCHIO_COMPILER_DIAGNOSTIC_POP PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS pinocchio::FrameTpl< _Scalar, _Options >::FrameTpl ( const FrameTpl< _Scalar, _Options > &  other)
inline

Copy constructor.

Parameters
[in]otherFrame to copy

Definition at line 146 of file multibody/frame.hpp.

◆ FrameTpl() [5/5]

template<typename _Scalar , int _Options>
template<typename S2 , int O2>
PINOCCHIO_COMPILER_DIAGNOSTIC_POP PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS pinocchio::FrameTpl< _Scalar, _Options >::FrameTpl ( const FrameTpl< S2, O2 > &  other)
inlineexplicit

Copy constructor by casting.

Parameters
[in]otherFrame to copy

Definition at line 164 of file multibody/frame.hpp.

Member Function Documentation

◆ cast()

template<typename _Scalar , int _Options>
template<typename NewScalar >
FrameTpl<NewScalar, Options> pinocchio::FrameTpl< _Scalar, _Options >::cast ( ) const
inline
Returns
An expression of *this with the Scalar type casted to NewScalar.

Definition at line 219 of file multibody/frame.hpp.

◆ operator!=()

template<typename _Scalar , int _Options>
template<typename S2 , int O2>
bool pinocchio::FrameTpl< _Scalar, _Options >::operator!= ( const FrameTpl< S2, O2 > &  other) const
inline
Returns
true if *this is NOT equal to other.

Definition at line 212 of file multibody/frame.hpp.

◆ operator=()

template<typename _Scalar , int _Options>
PINOCCHIO_COMPILER_DIAGNOSTIC_POP FrameTpl<Scalar, Options>& pinocchio::FrameTpl< _Scalar, _Options >::operator= ( const FrameTpl< Scalar, Options > &  other)
inline

Copy assignment operator. It needs to be user-define because references cannot be re-assigned during copy.

Parameters
[in]otherFrame to copy

Definition at line 182 of file multibody/frame.hpp.

◆ operator==()

template<typename _Scalar , int _Options>
template<typename S2 , int O2>
bool pinocchio::FrameTpl< _Scalar, _Options >::operator== ( const FrameTpl< S2, O2 > &  other) const
inline

Equality comparison operator.

Returns
true if *this is equal to other.
Parameters
[in]otherThe frame to which the current frame is compared.

Definition at line 201 of file multibody/frame.hpp.

Member Data Documentation

◆ inertia

template<typename _Scalar , int _Options>
Inertia pinocchio::FrameTpl< _Scalar, _Options >::inertia

Inertia information attached to the frame. This inertia will be appended to the inertia supported by the parent joint when calling ModelTpl::addFrame. It won't be processed otherwise by the algorithms.

Definition at line 248 of file multibody/frame.hpp.

◆ ModelItemDerived

template<typename _Scalar , int _Options>
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef FrameTpl<_Scalar, _Options> pinocchio::FrameTpl< _Scalar, _Options >::ModelItemDerived

Definition at line 58 of file multibody/frame.hpp.

◆ name

template<typename _Scalar , int _Options>
std::string pinocchio::ModelItem< Derived >::name

Name of the kinematic element.

Definition at line 25 of file model-item.hpp.

◆ parent

template<typename _Scalar , int _Options>
PINOCCHIO_DEPRECATED JointIndex& pinocchio::FrameTpl< _Scalar, _Options >::parent

Index of the parent joint.

Deprecated:
use parentJoint instead

Definition at line 231 of file multibody/frame.hpp.

◆ parentFrame

template<typename _Scalar , int _Options>
FrameIndex pinocchio::ModelItem< Derived >::parentFrame

Index of the parent frame.

Parent frame may be unset (to the std::numeric_limits<FrameIndex>::max() value) as it is mostly used as a documentation of the tree, or in third-party libraries. The URDF parser of Pinocchio is setting it to the proper value according to the urdf link-joint tree. In particular, anchor joints of URDF would cause parent frame to be different to joint frame.

Definition at line 36 of file model-item.hpp.

◆ parentJoint

template<typename _Scalar , int _Options>
JointIndex pinocchio::ModelItem< Derived >::parentJoint

Index of the parent joint.

Definition at line 28 of file model-item.hpp.

◆ placement

template<typename _Scalar , int _Options>
SE3 pinocchio::ModelItem< Derived >::placement

Position of kinematic element in parent joint frame.

Definition at line 39 of file model-item.hpp.

◆ previousFrame

template<typename _Scalar , int _Options>
PINOCCHIO_DEPRECATED FrameIndex& pinocchio::FrameTpl< _Scalar, _Options >::previousFrame

Index of the previous frame.

Deprecated:
use parentFrame instead

Definition at line 235 of file multibody/frame.hpp.

◆ type

template<typename _Scalar , int _Options>
FrameType pinocchio::FrameTpl< _Scalar, _Options >::type

Type of the frame.

Definition at line 243 of file multibody/frame.hpp.


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


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:15