62 virtual const char*
type()
const;
71 static void moveToCallback(
DtSimMessage * msg,
void * usr);
72 static void moveToRetrogradeCallback(
DtSimMessage * msg,
void * usr);
78 static void setLocationCallback(
DtSimMessage* msg,
void* usr);
84 static void moveToLocationCallback(
DtSimMessage * msg,
void * usr);
85 static void moveToLocationRetrogradeCallback(
DtSimMessage * msg,
void * usr);
91 static void moveIntoFormationCallback(
DtSimMessage * msg,
void * usr);
97 static void turnToHeadingCallback(
DtSimMessage* msg,
void* usrData);
103 static void modifyVrfObjectCallback(
DtSimMessage* msg,
void* usr);
110 virtual void processMoveToLocationTask(
DtSimMessage * msg);
111 virtual void processMoveToRetrogradeTask(
DtSimMessage * msg);
112 virtual void processMoveToLocationRetrogradeTask(
DtSimMessage * msg);
119 virtual void processDestinationChanged();
124 virtual bool setupDestination();
134 virtual void setupDestinationVector()
const;
137 virtual void invalidateDestinationVector()
const;
147 virtual bool atDestination();
150 virtual void doMoving();
153 virtual double findDesiredHeading();
156 virtual void moveToDestination();
184 virtual bool createPSR();
186 virtual double distanceToDestination()
const;
195 virtual double atDistance()
const;
200 virtual void processMoveIntoFormationTask(
DtSimMessage* msg);
204 virtual void processTurnToHeadingTask(
DtSimMessage* msg);
DtAggregatedMoveToDescriptor * myAggregatedMoveToDescriptor
Definition: aggregatedMoveToController.h:257
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtAggregatedMoveToController is a controller that models movement to a <location> or <waypoint> for a...
Definition: aggregatedMoveToController.h:42
class DtAggregatedMoveToPSR:
Definition: aggregatedMoveToPSR.h:27
DtAggregatedMoveToPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: aggregatedMoveToController.h:255
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
bool myDestinationVectorIsValid
Definition: aggregatedMoveToController.h:246
virtual void registerTaskMsgCallbacks()
DtVectorOutputPort * myDestinationOutputPort
Output Port Name: destination Output Port Description: Specifies the current destination of the entit...
Definition: aggregatedMoveToController.h:234
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
DtVector myWorldDestination
Definition: aggregatedMoveToController.h:243
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
DtOutputPortGroup * myOutputPortGroup
Output Group Name: movement-control .
Definition: aggregatedMoveToController.h:227
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtOutputPortGroup is a data port group of a data provider. It may contain any number of DtOutputPorts...
Definition: outputPortGroup.h:34
DtSimObjectReference myControlPoint
This is looked up once per tick - assumed unchanging while we have control.
Definition: aggregatedMoveToController.h:240
virtual bool init()
Calls setRadio()
DtBooleanOutputPort * myRetrogradeOutputPort
Definition: aggregatedMoveToController.h:263
DtVrfAggregateStateRepository * myAggregateStateRepository
Definition: aggregatedMoveToController.h:251
virtual void clearTask()
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
Instances of DtAnalogOutputPort are input ports through which data producers can send real numbers...
Definition: analogIOPort.h:45
Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector...
Definition: vectorIOPort.h:52
File: simMsg.h.
Definition: simMessage.h:35
DtVector myLocalDestination
Definition: aggregatedMoveToController.h:242
DtVector myDestinationVector
Definition: aggregatedMoveToController.h:245
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
DtAnalogOutputPort * myMovementDirectionOutputPort
Output Port Name: desired-movement-direction Output Port Description: Specifies the current movement ...
Definition: aggregatedMoveToController.h:218
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
This class manages the distribution of DtSetDataRequests within a single DtLocalObject. Components of the object, or other parts of the code, register interested in particular types of set data messages and when such a message is processed by the DtSetDataManager, each of the registered parties is notified.
Definition: setDataManager.h:48
bool myAtDestination
Definition: aggregatedMoveToController.h:248
DtAggregatedMoveToDescriptor; descriptor for the DtAggregatedMoveToDescriptor component.
Definition: aggregatedMoveToDescriptor.h:21
DtAnalogOutputPort * mySpeedOutputPort
Output Port Name: desired-speed Output Port Description: Specifies the current speed of the entity in...
Definition: aggregatedMoveToController.h:224
DtSetDataManager * mySetDataManager
Pointer to aggregate's DtSetDataManager, cached in this class for convenience.
Definition: aggregatedMoveToController.h:261
double myDistanceSquared
Definition: aggregatedMoveToController.h:249
void processSetLocation(DtSetDataRequest *set, const DtVertexList &vertices, double position, DtMoveAlongRouteTimeEstimator *est)
Definition: vrfAggregateStateRepository.h:20
The top level class of a VR-Forces Simulation Engine, representing a Computer Generated Forces instan...
Definition: cgf.h:144
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