build/include/grl/flatbuffer/grl/flatbuffer/CartesianImpedenceControlMode.java
Go to the documentation of this file.
1 // automatically generated, 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 CartesianImpedenceControlMode extends Table {
13  public static CartesianImpedenceControlMode getRootAsCartesianImpedenceControlMode(ByteBuffer _bb, CartesianImpedenceControlMode obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public CartesianImpedenceControlMode __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  /**
17  * actual stiffness to set rot:[nm/rad]
18  */
19  public EulerPoseParams stiffness() { return stiffness(new EulerPoseParams()); }
20  public EulerPoseParams stiffness(EulerPoseParams obj) { int o = __offset(4); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
21  /**
22  * maximum deviation from set goal in mm and radians
23  */
25  public EulerPose maxPathDeviation(EulerPose obj) { int o = __offset(6); return o != 0 ? obj.__init(o + bb_pos, bb) : null; }
26  /**
27  * sets the maximum joint speed
28  */
29  public double maxJointSpeed(int j) { int o = __offset(8); return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
30  public int maxJointSpeedLength() { int o = __offset(8); return o != 0 ? __vector_len(o) : 0; }
31  public ByteBuffer maxJointSpeedAsByteBuffer() { return __vector_as_bytebuffer(8, 8); }
32  /**
33  * trans: [mm/s] rot: [rad/s]
34  */
36  public EulerPose maxCartesianVelocity(EulerPose obj) { int o = __offset(10); return o != 0 ? obj.__init(o + bb_pos, bb) : null; }
37  /**
38  * xyz: Newtons rpy:Nm (all >=0)
39  */
40  public EulerPose maxControlForce() { return maxControlForce(new EulerPose()); }
41  public EulerPose maxControlForce(EulerPose obj) { int o = __offset(12); return o != 0 ? obj.__init(o + bb_pos, bb) : null; }
42  /**
43  * stop if max control force is exceeded
44  */
45  public boolean maxControlForceExceededStop() { int o = __offset(14); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
46  /**
47  * must be between 0.3-1.0 suggested is 0.7
48  */
49  public double nullspaceDamping() { int o = __offset(16); return o != 0 ? bb.getDouble(o + bb_pos) : 0; }
50  /**
51  * [Nm/rad] must be => 0.0
52  */
53  public double nullspaceStiffness() { int o = __offset(18); return o != 0 ? bb.getDouble(o + bb_pos) : 0; }
54 
55  public static void startCartesianImpedenceControlMode(FlatBufferBuilder builder) { builder.startObject(8); }
56  public static void addStiffness(FlatBufferBuilder builder, int stiffnessOffset) { builder.addOffset(0, stiffnessOffset, 0); }
57  public static void addMaxPathDeviation(FlatBufferBuilder builder, int maxPathDeviationOffset) { builder.addStruct(1, maxPathDeviationOffset, 0); }
58  public static void addMaxJointSpeed(FlatBufferBuilder builder, int maxJointSpeedOffset) { builder.addOffset(2, maxJointSpeedOffset, 0); }
59  public static int createMaxJointSpeedVector(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(); }
60  public static void startMaxJointSpeedVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); }
61  public static void addMaxCartesianVelocity(FlatBufferBuilder builder, int maxCartesianVelocityOffset) { builder.addStruct(3, maxCartesianVelocityOffset, 0); }
62  public static void addMaxControlForce(FlatBufferBuilder builder, int maxControlForceOffset) { builder.addStruct(4, maxControlForceOffset, 0); }
63  public static void addMaxControlForceExceededStop(FlatBufferBuilder builder, boolean maxControlForceExceededStop) { builder.addBoolean(5, maxControlForceExceededStop, false); }
64  public static void addNullspaceDamping(FlatBufferBuilder builder, double nullspaceDamping) { builder.addDouble(6, nullspaceDamping, 0); }
65  public static void addNullspaceStiffness(FlatBufferBuilder builder, double nullspaceStiffness) { builder.addDouble(7, nullspaceStiffness, 0); }
66  public static int endCartesianImpedenceControlMode(FlatBufferBuilder builder) {
67  int o = builder.endObject();
68  return o;
69  }
70 };
71 
static void addMaxControlForceExceededStop(FlatBufferBuilder builder, boolean maxControlForceExceededStop)
static void addMaxPathDeviation(FlatBufferBuilder builder, int maxPathDeviationOffset)
static CartesianImpedenceControlMode getRootAsCartesianImpedenceControlMode(ByteBuffer _bb, CartesianImpedenceControlMode obj)
static void addNullspaceStiffness(FlatBufferBuilder builder, double nullspaceStiffness)
static void addMaxCartesianVelocity(FlatBufferBuilder builder, int maxCartesianVelocityOffset)