content: // automatically generated, do not modify
  
  package grl.flatbuffer;
  
  import java.nio.*;
  import java.lang.*;
  import java.util.*;
  import com.google.flatbuffers.*;
  
  @SuppressWarnings("unused")
  public final class SmartServo extends Table {
    public static SmartServo getRootAsSmartServo(ByteBuffer _bb) { return getRootAsSmartServo(_bb, new SmartServo()); }
    public static SmartServo getRootAsSmartServo(ByteBuffer _bb, SmartServo obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
    public SmartServo __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
  
    /**
     * normalized joint accelerations from 0 to 1 relative to system capabilities
     */
    public double jointAccelerationRel(int j) { int o = __offset(4); return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
    public int jointAccelerationRelLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; }
    public ByteBuffer jointAccelerationRelAsByteBuffer() { return __vector_as_bytebuffer(4, 8); }
    /**
     * normalized joint velocity from 0 to 1 relative to system capabilities
     */
    public double jointVelocityRel(int j) { int o = __offset(6); return o != 0 ? bb.getDouble(__vector(o) + j * 8) : 0; }
    public int jointVelocityRelLength() { int o = __offset(6); return o != 0 ? __vector_len(o) : 0; }
    public ByteBuffer jointVelocityRelAsByteBuffer() { return __vector_as_bytebuffer(6, 8); }
    public boolean updateMinimumTrajectoryExecutionTime() { int o = __offset(8); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
    public double minimumTrajectoryExecutionTime() { int o = __offset(10); return o != 0 ? bb.getDouble(o + bb_pos) : 0; }
  
    public static int createSmartServo(FlatBufferBuilder builder,
        int jointAccelerationRelOffset,
        int jointVelocityRelOffset,
        boolean updateMinimumTrajectoryExecutionTime,
        double minimumTrajectoryExecutionTime) {
      builder.startObject(4);
      SmartServo.addMinimumTrajectoryExecutionTime(builder, minimumTrajectoryExecutionTime);
      SmartServo.addJointVelocityRel(builder, jointVelocityRelOffset);
      SmartServo.addJointAccelerationRel(builder, jointAccelerationRelOffset);
      SmartServo.addUpdateMinimumTrajectoryExecutionTime(builder, updateMinimumTrajectoryExecutionTime);
      return SmartServo.endSmartServo(builder);
    }
  
    public static void startSmartServo(FlatBufferBuilder builder) { builder.startObject(4); }
    public static void addJointAccelerationRel(FlatBufferBuilder builder, int jointAccelerationRelOffset) { builder.addOffset(0, jointAccelerationRelOffset, 0); }
    public static int createJointAccelerationRelVector(FlatBufferBuilder builder, double[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addDouble(data[i]); return builder.endVector(); }
    public static void startJointAccelerationRelVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); }
    public static void addJointVelocityRel(FlatBufferBuilder builder, int jointVelocityRelOffset) { builder.addOffset(1, jointVelocityRelOffset, 0); }
    public static int createJointVelocityRelVector(FlatBufferBuilder builder, double[] data) { builder.startVector(8, data.length, 8); for (int i = data.length - 1; i >= 0; i--) builder.addDouble(data[i]); return builder.endVector(); }
    public static void startJointVelocityRelVector(FlatBufferBuilder builder, int numElems) { builder.startVector(8, numElems, 8); }
    public static void addUpdateMinimumTrajectoryExecutionTime(FlatBufferBuilder builder, boolean updateMinimumTrajectoryExecutionTime) { builder.addBoolean(2, updateMinimumTrajectoryExecutionTime, false); }
    public static void addMinimumTrajectoryExecutionTime(FlatBufferBuilder builder, double minimumTrajectoryExecutionTime) { builder.addDouble(3, minimumTrajectoryExecutionTime, 0); }
    public static int endSmartServo(FlatBufferBuilder builder) {
      int o = builder.endObject();
      return o;
    }
  };
  
  