3 #ifndef FLATBUFFERS_GENERATED_EULER_GRL_FLATBUFFER_H_ 4 #define FLATBUFFERS_GENERATED_EULER_GRL_FLATBUFFER_H_ 6 #include "flatbuffers/flatbuffers.h" 11 namespace flatbuffer {
21 namespace flatbuffer {
26 struct EulerTranslationParams;
27 struct EulerRotationParams;
28 struct EulerPoseParams;
45 static const char *names[] = {
"xyz",
"yzx",
"zxy",
"xzy",
"zyx",
"yxz",
"zxz",
"xyx",
"yzy",
"xzx",
"yxy",
nullptr };
58 EulerXYZd(
double rx,
double ry,
double rz)
59 : rx_(flatbuffers::EndianScalar(rx)), ry_(flatbuffers::EndianScalar(ry)), rz_(flatbuffers::EndianScalar(rz)) { }
61 double rx()
const {
return flatbuffers::EndianScalar(rx_); }
62 double ry()
const {
return flatbuffers::EndianScalar(ry_); }
63 double rz()
const {
return flatbuffers::EndianScalar(rz_); }
79 : r1_(flatbuffers::EndianScalar(r1)), r2_(flatbuffers::EndianScalar(r2)), r3_(flatbuffers::EndianScalar(r3)), eulerOrder_(flatbuffers::EndianScalar(static_cast<int8_t>(eulerOrder))), __padding0(0), __padding1(0), __padding2(0) { (void)__padding0; (void)__padding1; (void)__padding2; }
81 double r1()
const {
return flatbuffers::EndianScalar(r1_); }
82 double r2()
const {
return flatbuffers::EndianScalar(r2_); }
83 double r3()
const {
return flatbuffers::EndianScalar(r3_); }
84 EulerOrder eulerOrder()
const {
return static_cast<EulerOrder>(flatbuffers::EndianScalar(eulerOrder_)); }
95 : position_(position), rotation_(rotation) { }
103 double x()
const {
return GetField<double>(4, 0); }
104 double y()
const {
return GetField<double>(6, 0); }
105 double z()
const {
return GetField<double>(8, 0); }
106 bool Verify(flatbuffers::Verifier &verifier)
const {
107 return VerifyTableStart(verifier) &&
108 VerifyField<double>(verifier, 4 ) &&
109 VerifyField<double>(verifier, 6 ) &&
110 VerifyField<double>(verifier, 8 ) &&
116 flatbuffers::FlatBufferBuilder &
fbb_;
118 void add_x(
double x) { fbb_.AddElement<
double>(4,
x, 0); }
119 void add_y(
double y) { fbb_.AddElement<
double>(6,
y, 0); }
120 void add_z(
double z) { fbb_.AddElement<
double>(8,
z, 0); }
123 flatbuffers::Offset<EulerTranslationParams>
Finish() {
124 auto o = flatbuffers::Offset<EulerTranslationParams>(fbb_.EndTable(start_, 3));
141 double r1()
const {
return GetField<double>(4, 0); }
142 double r2()
const {
return GetField<double>(6, 0); }
143 double r3()
const {
return GetField<double>(8, 0); }
145 bool Verify(flatbuffers::Verifier &verifier)
const {
146 return VerifyTableStart(verifier) &&
147 VerifyField<double>(verifier, 4 ) &&
148 VerifyField<double>(verifier, 6 ) &&
149 VerifyField<double>(verifier, 8 ) &&
150 VerifyField<int8_t>(verifier, 10 ) &&
156 flatbuffers::FlatBufferBuilder &
fbb_;
158 void add_r1(
double r1) { fbb_.AddElement<
double>(4, r1, 0); }
159 void add_r2(
double r2) { fbb_.AddElement<
double>(6, r2, 0); }
160 void add_r3(
double r3) { fbb_.AddElement<
double>(8, r3, 0); }
164 flatbuffers::Offset<EulerRotationParams>
Finish() {
165 auto o = flatbuffers::Offset<EulerRotationParams>(fbb_.EndTable(start_, 4));
183 struct EulerPoseParams FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
186 bool Verify(flatbuffers::Verifier &verifier)
const {
187 return VerifyTableStart(verifier) &&
188 VerifyField<grl::flatbuffer::Vector3d>(verifier, 4 ) &&
189 VerifyField<EulerRotation>(verifier, 6 ) &&
195 flatbuffers::FlatBufferBuilder &
fbb_;
201 flatbuffers::Offset<EulerPoseParams>
Finish() {
202 auto o = flatbuffers::Offset<EulerPoseParams>(fbb_.EndTable(start_, 2));
219 #endif // FLATBUFFERS_GENERATED_EULER_GRL_FLATBUFFER_H_
void add_eulerOrder(EulerOrder eulerOrder)
MANUALLY_ALIGNED_STRUCT(8) EulerXYZd FLATBUFFERS_FINAL_CLASS
flatbuffers::uoffset_t start_
flatbuffers::Offset< EulerPoseParams > CreateEulerPoseParams(flatbuffers::FlatBufferBuilder &_fbb, const grl::flatbuffer::Vector3d *position=0, const EulerRotation *rotation=0)
flatbuffers::Offset< EulerPoseParams > Finish()
flatbuffers::FlatBufferBuilder & fbb_
flatbuffers::Offset< EulerTranslationParams > Finish()
flatbuffers::FlatBufferBuilder & fbb_
EulerOrder eulerOrder() const
EulerRotationParamsBuilder(flatbuffers::FlatBufferBuilder &_fbb)
const char ** EnumNamesEulerOrder()
bool Verify(flatbuffers::Verifier &verifier) const
flatbuffers::Offset< EulerTranslationParams > CreateEulerTranslationParams(flatbuffers::FlatBufferBuilder &_fbb, double x=0, double y=0, double z=0)
void add_rotation(const EulerRotation *rotation)
flatbuffers::Offset< EulerRotationParams > CreateEulerRotationParams(flatbuffers::FlatBufferBuilder &_fbb, double r1=0, double r2=0, double r3=0, EulerOrder eulerOrder=EulerOrder_xyz)
STRUCT_END(EulerXYZd, 24)
const EulerRotation * rotation() const
flatbuffers::FlatBufferBuilder & fbb_
const grl::flatbuffer::Vector3d * position() const
EulerPoseParamsBuilder(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::uoffset_t start_
const char * EnumNameEulerOrder(EulerOrder e)
flatbuffers::Offset< EulerRotationParams > Finish()
void add_position(const grl::flatbuffer::Vector3d *position)
EulerTranslationParamsBuilder(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::uoffset_t start_