3 package grl.flatbuffer;
8 import com.google.flatbuffers.*;
10 @SuppressWarnings(
"unused")
14 public JointState __init(
int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb;
return this; }
16 public double position(
int j) {
int o = __offset(4);
return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
17 public int positionLength() {
int o = __offset(4);
return o != 0 ? __vector_len(o) : 0; }
19 public double velocity(
int j) {
int o = __offset(6);
return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
20 public int velocityLength() {
int o = __offset(6);
return o != 0 ? __vector_len(o) : 0; }
22 public double acceleration(
int j) {
int o = __offset(8);
return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
25 public double torque(
int j) {
int o = __offset(10);
return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
26 public int torqueLength() {
int o = __offset(10);
return o != 0 ? __vector_len(o) : 0; }
34 builder.startObject(4);
42 public static void startJointState(FlatBufferBuilder builder) { builder.startObject(4); }
43 public static void addPosition(FlatBufferBuilder builder,
int positionOffset) { builder.addOffset(0, positionOffset, 0); }
44 public static int createPositionVector(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(); }
45 public static void startPositionVector(FlatBufferBuilder builder,
int numElems) { builder.startVector(8, numElems, 8); }
46 public static void addVelocity(FlatBufferBuilder builder,
int velocityOffset) { builder.addOffset(1, velocityOffset, 0); }
47 public static int createVelocityVector(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(); }
48 public static void startVelocityVector(FlatBufferBuilder builder,
int numElems) { builder.startVector(8, numElems, 8); }
49 public static void addAcceleration(FlatBufferBuilder builder,
int accelerationOffset) { builder.addOffset(2, accelerationOffset, 0); }
50 public static int createAccelerationVector(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(); }
51 public static void startAccelerationVector(FlatBufferBuilder builder,
int numElems) { builder.startVector(8, numElems, 8); }
52 public static void addTorque(FlatBufferBuilder builder,
int torqueOffset) { builder.addOffset(3, torqueOffset, 0); }
53 public static int createTorqueVector(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(); }
54 public static void startTorqueVector(FlatBufferBuilder builder,
int numElems) { builder.startVector(8, numElems, 8); }
56 int o = builder.endObject();
static void addAcceleration(FlatBufferBuilder builder, int accelerationOffset)
static void startTorqueVector(FlatBufferBuilder builder, int numElems)
static int endJointState(FlatBufferBuilder builder)
static int createPositionVector(FlatBufferBuilder builder, double[] data)
ByteBuffer velocityAsByteBuffer()
static int createAccelerationVector(FlatBufferBuilder builder, double[] data)
ByteBuffer torqueAsByteBuffer()
static void startJointState(FlatBufferBuilder builder)
ByteBuffer positionAsByteBuffer()
static void startAccelerationVector(FlatBufferBuilder builder, int numElems)
static int createTorqueVector(FlatBufferBuilder builder, double[] data)
static void addTorque(FlatBufferBuilder builder, int torqueOffset)
static int createVelocityVector(FlatBufferBuilder builder, double[] data)
double acceleration(int j)
static void startVelocityVector(FlatBufferBuilder builder, int numElems)
ByteBuffer accelerationAsByteBuffer()
static void finishJointStateBuffer(FlatBufferBuilder builder, int offset)
JointState __init(int _i, ByteBuffer _bb)
static void addVelocity(FlatBufferBuilder builder, int velocityOffset)
static JointState getRootAsJointState(ByteBuffer _bb, JointState obj)
static JointState getRootAsJointState(ByteBuffer _bb)
static int createJointState(FlatBufferBuilder builder, int position, int velocity, int acceleration, int torque)
static void addPosition(FlatBufferBuilder builder, int positionOffset)
static void startPositionVector(FlatBufferBuilder builder, int numElems)