5 #ifndef __pinocchio_frame_hpp__ 6 #define __pinocchio_frame_hpp__ 8 #include "pinocchio/spatial/se3.hpp" 9 #include "pinocchio/multibody/fwd.hpp" 22 FIXED_JOINT = 0x1 << 2,
30 template<
typename _Scalar,
int _Options>
33 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
34 typedef pinocchio::JointIndex JointIndex;
35 enum { Options = _Options };
36 typedef _Scalar Scalar;
56 const SE3 & frame_placement,
60 , previousFrame(previousFrame)
70 template<
typename S2,
int O2>
81 template<
typename NewScalar>
112 template<
typename Scalar,
int Options>
113 inline std::ostream & operator << (std::ostream& os, const FrameTpl<Scalar,Options> & f)
118 <<
" paired to (parent joint/ previous frame)" 119 <<
"(" <<f.parent <<
"/" << f.previousFrame <<
")" 121 <<
"with relative placement wrt parent joint:\n" <<
130 #endif // ifndef __pinocchio_frame_hpp__
A Plucker coordinate frame attached to a parent joint inside a kinematic tree.
SE3 placement
Placement of the frame wrt the parent joint.
std::string name
Name of the frame.
JointIndex parent
Index of the parent joint.
FrameTpl(const std::string &name, const JointIndex parent, const FrameIndex previousFrame, const SE3 &frame_placement, const FrameType type)
Builds a frame defined by its name, its joint parent id, its placement and its type.
bool operator==(const FrameTpl< S2, O2 > &other) const
FrameTpl< NewScalar, Options > cast() const
FrameIndex previousFrame
Index of the previous frame.
FrameType type
Type of the frame.
FrameTpl()
Default constructor of a frame.
FrameType
Enum on the possible types of frame.
Main pinocchio namespace.