BT_logger_generated.h
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 
4 #ifndef FLATBUFFERS_GENERATED_BTLOGGER_SERIALIZATION_H_
5 #define FLATBUFFERS_GENERATED_BTLOGGER_SERIALIZATION_H_
6 
8 
9 namespace Serialization {
10 
11 struct PortModel;
12 
13 struct PortConfig;
14 
15 struct TreeNode;
16 
17 struct NodeModel;
18 
19 struct BehaviorTree;
20 
21 struct Timestamp;
22 
23 struct StatusChange;
24 
25 struct StatusChangeLog;
26 
27 enum class NodeStatus : int8_t {
28  IDLE = 0,
29  RUNNING = 1,
30  SUCCESS = 2,
31  FAILURE = 3,
32  MIN = IDLE,
33  MAX = FAILURE
34 };
35 
36 inline const NodeStatus (&EnumValuesNodeStatus())[4] {
37  static const NodeStatus values[] = {
42  };
43  return values;
44 }
45 
46 inline const char * const *EnumNamesNodeStatus() {
47  static const char * const names[] = {
48  "IDLE",
49  "RUNNING",
50  "SUCCESS",
51  "FAILURE",
52  nullptr
53  };
54  return names;
55 }
56 
57 inline const char *EnumNameNodeStatus(NodeStatus e) {
58  if (e < NodeStatus::IDLE || e > NodeStatus::FAILURE) return "";
59  const size_t index = static_cast<int>(e);
60  return EnumNamesNodeStatus()[index];
61 }
62 
63 enum class NodeType : int8_t {
64  UNDEFINED = 0,
65  ACTION = 1,
66  CONDITION = 2,
67  CONTROL = 3,
68  DECORATOR = 4,
69  SUBTREE = 5,
70  MIN = UNDEFINED,
71  MAX = SUBTREE
72 };
73 
74 inline const NodeType (&EnumValuesNodeType())[6] {
75  static const NodeType values[] = {
82  };
83  return values;
84 }
85 
86 inline const char * const *EnumNamesNodeType() {
87  static const char * const names[] = {
88  "UNDEFINED",
89  "ACTION",
90  "CONDITION",
91  "CONTROL",
92  "DECORATOR",
93  "SUBTREE",
94  nullptr
95  };
96  return names;
97 }
98 
99 inline const char *EnumNameNodeType(NodeType e) {
100  if (e < NodeType::UNDEFINED || e > NodeType::SUBTREE) return "";
101  const size_t index = static_cast<int>(e);
102  return EnumNamesNodeType()[index];
103 }
104 
105 enum class PortDirection : int8_t {
106  INPUT = 0,
107  OUTPUT = 1,
108  INOUT = 2,
109  MIN = INPUT,
110  MAX = INOUT
111 };
112 
114  static const PortDirection values[] = {
118  };
119  return values;
120 }
121 
122 inline const char * const *EnumNamesPortDirection() {
123  static const char * const names[] = {
124  "INPUT",
125  "OUTPUT",
126  "INOUT",
127  nullptr
128  };
129  return names;
130 }
131 
132 inline const char *EnumNamePortDirection(PortDirection e) {
133  if (e < PortDirection::INPUT || e > PortDirection::INOUT) return "";
134  const size_t index = static_cast<int>(e);
135  return EnumNamesPortDirection()[index];
136 }
137 
139  private:
140  uint64_t usec_since_epoch_;
141 
142  public:
143  Timestamp() {
144  memset(this, 0, sizeof(Timestamp));
145  }
146  Timestamp(uint64_t _usec_since_epoch)
147  : usec_since_epoch_(flatbuffers::EndianScalar(_usec_since_epoch)) {
148  }
149  uint64_t usec_since_epoch() const {
150  return flatbuffers::EndianScalar(usec_since_epoch_);
151  }
152 };
153 FLATBUFFERS_STRUCT_END(Timestamp, 8);
154 
156  private:
157  uint16_t uid_;
158  int8_t prev_status_;
159  int8_t status_;
160  int32_t padding0__;
161  Timestamp timestamp_;
162 
163  public:
164  StatusChange() {
165  memset(this, 0, sizeof(StatusChange));
166  }
167  StatusChange(uint16_t _uid, NodeStatus _prev_status, NodeStatus _status, const Timestamp &_timestamp)
168  : uid_(flatbuffers::EndianScalar(_uid)),
169  prev_status_(flatbuffers::EndianScalar(static_cast<int8_t>(_prev_status))),
170  status_(flatbuffers::EndianScalar(static_cast<int8_t>(_status))),
171  padding0__(0),
172  timestamp_(_timestamp) {
173  (void)padding0__;
174  }
175  uint16_t uid() const {
176  return flatbuffers::EndianScalar(uid_);
177  }
178  NodeStatus prev_status() const {
179  return static_cast<NodeStatus>(flatbuffers::EndianScalar(prev_status_));
180  }
181  NodeStatus status() const {
182  return static_cast<NodeStatus>(flatbuffers::EndianScalar(status_));
183  }
184  const Timestamp &timestamp() const {
185  return timestamp_;
186  }
187 };
188 FLATBUFFERS_STRUCT_END(StatusChange, 16);
189 
190 struct PortModel FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
191  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
195  VT_DESCRIPTION = 10
196  };
198  return GetPointer<const flatbuffers::String *>(VT_PORT_NAME);
199  }
201  return static_cast<PortDirection>(GetField<int8_t>(VT_DIRECTION, 0));
202  }
204  return GetPointer<const flatbuffers::String *>(VT_TYPE_INFO);
205  }
207  return GetPointer<const flatbuffers::String *>(VT_DESCRIPTION);
208  }
209  bool Verify(flatbuffers::Verifier &verifier) const {
210  return VerifyTableStart(verifier) &&
211  VerifyOffset(verifier, VT_PORT_NAME) &&
212  verifier.VerifyString(port_name()) &&
213  VerifyField<int8_t>(verifier, VT_DIRECTION) &&
214  VerifyOffset(verifier, VT_TYPE_INFO) &&
215  verifier.VerifyString(type_info()) &&
216  VerifyOffset(verifier, VT_DESCRIPTION) &&
217  verifier.VerifyString(description()) &&
218  verifier.EndTable();
219  }
220 };
221 
224  flatbuffers::uoffset_t start_;
226  fbb_.AddOffset(PortModel::VT_PORT_NAME, port_name);
227  }
228  void add_direction(PortDirection direction) {
229  fbb_.AddElement<int8_t>(PortModel::VT_DIRECTION, static_cast<int8_t>(direction), 0);
230  }
232  fbb_.AddOffset(PortModel::VT_TYPE_INFO, type_info);
233  }
235  fbb_.AddOffset(PortModel::VT_DESCRIPTION, description);
236  }
238  : fbb_(_fbb) {
239  start_ = fbb_.StartTable();
240  }
241  PortModelBuilder &operator=(const PortModelBuilder &);
243  const auto end = fbb_.EndTable(start_);
244  auto o = flatbuffers::Offset<PortModel>(end);
245  return o;
246  }
247 };
248 
255  PortModelBuilder builder_(_fbb);
256  builder_.add_description(description);
257  builder_.add_type_info(type_info);
258  builder_.add_port_name(port_name);
259  builder_.add_direction(direction);
260  return builder_.Finish();
261 }
262 
265  const char *port_name = nullptr,
267  const char *type_info = nullptr,
268  const char *description = nullptr) {
269  auto port_name__ = port_name ? _fbb.CreateString(port_name) : 0;
270  auto type_info__ = type_info ? _fbb.CreateString(type_info) : 0;
271  auto description__ = description ? _fbb.CreateString(description) : 0;
273  _fbb,
274  port_name__,
275  direction,
276  type_info__,
277  description__);
278 }
279 
280 struct PortConfig FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
281  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
282  VT_PORT_NAME = 4,
283  VT_REMAP = 6
284  };
286  return GetPointer<const flatbuffers::String *>(VT_PORT_NAME);
287  }
288  const flatbuffers::String *remap() const {
289  return GetPointer<const flatbuffers::String *>(VT_REMAP);
290  }
291  bool Verify(flatbuffers::Verifier &verifier) const {
292  return VerifyTableStart(verifier) &&
293  VerifyOffset(verifier, VT_PORT_NAME) &&
294  verifier.VerifyString(port_name()) &&
295  VerifyOffset(verifier, VT_REMAP) &&
296  verifier.VerifyString(remap()) &&
297  verifier.EndTable();
298  }
299 };
300 
303  flatbuffers::uoffset_t start_;
305  fbb_.AddOffset(PortConfig::VT_PORT_NAME, port_name);
306  }
308  fbb_.AddOffset(PortConfig::VT_REMAP, remap);
309  }
311  : fbb_(_fbb) {
312  start_ = fbb_.StartTable();
313  }
314  PortConfigBuilder &operator=(const PortConfigBuilder &);
316  const auto end = fbb_.EndTable(start_);
317  auto o = flatbuffers::Offset<PortConfig>(end);
318  return o;
319  }
320 };
321 
326  PortConfigBuilder builder_(_fbb);
327  builder_.add_remap(remap);
328  builder_.add_port_name(port_name);
329  return builder_.Finish();
330 }
331 
334  const char *port_name = nullptr,
335  const char *remap = nullptr) {
336  auto port_name__ = port_name ? _fbb.CreateString(port_name) : 0;
337  auto remap__ = remap ? _fbb.CreateString(remap) : 0;
339  _fbb,
340  port_name__,
341  remap__);
342 }
343 
344 struct TreeNode FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
345  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
346  VT_UID = 4,
351  VT_PORT_REMAPS = 14
352  };
353  uint16_t uid() const {
354  return GetField<uint16_t>(VT_UID, 0);
355  }
357  return GetPointer<const flatbuffers::Vector<uint16_t> *>(VT_CHILDREN_UID);
358  }
359  NodeStatus status() const {
360  return static_cast<NodeStatus>(GetField<int8_t>(VT_STATUS, 0));
361  }
363  return GetPointer<const flatbuffers::String *>(VT_INSTANCE_NAME);
364  }
366  return GetPointer<const flatbuffers::String *>(VT_REGISTRATION_NAME);
367  }
369  return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<PortConfig>> *>(VT_PORT_REMAPS);
370  }
371  bool Verify(flatbuffers::Verifier &verifier) const {
372  return VerifyTableStart(verifier) &&
373  VerifyField<uint16_t>(verifier, VT_UID) &&
374  VerifyOffset(verifier, VT_CHILDREN_UID) &&
375  verifier.VerifyVector(children_uid()) &&
376  VerifyField<int8_t>(verifier, VT_STATUS) &&
377  VerifyOffsetRequired(verifier, VT_INSTANCE_NAME) &&
378  verifier.VerifyString(instance_name()) &&
379  VerifyOffsetRequired(verifier, VT_REGISTRATION_NAME) &&
380  verifier.VerifyString(registration_name()) &&
381  VerifyOffset(verifier, VT_PORT_REMAPS) &&
382  verifier.VerifyVector(port_remaps()) &&
383  verifier.VerifyVectorOfTables(port_remaps()) &&
384  verifier.EndTable();
385  }
386 };
387 
390  flatbuffers::uoffset_t start_;
391  void add_uid(uint16_t uid) {
392  fbb_.AddElement<uint16_t>(TreeNode::VT_UID, uid, 0);
393  }
395  fbb_.AddOffset(TreeNode::VT_CHILDREN_UID, children_uid);
396  }
397  void add_status(NodeStatus status) {
398  fbb_.AddElement<int8_t>(TreeNode::VT_STATUS, static_cast<int8_t>(status), 0);
399  }
401  fbb_.AddOffset(TreeNode::VT_INSTANCE_NAME, instance_name);
402  }
404  fbb_.AddOffset(TreeNode::VT_REGISTRATION_NAME, registration_name);
405  }
407  fbb_.AddOffset(TreeNode::VT_PORT_REMAPS, port_remaps);
408  }
410  : fbb_(_fbb) {
411  start_ = fbb_.StartTable();
412  }
413  TreeNodeBuilder &operator=(const TreeNodeBuilder &);
415  const auto end = fbb_.EndTable(start_);
416  auto o = flatbuffers::Offset<TreeNode>(end);
417  fbb_.Required(o, TreeNode::VT_INSTANCE_NAME);
418  fbb_.Required(o, TreeNode::VT_REGISTRATION_NAME);
419  return o;
420  }
421 };
422 
425  uint16_t uid = 0,
427  NodeStatus status = NodeStatus::IDLE,
429  flatbuffers::Offset<flatbuffers::String> registration_name = 0,
431  TreeNodeBuilder builder_(_fbb);
432  builder_.add_port_remaps(port_remaps);
433  builder_.add_registration_name(registration_name);
434  builder_.add_instance_name(instance_name);
435  builder_.add_children_uid(children_uid);
436  builder_.add_uid(uid);
437  builder_.add_status(status);
438  return builder_.Finish();
439 }
440 
443  uint16_t uid = 0,
444  const std::vector<uint16_t> *children_uid = nullptr,
445  NodeStatus status = NodeStatus::IDLE,
446  const char *instance_name = nullptr,
447  const char *registration_name = nullptr,
448  const std::vector<flatbuffers::Offset<PortConfig>> *port_remaps = nullptr) {
449  auto children_uid__ = children_uid ? _fbb.CreateVector<uint16_t>(*children_uid) : 0;
450  auto instance_name__ = instance_name ? _fbb.CreateString(instance_name) : 0;
451  auto registration_name__ = registration_name ? _fbb.CreateString(registration_name) : 0;
452  auto port_remaps__ = port_remaps ? _fbb.CreateVector<flatbuffers::Offset<PortConfig>>(*port_remaps) : 0;
454  _fbb,
455  uid,
456  children_uid__,
457  status,
458  instance_name__,
459  registration_name__,
460  port_remaps__);
461 }
462 
463 struct NodeModel FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
464  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
466  VT_TYPE = 6,
467  VT_PORTS = 8
468  };
470  return GetPointer<const flatbuffers::String *>(VT_REGISTRATION_NAME);
471  }
472  NodeType type() const {
473  return static_cast<NodeType>(GetField<int8_t>(VT_TYPE, 0));
474  }
476  return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<PortModel>> *>(VT_PORTS);
477  }
478  bool Verify(flatbuffers::Verifier &verifier) const {
479  return VerifyTableStart(verifier) &&
480  VerifyOffsetRequired(verifier, VT_REGISTRATION_NAME) &&
481  verifier.VerifyString(registration_name()) &&
482  VerifyField<int8_t>(verifier, VT_TYPE) &&
483  VerifyOffset(verifier, VT_PORTS) &&
484  verifier.VerifyVector(ports()) &&
485  verifier.VerifyVectorOfTables(ports()) &&
486  verifier.EndTable();
487  }
488 };
489 
492  flatbuffers::uoffset_t start_;
494  fbb_.AddOffset(NodeModel::VT_REGISTRATION_NAME, registration_name);
495  }
496  void add_type(NodeType type) {
497  fbb_.AddElement<int8_t>(NodeModel::VT_TYPE, static_cast<int8_t>(type), 0);
498  }
500  fbb_.AddOffset(NodeModel::VT_PORTS, ports);
501  }
503  : fbb_(_fbb) {
504  start_ = fbb_.StartTable();
505  }
506  NodeModelBuilder &operator=(const NodeModelBuilder &);
508  const auto end = fbb_.EndTable(start_);
509  auto o = flatbuffers::Offset<NodeModel>(end);
510  fbb_.Required(o, NodeModel::VT_REGISTRATION_NAME);
511  return o;
512  }
513 };
514 
517  flatbuffers::Offset<flatbuffers::String> registration_name = 0,
520  NodeModelBuilder builder_(_fbb);
521  builder_.add_ports(ports);
522  builder_.add_registration_name(registration_name);
523  builder_.add_type(type);
524  return builder_.Finish();
525 }
526 
529  const char *registration_name = nullptr,
531  const std::vector<flatbuffers::Offset<PortModel>> *ports = nullptr) {
532  auto registration_name__ = registration_name ? _fbb.CreateString(registration_name) : 0;
533  auto ports__ = ports ? _fbb.CreateVector<flatbuffers::Offset<PortModel>>(*ports) : 0;
535  _fbb,
536  registration_name__,
537  type,
538  ports__);
539 }
540 
541 struct BehaviorTree FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
542  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
544  VT_NODES = 6,
545  VT_NODE_MODELS = 8
546  };
547  uint16_t root_uid() const {
548  return GetField<uint16_t>(VT_ROOT_UID, 0);
549  }
551  return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<TreeNode>> *>(VT_NODES);
552  }
554  return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<NodeModel>> *>(VT_NODE_MODELS);
555  }
556  bool Verify(flatbuffers::Verifier &verifier) const {
557  return VerifyTableStart(verifier) &&
558  VerifyField<uint16_t>(verifier, VT_ROOT_UID) &&
559  VerifyOffset(verifier, VT_NODES) &&
560  verifier.VerifyVector(nodes()) &&
561  verifier.VerifyVectorOfTables(nodes()) &&
562  VerifyOffset(verifier, VT_NODE_MODELS) &&
563  verifier.VerifyVector(node_models()) &&
564  verifier.VerifyVectorOfTables(node_models()) &&
565  verifier.EndTable();
566  }
567 };
568 
571  flatbuffers::uoffset_t start_;
572  void add_root_uid(uint16_t root_uid) {
573  fbb_.AddElement<uint16_t>(BehaviorTree::VT_ROOT_UID, root_uid, 0);
574  }
576  fbb_.AddOffset(BehaviorTree::VT_NODES, nodes);
577  }
579  fbb_.AddOffset(BehaviorTree::VT_NODE_MODELS, node_models);
580  }
582  : fbb_(_fbb) {
583  start_ = fbb_.StartTable();
584  }
585  BehaviorTreeBuilder &operator=(const BehaviorTreeBuilder &);
587  const auto end = fbb_.EndTable(start_);
588  auto o = flatbuffers::Offset<BehaviorTree>(end);
589  return o;
590  }
591 };
592 
595  uint16_t root_uid = 0,
598  BehaviorTreeBuilder builder_(_fbb);
599  builder_.add_node_models(node_models);
600  builder_.add_nodes(nodes);
601  builder_.add_root_uid(root_uid);
602  return builder_.Finish();
603 }
604 
607  uint16_t root_uid = 0,
608  const std::vector<flatbuffers::Offset<TreeNode>> *nodes = nullptr,
609  const std::vector<flatbuffers::Offset<NodeModel>> *node_models = nullptr) {
610  auto nodes__ = nodes ? _fbb.CreateVector<flatbuffers::Offset<TreeNode>>(*nodes) : 0;
611  auto node_models__ = node_models ? _fbb.CreateVector<flatbuffers::Offset<NodeModel>>(*node_models) : 0;
613  _fbb,
614  root_uid,
615  nodes__,
616  node_models__);
617 }
618 
619 struct StatusChangeLog FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
620  enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
622  VT_STATE_CHANGES = 6
623  };
624  const BehaviorTree *behavior_tree() const {
625  return GetPointer<const BehaviorTree *>(VT_BEHAVIOR_TREE);
626  }
628  return GetPointer<const flatbuffers::Vector<const StatusChange *> *>(VT_STATE_CHANGES);
629  }
630  bool Verify(flatbuffers::Verifier &verifier) const {
631  return VerifyTableStart(verifier) &&
632  VerifyOffset(verifier, VT_BEHAVIOR_TREE) &&
633  verifier.VerifyTable(behavior_tree()) &&
634  VerifyOffset(verifier, VT_STATE_CHANGES) &&
635  verifier.VerifyVector(state_changes()) &&
636  verifier.EndTable();
637  }
638 };
639 
642  flatbuffers::uoffset_t start_;
644  fbb_.AddOffset(StatusChangeLog::VT_BEHAVIOR_TREE, behavior_tree);
645  }
647  fbb_.AddOffset(StatusChangeLog::VT_STATE_CHANGES, state_changes);
648  }
650  : fbb_(_fbb) {
651  start_ = fbb_.StartTable();
652  }
655  const auto end = fbb_.EndTable(start_);
657  return o;
658  }
659 };
660 
663  flatbuffers::Offset<BehaviorTree> behavior_tree = 0,
665  StatusChangeLogBuilder builder_(_fbb);
666  builder_.add_state_changes(state_changes);
667  builder_.add_behavior_tree(behavior_tree);
668  return builder_.Finish();
669 }
670 
673  flatbuffers::Offset<BehaviorTree> behavior_tree = 0,
674  const std::vector<StatusChange> *state_changes = nullptr) {
675  auto state_changes__ = state_changes ? _fbb.CreateVectorOfStructs<StatusChange>(*state_changes) : 0;
677  _fbb,
678  behavior_tree,
679  state_changes__);
680 }
681 
682 inline const Serialization::BehaviorTree *GetBehaviorTree(const void *buf) {
683  return flatbuffers::GetRoot<Serialization::BehaviorTree>(buf);
684 }
685 
686 inline const Serialization::BehaviorTree *GetSizePrefixedBehaviorTree(const void *buf) {
687  return flatbuffers::GetSizePrefixedRoot<Serialization::BehaviorTree>(buf);
688 }
689 
691  flatbuffers::Verifier &verifier) {
692  return verifier.VerifyBuffer<Serialization::BehaviorTree>(nullptr);
693 }
694 
696  flatbuffers::Verifier &verifier) {
697  return verifier.VerifySizePrefixedBuffer<Serialization::BehaviorTree>(nullptr);
698 }
699 
703  fbb.Finish(root);
704 }
705 
709  fbb.FinishSizePrefixed(root);
710 }
711 
712 } // namespace Serialization
713 
714 #endif // FLATBUFFERS_GENERATED_BTLOGGER_SERIALIZATION_H_
flatbuffers::Offset< StatusChangeLog > CreateStatusChangeLogDirect(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< BehaviorTree > behavior_tree=0, const std::vector< StatusChange > *state_changes=nullptr)
VT_REGISTRATION_NAME
flatbuffers::Offset< NodeModel > CreateNodeModel(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::String > registration_name=0, NodeType type=NodeType::UNDEFINED, flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< PortModel >>> ports=0)
flatbuffers::Offset< BehaviorTree > CreateBehaviorTree(flatbuffers::FlatBufferBuilder &_fbb, uint16_t root_uid=0, flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< TreeNode >>> nodes=0, flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< NodeModel >>> node_models=0)
flatbuffers::Offset< PortModel > Finish()
flatbuffers::Offset< PortConfig > Finish()
void add_direction(PortDirection direction)
void add_node_models(flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< NodeModel >>> node_models)
bool VerifyBehaviorTreeBuffer(flatbuffers::Verifier &verifier)
const NodeType(& EnumValuesNodeType())[6]
flatbuffers::Offset< BehaviorTree > Finish()
const flatbuffers::Vector< uint16_t > * children_uid() const
const char *const * EnumNamesNodeType()
void add_type_info(flatbuffers::Offset< flatbuffers::String > type_info)
void FinishBehaviorTreeBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< Serialization::BehaviorTree > root)
void Finish(Offset< T > root, const char *file_identifier=nullptr)
Finish serializing a buffer by writing the root offset.
void add_port_remaps(flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< PortConfig >>> port_remaps)
void add_status(NodeStatus status)
void add_registration_name(flatbuffers::Offset< flatbuffers::String > registration_name)
const flatbuffers::Vector< const StatusChange * > * state_changes() const
flatbuffers::Offset< TreeNode > CreateTreeNode(flatbuffers::FlatBufferBuilder &_fbb, uint16_t uid=0, flatbuffers::Offset< flatbuffers::Vector< uint16_t >> children_uid=0, NodeStatus status=NodeStatus::IDLE, flatbuffers::Offset< flatbuffers::String > instance_name=0, flatbuffers::Offset< flatbuffers::String > registration_name=0, flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< PortConfig >>> port_remaps=0)
Offset< String > CreateString(const char *str, size_t len)
Store a string in the buffer, which can contain any binary data.
StatusChangeLogBuilder(flatbuffers::FlatBufferBuilder &_fbb)
const PortDirection(& EnumValuesPortDirection())[3]
const flatbuffers::Vector< flatbuffers::Offset< PortModel > > * ports() const
TreeNodeBuilder(flatbuffers::FlatBufferBuilder &_fbb)
PortConfigBuilder(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::Offset< NodeModel > Finish()
flatbuffers::FlatBufferBuilder & fbb_
FLATBUFFERS_STRUCT_END(Timestamp, 8)
flatbuffers::Offset< TreeNode > CreateTreeNodeDirect(flatbuffers::FlatBufferBuilder &_fbb, uint16_t uid=0, const std::vector< uint16_t > *children_uid=nullptr, NodeStatus status=NodeStatus::IDLE, const char *instance_name=nullptr, const char *registration_name=nullptr, const std::vector< flatbuffers::Offset< PortConfig >> *port_remaps=nullptr)
void add_instance_name(flatbuffers::Offset< flatbuffers::String > instance_name)
flatbuffers::Offset< StatusChangeLog > CreateStatusChangeLog(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< BehaviorTree > behavior_tree=0, flatbuffers::Offset< flatbuffers::Vector< const StatusChange * >> state_changes=0)
const char *const * EnumNamesPortDirection()
Helper class to hold data needed in creation of a FlatBuffer. To serialize data, you typically call o...
flatbuffers::Offset< BehaviorTree > CreateBehaviorTreeDirect(flatbuffers::FlatBufferBuilder &_fbb, uint16_t root_uid=0, const std::vector< flatbuffers::Offset< TreeNode >> *nodes=nullptr, const std::vector< flatbuffers::Offset< NodeModel >> *node_models=nullptr)
BehaviorTreeBuilder(flatbuffers::FlatBufferBuilder &_fbb)
VT_BEHAVIOR_TREE
PortModelBuilder(flatbuffers::FlatBufferBuilder &_fbb)
void add_state_changes(flatbuffers::Offset< flatbuffers::Vector< const StatusChange * >> state_changes)
const flatbuffers::String * type_info() const
const Serialization::BehaviorTree * GetSizePrefixedBehaviorTree(const void *buf)
flatbuffers::Offset< NodeModel > CreateNodeModelDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *registration_name=nullptr, NodeType type=NodeType::UNDEFINED, const std::vector< flatbuffers::Offset< PortModel >> *ports=nullptr)
const Serialization::BehaviorTree * GetBehaviorTree(const void *buf)
bool VerifySizePrefixedBehaviorTreeBuffer(flatbuffers::Verifier &verifier)
flatbuffers::Offset< PortConfig > CreatePortConfig(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::String > port_name=0, flatbuffers::Offset< flatbuffers::String > remap=0)
void add_registration_name(flatbuffers::Offset< flatbuffers::String > registration_name)
const flatbuffers::Vector< flatbuffers::Offset< PortConfig > > * port_remaps() const
const flatbuffers::String * registration_name() const
const flatbuffers::String * instance_name() const
Offset< Vector< const T * > > CreateVectorOfStructs(const T *v, size_t len)
Serialize an array of structs into a FlatBuffer vector.
void add_port_name(flatbuffers::Offset< flatbuffers::String > port_name)
flatbuffers::FlatBufferBuilder & fbb_
flatbuffers::Offset< TreeNode > Finish()
const NodeStatus(& EnumValuesNodeStatus())[4]
const flatbuffers::Vector< flatbuffers::Offset< TreeNode > > * nodes() const
FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(8) Timestamp FLATBUFFERS_FINAL_CLASS
void add_ports(flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< PortModel >>> ports)
const flatbuffers::String * description() const
void add_children_uid(flatbuffers::Offset< flatbuffers::Vector< uint16_t >> children_uid)
Offset< Vector< T > > CreateVector(const T *v, size_t len)
Serialize an array into a FlatBuffer vector.
const flatbuffers::Vector< flatbuffers::Offset< NodeModel > > * node_models() const
VT_CHILDREN_UID
VT_INSTANCE_NAME
flatbuffers::Offset< PortModel > CreatePortModel(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::String > port_name=0, PortDirection direction=PortDirection::INPUT, flatbuffers::Offset< flatbuffers::String > type_info=0, flatbuffers::Offset< flatbuffers::String > description=0)
const char * EnumNameNodeType(NodeType e)
void add_behavior_tree(flatbuffers::Offset< BehaviorTree > behavior_tree)
flatbuffers::FlatBufferBuilder & fbb_
flatbuffers::FlatBufferBuilder & fbb_
void FinishSizePrefixed(Offset< T > root, const char *file_identifier=nullptr)
Finish a buffer with a 32 bit size field pre-fixed (size of the buffer following the size field)...
bool Verify(flatbuffers::Verifier &verifier) const
const flatbuffers::String * port_name() const
const char * EnumNameNodeStatus(NodeStatus e)
flatbuffers::FlatBufferBuilder & fbb_
const char * EnumNamePortDirection(PortDirection e)
const flatbuffers::String * remap() const
void add_nodes(flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< TreeNode >>> nodes)
flatbuffers::Offset< StatusChangeLog > Finish()
const BehaviorTree * behavior_tree() const
const char *const * EnumNamesNodeStatus()
void add_remap(flatbuffers::Offset< flatbuffers::String > remap)
flatbuffers::FlatBufferBuilder & fbb_
flatbuffers::Offset< PortModel > CreatePortModelDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *port_name=nullptr, PortDirection direction=PortDirection::INPUT, const char *type_info=nullptr, const char *description=nullptr)
void add_description(flatbuffers::Offset< flatbuffers::String > description)
NodeModelBuilder(flatbuffers::FlatBufferBuilder &_fbb)
flatbuffers::Offset< PortConfig > CreatePortConfigDirect(flatbuffers::FlatBufferBuilder &_fbb, const char *port_name=nullptr, const char *remap=nullptr)
void FinishSizePrefixedBehaviorTreeBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< Serialization::BehaviorTree > root)
void add_port_name(flatbuffers::Offset< flatbuffers::String > port_name)


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:04