61 virtual const char*
type()
const;
80 static void moveAlongCallback(
DtSimMessage* msg,
void* usr);
104 static DtReaderWriter* provideCurrentMinTurnRadius(
void* controller);
113 static DtReaderWriter* provideTurnRadiusForOrderedSpeed(
void* controller);
116 static DtReaderWriter* provideNextRoutePointIndex(
void* controller);
126 virtual void processRouteChanged();
158 virtual bool targetNextVertex();
204 virtual bool getNextRoutePoint(
int & index,
210 virtual DtVector previousRoutePoint();
219 virtual void setStateForCurrentPoint();
240 virtual void moveToMiddleOrFinalPoint();
254 virtual bool shouldMoveToRouteSegment(
double& distanceToSegment);
259 virtual void controlMovementToRouteSegment(
double distanceToSegment);
269 virtual DtReal computeStartTurnDistance2();
273 virtual DtReal minTurnRadiusForSpeed(
double speed)
const;
289 virtual void emptyVertexList();
304 virtual double integralControl()
const;
virtual double integralControlGain() const
Returns radian offset per accumulated normalized error. Positive because positive error is to left...
Definition: surfaceEntityMoveAlongController.h:312
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void tick()
Overridden to check for valid myProcessState pointer. If it is null a warning is printed to the objec...
DtSurfaceEntityMoveAlongController is a controller that models movement of a ship along a route...
Definition: surfaceEntityMoveAlongController.h:39
Definition: surfaceEntityParameters.h:24
DtVectorOutputPort * myCurrentVertexLocationOutputPort
Output Port Name: current-vertex-location Output Port Description: Specifies the current vertex locat...
Definition: surfaceEntityMoveAlongController.h:338
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:31
virtual const DtSurfaceEntityParameters * getParams()
Gets the entity parameters for the purposes of providing attributes.
Definition: surfaceEntityMoveAlongController.h:280
virtual void controlMovement()
Executes the control function for the task, to produce control port outputs.
DtVrfMovingObjectStateRepository * myEntityState
Definition: surfaceEntityPilotController.h:279
Definition: surfaceMovementPSR.h:59
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
virtual void clearTask()
Calls down to the base class and then calls allowDeactivation() on mySurfaceControlPortGroup.
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Definition: readerWriter.h:85
bool myReprocessTask
Definition: surfaceEntityMoveAlongController.h:342
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
virtual bool passedGoal()
Determines if the entity has passed the goal. This is true for move-to-loc if the vector from the goa...
virtual void taskComplete(bool success=true)
If we are currently tasked, this will cause us to notify the entity that we're done and delete the ta...
DtSimObjectReference myRoute
Definition: surfaceEntityMoveAlongController.h:340
//! DtSurfaceEntityMoveToLocationController is a controller that models the movement of a surface ent...
Definition: surfaceEntityMoveToLocationController.h:28
virtual double integratedErrorDecayRate() const
The reduction factor in the accumulated error, per second. Must be < 1.0.
Definition: surfaceEntityMoveAlongController.h:307
virtual void processEstimatedTotCalculation()
calculate estimated tot
Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector...
Definition: vectorIOPort.h:52
const DtSurfaceEntityParameters * myParameters
Cache a pointer to the entity parameters.
Definition: surfaceEntityPilotController.h:283
File: simMsg.h.
Definition: simMessage.h:35
DtMoveAlongTask represents a Move Along Route task for an entity to perform. It inherits read/writabl...
Definition: moveAlongTasks.h:46
virtual DtVrfMovingObjectStateRepository * getSR()
Gets the entity state repository for purposes of providing attributes.
Definition: surfaceEntityMoveAlongController.h:276
virtual DtSurfaceMovementPSR * getPSR()
Gets the process state repository for purposes of providing attributes.
Definition: surfaceEntityMoveAlongController.h:278
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual bool setupControlPoint()
Every tick, this makes sure the destination is taken from current data.
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
double myIntegratedAlignmentError
This is the accumulated error of normalized distance from the route segment line. This value is used ...
Definition: surfaceEntityMoveAlongController.h:331
virtual void registerTaskMsgCallbacks()
Registers interest in move to location tasks by calling addTaskProcessorCallback moveToLocationCallba...
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
double myMinManeuverDistance2
Caches a threshold distance inside of which the entity will not consider moving to the route line...
Definition: surfaceEntityMoveAlongController.h:325
virtual bool createPorts()
Overridden to call createThrottlePort() and createRudderPort().
DtSurfaceMovementPSR * myProcessState
Pointer to a process state repository used to store state data associated with this component...
Definition: surfaceEntityPilotController.h:290
virtual bool init()
Calls down to the base class and then caches a pointer to the state repository in mySurfaceEntityStat...
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
virtual bool atGoal()
Determines when the entity is at the goal. Uses the stoppingDistance parameter.