3 #ifndef FLATBUFFERS_GENERATED_JOINTSTATE_GRL_FLATBUFFER_H_ 4 #define FLATBUFFERS_GENERATED_JOINTSTATE_GRL_FLATBUFFER_H_ 6 #include "flatbuffers/flatbuffers.h" 10 namespace flatbuffer {
14 struct JointState FLATBUFFERS_FINAL_CLASS :
private flatbuffers::Table {
15 const flatbuffers::Vector<double> *
position()
const {
return GetPointer<const flatbuffers::Vector<double> *>(4); }
16 const flatbuffers::Vector<double> *
velocity()
const {
return GetPointer<const flatbuffers::Vector<double> *>(6); }
17 const flatbuffers::Vector<double> *
acceleration()
const {
return GetPointer<const flatbuffers::Vector<double> *>(8); }
18 const flatbuffers::Vector<double> *
torque()
const {
return GetPointer<const flatbuffers::Vector<double> *>(10); }
19 bool Verify(flatbuffers::Verifier &verifier)
const {
20 return VerifyTableStart(verifier) &&
21 VerifyField<flatbuffers::uoffset_t>(verifier, 4 ) &&
23 VerifyField<flatbuffers::uoffset_t>(verifier, 6 ) &&
25 VerifyField<flatbuffers::uoffset_t>(verifier, 8 ) &&
27 VerifyField<flatbuffers::uoffset_t>(verifier, 10 ) &&
28 verifier.Verify(
torque()) &&
34 flatbuffers::FlatBufferBuilder &
fbb_;
40 JointStateBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); }
42 flatbuffers::Offset<JointState>
Finish() {
43 auto o = flatbuffers::Offset<JointState>(fbb_.EndTable(start_, 4));
48 inline flatbuffers::Offset<JointState>
CreateJointState(flatbuffers::FlatBufferBuilder &_fbb,
49 flatbuffers::Offset<flatbuffers::Vector<double>>
position = 0,
50 flatbuffers::Offset<flatbuffers::Vector<double>>
velocity = 0,
51 flatbuffers::Offset<flatbuffers::Vector<double>>
acceleration = 0,
52 flatbuffers::Offset<flatbuffers::Vector<double>>
torque = 0) {
65 inline void FinishJointStateBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset<grl::flatbuffer::JointState> root) { fbb.Finish(root); }
70 #endif // FLATBUFFERS_GENERATED_JOINTSTATE_GRL_FLATBUFFER_H_ void FinishJointStateBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset< grl::flatbuffer::JointState > root)
JointStateBuilder(flatbuffers::FlatBufferBuilder &_fbb)
bool VerifyJointStateBuffer(flatbuffers::Verifier &verifier)
flatbuffers::uoffset_t start_
const flatbuffers::Vector< double > * acceleration() const
void add_acceleration(flatbuffers::Offset< flatbuffers::Vector< double >> acceleration)
double acceleration(int j)
bool Verify(flatbuffers::Verifier &verifier) const
void add_position(flatbuffers::Offset< flatbuffers::Vector< double >> position)
const flatbuffers::Vector< double > * torque() const
flatbuffers::FlatBufferBuilder & fbb_
const grl::flatbuffer::JointState * GetJointState(const void *buf)
void add_torque(flatbuffers::Offset< flatbuffers::Vector< double >> torque)
void add_velocity(flatbuffers::Offset< flatbuffers::Vector< double >> velocity)
flatbuffers::Offset< JointState > Finish()
flatbuffers::Offset< JointState > CreateJointState(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset< flatbuffers::Vector< double >> position=0, flatbuffers::Offset< flatbuffers::Vector< double >> velocity=0, flatbuffers::Offset< flatbuffers::Vector< double >> acceleration=0, flatbuffers::Offset< flatbuffers::Vector< double >> torque=0)
const flatbuffers::Vector< double > * position() const
const flatbuffers::Vector< double > * velocity() const