public abstract class DISNetworkedRigidBody extends RigidBody
Modifier and Type | Field and Description |
---|---|
protected static int |
APPLICATION_ID
ESPDU header value
|
protected edu.nps.moves.dis.EntityStatePdu |
disPdu
The Pdu for an entity
|
protected static int |
ENTITY_ID
ESPDU header value
|
static String |
MULTICAST_GROUP
Multicast group
|
static int |
MULTICAST_PORT
Multicast port
|
protected List<edu.nps.moves.dis.ArticulationParameter> |
pduArtParams
The Articulation Parameters for an entity
|
protected static int |
SITE_ID
ESPDU header value
|
static int |
TTL
Time to live
|
WorkbenchCommunicator |
workbenchCommunicator
Default values--can be changed by command line flags
|
BANK, current_time, DISCLIENT, dt, executionSocket, globals, HEAVE, hmatrix, Hprevious, MAXPARAMETERS, new_acceleration, new_velocity, p, p_dot, phi, phi_dot, PITCH, positionVector, psi, psi_dot, q, q_dot, r, r_dot, stateParameters, SURGE, SWAY, theta, theta_dot, u, u_dot, v, v_dot, w, w_dot, world, worldDown, x, x_dot, y, y_dot, YAW, z, z_dot
Constructor and Description |
---|
DISNetworkedRigidBody(DynamicsGlobals globals,
WorkbenchCommunicator communicator)
Gateway to all things DIS
|
Modifier and Type | Method and Description |
---|---|
void |
deadReckonTestWithExecutionLevel() |
void |
disNetClose()
Closes network comms and reports
|
boolean |
disNetOpen()
Open a socket and join a multicast group, or fall back on unicast, or open
an XMPP chat connection for DISXML
|
int |
disNetWrite()
Write the ESPDU to the net, or transmit via chat
|
protected abstract int |
getNumberStateParameters() |
int |
getPduSkipInterval() |
double |
getTimeOfLastPdu() |
void |
initialize()
Reset method for all transform values
|
abstract void |
integrateEquationsOfMotion()
Lots of math done here
|
boolean |
isDisPortOpen() |
void |
loopTestWithExecutionLevel()
Execution Level Loop
|
void |
printRigidBody()
As SysOut of the RidgidBody status at time of printout
|
void |
setGroup(String newGroup)
Sets the multi-cast address group
|
void |
setPduSkipInterval(int newValue) |
void |
setPort(String newPort)
Sets the socket port
|
void |
setTimeOfLastPdu(double new_time_of_last_PDU) |
void |
setTtl(int newTtl)
Sets the time-to-live for a PDU
|
compute_world_rates, current_time_value, hmatrix_value, integrate_Hmatrix, loadModel, nonzerosign, p_dot_value, phi_dot_value, phi_value, print_rigidbody, psi_dot_value, psi_value, q_dot_value, r_dot_value, set_accelerations, set_angular_accelerations, set_angular_velocities, set_current_time, set_linear_accelerations, set_linear_velocities, set_time_of_posture, set_velocities, set_world_rates, square, theta_dot_value, theta_value, time_of_posture_value, u_dot_value, update_Hmatrix, update_state_vector, v_dot_value, w_dot_value, x_dot_value, x_value, y_dot_value, y_value, z_dot_value, z_value
public static final int MULTICAST_PORT
public static final String MULTICAST_GROUP
public static final int TTL
public WorkbenchCommunicator workbenchCommunicator
protected static int SITE_ID
protected static int APPLICATION_ID
protected static int ENTITY_ID
protected edu.nps.moves.dis.EntityStatePdu disPdu
protected List<edu.nps.moves.dis.ArticulationParameter> pduArtParams
public DISNetworkedRigidBody(DynamicsGlobals globals, WorkbenchCommunicator communicator)
globals
- DynamicsGlobalscommunicator
- WorkbenchCommunicatorpublic abstract void integrateEquationsOfMotion()
integrateEquationsOfMotion
in class RigidBody
protected abstract int getNumberStateParameters()
public void printRigidBody()
public double getTimeOfLastPdu()
public boolean isDisPortOpen()
public int getPduSkipInterval()
public final void setPduSkipInterval(int newValue)
newValue
- a skip interval value for throttling packet sendingpublic boolean disNetOpen()
public int disNetWrite()
public void disNetClose()
public void initialize()
initialize
in class RigidBody
public void setTimeOfLastPdu(double new_time_of_last_PDU)
new_time_of_last_PDU
- the time to set for the last PDUpublic void setTtl(int newTtl)
newTtl
- the time to live for a PDUpublic void setGroup(String newGroup)
newGroup
- the multi-cast address to setpublic void setPort(String newPort)
newPort
- the port number to setpublic void loopTestWithExecutionLevel()
public void deadReckonTestWithExecutionLevel()