build/include/grl/flatbuffer/grl/flatbuffer/MoveArmJointServo.java
Go to the documentation of this file.
1 // automatically generated, do not modify
2 
3 package grl.flatbuffer;
4 
5 import java.nio.*;
6 import java.lang.*;
7 import java.util.*;
8 import com.google.flatbuffers.*;
9 
10 @SuppressWarnings("unused")
11 public final class MoveArmJointServo extends Table {
12  public static MoveArmJointServo getRootAsMoveArmJointServo(ByteBuffer _bb) { return getRootAsMoveArmJointServo(_bb, new MoveArmJointServo()); }
13  public static MoveArmJointServo getRootAsMoveArmJointServo(ByteBuffer _bb, MoveArmJointServo obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public MoveArmJointServo __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public JointState goal() { return goal(new JointState()); }
17  public JointState goal(JointState obj) { int o = __offset(4); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
18 
19  public static int createMoveArmJointServo(FlatBufferBuilder builder,
20  int goal) {
21  builder.startObject(1);
22  MoveArmJointServo.addGoal(builder, goal);
24  }
25 
26  public static void startMoveArmJointServo(FlatBufferBuilder builder) { builder.startObject(1); }
27  public static void addGoal(FlatBufferBuilder builder, int goalOffset) { builder.addOffset(0, goalOffset, 0); }
28  public static int endMoveArmJointServo(FlatBufferBuilder builder) {
29  int o = builder.endObject();
30  return o;
31  }
32 };
33 
static void addGoal(FlatBufferBuilder builder, int goalOffset)
static MoveArmJointServo getRootAsMoveArmJointServo(ByteBuffer _bb, MoveArmJointServo obj)