Geometry_generated.h
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 #ifndef FLATBUFFERS_GENERATED_GEOMETRY_GRL_FLATBUFFER_H_
4 #define FLATBUFFERS_GENERATED_GEOMETRY_GRL_FLATBUFFER_H_
5 
6 #include "flatbuffers/flatbuffers.h"
7 
8 
9 namespace grl {
10 namespace flatbuffer {
11 
12 struct Vector3d;
13 struct Quaternion;
14 struct Pose;
15 struct Wrench;
16 struct Inertia;
17 
18 MANUALLY_ALIGNED_STRUCT(8) Vector3d FLATBUFFERS_FINAL_CLASS {
19  private:
20  double x_;
21  double y_;
22  double z_;
23 
24  public:
25  Vector3d(double x, double y, double z)
26  : x_(flatbuffers::EndianScalar(x)), y_(flatbuffers::EndianScalar(y)), z_(flatbuffers::EndianScalar(z)) { }
27 
28  double x() const { return flatbuffers::EndianScalar(x_); }
29  double y() const { return flatbuffers::EndianScalar(y_); }
30  double z() const { return flatbuffers::EndianScalar(z_); }
31 };
32 STRUCT_END(Vector3d, 24);
33 
34 MANUALLY_ALIGNED_STRUCT(8) Quaternion FLATBUFFERS_FINAL_CLASS {
35  private:
36  double x_;
37  double y_;
38  double z_;
39  double w_;
40 
41  public:
42  Quaternion(double x, double y, double z, double w)
43  : x_(flatbuffers::EndianScalar(x)), y_(flatbuffers::EndianScalar(y)), z_(flatbuffers::EndianScalar(z)), w_(flatbuffers::EndianScalar(w)) { }
44 
45  double x() const { return flatbuffers::EndianScalar(x_); }
46  double y() const { return flatbuffers::EndianScalar(y_); }
47  double z() const { return flatbuffers::EndianScalar(z_); }
48  double w() const { return flatbuffers::EndianScalar(w_); }
49 };
50 STRUCT_END(Quaternion, 32);
51 
52 MANUALLY_ALIGNED_STRUCT(8) Pose FLATBUFFERS_FINAL_CLASS {
53  private:
54  Vector3d position_;
55  Quaternion orientation_;
56 
57  public:
58  Pose(const Vector3d &position, const Quaternion &orientation)
59  : position_(position), orientation_(orientation) { }
60 
61  const Vector3d &position() const { return position_; }
62  const Quaternion &orientation() const { return orientation_; }
63 };
64 STRUCT_END(Pose, 56);
65 
66 MANUALLY_ALIGNED_STRUCT(8) Wrench FLATBUFFERS_FINAL_CLASS {
67  private:
68  Vector3d force_;
69  Vector3d torque_;
70  Vector3d force_offset_;
71 
72  public:
73  Wrench(const Vector3d &force, const Vector3d &torque, const Vector3d &force_offset)
74  : force_(force), torque_(torque), force_offset_(force_offset) { }
75 
76  const Vector3d &force() const { return force_; }
77  const Vector3d &torque() const { return torque_; }
78  const Vector3d &force_offset() const { return force_offset_; }
79 };
80 STRUCT_END(Wrench, 72);
81 
82 MANUALLY_ALIGNED_STRUCT(8) Inertia FLATBUFFERS_FINAL_CLASS {
83  private:
84  double mass_;
85  Pose pose_;
86  double ixx_;
87  double ixy_;
88  double ixz_;
89  double iyy_;
90  double iyz_;
91  double izz_;
92 
93  public:
94  Inertia(double mass, const Pose &pose, double ixx, double ixy, double ixz, double iyy, double iyz, double izz)
95  : mass_(flatbuffers::EndianScalar(mass)), pose_(pose), ixx_(flatbuffers::EndianScalar(ixx)), ixy_(flatbuffers::EndianScalar(ixy)), ixz_(flatbuffers::EndianScalar(ixz)), iyy_(flatbuffers::EndianScalar(iyy)), iyz_(flatbuffers::EndianScalar(iyz)), izz_(flatbuffers::EndianScalar(izz)) { }
96 
97  double mass() const { return flatbuffers::EndianScalar(mass_); }
98  const Pose &pose() const { return pose_; }
99  double ixx() const { return flatbuffers::EndianScalar(ixx_); }
100  double ixy() const { return flatbuffers::EndianScalar(ixy_); }
101  double ixz() const { return flatbuffers::EndianScalar(ixz_); }
102  double iyy() const { return flatbuffers::EndianScalar(iyy_); }
103  double iyz() const { return flatbuffers::EndianScalar(iyz_); }
104  double izz() const { return flatbuffers::EndianScalar(izz_); }
105 };
106 STRUCT_END(Inertia, 112);
107 
108 } // namespace flatbuffer
109 } // namespace grl
110 
111 #endif // FLATBUFFERS_GENERATED_GEOMETRY_GRL_FLATBUFFER_H_
MANUALLY_ALIGNED_STRUCT(8) EulerXYZd FLATBUFFERS_FINAL_CLASS
STRUCT_END(EulerXYZd, 24)