VrepControlPoint_generated.h
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 #ifndef FLATBUFFERS_GENERATED_VREPCONTROLPOINT_GRL_FLATBUFFER_H_
4 #define FLATBUFFERS_GENERATED_VREPCONTROLPOINT_GRL_FLATBUFFER_H_
5 
6 #include "flatbuffers/flatbuffers.h"
7 
8 #include "Euler_generated.h"
9 #include "Geometry_generated.h"
10 
11 namespace grl {
12 namespace flatbuffer {
13 struct Vector3d;
14 struct Quaternion;
15 struct Pose;
16 struct Wrench;
17 struct Inertia;
18 } // namespace flatbuffer
19 } // namespace grl
20 namespace grl {
21 namespace flatbuffer {
22 struct EulerXYZd;
23 struct EulerRotation;
24 struct EulerPose;
25 struct EulerTranslationParams;
26 struct EulerRotationParams;
27 struct EulerPoseParams;
28 } // namespace flatbuffer
29 } // namespace grl
30 
31 namespace grl {
32 namespace flatbuffer {
33 
34 struct VrepControlPoint;
35 
36 struct VrepControlPoint FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
37  const grl::flatbuffer::Vector3d *position() const { return GetStruct<const grl::flatbuffer::Vector3d *>(4); }
38  const grl::flatbuffer::EulerXYZd *rotation() const { return GetStruct<const grl::flatbuffer::EulerXYZd *>(6); }
39  double relativeVelocity() const { return GetField<double>(8, 1.0); }
40  int32_t bezierPointCount() const { return GetField<int32_t>(10, 1); }
41  double interpolationFactor1() const { return GetField<double>(12, 0.5); }
42  double interpolationFactor2() const { return GetField<double>(14, 0.5); }
43  double virtualDistance() const { return GetField<double>(16, 0.0); }
44  int32_t auxiliaryFlags() const { return GetField<int32_t>(18, 0); }
45  double auxiliaryChannel1() const { return GetField<double>(20, 0.0); }
46  double auxiliaryChannel2() const { return GetField<double>(22, 0.0); }
47  double auxiliaryChannel3() const { return GetField<double>(24, 0.0); }
48  double auxiliaryChannel4() const { return GetField<double>(26, 0.0); }
49  bool Verify(flatbuffers::Verifier &verifier) const {
50  return VerifyTableStart(verifier) &&
51  VerifyField<grl::flatbuffer::Vector3d>(verifier, 4 /* position */) &&
52  VerifyField<grl::flatbuffer::EulerXYZd>(verifier, 6 /* rotation */) &&
53  VerifyField<double>(verifier, 8 /* relativeVelocity */) &&
54  VerifyField<int32_t>(verifier, 10 /* bezierPointCount */) &&
55  VerifyField<double>(verifier, 12 /* interpolationFactor1 */) &&
56  VerifyField<double>(verifier, 14 /* interpolationFactor2 */) &&
57  VerifyField<double>(verifier, 16 /* virtualDistance */) &&
58  VerifyField<int32_t>(verifier, 18 /* auxiliaryFlags */) &&
59  VerifyField<double>(verifier, 20 /* auxiliaryChannel1 */) &&
60  VerifyField<double>(verifier, 22 /* auxiliaryChannel2 */) &&
61  VerifyField<double>(verifier, 24 /* auxiliaryChannel3 */) &&
62  VerifyField<double>(verifier, 26 /* auxiliaryChannel4 */) &&
63  verifier.EndTable();
64  }
65 };
66 
68  flatbuffers::FlatBufferBuilder &fbb_;
69  flatbuffers::uoffset_t start_;
70  void add_position(const grl::flatbuffer::Vector3d *position) { fbb_.AddStruct(4, position); }
71  void add_rotation(const grl::flatbuffer::EulerXYZd *rotation) { fbb_.AddStruct(6, rotation); }
72  void add_relativeVelocity(double relativeVelocity) { fbb_.AddElement<double>(8, relativeVelocity, 1.0); }
73  void add_bezierPointCount(int32_t bezierPointCount) { fbb_.AddElement<int32_t>(10, bezierPointCount, 1); }
74  void add_interpolationFactor1(double interpolationFactor1) { fbb_.AddElement<double>(12, interpolationFactor1, 0.5); }
75  void add_interpolationFactor2(double interpolationFactor2) { fbb_.AddElement<double>(14, interpolationFactor2, 0.5); }
76  void add_virtualDistance(double virtualDistance) { fbb_.AddElement<double>(16, virtualDistance, 0.0); }
77  void add_auxiliaryFlags(int32_t auxiliaryFlags) { fbb_.AddElement<int32_t>(18, auxiliaryFlags, 0); }
78  void add_auxiliaryChannel1(double auxiliaryChannel1) { fbb_.AddElement<double>(20, auxiliaryChannel1, 0.0); }
79  void add_auxiliaryChannel2(double auxiliaryChannel2) { fbb_.AddElement<double>(22, auxiliaryChannel2, 0.0); }
80  void add_auxiliaryChannel3(double auxiliaryChannel3) { fbb_.AddElement<double>(24, auxiliaryChannel3, 0.0); }
81  void add_auxiliaryChannel4(double auxiliaryChannel4) { fbb_.AddElement<double>(26, auxiliaryChannel4, 0.0); }
82  VrepControlPointBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
84  flatbuffers::Offset<VrepControlPoint> Finish() {
85  auto o = flatbuffers::Offset<VrepControlPoint>(fbb_.EndTable(start_, 12));
86  return o;
87  }
88 };
89 
90 inline flatbuffers::Offset<VrepControlPoint> CreateVrepControlPoint(flatbuffers::FlatBufferBuilder &_fbb,
91  const grl::flatbuffer::Vector3d *position = 0,
92  const grl::flatbuffer::EulerXYZd *rotation = 0,
93  double relativeVelocity = 1.0,
94  int32_t bezierPointCount = 1,
95  double interpolationFactor1 = 0.5,
96  double interpolationFactor2 = 0.5,
97  double virtualDistance = 0.0,
98  int32_t auxiliaryFlags = 0,
99  double auxiliaryChannel1 = 0.0,
100  double auxiliaryChannel2 = 0.0,
101  double auxiliaryChannel3 = 0.0,
102  double auxiliaryChannel4 = 0.0) {
103  VrepControlPointBuilder builder_(_fbb);
104  builder_.add_auxiliaryChannel4(auxiliaryChannel4);
105  builder_.add_auxiliaryChannel3(auxiliaryChannel3);
106  builder_.add_auxiliaryChannel2(auxiliaryChannel2);
107  builder_.add_auxiliaryChannel1(auxiliaryChannel1);
108  builder_.add_virtualDistance(virtualDistance);
109  builder_.add_interpolationFactor2(interpolationFactor2);
110  builder_.add_interpolationFactor1(interpolationFactor1);
111  builder_.add_relativeVelocity(relativeVelocity);
112  builder_.add_auxiliaryFlags(auxiliaryFlags);
113  builder_.add_bezierPointCount(bezierPointCount);
114  builder_.add_rotation(rotation);
115  builder_.add_position(position);
116  return builder_.Finish();
117 }
118 
119 inline const grl::flatbuffer::VrepControlPoint *GetVrepControlPoint(const void *buf) { return flatbuffers::GetRoot<grl::flatbuffer::VrepControlPoint>(buf); }
120 
121 inline bool VerifyVrepControlPointBuffer(flatbuffers::Verifier &verifier) { return verifier.VerifyBuffer<grl::flatbuffer::VrepControlPoint>(); }
122 
123 inline void FinishVrepControlPointBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset<grl::flatbuffer::VrepControlPoint> root) { fbb.Finish(root); }
124 
125 } // namespace flatbuffer
126 } // namespace grl
127 
128 #endif // FLATBUFFERS_GENERATED_VREPCONTROLPOINT_GRL_FLATBUFFER_H_
void add_auxiliaryChannel3(double auxiliaryChannel3)
VrepControlPointBuilder(flatbuffers::FlatBufferBuilder &_fbb)
void add_bezierPointCount(int32_t bezierPointCount)
void FinishVrepControlPointBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< grl::flatbuffer::VrepControlPoint > root)
void add_rotation(const grl::flatbuffer::EulerXYZd *rotation)
flatbuffers::Offset< VrepControlPoint > Finish()
void add_auxiliaryChannel2(double auxiliaryChannel2)
bool Verify(flatbuffers::Verifier &verifier) const
void add_interpolationFactor1(double interpolationFactor1)
void add_relativeVelocity(double relativeVelocity)
void add_position(const grl::flatbuffer::Vector3d *position)
const grl::flatbuffer::VrepControlPoint * GetVrepControlPoint(const void *buf)
bool VerifyVrepControlPointBuffer(flatbuffers::Verifier &verifier)
const grl::flatbuffer::Vector3d * position() const
const grl::flatbuffer::EulerXYZd * rotation() const
void add_auxiliaryChannel4(double auxiliaryChannel4)
void add_auxiliaryChannel1(double auxiliaryChannel1)
void add_interpolationFactor2(double interpolationFactor2)
flatbuffers::Offset< VrepControlPoint > CreateVrepControlPoint(flatbuffers::FlatBufferBuilder &_fbb, const grl::flatbuffer::Vector3d *position=0, const grl::flatbuffer::EulerXYZd *rotation=0, double relativeVelocity=1.0, int32_t bezierPointCount=1, double interpolationFactor1=0.5, double interpolationFactor2=0.5, double virtualDistance=0.0, int32_t auxiliaryFlags=0, double auxiliaryChannel1=0.0, double auxiliaryChannel2=0.0, double auxiliaryChannel3=0.0, double auxiliaryChannel4=0.0)