src/java/grl/src/grl/flatbuffer/Inertia.java
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, 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 Inertia extends Struct {
12  public Inertia __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
13 
14  public double mass() { return bb.getDouble(bb_pos + 0); }
15  public Pose pose() { return pose(new Pose()); }
16  public Pose pose(Pose obj) { return obj.__init(bb_pos + 8, bb); }
17  public double ixx() { return bb.getDouble(bb_pos + 64); }
18  public double ixy() { return bb.getDouble(bb_pos + 72); }
19  public double ixz() { return bb.getDouble(bb_pos + 80); }
20  public double iyy() { return bb.getDouble(bb_pos + 88); }
21  public double iyz() { return bb.getDouble(bb_pos + 96); }
22  public double izz() { return bb.getDouble(bb_pos + 104); }
23 
24  public static int createInertia(FlatBufferBuilder builder, double mass, double pose_position_x, double pose_position_y, double pose_position_z, double pose_orientation_x, double pose_orientation_y, double pose_orientation_z, double pose_orientation_w, double ixx, double ixy, double ixz, double iyy, double iyz, double izz) {
25  builder.prep(8, 112);
26  builder.putDouble(izz);
27  builder.putDouble(iyz);
28  builder.putDouble(iyy);
29  builder.putDouble(ixz);
30  builder.putDouble(ixy);
31  builder.putDouble(ixx);
32  builder.prep(8, 56);
33  builder.prep(8, 32);
34  builder.putDouble(pose_orientation_w);
35  builder.putDouble(pose_orientation_z);
36  builder.putDouble(pose_orientation_y);
37  builder.putDouble(pose_orientation_x);
38  builder.prep(8, 24);
39  builder.putDouble(pose_position_z);
40  builder.putDouble(pose_position_y);
41  builder.putDouble(pose_position_x);
42  builder.putDouble(mass);
43  return builder.offset();
44  }
45 }
46 
static int createInertia(FlatBufferBuilder builder, double mass, double pose_position_x, double pose_position_y, double pose_position_z, double pose_orientation_x, double pose_orientation_y, double pose_orientation_z, double pose_orientation_w, double ixx, double ixy, double ixz, double iyy, double iyz, double izz)