66 virtual const char*
type()
const;
80 static void followEntityCallback(
DtSimMessage* msg,
void* usrData);
101 virtual bool createSurfaceControlPortGroup();
110 virtual bool setupControlPoint();
135 virtual void controlMovement();
142 virtual void moveTowardProjectedStationPosition(
double distanceToStation,
144 double approachDistance);
153 virtual void moveBackToApproachPoint(
bool onLeftSide,
double approachDistance,
163 virtual void turnToProjectedStationLine(
164 bool isOnLeft,
double radius,
double distanceToSegment);
170 virtual void accelToCatchUp(
double stationSpeed,
double entitySpeed,
171 double distanceBehindStation);
183 virtual void accelToDropBack(
double stationSpeed,
184 double entitySpeed,
double distanceAheadOfStation,
185 double distanceFromLine);
192 virtual void turnAtSpeed(
double desiredHeading,
193 double desiredSpeed);
201 virtual bool willOverrunPoint(
double distanceAhead,
double distanceFromLine,
202 double entitySpeed,
double turnRadius,
double pointSpeed,
double maxWaitTime);
207 virtual double calculateAcceleration(
double desiredSpeed);
212 virtual double limitAcceleration(
double desiredAcceleration,
213 double desiredSpeed);
228 virtual void lookupAndCacheProcessSR();
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit()
Called after all components have been created, initialized and added to the component manager...
Definition: simComponent.h:144
Definition: surfaceEntityParameters.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtAnalogOutputPort * myTurnRatePort
Rotation rate in radians/sec. Positive is to the right.
Definition: surfaceEntityFollowEntityController.h:285
double myStationSpeed
Definition: surfaceEntityFollowEntityController.h:308
DtVector2D myNEStationToEntity
Definition: surfaceEntityFollowEntityController.h:303
DtSurfFollowState
For tracking debug print messages:
Definition: surfaceEntityFollowEntityController.h:30
Description: This repository holds all information that is common to all the forms of all objects wit...
Definition: vrfMovingObjectStateRepository.h:26
DtSurfaceEntityFollowEntityController is a controller that models station keeping behavior for surfac...
Definition: surfaceEntityFollowEntityController.h:45
bool myIgnoreApproach
This is set when the station is moving more than a couple knots.
Definition: surfaceEntityFollowEntityController.h:323
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
DtAnalogOutputPort * myFinalHeadingPort
A clamp heading, similar to clamp speed.
Definition: surfaceEntityFollowEntityController.h:287
DtAnalogOutputPort * myClampSpeedPort
The goal speed; used by the actuator to prevent accelerating past the desired speed if dT is much lon...
Definition: surfaceEntityFollowEntityController.h:283
Definition: surfaceMovementPSR.h:58
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
Definition: surfaceEntityFollowEntityController.h:32
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: surfaceEntityFollowEntityController.h:35
DtLocation3D myGeodStationPosition
Definition: surfaceEntityFollowEntityController.h:306
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
DtOutputPortGroup is a data port group of a data provider.
Definition: outputPortGroup.h:30
virtual bool init()
Calls setRadio()
virtual void clearTask()
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
DtVector2D myUnitNEStationDirection
Definition: surfaceEntityFollowEntityController.h:307
DtSurfaceMovementPSR * myProcessState
Pointer to a process state repository used to store state data associated with this component...
Definition: surfaceEntityFollowEntityController.h:274
DtSurfaceEntityPilotControllerDescriptor * myDescriptor
Definition: surfaceEntityFollowEntityController.h:264
Provides a simple, kinematics-based model for surface vessels.
Definition: surfaceEntityActuator.h:46
Instances of DtAnalogOutputPort are input ports through which data producers can send real numbers...
Definition: analogIOPort.h:45
DtLocation3D myGeodCurrentPosition
DtVector myLocalStationPosition; // local coordinates DtVector myLocalStationVelocity; // local coord...
Definition: surfaceEntityFollowEntityController.h:302
Definition: surfaceEntityFollowEntityController.h:37
const DtSurfaceEntityParameters * myParameters
Cache a pointer to the entity parameters.
Definition: surfaceEntityFollowEntityController.h:267
DtReal myApproachSpeed
DtVector2D myNEStationVelocity;.
Definition: surfaceEntityFollowEntityController.h:316
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
Definition: surfaceEntityFollowEntityController.h:33
Definition: surfaceEntityFollowEntityController.h:38
virtual bool createPorts()
Called by init.
! DtVector2D is a vector in earth-relative coordinates, e.g.
Definition: scriptGeometry.h:281
virtual bool decideToGiveUpTask() const
This function is used to determine if the controller should give up trying to execute the current tas...
DtSurfFollowState myFollowState
For debugging.
Definition: surfaceEntityFollowEntityController.h:326
DtAnalogOutputPort * myAccelerationPort
Definition: surfaceEntityFollowEntityController.h:280
virtual bool createPortGroups()
Called by init.
Definition: surfaceEntityFollowEntityController.h:34
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtVrfObject * myLeaderPointer
Set fresh each frame by setupControlPoint.
Definition: surfaceEntityFollowEntityController.h:298
Contains class declaration for DtSurfaceEntityPilotControllerDescriptor; descriptor for the DtSurface...
Definition: surfaceEntityPilotControllerDescriptor.h:25
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtVrfMovingObjectStateRepository * myEntityState
Definition: surfaceEntityFollowEntityController.h:263
Definition: surfaceEntityFollowEntityController.h:36
DtOutputPortGroup * mySurfaceControlPortGroup
Output Port Group Name: surface-control Output Port Group Description: acceleration, clamp speed, turn rate, and final heading ports.
Definition: surfaceEntityFollowEntityController.h:292
A DtTaskMsg is a DtRadioMsg with a pointer to a task.
Definition: taskMessage.h:19
A location3D is a point in space, i.e. a geocentric coordinate.
Definition: scriptGeometry.h:22