build/include/grl/flatbuffer/grl/flatbuffer/KUKAiiwaMonitorState.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 KUKAiiwaMonitorState extends Table {
13  public static KUKAiiwaMonitorState getRootAsKUKAiiwaMonitorState(ByteBuffer _bb, KUKAiiwaMonitorState obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public KUKAiiwaMonitorState __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public JointState measuredState() { return measuredState(new JointState()); }
17  public JointState measuredState(JointState obj) { int o = __offset(4); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
18  public Pose cartesianFlangePose() { return cartesianFlangePose(new Pose()); }
19  public Pose cartesianFlangePose(Pose obj) { int o = __offset(6); return o != 0 ? obj.__init(o + bb_pos, bb) : null; }
20  public JointState jointStateReal() { return jointStateReal(new JointState()); }
21  public JointState jointStateReal(JointState obj) { int o = __offset(8); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
22  /**
23  * FRI can adjust the java commanded position. "Interpolated" is the original Java commanded position.
24  */
26  public JointState jointStateInterpolated(JointState obj) { int o = __offset(10); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
27  /**
28  * The state of the arm as calculated by kuka after
29  * subtracting the known weights of the arm
30  * and any attachments configured to be present.
31  *
32  * Most likely only contains torque.
33  */
34  public JointState externalState() { return externalState(new JointState()); }
35  public JointState externalState(JointState obj) { int o = __offset(12); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
36  public byte operationMode() { int o = __offset(14); return o != 0 ? bb.get(o + bb_pos) : 0; }
37 
38  public static void startKUKAiiwaMonitorState(FlatBufferBuilder builder) { builder.startObject(6); }
39  public static void addMeasuredState(FlatBufferBuilder builder, int measuredStateOffset) { builder.addOffset(0, measuredStateOffset, 0); }
40  public static void addCartesianFlangePose(FlatBufferBuilder builder, int cartesianFlangePoseOffset) { builder.addStruct(1, cartesianFlangePoseOffset, 0); }
41  public static void addJointStateReal(FlatBufferBuilder builder, int jointStateRealOffset) { builder.addOffset(2, jointStateRealOffset, 0); }
42  public static void addJointStateInterpolated(FlatBufferBuilder builder, int jointStateInterpolatedOffset) { builder.addOffset(3, jointStateInterpolatedOffset, 0); }
43  public static void addExternalState(FlatBufferBuilder builder, int externalStateOffset) { builder.addOffset(4, externalStateOffset, 0); }
44  public static void addOperationMode(FlatBufferBuilder builder, byte operationMode) { builder.addByte(5, operationMode, 0); }
45  public static int endKUKAiiwaMonitorState(FlatBufferBuilder builder) {
46  int o = builder.endObject();
47  return o;
48  }
49 };
50 
static void addCartesianFlangePose(FlatBufferBuilder builder, int cartesianFlangePoseOffset)
static void addExternalState(FlatBufferBuilder builder, int externalStateOffset)
static void addJointStateReal(FlatBufferBuilder builder, int jointStateRealOffset)
static void addMeasuredState(FlatBufferBuilder builder, int measuredStateOffset)
static void addOperationMode(FlatBufferBuilder builder, byte operationMode)
static KUKAiiwaMonitorState getRootAsKUKAiiwaMonitorState(ByteBuffer _bb, KUKAiiwaMonitorState obj)
static void addJointStateInterpolated(FlatBufferBuilder builder, int jointStateInterpolatedOffset)