build/include/grl/flatbuffer/grl/flatbuffer/EulerPose.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 EulerPose extends Struct {
12  public EulerPose __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
13 
14  public Vector3d position() { return position(new Vector3d()); }
15  public Vector3d position(Vector3d obj) { return obj.__init(bb_pos + 0, bb); }
16  public EulerRotation rotation() { return rotation(new EulerRotation()); }
17  public EulerRotation rotation(EulerRotation obj) { return obj.__init(bb_pos + 24, bb); }
18 
19  public static int createEulerPose(FlatBufferBuilder builder, double position_x, double position_y, double position_z, double rotation_r1, double rotation_r2, double rotation_r3, byte rotation_eulerOrder) {
20  builder.prep(8, 56);
21  builder.prep(8, 32);
22  builder.pad(7);
23  builder.putByte(rotation_eulerOrder);
24  builder.putDouble(rotation_r3);
25  builder.putDouble(rotation_r2);
26  builder.putDouble(rotation_r1);
27  builder.prep(8, 24);
28  builder.putDouble(position_z);
29  builder.putDouble(position_y);
30  builder.putDouble(position_x);
31  return builder.offset();
32  }
33 };
34 
static int createEulerPose(FlatBufferBuilder builder, double position_x, double position_y, double position_z, double rotation_r1, double rotation_r2, double rotation_r3, byte rotation_eulerOrder)