43 const DtString& rwName = DtString::nullString(),
48 const DtString& rwName = DtString::nullString(),
59 const DtString& rwName = DtString::nullString(),
74 virtual void setHeadingToTurnTo(
double headingToTurnTo);
75 virtual double headingToTurnTo()
const;
80 virtual void setTurnToMode(
int);
81 virtual int turnToMode()
const;
88 virtual void setKTurnReverseGoalHeading(
double kTurnReverseGoalHeading);
89 virtual double kTurnReverseGoalHeading()
const;
94 void setCurrentRouteIndex(
int currentRouteIndex);
95 int currentRouteIndex()
const;
102 virtual void setKTurnReverseComplete(
bool kTurnReverseComplete);
103 virtual bool kTurnReverseComplete()
const;
109 virtual void setControlObject(
const DtUUID&
object);
119 virtual void setContinueFlag(
bool flag);
120 virtual bool continueFlag()
const;
128 virtual void setWorldDestination(
const DtVector& destination);
129 virtual const DtVector& worldDestination()
const;
137 virtual bool intermediateWorldDestinationValid()
const;
138 virtual void invalidateIntermediateWorldDestination();
139 virtual void setIntermediateWorldDestination(
const DtVector& destination);
140 virtual const DtVector& intermediateWorldDestination()
const;
145 virtual void setEntityToFollow(
const DtUUID& objectName);
152 virtual void setFollowingOffsetVector(
const DtVector& offsetVector);
153 virtual const DtVector& followingOffsetVector()
const;
158 virtual void setEntityToInterceptAndDestroy(
const DtUUID&);
164 virtual void setStandOffDistance(
const double distance);
165 virtual const double standOffDistance()
const;
171 virtual void setRoute(
const DtUUID& route);
185 virtual void emptyRouteVertices();
193 virtual void setReversePatrol(
bool flag);
194 virtual bool reversePatrol()
const;
199 virtual void setFirstWaypoint(
const DtUUID& waypoint);
205 virtual void setSecondWaypoint(
const DtUUID& waypoint);
211 virtual void setIsColliding(
bool colliding);
212 virtual bool isColliding()
const;
217 virtual void setIsClearing(
bool clearing);
218 virtual bool isClearing()
const;
223 virtual void setAvoidingLeft(
bool avoidingLeft);
224 virtual bool avoidingLeft()
const;
230 virtual void setCheckForTerrainCollisions(
bool checkForCollisions);
231 virtual bool checkForTerrainCollisions()
const;
245 virtual void setUseHighFidelityGroundClamping(
bool yesOrNo);
246 virtual bool useHighFidelityGroundClamping()
const;
254 virtual void setRoadStartPoint(
const DtVector& point);
255 virtual DtVector roadStartPoint()
const;
257 virtual void setRoadEndPoint(
const DtVector& point);
258 virtual DtVector roadEndPoint()
const;
263 virtual void unspecifyRoadPoints();
266 virtual bool roadPointsSpecified()
const;
270 virtual void setRouteIsDiscovered(
bool value);
271 virtual bool routeIsDiscovered()
const;
276 virtual void setUseTaskSpeed(
bool value);
277 virtual bool useTaskSpeed()
const;
279 virtual void setTaskSpeed(
double value);
280 virtual double taskSpeed()
const;
285 virtual int currentVertex()
const;
288 virtual void putSelf(std::string& fp,
int indentLevel = 0,
bool writeUnspecified =
false,
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtRwBoolean myReverseFlag
From DtGroundPatrolRouteController (gndPtrlRtCtl.h)
Definition: automotivePSR.h:340
Definition: automotivePSR.h:28
DtRwInt myCurrentRouteIndex
From DtGroundAutoController (gndAutoCntlr.h) (enum DtAutoTransmissionGear)
Definition: automotivePSR.h:303
DtRwSimObjectReference myEntityToFollow
From DtGroundFollowEntityController (gndFollwCtl.h)
Definition: automotivePSR.h:320
DtLocalVertexList myVertices
my copy of the current route
Definition: automotivePSR.h:333
DtRwInt myCurrentVertex
Read/write variables to capture route state.
Definition: automotivePSR.h:335
DtRwSimObjectReference myEntityToInterceptAndDestroy
Definition: automotivePSR.h:352
File: lclVecIter.h.
Definition: localVectorIterator.h:25
DtRwBoolean myIsColliding
From DtGroundCollisionAvoidanceController (gndColAvoid.h)
Definition: automotivePSR.h:359
DtRwBoolean myCheckForTerrainCollisions
Definition: automotivePSR.h:369
DtRwBoolean myIsClearing
Definition: automotivePSR.h:360
DtRwVector myWorldDestination
World point for move to location tasks.
Definition: automotivePSR.h:364
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DtRwReal myKTurnReverseGoalHeading
Definition: automotivePSR.h:306
DtRwVector myIntermediateWorldDestination
Intermediate world point for move to location tasks.
Definition: automotivePSR.h:367
DtRwBoolean myUseHighFidelityGroundClamping
Used by the automotive actuator when determining the orientation of the entity.
Definition: automotivePSR.h:373
Definition: readerWriterRegistry.h:39
DtAutoTransmissionGearEnum DtAutoTransmissionGear
Definition: automotivePSR.h:33
DtRwBoolean myRouteIsDiscovered
Determines whether we will keep moving after this task is done and hence shouldn't slow down...
Definition: automotivePSR.h:387
DtRwBoolean myContinueFlag
Definition: automotivePSR.h:381
DtRwSimObjectReference myControlObject
From DtGroundMoveToControllerComponent (gndMvToCntlr.h)
Definition: automotivePSR.h:314
DtRwReal myTaskSpeed
Are we using speed from task message, or default ordered speed?
Definition: automotivePSR.h:392
Definition: rwVector.h:23
DtRwBoolean myAvoidingLeft
Definition: automotivePSR.h:361
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
Instances of DtAutomotivePSR are used to hold the shared/checkpointable data for an automotive system...
Definition: automotivePSR.h:37
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
Definition: automotivePSR.h:29
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwVector myRoadEndPoint
Road currently being used by DtGroundMoveToDestinationControllerComponent.
Definition: automotivePSR.h:378
DtRwSimObjectReference myRoute
From DtGroundMoveAlongController (gndMvAlgCtl.h)
Definition: automotivePSR.h:328
DtRwVector myOffsetVector
Definition: automotivePSR.h:321
DtRwInt myTurnToMode
Definition: automotivePSR.h:396
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
DtRwSimObjectReference myFirstWaypoint
From DtGroundPatrolBetweenController.
Definition: automotivePSR.h:346
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Definition: automotivePSR.h:27
DtRwReal myHeadingToTurnTo
Definition: automotivePSR.h:305
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtAutoTransmissionGearEnum
Definition: automotivePSR.h:25
DtRwReal myStandOffInterceptDistance
Reuse above myReverseFlag from DtGroundPatrolRouteController bool myReverseFlag;. ...
Definition: automotivePSR.h:351
DtRwSimObjectReference mySecondWaypoint
Definition: automotivePSR.h:347
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
Definition: automotivePSR.h:30
DtLocalVectorIterator * myRouteState
Route state used to get info about the current route we're trying to follow (e.g. which vertex to mov...
Definition: automotivePSR.h:331
class DtLocalVertexList:
Definition: localVertexList.h:20
DtRwBoolean myKTurnReverseComplete
Definition: automotivePSR.h:307
DtRwVector myRoadStartPoint
Road currently being used by DtGroundMoveToDestinationControllerComponent.
Definition: automotivePSR.h:377
static const DtFilename & appPath()
Gets the current working directory. The first time this accessor is called, it determines the current...
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
DtRwInt myCurrentGear
Definition: automotivePSR.h:304
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
DtRwBoolean myUseTaskSpeed
Are we using speed from task message, or default ordered speed?
Definition: automotivePSR.h:393