src/java/grl/src/grl/flatbuffer/MoveArmTrajectory.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 MoveArmTrajectory extends Table {
12  public static MoveArmTrajectory getRootAsMoveArmTrajectory(ByteBuffer _bb) { return getRootAsMoveArmTrajectory(_bb, new MoveArmTrajectory()); }
13  public static MoveArmTrajectory getRootAsMoveArmTrajectory(ByteBuffer _bb, MoveArmTrajectory obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public MoveArmTrajectory __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public grl.flatbuffer.JointState traj(int j) { return traj(new grl.flatbuffer.JointState(), j); }
17  public grl.flatbuffer.JointState traj(grl.flatbuffer.JointState obj, int j) { int o = __offset(4); return o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null; }
18  public int trajLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; }
19 
20  public static int createMoveArmTrajectory(FlatBufferBuilder builder,
21  int trajOffset) {
22  builder.startObject(1);
23  MoveArmTrajectory.addTraj(builder, trajOffset);
25  }
26 
27  public static void startMoveArmTrajectory(FlatBufferBuilder builder) { builder.startObject(1); }
28  public static void addTraj(FlatBufferBuilder builder, int trajOffset) { builder.addOffset(0, trajOffset, 0); }
29  public static int createTrajVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); }
30  public static void startTrajVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
31  public static int endMoveArmTrajectory(FlatBufferBuilder builder) {
32  int o = builder.endObject();
33  return o;
34  }
35 }
36 
static int createTrajVector(FlatBufferBuilder builder, int[] data)
grl.flatbuffer.JointState traj(grl.flatbuffer.JointState obj, int j)
static void addTraj(FlatBufferBuilder builder, int trajOffset)
static int createMoveArmTrajectory(FlatBufferBuilder builder, int trajOffset)
static MoveArmTrajectory getRootAsMoveArmTrajectory(ByteBuffer _bb, MoveArmTrajectory obj)
static void startTrajVector(FlatBufferBuilder builder, int numElems)
static MoveArmTrajectory getRootAsMoveArmTrajectory(ByteBuffer _bb)