pinocchio  3.9.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Loading...
Searching...
No Matches
frames.hpp
1//
2// Copyright (c) 2025 INRIA
3//
4
5#ifndef __pinocchio_parsers_graph_frames_hpp__
6#define __pinocchio_parsers_graph_frames_hpp__
7
8#include "pinocchio/parsers/graph/fwd.hpp"
9
10#include "pinocchio/multibody/frame.hpp"
11
12#include <boost/variant/variant.hpp>
13
14namespace pinocchio
15{
16 namespace graph
17 {
18 struct BodyFrame
19 {
24 Inertia inertia = Inertia::Identity();
25
27
28 BodyFrame() = default;
29 explicit BodyFrame(const pinocchio::Inertia & in)
30 : inertia(in)
31 {
32 }
33 };
34
35 struct SensorFrame
36 {
38
39 SensorFrame() = default;
40 };
41
42 struct OpFrame
43 {
45
46 OpFrame() = default;
47 };
48
49 typedef boost::variant<BodyFrame, SensorFrame, OpFrame> FrameVariant;
50
51 } // namespace graph
52} // namespace pinocchio
53#endif // ifndef __pinocchio_parsers_graph_frames_hpp__
Main pinocchio namespace.
Definition treeview.dox:11
FrameType
Enum on the possible types of frames.
Definition frame.hpp:32
@ BODY
body frame: attached to the collision, inertial or visual properties of a link
Definition frame.hpp:36
@ SENSOR
sensor frame: defined in a sensor element
Definition frame.hpp:38
@ OP_FRAME
operational frame: user-defined frames that are defined at runtime
Definition frame.hpp:33
Inertia inertia
Spatial inertia of the body, expressed at its center of mass (CoM).
Definition frames.hpp:24