public class UavExecution extends Execution implements Runnable
Execution.IdleHandler
Modifier and Type | Field and Description |
---|---|
ControlCoefficients |
controlCoefficients
control controlCoefficients to be utilized for physical control of the AUV
|
UavControllers |
controllers
list of available controllers
|
ControlHardware |
controls
interface object for control actuator hardware
|
UavControlParameters |
uavControlParameters |
UavExecutionParameters |
uavExecutionParameters
uav-specific run-time runtimeFlags
|
currentCommandElement, currentCommandIndex, drivers, dynamics, dynamicsArgs, environmentCustomer, executionKey, firstTime, interVehicleCommunicationsHandler, joystickEventHashMap, KILL_CMD, killRun, mission, MULTIPLELOOPSMISSION_CMD, PAUSE_CMD, REALTIME_CMD, RESUME_CMD, runtimeFlags, stateReportChannel, stateVector, strategicLevel, strategicThread, tacticalConnection, tacticalLevel, tacticalThread, vehicleShortName, virtualWorldConnection, workbenchCommunicator
Constructor and Description |
---|
UavExecution(String[] args)
Creates a new instance of Execution
|
Modifier and Type | Method and Description |
---|---|
protected void |
act()
computes and applies control settings
|
protected Mission |
buildNewMission(boolean wantResultsOutput) |
protected void |
decide()
determines appropriate action needed to complete current command,
using controller to compute
|
protected ControlParameters |
getControlParameters() |
StateVector |
getState() |
protected String |
getTabDelimitedFormattedStateFieldNames()
Add uav-specific fields to default state
|
protected String |
getTabDelimitedStateValues()
Add uav-specific fields to default state
|
int |
getVehicleType() |
static void |
main(String[] args)
This is the entry point when Execution is invoked, either in a separate JVM or a single JVM.
|
protected void |
missionFinished()
Required implementation of abstract method in Execution
|
void |
reset()
Resets all component objects and variables to start over.
|
protected void |
sense()
reads sensors or communicates with the virtual world to orient auv in the world
|
checkKill, checkMultipleLoopsMission, checkPauseResume, checkPauseSeparateJvm, checkRealtime, cleanUpFollowingMissionLoopCompletion, decideExternal, endPositionReports, endStateReports, getEnvironmentalUpdatePeriodMs, getNextJoystickEvent, getPositionUpdatePeriod, getStateReportUpdatePeriod, getTacticalConnection, getWorkbenchCommunicator, initializeEnvironmentUpdates, isOneThreadedJvmForAllMissions, isRunning, missionSimulationLoopHouseKeepingFinal, missionSimulationLoopHouseKeepingInitial, missionSimulationLoopsRunFullMission, notifyCommandComplete, receiveJoystickEvent, run, setAgendaLaunchXY, setVehicleCharacteristics, shouldUseSingleJvm, startEnvironmentalUpdates, startPositionReports, startStateReports, stopEnviroUpdates, useMetric, useRadians
public UavExecutionParameters uavExecutionParameters
public ControlCoefficients controlCoefficients
public ControlHardware controls
public UavControllers controllers
public UavControlParameters uavControlParameters
public UavExecution(String[] args)
args
- String[] command line argumentspublic void reset()
Execution
protected ControlParameters getControlParameters()
getControlParameters
in class Execution
protected Mission buildNewMission(boolean wantResultsOutput)
buildNewMission
in class Execution
wantResultsOutput
- protected void missionFinished()
missionFinished
in class Execution
public static void main(String[] args)
args
- the command line argumentsprotected void sense()
protected void decide()
protected String getTabDelimitedFormattedStateFieldNames()
getTabDelimitedFormattedStateFieldNames
in class Execution
protected String getTabDelimitedStateValues()
getTabDelimitedStateValues
in class Execution
public int getVehicleType()
getVehicleType
in class Execution
Dynamics.AGENDA
, Dynamics.UAV
, Dynamics.UGV
, Dynamics.USV
, Dynamics.UUV
, Dynamics.MUNITION
, Dynamics.ROV
public StateVector getState()