src/java/grl/src/grl/flatbuffer/KUKAiiwaArmConfiguration.java
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, 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 KUKAiiwaArmConfiguration extends Table {
13  public static KUKAiiwaArmConfiguration getRootAsKUKAiiwaArmConfiguration(ByteBuffer _bb, KUKAiiwaArmConfiguration obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public KUKAiiwaArmConfiguration __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public String name() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; }
17  public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(4, 1); }
18  /**
19  * how commands will be sent to robot
20  */
21  public byte commandInterface() { int o = __offset(6); return o != 0 ? bb.get(o + bb_pos) : 0; }
22  /**
23  * how robot state will be sent to driver
24  */
25  public byte monitorInterface() { int o = __offset(8); return o != 0 ? bb.get(o + bb_pos) : 0; }
26  /**
27  * motion command mode: cartesian, wrench, torque commands
28  */
29  public byte clientCommandMode() { int o = __offset(10); return o != 0 ? bb.get(o + bb_pos) : 0; }
30  /**
31  * The type of commands FRI will use: cartesian, joint
32  */
33  public byte overlayType() { int o = __offset(12); return o != 0 ? bb.get(o + bb_pos) : 0; }
34  /**
35  * position, cartesian impedence, or joint impedence low level controller adjustments
36  */
37  public byte controlMode() { int o = __offset(14); return o != 0 ? bb.get(o + bb_pos) : 0; }
39  public SmartServo smartServoConfig(SmartServo obj) { int o = __offset(16); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
40  public FRI FRIConfig() { return FRIConfig(new FRI()); }
41  public FRI FRIConfig(FRI obj) { int o = __offset(18); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
42  public grl.flatbuffer.LinkObject tools(int j) { return tools(new grl.flatbuffer.LinkObject(), j); }
43  public grl.flatbuffer.LinkObject tools(grl.flatbuffer.LinkObject obj, int j) { int o = __offset(20); return o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null; }
44  public int toolsLength() { int o = __offset(20); return o != 0 ? __vector_len(o) : 0; }
45  /**
46  * set kuka tablet "processData" panel UI config strings
47  */
48  public ProcessData processData(int j) { return processData(new ProcessData(), j); }
49  public ProcessData processData(ProcessData obj, int j) { int o = __offset(22); return o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null; }
50  public int processDataLength() { int o = __offset(22); return o != 0 ? __vector_len(o) : 0; }
51  public String currentMotionCenter() { int o = __offset(24); return o != 0 ? __string(o + bb_pos) : null; }
52  public ByteBuffer currentMotionCenterAsByteBuffer() { return __vector_as_bytebuffer(24, 1); }
53  public boolean requestMonitorProcessData() { int o = __offset(26); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
54 
55  public static int createKUKAiiwaArmConfiguration(FlatBufferBuilder builder,
56  int nameOffset,
57  byte commandInterface,
58  byte monitorInterface,
59  byte clientCommandMode,
60  byte overlayType,
61  byte controlMode,
62  int smartServoConfigOffset,
63  int FRIConfigOffset,
64  int toolsOffset,
65  int processDataOffset,
66  int currentMotionCenterOffset,
67  boolean requestMonitorProcessData) {
68  builder.startObject(12);
69  KUKAiiwaArmConfiguration.addCurrentMotionCenter(builder, currentMotionCenterOffset);
70  KUKAiiwaArmConfiguration.addProcessData(builder, processDataOffset);
71  KUKAiiwaArmConfiguration.addTools(builder, toolsOffset);
72  KUKAiiwaArmConfiguration.addFRIConfig(builder, FRIConfigOffset);
73  KUKAiiwaArmConfiguration.addSmartServoConfig(builder, smartServoConfigOffset);
74  KUKAiiwaArmConfiguration.addName(builder, nameOffset);
75  KUKAiiwaArmConfiguration.addRequestMonitorProcessData(builder, requestMonitorProcessData);
76  KUKAiiwaArmConfiguration.addControlMode(builder, controlMode);
77  KUKAiiwaArmConfiguration.addOverlayType(builder, overlayType);
78  KUKAiiwaArmConfiguration.addClientCommandMode(builder, clientCommandMode);
79  KUKAiiwaArmConfiguration.addMonitorInterface(builder, monitorInterface);
80  KUKAiiwaArmConfiguration.addCommandInterface(builder, commandInterface);
82  }
83 
84  public static void startKUKAiiwaArmConfiguration(FlatBufferBuilder builder) { builder.startObject(12); }
85  public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(0, nameOffset, 0); }
86  public static void addCommandInterface(FlatBufferBuilder builder, byte commandInterface) { builder.addByte(1, commandInterface, 0); }
87  public static void addMonitorInterface(FlatBufferBuilder builder, byte monitorInterface) { builder.addByte(2, monitorInterface, 0); }
88  public static void addClientCommandMode(FlatBufferBuilder builder, byte clientCommandMode) { builder.addByte(3, clientCommandMode, 0); }
89  public static void addOverlayType(FlatBufferBuilder builder, byte overlayType) { builder.addByte(4, overlayType, 0); }
90  public static void addControlMode(FlatBufferBuilder builder, byte controlMode) { builder.addByte(5, controlMode, 0); }
91  public static void addSmartServoConfig(FlatBufferBuilder builder, int smartServoConfigOffset) { builder.addOffset(6, smartServoConfigOffset, 0); }
92  public static void addFRIConfig(FlatBufferBuilder builder, int FRIConfigOffset) { builder.addOffset(7, FRIConfigOffset, 0); }
93  public static void addTools(FlatBufferBuilder builder, int toolsOffset) { builder.addOffset(8, toolsOffset, 0); }
94  public static int createToolsVector(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(); }
95  public static void startToolsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
96  public static void addProcessData(FlatBufferBuilder builder, int processDataOffset) { builder.addOffset(9, processDataOffset, 0); }
97  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(); }
98  public static void startProcessDataVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
99  public static void addCurrentMotionCenter(FlatBufferBuilder builder, int currentMotionCenterOffset) { builder.addOffset(10, currentMotionCenterOffset, 0); }
100  public static void addRequestMonitorProcessData(FlatBufferBuilder builder, boolean requestMonitorProcessData) { builder.addBoolean(11, requestMonitorProcessData, false); }
101  public static int endKUKAiiwaArmConfiguration(FlatBufferBuilder builder) {
102  int o = builder.endObject();
103  return o;
104  }
105 }
106 
static void addCurrentMotionCenter(FlatBufferBuilder builder, int currentMotionCenterOffset)
static void startProcessDataVector(FlatBufferBuilder builder, int numElems)
grl.flatbuffer.LinkObject tools(grl.flatbuffer.LinkObject obj, int j)
static KUKAiiwaArmConfiguration getRootAsKUKAiiwaArmConfiguration(ByteBuffer _bb)
static void addRequestMonitorProcessData(FlatBufferBuilder builder, boolean requestMonitorProcessData)
static void addMonitorInterface(FlatBufferBuilder builder, byte monitorInterface)
static int createKUKAiiwaArmConfiguration(FlatBufferBuilder builder, int nameOffset, byte commandInterface, byte monitorInterface, byte clientCommandMode, byte overlayType, byte controlMode, int smartServoConfigOffset, int FRIConfigOffset, int toolsOffset, int processDataOffset, int currentMotionCenterOffset, boolean requestMonitorProcessData)
static void addSmartServoConfig(FlatBufferBuilder builder, int smartServoConfigOffset)
static void addProcessData(FlatBufferBuilder builder, int processDataOffset)
static void startToolsVector(FlatBufferBuilder builder, int numElems)
static KUKAiiwaArmConfiguration getRootAsKUKAiiwaArmConfiguration(ByteBuffer _bb, KUKAiiwaArmConfiguration obj)
static void addCommandInterface(FlatBufferBuilder builder, byte commandInterface)
static void addClientCommandMode(FlatBufferBuilder builder, byte clientCommandMode)