public class UgvExecution extends Execution
Execution.IdleHandler
Modifier and Type | Field and Description |
---|---|
ControlCoefficients |
controlCoefficients
control controlCoefficients used by controllers during closed-loop control
|
UgvControllers |
controllers
list of available controllers
|
ControlHardware |
controls
handle to an object for interfacing with vehicle-hardware
|
UgvControlParameters |
ugvControlParameters
Parameters defining the type of control called for, commanded speed, etc.
|
UgvExecutionParameters |
ugvExecutionParameters
ugv-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 |
---|
UgvExecution(String[] args) |
Modifier and Type | Method and Description |
---|---|
void |
act() |
protected Mission |
buildNewMission(boolean wantResultsOutput) |
void |
decide()
Determines appropriate action needed to complete current command,
using controller to compute
|
protected ControlParameters |
getControlParameters() |
StateVector |
getState() |
protected long |
getStateReportUpdatePeriod()
Can change period here if desired
|
protected String |
getTabDelimitedFormattedStateFieldNames()
Add ugv-specific fields to default state
|
protected String |
getTabDelimitedStateValues()
Add ugv-specific fields to default state
|
int |
getVehicleType() |
void |
loadConfigurationFile()
Loads vehicle default characteristics from a configuration file
|
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()
Notification of mission completion
|
void |
reset()
Resets all component objects and variables to start over.
|
void |
sense() |
void |
setupVirtualWorld(Mission missionObject)
Sets up a connection with the virtual world (if running in simulation)
|
checkKill, checkMultipleLoopsMission, checkPauseResume, checkPauseSeparateJvm, checkRealtime, cleanUpFollowingMissionLoopCompletion, decideExternal, endPositionReports, endStateReports, getEnvironmentalUpdatePeriodMs, getNextJoystickEvent, getPositionUpdatePeriod, getTacticalConnection, getWorkbenchCommunicator, initializeEnvironmentUpdates, isOneThreadedJvmForAllMissions, isRunning, missionSimulationLoopHouseKeepingFinal, missionSimulationLoopHouseKeepingInitial, missionSimulationLoopsRunFullMission, notifyCommandComplete, receiveJoystickEvent, run, setAgendaLaunchXY, setVehicleCharacteristics, shouldUseSingleJvm, startEnvironmentalUpdates, startPositionReports, startStateReports, stopEnviroUpdates, useMetric, useRadians
public UgvControlParameters ugvControlParameters
public UgvControllers controllers
public ControlCoefficients controlCoefficients
public UgvExecutionParameters ugvExecutionParameters
public ControlHardware controls
public UgvExecution(String[] args)
public void reset()
Execution
protected Mission buildNewMission(boolean wantResultsOutput)
buildNewMission
in class Execution
wantResultsOutput
- public final void loadConfigurationFile()
public void setupVirtualWorld(Mission missionObject)
missionObject
- object containing the mission specification for the vehiclepublic int getVehicleType()
getVehicleType
in class Execution
Dynamics.AGENDA
, Dynamics.UAV
, Dynamics.UGV
, Dynamics.USV
, Dynamics.UUV
, Dynamics.MUNITION
, Dynamics.ROV
public StateVector getState()
protected ControlParameters getControlParameters()
getControlParameters
in class Execution
protected void missionFinished()
Execution
missionFinished
in class Execution
public void decide()
Execution
protected String getTabDelimitedFormattedStateFieldNames()
getTabDelimitedFormattedStateFieldNames
in class Execution
protected String getTabDelimitedStateValues()
getTabDelimitedStateValues
in class Execution
protected long getStateReportUpdatePeriod()
getStateReportUpdatePeriod
in class Execution
public static void main(String[] args)
args
- the command line arguments