3 package grl.flatbuffer;
8 import com.google.flatbuffers.*;
10 @SuppressWarnings(
"unused")
11 public final class KUKAiiwaMonitorConfiguration extends Table {
16 public String
hardwareVersion() {
int o = __offset(4);
return o != 0 ? __string(o + bb_pos) : null; }
18 public double torqueSensorLimits(
int j) {
int o = __offset(6);
return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
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; }
28 public int processDataLength() {
int o = __offset(12);
return o != 0 ? __vector_len(o) : 0; }
31 int hardwareVersionOffset,
32 int torqueSensorLimitsOffset,
33 boolean isReadyToMove,
35 int processDataOffset) {
36 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(); }
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); }
56 int o = builder.endObject();
static void addIsReadyToMove(FlatBufferBuilder builder, boolean isReadyToMove)
static void addTorqueSensorLimits(FlatBufferBuilder builder, int torqueSensorLimitsOffset)
static void addProcessData(FlatBufferBuilder builder, int processDataOffset)
KUKAiiwaMonitorConfiguration __init(int _i, ByteBuffer _bb)
static int createKUKAiiwaMonitorConfiguration(FlatBufferBuilder builder, int hardwareVersionOffset, int torqueSensorLimitsOffset, boolean isReadyToMove, boolean isMastered, int processDataOffset)
static void startProcessDataVector(FlatBufferBuilder builder, int numElems)
static int endKUKAiiwaMonitorConfiguration(FlatBufferBuilder builder)
ProcessData processData(int j)
ByteBuffer hardwareVersionAsByteBuffer()
ProcessData __init(int _i, ByteBuffer _bb)
int torqueSensorLimitsLength()
static KUKAiiwaMonitorConfiguration getRootAsKUKAiiwaMonitorConfiguration(ByteBuffer _bb, KUKAiiwaMonitorConfiguration obj)
double torqueSensorLimits(int j)
static void startKUKAiiwaMonitorConfiguration(FlatBufferBuilder builder)
static void addIsMastered(FlatBufferBuilder builder, boolean isMastered)
ByteBuffer torqueSensorLimitsAsByteBuffer()
static void addHardwareVersion(FlatBufferBuilder builder, int hardwareVersionOffset)
ProcessData processData(ProcessData obj, int j)
static int createTorqueSensorLimitsVector(FlatBufferBuilder builder, double[] data)
static void startTorqueSensorLimitsVector(FlatBufferBuilder builder, int numElems)
static KUKAiiwaMonitorConfiguration getRootAsKUKAiiwaMonitorConfiguration(ByteBuffer _bb)
static int createProcessDataVector(FlatBufferBuilder builder, int[] data)