3 #ifndef FLATBUFFERS_GENERATED_ARMCONTROLSTATE_GRL_FLATBUFFER_H_ 4 #define FLATBUFFERS_GENERATED_ARMCONTROLSTATE_GRL_FLATBUFFER_H_ 6 #include "flatbuffers/flatbuffers.h" 12 namespace flatbuffer {
17 namespace flatbuffer {
27 namespace flatbuffer {
53 static const char *names[] = {
"NONE",
"StartArm",
"StopArm",
"PauseArm",
"ShutdownArm",
"TeachArm",
"MoveArmTrajectory",
"MoveArmJointServo",
"MoveArmCartesianServo",
nullptr };
62 bool Verify(flatbuffers::Verifier &verifier)
const {
63 return VerifyTableStart(verifier) &&
69 flatbuffers::FlatBufferBuilder &
fbb_;
71 StartArmBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
73 flatbuffers::Offset<StartArm>
Finish() {
74 auto o = flatbuffers::Offset<StartArm>(fbb_.EndTable(start_, 0));
79 inline flatbuffers::Offset<StartArm>
CreateStartArm(flatbuffers::FlatBufferBuilder &_fbb) {
84 struct StopArm FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
85 bool Verify(flatbuffers::Verifier &verifier)
const {
86 return VerifyTableStart(verifier) &&
92 flatbuffers::FlatBufferBuilder &
fbb_;
94 StopArmBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
96 flatbuffers::Offset<StopArm>
Finish() {
97 auto o = flatbuffers::Offset<StopArm>(fbb_.EndTable(start_, 0));
102 inline flatbuffers::Offset<StopArm>
CreateStopArm(flatbuffers::FlatBufferBuilder &_fbb) {
107 struct PauseArm FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
108 bool Verify(flatbuffers::Verifier &verifier)
const {
109 return VerifyTableStart(verifier) &&
115 flatbuffers::FlatBufferBuilder &
fbb_;
117 PauseArmBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
120 auto o = flatbuffers::Offset<PauseArm>(fbb_.EndTable(start_, 0));
125 inline flatbuffers::Offset<PauseArm>
CreatePauseArm(flatbuffers::FlatBufferBuilder &_fbb) {
130 struct TeachArm FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
131 bool Verify(flatbuffers::Verifier &verifier)
const {
132 return VerifyTableStart(verifier) &&
138 flatbuffers::FlatBufferBuilder &
fbb_;
140 TeachArmBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
143 auto o = flatbuffers::Offset<TeachArm>(fbb_.EndTable(start_, 0));
148 inline flatbuffers::Offset<TeachArm>
CreateTeachArm(flatbuffers::FlatBufferBuilder &_fbb) {
153 struct ShutdownArm FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
154 bool Verify(flatbuffers::Verifier &verifier)
const {
155 return VerifyTableStart(verifier) &&
161 flatbuffers::FlatBufferBuilder &
fbb_;
163 ShutdownArmBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
165 flatbuffers::Offset<ShutdownArm>
Finish() {
166 auto o = flatbuffers::Offset<ShutdownArm>(fbb_.EndTable(start_, 0));
171 inline flatbuffers::Offset<ShutdownArm>
CreateShutdownArm(flatbuffers::FlatBufferBuilder &_fbb) {
177 const flatbuffers::Vector<flatbuffers::Offset<grl::flatbuffer::JointState>> *
traj()
const {
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<grl::flatbuffer::JointState>> *>(4); }
178 bool Verify(flatbuffers::Verifier &verifier)
const {
179 return VerifyTableStart(verifier) &&
180 VerifyField<flatbuffers::uoffset_t>(verifier, 4 ) &&
181 verifier.Verify(traj()) &&
182 verifier.VerifyVectorOfTables(traj()) &&
188 flatbuffers::FlatBufferBuilder &
fbb_;
190 void add_traj(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<grl::flatbuffer::JointState>>> traj) { fbb_.AddOffset(4, traj); }
193 flatbuffers::Offset<MoveArmTrajectory>
Finish() {
194 auto o = flatbuffers::Offset<MoveArmTrajectory>(fbb_.EndTable(start_, 1));
200 flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<grl::flatbuffer::JointState>>> traj = 0) {
208 bool Verify(flatbuffers::Verifier &verifier)
const {
209 return VerifyTableStart(verifier) &&
210 VerifyField<flatbuffers::uoffset_t>(verifier, 4 ) &&
211 verifier.VerifyTable(goal()) &&
217 flatbuffers::FlatBufferBuilder &
fbb_;
219 void add_goal(flatbuffers::Offset<grl::flatbuffer::JointState> goal) { fbb_.AddOffset(4, goal); }
222 flatbuffers::Offset<MoveArmJointServo>
Finish() {
223 auto o = flatbuffers::Offset<MoveArmJointServo>(fbb_.EndTable(start_, 1));
229 flatbuffers::Offset<grl::flatbuffer::JointState> goal = 0) {
236 const flatbuffers::String *
parent()
const {
return GetPointer<const flatbuffers::String *>(4); }
238 bool Verify(flatbuffers::Verifier &verifier)
const {
239 return VerifyTableStart(verifier) &&
240 VerifyField<flatbuffers::uoffset_t>(verifier, 4 ) &&
241 verifier.Verify(parent()) &&
242 VerifyField<grl::flatbuffer::Pose>(verifier, 6 ) &&
248 flatbuffers::FlatBufferBuilder &
fbb_;
250 void add_parent(flatbuffers::Offset<flatbuffers::String> parent) { fbb_.AddOffset(4, parent); }
254 flatbuffers::Offset<MoveArmCartesianServo>
Finish() {
255 auto o = flatbuffers::Offset<MoveArmCartesianServo>(fbb_.EndTable(start_, 2));
261 flatbuffers::Offset<flatbuffers::String> parent = 0,
269 struct ArmControlState FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
270 const flatbuffers::String *
name()
const {
return GetPointer<const flatbuffers::String *>(4); }
272 double timeStamp()
const {
return GetField<double>(8, 0); }
274 const void *
state()
const {
return GetPointer<const void *>(12); }
275 bool Verify(flatbuffers::Verifier &verifier)
const {
276 return VerifyTableStart(verifier) &&
277 VerifyField<flatbuffers::uoffset_t>(verifier, 4 ) &&
278 verifier.Verify(name()) &&
279 VerifyField<int64_t>(verifier, 6 ) &&
280 VerifyField<double>(verifier, 8 ) &&
281 VerifyField<uint8_t>(verifier, 10 ) &&
282 VerifyField<flatbuffers::uoffset_t>(verifier, 12 ) &&
289 flatbuffers::FlatBufferBuilder &
fbb_;
291 void add_name(flatbuffers::Offset<flatbuffers::String> name) { fbb_.AddOffset(4, name); }
293 void add_timeStamp(
double timeStamp) { fbb_.AddElement<
double>(8, timeStamp, 0); }
295 void add_state(flatbuffers::Offset<void> state) { fbb_.AddOffset(12, state); }
298 flatbuffers::Offset<ArmControlState>
Finish() {
299 auto o = flatbuffers::Offset<ArmControlState>(fbb_.EndTable(start_, 5));
305 flatbuffers::Offset<flatbuffers::String> name = 0,
306 int64_t sequenceNumber = 0,
307 double timeStamp = 0,
309 flatbuffers::Offset<void> state = 0) {
319 struct ArmControlSeries FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
320 const flatbuffers::Vector<flatbuffers::Offset<ArmControlState>> *
states()
const {
return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<ArmControlState>> *>(4); }
321 bool Verify(flatbuffers::Verifier &verifier)
const {
322 return VerifyTableStart(verifier) &&
323 VerifyField<flatbuffers::uoffset_t>(verifier, 4 ) &&
324 verifier.Verify(states()) &&
325 verifier.VerifyVectorOfTables(states()) &&
331 flatbuffers::FlatBufferBuilder &
fbb_;
333 void add_states(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<ArmControlState>>> states) { fbb_.AddOffset(4, states); }
336 flatbuffers::Offset<ArmControlSeries>
Finish() {
337 auto o = flatbuffers::Offset<ArmControlSeries>(fbb_.EndTable(start_, 1));
343 flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<ArmControlState>>> states = 0) {
352 case ArmState_StartArm:
return verifier.VerifyTable(reinterpret_cast<const StartArm *>(union_obj));
353 case ArmState_StopArm:
return verifier.VerifyTable(reinterpret_cast<const StopArm *>(union_obj));
354 case ArmState_PauseArm:
return verifier.VerifyTable(reinterpret_cast<const PauseArm *>(union_obj));
355 case ArmState_ShutdownArm:
return verifier.VerifyTable(reinterpret_cast<const ShutdownArm *>(union_obj));
356 case ArmState_TeachArm:
return verifier.VerifyTable(reinterpret_cast<const TeachArm *>(union_obj));
360 default:
return false;
379 #endif // FLATBUFFERS_GENERATED_ARMCONTROLSTATE_GRL_FLATBUFFER_H_
flatbuffers::Offset< MoveArmCartesianServo > CreateMoveArmCartesianServo(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::String > parent=0, const grl::flatbuffer::Pose *goal=0)
void add_goal(const grl::flatbuffer::Pose *goal)
const flatbuffers::String * parent() const
ArmControlSeriesBuilder(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::FlatBufferBuilder & fbb_
const flatbuffers::Vector< flatbuffers::Offset< grl::flatbuffer::JointState > > * traj() const
ArmControlStateBuilder(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::Offset< ArmControlState > Finish()
void add_traj(flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< grl::flatbuffer::JointState >>> traj)
void add_name(flatbuffers::Offset< flatbuffers::String > name)
flatbuffers::Offset< StopArm > CreateStopArm(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::FlatBufferBuilder & fbb_
flatbuffers::Offset< ArmControlSeries > Finish()
flatbuffers::Offset< StartArm > Finish()
const char * ArmControlSeriesExtension()
MoveArmTrajectoryBuilder(flatbuffers::FlatBufferBuilder &_fbb)
const grl::flatbuffer::Pose * goal() const
flatbuffers::Offset< MoveArmCartesianServo > Finish()
flatbuffers::Offset< PauseArm > Finish()
flatbuffers::FlatBufferBuilder & fbb_
const char ** EnumNamesArmState()
const char * EnumNameArmState(ArmState e)
const void * state() const
flatbuffers::Offset< ArmControlSeries > CreateArmControlSeries(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< ArmControlState >>> states=0)
flatbuffers::Offset< MoveArmJointServo > CreateMoveArmJointServo(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< grl::flatbuffer::JointState > goal=0)
flatbuffers::FlatBufferBuilder & fbb_
flatbuffers::Offset< ShutdownArm > CreateShutdownArm(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::Offset< MoveArmJointServo > Finish()
void add_parent(flatbuffers::Offset< flatbuffers::String > parent)
TeachArmBuilder(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::FlatBufferBuilder & fbb_
ShutdownArmBuilder(flatbuffers::FlatBufferBuilder &_fbb)
void add_timeStamp(double timeStamp)
void add_states(flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< ArmControlState >>> states)
bool Verify(flatbuffers::Verifier &verifier) const
flatbuffers::uoffset_t start_
flatbuffers::Offset< TeachArm > Finish()
flatbuffers::Offset< StopArm > Finish()
ArmState state_type() const
MoveArmCartesianServoBuilder(flatbuffers::FlatBufferBuilder &_fbb)
MoveArmJointServoBuilder(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::Offset< StartArm > CreateStartArm(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::Offset< ArmControlState > CreateArmControlState(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::String > name=0, int64_t sequenceNumber=0, double timeStamp=0, ArmState state_type=ArmState_NONE, flatbuffers::Offset< void > state=0)
const grl::flatbuffer::JointState * goal() const
flatbuffers::Offset< ShutdownArm > Finish()
bool ArmControlSeriesBufferHasIdentifier(const void *buf)
flatbuffers::FlatBufferBuilder & fbb_
flatbuffers::Offset< PauseArm > CreatePauseArm(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::uoffset_t start_
flatbuffers::FlatBufferBuilder & fbb_
int64_t sequenceNumber() const
flatbuffers::uoffset_t start_
flatbuffers::uoffset_t start_
flatbuffers::uoffset_t start_
void add_state(flatbuffers::Offset< void > state)
const flatbuffers::String * name() const
StartArmBuilder(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::Offset< TeachArm > CreateTeachArm(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::uoffset_t start_
StopArmBuilder(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::FlatBufferBuilder & fbb_
void add_state_type(ArmState state_type)
const char * ArmControlSeriesIdentifier()
const grl::flatbuffer::ArmControlSeries * GetArmControlSeries(const void *buf)
bool VerifyArmControlSeriesBuffer(flatbuffers::Verifier &verifier)
flatbuffers::uoffset_t start_
flatbuffers::Offset< MoveArmTrajectory > CreateMoveArmTrajectory(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< grl::flatbuffer::JointState >>> traj=0)
bool VerifyArmState(flatbuffers::Verifier &verifier, const void *union_obj, ArmState type)
flatbuffers::Offset< MoveArmTrajectory > Finish()
const flatbuffers::Vector< flatbuffers::Offset< ArmControlState > > * states() const
flatbuffers::FlatBufferBuilder & fbb_
PauseArmBuilder(flatbuffers::FlatBufferBuilder &_fbb)
void FinishArmControlSeriesBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< grl::flatbuffer::ArmControlSeries > root)
void add_sequenceNumber(int64_t sequenceNumber)
flatbuffers::uoffset_t start_
flatbuffers::uoffset_t start_
flatbuffers::uoffset_t start_
flatbuffers::FlatBufferBuilder & fbb_
void add_goal(flatbuffers::Offset< grl::flatbuffer::JointState > goal)