3 package grl.flatbuffer;
8 import com.google.flatbuffers.*;
10 @SuppressWarnings(
"unused")
11 public final class SmartServo extends Table {
14 public SmartServo __init(
int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb;
return this; }
19 public double jointAccelerationRel(
int j) {
int o = __offset(4);
return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
25 public double jointVelocityRel(
int j) {
int o = __offset(6);
return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
32 int jointAccelerationRelOffset,
33 int jointVelocityRelOffset,
34 boolean updateMinimumTrajectoryExecutionTime,
35 double minimumTrajectoryExecutionTime) {
36 builder.startObject(4);
44 public static void startSmartServo(FlatBufferBuilder builder) { builder.startObject(4); }
45 public static void addJointAccelerationRel(FlatBufferBuilder builder,
int jointAccelerationRelOffset) { builder.addOffset(0, jointAccelerationRelOffset, 0); }
46 public static int createJointAccelerationRelVector(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 addJointVelocityRel(FlatBufferBuilder builder,
int jointVelocityRelOffset) { builder.addOffset(1, jointVelocityRelOffset, 0); }
49 public static int createJointVelocityRelVector(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 addUpdateMinimumTrajectoryExecutionTime(FlatBufferBuilder builder,
boolean updateMinimumTrajectoryExecutionTime) { builder.addBoolean(2, updateMinimumTrajectoryExecutionTime,
false); }
52 public static void addMinimumTrajectoryExecutionTime(FlatBufferBuilder builder,
double minimumTrajectoryExecutionTime) { builder.addDouble(3, minimumTrajectoryExecutionTime, 0.0); }
54 int o = builder.endObject();
static SmartServo getRootAsSmartServo(ByteBuffer _bb)
static int createJointVelocityRelVector(FlatBufferBuilder builder, double[] data)
ByteBuffer jointVelocityRelAsByteBuffer()
int jointVelocityRelLength()
static void startJointVelocityRelVector(FlatBufferBuilder builder, int numElems)
static int createSmartServo(FlatBufferBuilder builder, int jointAccelerationRelOffset, int jointVelocityRelOffset, boolean updateMinimumTrajectoryExecutionTime, double minimumTrajectoryExecutionTime)
double minimumTrajectoryExecutionTime()
static void addJointVelocityRel(FlatBufferBuilder builder, int jointVelocityRelOffset)
int jointAccelerationRelLength()
SmartServo __init(int _i, ByteBuffer _bb)
double jointAccelerationRel(int j)
static void addUpdateMinimumTrajectoryExecutionTime(FlatBufferBuilder builder, boolean updateMinimumTrajectoryExecutionTime)
boolean updateMinimumTrajectoryExecutionTime()
static SmartServo getRootAsSmartServo(ByteBuffer _bb, SmartServo obj)
static void startSmartServo(FlatBufferBuilder builder)
ByteBuffer jointAccelerationRelAsByteBuffer()
static int createJointAccelerationRelVector(FlatBufferBuilder builder, double[] data)
static int endSmartServo(FlatBufferBuilder builder)
static void addJointAccelerationRel(FlatBufferBuilder builder, int jointAccelerationRelOffset)
double jointVelocityRel(int j)
static void addMinimumTrajectoryExecutionTime(FlatBufferBuilder builder, double minimumTrajectoryExecutionTime)
static void startJointAccelerationRelVector(FlatBufferBuilder builder, int numElems)