build/include/grl/flatbuffer/grl/flatbuffer/Wrench.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 Wrench extends Struct {
12  public Wrench __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
13 
14  public Vector3d force() { return force(new Vector3d()); }
15  public Vector3d force(Vector3d obj) { return obj.__init(bb_pos + 0, bb); }
16  public Vector3d torque() { return torque(new Vector3d()); }
17  public Vector3d torque(Vector3d obj) { return obj.__init(bb_pos + 24, bb); }
18  public Vector3d forceOffset() { return forceOffset(new Vector3d()); }
19  public Vector3d forceOffset(Vector3d obj) { return obj.__init(bb_pos + 48, bb); }
20 
21  public static int createWrench(FlatBufferBuilder builder, double force_x, double force_y, double force_z, double torque_x, double torque_y, double torque_z, double force_offset_x, double force_offset_y, double force_offset_z) {
22  builder.prep(8, 72);
23  builder.prep(8, 24);
24  builder.putDouble(force_offset_z);
25  builder.putDouble(force_offset_y);
26  builder.putDouble(force_offset_x);
27  builder.prep(8, 24);
28  builder.putDouble(torque_z);
29  builder.putDouble(torque_y);
30  builder.putDouble(torque_x);
31  builder.prep(8, 24);
32  builder.putDouble(force_z);
33  builder.putDouble(force_y);
34  builder.putDouble(force_x);
35  return builder.offset();
36  }
37 };
38 
static int createWrench(FlatBufferBuilder builder, double force_x, double force_y, double force_z, double torque_x, double torque_y, double torque_z, double force_offset_x, double force_offset_y, double force_offset_z)