package nomadgui.Telemetry;

import distinct.rpc.*;

/**
 * This class was automatically generated by Jrpcgen from the RPC/XDR file "telemetryMsgs.x".<br>
 * armDerivedState: was struct
 */

public class armDerivedState implements XDRType {
  public float jointAngle0; // rad
  public float jointAngle1; // rad
  public float jointAngle2; // rad
  public timeStamp time = new timeStamp();

/**
 * Default constructor for objects of class armDerivedState.
 */

public armDerivedState()
{}

/**
 * Creates an object of class armDerivedState.
 * @param     arg_jointAngle0 The value of the jointAngle0 component.
 * @param     arg_jointAngle1 The value of the jointAngle1 component.
 * @param     arg_jointAngle2 The value of the jointAngle2 component.
 * @param     arg_time The value of the time component.
 */

public armDerivedState(float arg_jointAngle0, float arg_jointAngle1, float arg_jointAngle2, timeStamp arg_time)
{
  jointAngle0 = arg_jointAngle0;
  jointAngle1 = arg_jointAngle1;
  jointAngle2 = arg_jointAngle2;
  time = arg_time;
}

/**
 * Encodes an object of class armDerivedState in compliance to RFC 1832 (XDR).
 * @param     xdrs The XDR output stream.
 */

public void xdr_encode(XDRStream xdrs)
{
  xdrs.xdr_encode_float(jointAngle0);
  xdrs.xdr_encode_float(jointAngle1);
  xdrs.xdr_encode_float(jointAngle2);
  time.xdr_encode(xdrs);
}

/**
 * Decodes an object of class armDerivedState in compliance to RFC 1832 (XDR).
 * @param     xdrs The XDR input stream.
 * @exception RPCError When the calls fails for any reason.
 */

public void xdr_decode(XDRStream xdrs) throws RPCError
{
  jointAngle0 = xdrs.xdr_decode_float();
  jointAngle1 = xdrs.xdr_decode_float();
  jointAngle2 = xdrs.xdr_decode_float();
  time = new timeStamp();
  time.xdr_decode(xdrs);
}
}
