Public Types | Public Member Functions | Public Attributes | List of all members
pinocchio::ModelItem< Derived > Struct Template Reference

#include <model-item.hpp>

Inheritance diagram for pinocchio::ModelItem< Derived >:
Inheritance graph
[legend]

Public Types

enum  { Options = traits<Derived>::Options }
 
typedef SE3Tpl< Scalar, OptionsSE3
 
- Public Types inherited from pinocchio::NumericalBase< Derived >
typedef traits< Derived >::Scalar Scalar
 

Public Member Functions

 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

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< Derived >::Scalar Scalar
 

Detailed Description

template<typename Derived>
struct pinocchio::ModelItem< Derived >

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

Member Typedef Documentation

◆ SE3

template<typename Derived >
typedef SE3Tpl<Scalar, Options> pinocchio::ModelItem< Derived >::SE3

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

Member Enumeration Documentation

◆ anonymous enum

template<typename Derived >
anonymous enum
Enumerator
Options 

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

Constructor & Destructor Documentation

◆ ModelItem() [1/2]

template<typename Derived >
pinocchio::ModelItem< Derived >::ModelItem ( )
inline

Default constructor of ModelItem.

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

◆ ModelItem() [2/2]

template<typename Derived >
pinocchio::ModelItem< Derived >::ModelItem ( const std::string &  name,
const JointIndex  parent_joint,
const FrameIndex  parent_frame,
const SE3 frame_placement 
)
inline

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

Parameters
[in]nameName of the frame.
[in]parent_jointIndex of the parent joint in the kinematic tree.
[in]parent_frameIndex of the parent frame in the kinematic tree.
[in]frame_placementPlacement of the frame wrt the parent joint frame.

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

Member Function Documentation

◆ operator==()

template<typename Derived >
bool pinocchio::ModelItem< Derived >::operator== ( const ModelItem< Derived > &  other) const
inline

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

Member Data Documentation

◆ name

template<typename Derived >
std::string pinocchio::ModelItem< Derived >::name

Name of the kinematic element.

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

◆ parentFrame

template<typename Derived >
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 Derived >
JointIndex pinocchio::ModelItem< Derived >::parentJoint

Index of the parent joint.

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

◆ placement

template<typename Derived >
SE3 pinocchio::ModelItem< Derived >::placement

Position of kinematic element in parent joint frame.

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

◆ Scalar

template<typename Derived >
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef traits<Derived>::Scalar pinocchio::ModelItem< Derived >::Scalar

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


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


pinocchio
Author(s):
autogenerated on Mon Dec 16 2024 03:41:08