public class PlanSimulator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
finished |
protected PlanType |
plan |
protected PlanSimulationOverlay |
simulatedPath |
protected java.lang.Thread |
simulationThread |
protected double |
timestep |
protected java.lang.String |
vehicleId |
Constructor and Description |
---|
PlanSimulator(PlanType plan,
SystemPositionAndAttitude start)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getManId() |
PlanType |
getPlan() |
PlanSimulationOverlay |
getSimulationOverlay() |
SystemPositionAndAttitude |
getState() |
double |
getTimestep() |
java.lang.String |
getVehicleId() |
boolean |
isFinished() |
boolean |
isRunning()
Verify if the simulator is currently simulating states
|
void |
setEstimatedState(pt.lsts.imc.EstimatedState state) |
void |
setManId(java.lang.String manId) |
void |
setPositionEstimation(pt.lsts.imc.EstimatedState state,
double distanceThreshold) |
void |
setState(SystemPositionAndAttitude state) |
void |
setTimestep(double timestep) |
void |
setVehicleId(java.lang.String vehicleId) |
void |
startSimulation()
Start simulation thread
|
void |
stopSimulation() |
protected java.lang.Thread simulationThread
protected boolean finished
protected PlanSimulationOverlay simulatedPath
protected double timestep
protected PlanType plan
protected java.lang.String vehicleId
public PlanSimulator(PlanType plan, SystemPositionAndAttitude start)
plan
- The plan to be simulated. It will simulate the plan from its initial maneuverpublic SystemPositionAndAttitude getState()
public void setState(SystemPositionAndAttitude state)
public PlanType getPlan()
public java.lang.String getManId()
public void setManId(java.lang.String manId) throws java.lang.Exception
java.lang.Exception
public void startSimulation()
public void setPositionEstimation(pt.lsts.imc.EstimatedState state, double distanceThreshold)
public void setEstimatedState(pt.lsts.imc.EstimatedState state)
public void stopSimulation()
public double getTimestep()
public void setTimestep(double timestep)
timestep
- the timestep to setpublic boolean isFinished()
public boolean isRunning()
public final java.lang.String getVehicleId()
public final void setVehicleId(java.lang.String vehicleId)
vehicleId
- the vehicleId to setpublic final PlanSimulationOverlay getSimulationOverlay()
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.