Frame.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 Frame extends Struct {
12  public Frame __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 Quaternion orientation() { return orientation(new Quaternion()); }
17  public Quaternion orientation(Quaternion obj) { return obj.__init(bb_pos + 24, bb); }
18 
19  public static int createFrame(FlatBufferBuilder builder, double position_x, double position_y, double position_z, double orientation_x, double orientation_y, double orientation_z, double orientation_w) {
20  builder.prep(8, 56);
21  builder.prep(8, 32);
22  builder.putDouble(orientation_w);
23  builder.putDouble(orientation_z);
24  builder.putDouble(orientation_y);
25  builder.putDouble(orientation_x);
26  builder.prep(8, 24);
27  builder.putDouble(position_z);
28  builder.putDouble(position_y);
29  builder.putDouble(position_x);
30  return builder.offset();
31  }
32 };
33 
static int createFrame(FlatBufferBuilder builder, double position_x, double position_y, double position_z, double orientation_x, double orientation_y, double orientation_z, double orientation_w)
Definition: Frame.java:19
Vector3d position(Vector3d obj)
Definition: Frame.java:15
Quaternion orientation()
Definition: Frame.java:16
Quaternion orientation(Quaternion obj)
Definition: Frame.java:17
Vector3d position()
Definition: Frame.java:14
Frame __init(int _i, ByteBuffer _bb)
Definition: Frame.java:12