17 #include <matrix/vlVector.h>
69 virtual const char*
type()
const;
72 static void setLocationCallback(
DtSimMessage* msg,
void* usr);
78 static void modifyVrfObjectCallback(
DtSimMessage* msg,
void* usr);
107 virtual bool getDestination(
DtVector & destination);
113 virtual const DtVector& destinationVector()
const;
121 virtual double findDesiredSpeed();
131 virtual double findDesiredHeading();
151 virtual bool nearDestination();
161 virtual bool atDestination();
172 virtual bool passedDestination();
179 virtual void doMoving();
187 virtual bool setupDestination();
197 virtual void setupDestinationVector()
const;
200 virtual void invalidateDestinationVector()
const;
203 virtual double desiredHeadingFromDestination(
const DtDcm& localToTopoDcm);
206 virtual void moveToDestination();
207 virtual double distanceToDestination()
const;
219 virtual void setDestinationIsInsideObstruction(
bool yesNo);
223 virtual bool destinationIsInsideObstruction()
const;
226 virtual bool usingNavBot();
229 virtual void useNavBotData();
231 virtual void updateNavBotDestination();
235 virtual unsigned maxNumFailedPathAttempts()
const;
239 virtual bool findAlternateDestination();
241 static void navAreaChangedCallback(
void* usr);
242 virtual void processNavAreaChanged();
246 static void navigationInterfaceChanged(
const DtVrfObject*,
void* usr);
247 virtual void processNavigationInterfaceChanged(
const DtVrfObject*);
250 virtual void processEstimatedTotCalculation();
317 const double DtEstimatedTotCalcInterval = 5.0;
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVector myLocalDestination
Definition: groundMoveToDestinationControllerComponent.h:268
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtVector myDestinationVector
Definition: groundMoveToDestinationControllerComponent.h:275
bool myHasIntermediateDestination
Definition: groundMoveToDestinationControllerComponent.h:271
virtual bool init()
Initializes myGroundVehicleState.
This is the DtVrfObjectNavInterface subclass for objects which are actively querying the navigation s...
Definition: activeBotNavInterface.h:26
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
A DtComponentDescriptor that has parameters that indicate the distances at which the entity is consid...
Definition: groundMoveToDescriptor.h:30
bool myIgnoreNavData
Definition: groundMoveToDestinationControllerComponent.h:310
virtual void registerTaskMsgCallbacks()
bool myDestinationVectorIsValid
Definition: groundMoveToDestinationControllerComponent.h:276
DtVector myEstimatedTotTextPos
tot text position
Definition: groundMoveToDestinationControllerComponent.h:326
bool myDestinationIsInsideObstruction
Definition: groundMoveToDestinationControllerComponent.h:312
double myCurrentSpeed
Definition: groundMoveToDestinationControllerComponent.h:278
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
DtVector myWorldDestination
Definition: groundMoveToDestinationControllerComponent.h:269
Definition: readerWriterRegistry.h:39
DtInputPortGroup * myCollisionAvoidancePortGroup
Input Port Group Name: collision-avoidance-control Input Port Group Description:
Definition: groundMoveToDestinationControllerComponent.h:298
const DtGroundAutoControllerComponent & operator=(const DtGroundAutoControllerComponent &orig)
assignment operator; not implemented
virtual const char * type() const
Returns a string identifies the class type of component.
DtVector myIntermediateLocalDestination
Definition: groundMoveToDestinationControllerComponent.h:273
virtual void updateTaskVisualizations()
Called to update task visualizations after every tick.
Definition: simComponent.h:487
virtual bool decideToGiveUpTask() const
If the entity is attached and the target of the current task is not, give up on the task...
DtActiveBotNavInterface * myNavInterface
Definition: groundMoveToDestinationControllerComponent.h:309
DtGroundMoveToDestinationControllerComponent is a controller that provides a kinematics-based model o...
Definition: groundMoveToDestinationControllerComponent.h:38
const DtGroundMoveToDescriptor * myMoveToDescriptor
Definition: groundMoveToDestinationControllerComponent.h:284
virtual void setComponentDescriptor(DtComponentDescriptor *componentDescriptor)
The component descriptor specified in the order of battle file or parameter file that was used to cre...
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
unsigned myNumFailedPathAttempts
Definition: groundMoveToDestinationControllerComponent.h:314
bool myEstimatedTotCalcEnabled
enabled flag for the tot calculations
Definition: groundMoveToDestinationControllerComponent.h:320
bool myAtDestination
Definition: groundMoveToDestinationControllerComponent.h:280
DtVector myIntermediateWorldDestination
Definition: groundMoveToDestinationControllerComponent.h:272
virtual void clearTask()
Overridden to deactivate the port group when this controller completes a task.
DtBooleanOutputPort * myClampToNavDataPort
Output Port Name: clamp-to-nav-data Output Port Description: When there is a failure to path plan due...
Definition: groundMoveToDestinationControllerComponent.h:305
Definition: rangeAndDirectionNetworkSegmentMetric.h:21
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtAutoTransmissionGearEnum
Definition: automotivePSR.h:24
DtCollisionInputPort * myCollisionAvoidancePort
Input Port Name: potential-collision-info Input Port Description: Input Port Range: Input Port Defa...
Definition: groundMoveToDestinationControllerComponent.h:294
double myDistanceSquared
Definition: groundMoveToDestinationControllerComponent.h:266
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
bool myNearDestination
Definition: groundMoveToDestinationControllerComponent.h:281
bool myPassedDestination
Definition: groundMoveToDestinationControllerComponent.h:282
void processSetLocation(DtSetDataRequest *set, const DtVertexList &vertices, double position, DtMoveAlongRouteTimeEstimator *est)
These functions handle the standard sets that can affect the time estimates.
double myEstimatedTotLastCalcTime
used for tot calculation intervals
Definition: groundMoveToDestinationControllerComponent.h:324
virtual bool createPorts()
Overridden to create the automotive ports.
double myEstimatedTotValue
the tot value
Definition: groundMoveToDestinationControllerComponent.h:322
DtGroundAutoControllerComponent is a base controller that holds capabilitites common to all automotiv...
Definition: groundAutoControllerComponent.h:33
virtual bool createPortGroups()
Overridden to create myAutomotiveControlPortGroup.