![]() |
VR-Forces 5.0.3 Developer's Guide
|
Instances of DtAutomotivePSR are used to hold the shared/checkpointable data for an automotive system.

Public Member Functions | |
| DtAutomotivePSR (DtLocalObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| DtAutomotivePSR (const DtAutomotivePSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| virtual | ~DtAutomotivePSR () |
| DtAutomotivePSR & | operator= (const DtAutomotivePSR &orig) |
| virtual DtVrfProcessStateRepository * | clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const |
| virtual DtString | type () const |
| virtual void | emptyRouteVertices () |
| virtual DtLocalVectorIterator * | routeState () const |
| virtual void | unspecifyRoadPoints () |
| virtual bool | roadPointsSpecified () const |
| virtual int | currentVertex () const |
| virtual void | putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtReaderWriter::appPath()) |
| virtual void | setCurrentGear (DtAutoTransmissionGear gear) |
| virtual DtAutoTransmissionGear | currentGear () const |
| virtual void | setHeadingToTurnTo (double headingToTurnTo) |
| virtual double | headingToTurnTo () const |
| virtual void | setTurnToMode (int) |
| virtual int | turnToMode () const |
| virtual void | setKTurnReverseGoalHeading (double kTurnReverseGoalHeading) |
| virtual double | kTurnReverseGoalHeading () const |
| void | setCurrentRouteIndex (int currentRouteIndex) |
| int | currentRouteIndex () const |
| virtual void | setKTurnReverseComplete (bool kTurnReverseComplete) |
| virtual bool | kTurnReverseComplete () const |
| virtual void | setControlObject (const DtUUID &object) |
| virtual DtSimObjectReference | controlObject () const |
| virtual void | setContinueFlag (bool flag) |
| virtual bool | continueFlag () const |
| virtual void | setWorldDestination (const DtVector &destination) |
| virtual const DtVector & | worldDestination () const |
| virtual bool | intermediateWorldDestinationValid () const |
| virtual void | invalidateIntermediateWorldDestination () |
| virtual void | setIntermediateWorldDestination (const DtVector &destination) |
| virtual const DtVector & | intermediateWorldDestination () const |
| virtual void | setEntityToFollow (const DtUUID &objectName) |
| virtual DtSimObjectReference | entityToFollow () const |
| virtual void | setFollowingOffsetVector (const DtVector &offsetVector) |
| virtual const DtVector & | followingOffsetVector () const |
| virtual void | setEntityToInterceptAndDestroy (const DtUUID &) |
| virtual DtSimObjectReference | entityToInterceptAndDestroy () const |
| virtual void | setStandOffDistance (const double distance) |
| virtual const double | standOffDistance () const |
| virtual void | setRoute (const DtUUID &route) |
| virtual DtSimObjectReference | route () const |
| virtual void | setRouteVertices (const DtLocalVectorIterator &routeIterator) |
| virtual const DtLocalVertexList & | routeVertices () const |
| virtual void | setReversePatrol (bool flag) |
| virtual bool | reversePatrol () const |
| virtual void | setFirstWaypoint (const DtUUID &waypoint) |
| virtual DtSimObjectReference | firstWaypoint () const |
| virtual void | setSecondWaypoint (const DtUUID &waypoint) |
| virtual DtSimObjectReference | secondWaypoint () const |
| virtual void | setIsColliding (bool colliding) |
| virtual bool | isColliding () const |
| virtual void | setIsClearing (bool clearing) |
| virtual bool | isClearing () const |
| virtual void | setAvoidingLeft (bool avoidingLeft) |
| virtual bool | avoidingLeft () const |
| virtual void | setCheckForTerrainCollisions (bool checkForCollisions) |
| virtual bool | checkForTerrainCollisions () const |
| virtual void | setUseHighFidelityGroundClamping (bool yesOrNo) |
| virtual bool | useHighFidelityGroundClamping () const |
| virtual void | setRoadStartPoint (const DtVector &point) |
| virtual DtVector | roadStartPoint () const |
| virtual void | setRoadEndPoint (const DtVector &point) |
| virtual DtVector | roadEndPoint () const |
| virtual void | setRouteIsDiscovered (bool value) |
| virtual bool | routeIsDiscovered () const |
| virtual void | setUseTaskSpeed (bool value) |
| virtual bool | useTaskSpeed () const |
| virtual void | setTaskSpeed (double value) |
| virtual double | taskSpeed () const |
Public Member Functions inherited from DtVrfProcessStateRepository | |
| DtVrfProcessStateRepository (DtLocalObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| DtVrfProcessStateRepository (const DtVrfProcessStateRepository &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| const DtVrfProcessStateRepository & | operator= (const DtVrfProcessStateRepository &orig) |
| virtual | ~DtVrfProcessStateRepository () |
| virtual bool | init () |
| virtual bool | loadedFromMTL () const |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| bool | operator== (const DtReaderWriter &) const |
| bool | operator!= (const DtReaderWriter &rhs) |
| virtual | ~DtReaderWriter () |
| virtual void | postPutSelf () |
| virtual void | prePutSelf () |
| virtual void | postGetSelf () |
| virtual void | preGetSelf () |
| virtual void | writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual DtSymbolString | name () const |
| virtual void | addAlias (const DtSymbolString &alias) |
| virtual void | addAlias (const DtString &alias) |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| bool | isReadonly () const |
| virtual void | reset () |
| virtual int | alignment () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| virtual void | setName (const DtString &) |
| virtual const char * | readerWriterType () const |
| virtual const char * | xmlType () const |
| virtual DtString | prettyPrint () const |
| std::string | debugText () const |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| virtual bool | hasVariableReference () const |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| virtual void | recordUpdateTime () const |
| virtual bool | wasUpdatedSince (DtTime t) const |
| virtual bool | changedSinceLastChecked () |
| virtual bool | peekChangedSinceLastChecked () const |
| virtual void | putData (std::string &fp, int indentLevel=0) |
| virtual DtlObjPtr | getData (DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| virtual bool | valueSpecified () const |
| virtual bool | isVariableReference () const |
| virtual void | setIsVariableReference (bool value) |
| virtual void | clearAllVariableReferenceFlags () |
| virtual DtSymbolString | variableName () const |
| virtual void | setVariableName (const DtSymbolString variableName) |
| virtual const DtReaderWriter * | defaultRWValue () const |
| virtual DtReaderWriter * | defaultRWValue () |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| const DtReaderWriterRegistry & | registry () const |
| DtReaderWriterRegistry & | registry () |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual DtString | toXml () const |
| virtual DtRwVariableBindings * | generateVariableBindings () const |
| virtual bool | toXml (const DtFilename &) const |
| virtual bool | fromXml (const DtString &) |
| virtual bool | fromXmlFile (const DtFilename &) |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
| DtAutomotivePSR::DtAutomotivePSR | ( | DtLocalObject * | vrfObject, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor
| DtAutomotivePSR::DtAutomotivePSR | ( | const DtAutomotivePSR & | orig, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
copy constructor
|
virtual |
destructor
| DtAutomotivePSR& DtAutomotivePSR::operator= | ( | const DtAutomotivePSR & | orig | ) |
assignment operator
|
virtual |
returns a newly created copy of this object
Implements DtVrfProcessStateRepository.
|
virtual |
Returns the string type of the repository, as defined in procSRTypes.h. (DtVrfAutomotiveProcessStateRepositoryType).
Implements DtVrfProcessStateRepository.
|
virtual |
Set/get current gear.
|
virtual |
Set/get current gear.
|
virtual |
Set/get heading to turn to.
|
virtual |
Set/get heading to turn to.
|
virtual |
Set/get heading turn to mode. See setHeadingRequest.h for modes.
|
virtual |
Set/get heading turn to mode. See setHeadingRequest.h for modes.
|
virtual |
Get/Set the heading that is halfway between the original heading and the heading to turn to. This is only used fore entities that are not pivot capable.
|
virtual |
Get/Set the heading that is halfway between the original heading and the heading to turn to. This is only used fore entities that are not pivot capable.
| void DtAutomotivePSR::setCurrentRouteIndex | ( | int | currentRouteIndex | ) |
Get/Set the index of the route the entity is currently on.
| int DtAutomotivePSR::currentRouteIndex | ( | ) | const |
Get/Set the index of the route the entity is currently on.
|
virtual |
Get/set the flag that indicates whether or not the entity has completed first half of the turn maneuver (backing up until at kTurnReverseGoalHeading())
|
virtual |
Get/set the flag that indicates whether or not the entity has completed first half of the turn maneuver (backing up until at kTurnReverseGoalHeading())
|
virtual |
Get/set the name of the control object to move to (waypoint).Was: setControlObjectName.
|
virtual |
Was: controlObject.
|
virtual |
Get/set the contiue moving flag. If this flag is true the entity will not slow down to the approach speed when it nears the destination. This flag signifies that the entity will continue moving once it's at the destination, presumabley the move task was just a subtask part of a more complex movement task like convoying.
|
virtual |
Get/set the contiue moving flag. If this flag is true the entity will not slow down to the approach speed when it nears the destination. This flag signifies that the entity will continue moving once it's at the destination, presumabley the move task was just a subtask part of a more complex movement task like convoying.
|
virtual |
Get/set the location to which this entity is moving towards for a move to destination (or derivative) task. This point is only valid for that task and is set in world (geocentric) coordinates.
|
virtual |
Get/set the location to which this entity is moving towards for a move to destination (or derivative) task. This point is only valid for that task and is set in world (geocentric) coordinates.
|
virtual |
Get/set the location to which this entity is moving towards as an intermediate point in a move to destination (or derivative) task. This point is only valid for that task and is set in world (geocentric) coordinates.
|
virtual |
Get/set the location to which this entity is moving towards as an intermediate point in a move to destination (or derivative) task. This point is only valid for that task and is set in world (geocentric) coordinates.
|
virtual |
Get/set the location to which this entity is moving towards as an intermediate point in a move to destination (or derivative) task. This point is only valid for that task and is set in world (geocentric) coordinates.
|
virtual |
Get/set the location to which this entity is moving towards as an intermediate point in a move to destination (or derivative) task. This point is only valid for that task and is set in world (geocentric) coordinates.
|
virtual |
Get/set the name of the entity to follow.
|
virtual |
Get/set the name of the entity to follow.
|
virtual |
Get/set the offset vector to use when following (offset is in terms of the body coordinate system of the entity to follow).
|
virtual |
Get/set the offset vector to use when following (offset is in terms of the body coordinate system of the entity to follow).
|
virtual |
Get/set the name of the entity to intercept and destroy.
|
virtual |
Get/set the name of the entity to intercept and destroy.
|
virtual |
Get/set distance away from target to stop.
|
virtual |
Get/set distance away from target to stop.
|
virtual |
Get/set the name of the route to follow.Was: setRouteName.
|
virtual |
Was: routeName.
|
virtual |
Set/get route vertices (local coordinates). Once route is set, can access routeState() to query and set current position along route.
|
virtual |
Set/get route vertices (local coordinates). Once route is set, can access routeState() to query and set current position along route.
|
virtual |
Empty route vertices.
|
virtual |
Get route state (an iterator over the route used to keep track of which point along the route we're heading toward).
|
virtual |
Get/set the reverse flag for patrolling (along route or between points).
|
virtual |
Get/set the reverse flag for patrolling (along route or between points).
|
virtual |
Get/set the first waypoint to move to when patrolling between points.
|
virtual |
Get/set the first waypoint to move to when patrolling between points.
|
virtual |
Get/set the second waypoint to move to when patrolling between points.
|
virtual |
Get/set the second waypoint to move to when patrolling between points.
|
virtual |
Get/set flag indicating if we are currently in a colliding state.
|
virtual |
Get/set flag indicating if we are currently in a colliding state.
|
virtual |
Get/set flag indicating if we are currently clearing a collision.
|
virtual |
Get/set flag indicating if we are currently clearing a collision.
|
virtual |
Get/set flag indicating if we are turning to left to avoid collision.
|
virtual |
Get/set flag indicating if we are turning to left to avoid collision.
|
virtual |
Check the terrain while moving to ensure that the entity does not move through any terrain polygons.
|
virtual |
Check the terrain while moving to ensure that the entity does not move through any terrain polygons.
|
virtual |
When clamping the entity to the ground, using high fidelity ground clamping will cause the entity to use all four support points when determining the plane on which the entity is positioned. When not using high fidelity, the entity will only use a single support point, the center, to determine the normal. Defaults to true, as that is the safer initial value.
|
virtual |
When clamping the entity to the ground, using high fidelity ground clamping will cause the entity to use all four support points when determining the plane on which the entity is positioned. When not using high fidelity, the entity will only use a single support point, the center, to determine the normal. Defaults to true, as that is the safer initial value.
|
virtual |
Points which define the road that the vehicle is moving with respect to. Setting value causes valueSpecified flag to be set true.
|
virtual |
Points which define the road that the vehicle is moving with respect to. Setting value causes valueSpecified flag to be set true.
|
virtual |
Points which define the road that the vehicle is moving with respect to. Setting value causes valueSpecified flag to be set true.
|
virtual |
Points which define the road that the vehicle is moving with respect to. Setting value causes valueSpecified flag to be set true.
|
virtual |
Sets the valueSpecified flag of both myRoadStartPoint and myRoadEndPoint to false.
|
virtual |
Returns true only if both myRoadStartPoint and myRoadEndPoint are specified.
|
virtual |
Sets whether the current task has been successfully initialized.
|
virtual |
Sets whether the current task has been successfully initialized.
|
virtual |
Sets whether to use task speed, sets value.
|
virtual |
Sets whether to use task speed, sets value.
|
virtual |
Sets whether to use task speed, sets value.
|
virtual |
Sets whether to use task speed, sets value.
|
virtual |
Get the current vertex we are moving toward when executuing move-along behavior. Vertices are numbered starting from 0.
|
virtual |
Override to set myCurrentVertex from route state before writing.
Reimplemented from DtReaderWriter.
|
static |
Returns a newly created instance of this class.
|
protected |
From DtGroundAutoController (gndAutoCntlr.h) (enum DtAutoTransmissionGear)
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
From DtGroundMoveToControllerComponent (gndMvToCntlr.h)
If tasked() is true, this is the name of the control object we're moving to.
|
protected |
From DtGroundFollowEntityController (gndFollwCtl.h)
Set when a follow entity task is received.
|
protected |
|
protected |
From DtGroundMoveAlongController (gndMvAlgCtl.h)
If tasked() is true, this is the name of the control object we're moving to.
|
protected |
Route state used to get info about the current route we're trying to follow (e.g. which vertex to move toward).
|
protected |
my copy of the current route
|
protected |
Read/write variables to capture route state.
|
protected |
From DtGroundPatrolRouteController (gndPtrlRtCtl.h)
|
protected |
From DtGroundPatrolBetweenController.
Set when a patrol between task is received.
|
protected |
|
protected |
Reuse above myReverseFlag from DtGroundPatrolRouteController bool myReverseFlag;.
|
protected |
|
protected |
From DtGroundCollisionAvoidanceController (gndColAvoid.h)
Changed myCollidee from DtEntityIdentifier to object name so we can save it across scenario runs.
|
protected |
|
protected |
|
protected |
World point for move to location tasks.
|
protected |
Intermediate world point for move to location tasks.
|
protected |
|
protected |
Used by the automotive actuator when determining the orientation of the entity.
|
protected |
Road currently being used by DtGroundMoveToDestinationControllerComponent.
|
protected |
Road currently being used by DtGroundMoveToDestinationControllerComponent.
|
protected |
|
protected |
Determines whether we will keep moving after this task is done and hence shouldn't slow down.
From DtGroundMoveAlongController (gndMvAlgCtl.h)
Flag indicating whether route to follow has been discovered or not.
|
protected |
Are we using speed from task message, or default ordered speed?
|
protected |
Are we using speed from task message, or default ordered speed?
|
protected |