Go to the documentation of this file.
5 #ifndef __pinocchio_multibody_frame_hpp__
6 #define __pinocchio_multibody_frame_hpp__
41 template<
typename _Scalar,
int _Options>
54 template<
typename _Scalar,
int _Options>
57 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
97 const std::string &
name,
99 const SE3 & frame_placement,
124 const std::string &
name,
127 const SE3 & frame_placement,
130 :
Base(
name, parent_joint, parent_frame, frame_placement)
163 template<
typename S2,
int O2>
200 template<
typename S2,
int O2>
211 template<
typename S2,
int O2>
214 return !(*
this == other);
218 template<
typename NewScalar>
224 inertia.template cast<NewScalar>());
252 template<
typename Scalar,
int Options>
255 os <<
"Frame name: " <<
f.name <<
" paired to (parent joint/ parent frame)"
256 <<
"(" <<
f.parentJoint <<
"/" <<
f.parentFrame <<
")" << std::endl
257 <<
"with relative placement wrt parent joint:\n"
258 <<
f.placement <<
"containing inertia:\n"
259 <<
f.inertia << std::endl;
266 #endif // ifndef __pinocchio_multibody_frame_hpp__
bool operator!=(const FrameTpl< S2, O2 > &other) const
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef FrameTpl< _Scalar, _Options > ModelItemDerived
JointIndex parentJoint
Index of the parent joint.
bool operator==(const FrameTpl< S2, O2 > &other) const
Equality comparison operator.
FrameType
Enum on the possible types of frames.
@ SENSOR
sensor frame: defined in a sensor element
#define PINOCCHIO_COMPILER_DIAGNOSTIC_POP
PINOCCHIO_DEPRECATED JointIndex & parent
Index of the parent joint.
PINOCCHIO_COMPILER_DIAGNOSTIC_POP PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS FrameTpl(const FrameTpl &other)
Copy constructor.
SE3 placement
Position of kinematic element in parent joint frame.
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.
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 ...
A Plucker coordinate frame attached to a parent joint inside a kinematic tree.
pinocchio::JointIndex JointIndex
Inertia inertia
Inertia information attached to the frame. This inertia will be appended to the inertia supported by ...
SE3 placement
Position of kinematic element in parent joint frame.
FrameIndex parentFrame
Index of the parent frame.
InertiaTpl< Scalar, Options > Inertia
traits< ModelItemDerived >::Scalar Scalar
SE3Tpl< Scalar, Options > SE3
#define PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS
#define PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH
macros for pragma push/pop/ignore deprecated warnings
std::ostream & operator<<(std::ostream &os, const FrameTpl< Scalar, Options > &f)
PINOCCHIO_COMPILER_DIAGNOSTIC_POP PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS FrameTpl(const FrameTpl< S2, O2 > &other)
Copy constructor by casting.
@ JOINT
joint frame: attached to the child body of a joint (a.k.a. child frame)
PINOCCHIO_DEPRECATED FrameIndex & previousFrame
Index of the previous frame.
@ OP_FRAME
operational frame: user-defined frames that are defined at runtime
FrameIndex parentFrame
Index of the parent frame.
FrameTpl< NewScalar, Options > cast() const
@ FIXED_JOINT
fixed joint frame: joint frame but for a fixed joint
FrameType type
Type of the frame.
std::string name
Name of the kinematic element.
PINOCCHIO_COMPILER_DIAGNOSTIC_PUSH PINOCCHIO_COMPILER_DIAGNOSTIC_IGNORED_DEPRECECATED_DECLARATIONS FrameTpl()
Default constructor of a frame.
Common traits structure to fully define base classes for CRTP.
ModelItem< ModelItemDerived > Base
@ BODY
body frame: attached to the collision, inertial or visual properties of a link
std::string name
Name of the kinematic element.
JointIndex parentJoint
Index of the parent joint.
Main pinocchio namespace.
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.
pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:09