build/include/grl/flatbuffer/grl/flatbuffer/KUKAiiwaMonitorConfiguration.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 KUKAiiwaMonitorConfiguration extends Table {
13  public static KUKAiiwaMonitorConfiguration getRootAsKUKAiiwaMonitorConfiguration(ByteBuffer _bb, KUKAiiwaMonitorConfiguration obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public KUKAiiwaMonitorConfiguration __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public String hardwareVersion() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; }
17  public ByteBuffer hardwareVersionAsByteBuffer() { return __vector_as_bytebuffer(4, 1); }
18  public double torqueSensorLimits(int j) { int o = __offset(6); return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
19  public int torqueSensorLimitsLength() { int o = __offset(6); return o != 0 ? __vector_len(o) : 0; }
20  public ByteBuffer torqueSensorLimitsAsByteBuffer() { return __vector_as_bytebuffer(6, 8); }
21  public boolean isReadyToMove() { int o = __offset(8); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
22  public boolean isMastered() { int o = __offset(10); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
23  /**
24  * set kuka tablet "processData" panel UI config strings
25  */
26  public ProcessData processData(int j) { return processData(new ProcessData(), j); }
27  public ProcessData processData(ProcessData obj, int j) { int o = __offset(12); return o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null; }
28  public int processDataLength() { int o = __offset(12); return o != 0 ? __vector_len(o) : 0; }
29 
30  public static int createKUKAiiwaMonitorConfiguration(FlatBufferBuilder builder,
31  int hardwareVersion,
32  int torqueSensorLimits,
33  boolean isReadyToMove,
34  boolean isMastered,
35  int processData) {
36  builder.startObject(5);
37  KUKAiiwaMonitorConfiguration.addProcessData(builder, processData);
38  KUKAiiwaMonitorConfiguration.addTorqueSensorLimits(builder, torqueSensorLimits);
39  KUKAiiwaMonitorConfiguration.addHardwareVersion(builder, hardwareVersion);
40  KUKAiiwaMonitorConfiguration.addIsMastered(builder, isMastered);
41  KUKAiiwaMonitorConfiguration.addIsReadyToMove(builder, isReadyToMove);
43  }
44 
45  public static void startKUKAiiwaMonitorConfiguration(FlatBufferBuilder builder) { builder.startObject(5); }
46  public static void addHardwareVersion(FlatBufferBuilder builder, int hardwareVersionOffset) { builder.addOffset(0, hardwareVersionOffset, 0); }
47  public static void addTorqueSensorLimits(FlatBufferBuilder builder, int torqueSensorLimitsOffset) { builder.addOffset(1, torqueSensorLimitsOffset, 0); }
48  public static int createTorqueSensorLimitsVector(FlatBufferBuilder builder, double[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addDouble(data[i]); return builder.endVector(); }
49  public static void startTorqueSensorLimitsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); }
50  public static void addIsReadyToMove(FlatBufferBuilder builder, boolean isReadyToMove) { builder.addBoolean(2, isReadyToMove, false); }
51  public static void addIsMastered(FlatBufferBuilder builder, boolean isMastered) { builder.addBoolean(3, isMastered, false); }
52  public static void addProcessData(FlatBufferBuilder builder, int processDataOffset) { builder.addOffset(4, processDataOffset, 0); }
53  public static int createProcessDataVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); }
54  public static void startProcessDataVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
55  public static int endKUKAiiwaMonitorConfiguration(FlatBufferBuilder builder) {
56  int o = builder.endObject();
57  return o;
58  }
59 };
60 
static void addTorqueSensorLimits(FlatBufferBuilder builder, int torqueSensorLimitsOffset)
static KUKAiiwaMonitorConfiguration getRootAsKUKAiiwaMonitorConfiguration(ByteBuffer _bb, KUKAiiwaMonitorConfiguration obj)
static void addHardwareVersion(FlatBufferBuilder builder, int hardwareVersionOffset)
static int createKUKAiiwaMonitorConfiguration(FlatBufferBuilder builder, int hardwareVersion, int torqueSensorLimits, boolean isReadyToMove, boolean isMastered, int processData)