public interface IController
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getControllerName() |
pt.lsts.imc.Reference |
guide(VehicleType vehicle,
pt.lsts.imc.EstimatedState estate,
pt.lsts.imc.FollowRefState frefState)
This method is used to implement the control law
|
void |
startControlling(VehicleType vehicle,
pt.lsts.imc.EstimatedState state)
Method called when the controller is initially activated for a given vehicle
|
void |
stopControlling(VehicleType vehicle)
Method called when the controller looses control over the vehicle.
|
boolean |
supportsVehicle(VehicleType vehicle,
pt.lsts.imc.EstimatedState state)
This method is used to check if a controller supports a given vehicle
|
void |
vehicleTimedOut(VehicleType vehicle)
Method called when the control loop is terminated due to a connection time out.
|
pt.lsts.imc.Reference guide(VehicleType vehicle, pt.lsts.imc.EstimatedState estate, pt.lsts.imc.FollowRefState frefState)
vehicle
- The vehicle being controlled (plant)estate
- The last known vehicle statefrefState
- The last known maneuver execution stateReference
message with desired control referencejava.lang.String getControllerName()
boolean supportsVehicle(VehicleType vehicle, pt.lsts.imc.EstimatedState state)
vehicle
- A vehicle that can be controlledstate
- The current state of the vehicletrue
if this vehicle can be controlled or false
otherwisevoid startControlling(VehicleType vehicle, pt.lsts.imc.EstimatedState state)
vehicle
- The vehicle that will be associated with this controllerstate
- The last known state of the vehicle that will start being controlledvoid vehicleTimedOut(VehicleType vehicle)
stopControlling(VehicleType)
will be called nextvehicle
- The vehicle whose connection droppedvoid stopControlling(VehicleType vehicle)
vehicle
- The vehicle that will stop being controlledCopyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.