3 package grl.flatbuffer;
8 import com.google.flatbuffers.*;
10 @SuppressWarnings(
"unused")
16 public double stiffness(
int j) {
int o = __offset(4);
return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
17 public int stiffnessLength() {
int o = __offset(4);
return o != 0 ? __vector_len(o) : 0; }
19 public double damping(
int j) {
int o = __offset(6);
return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
20 public int dampingLength() {
int o = __offset(6);
return o != 0 ? __vector_len(o) : 0; }
26 builder.startObject(2);
33 public static void addStiffness(FlatBufferBuilder builder,
int stiffnessOffset) { builder.addOffset(0, stiffnessOffset, 0); }
34 public static int createStiffnessVector(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(); }
35 public static void startStiffnessVector(FlatBufferBuilder builder,
int numElems) { builder.startVector(8, numElems, 8); }
36 public static void addDamping(FlatBufferBuilder builder,
int dampingOffset) { builder.addOffset(1, dampingOffset, 0); }
37 public static int createDampingVector(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(); }
38 public static void startDampingVector(FlatBufferBuilder builder,
int numElems) { builder.startVector(8, numElems, 8); }
40 int o = builder.endObject();
static void startDampingVector(FlatBufferBuilder builder, int numElems)
ByteBuffer stiffnessAsByteBuffer()
static void startJointImpedenceControlMode(FlatBufferBuilder builder)
ByteBuffer dampingAsByteBuffer()
static int endJointImpedenceControlMode(FlatBufferBuilder builder)
static JointImpedenceControlMode getRootAsJointImpedenceControlMode(ByteBuffer _bb, JointImpedenceControlMode obj)
static void startStiffnessVector(FlatBufferBuilder builder, int numElems)
static int createJointImpedenceControlMode(FlatBufferBuilder builder, int stiffness, int damping)
JointImpedenceControlMode __init(int _i, ByteBuffer _bb)
static JointImpedenceControlMode getRootAsJointImpedenceControlMode(ByteBuffer _bb)
static int createStiffnessVector(FlatBufferBuilder builder, double[] data)
static void addDamping(FlatBufferBuilder builder, int dampingOffset)
static int createDampingVector(FlatBufferBuilder builder, double[] data)
static void addStiffness(FlatBufferBuilder builder, int stiffnessOffset)