![]() |
VR-Forces 4.6 Class Documentation
|

Public Member Functions | |
| DtSurfaceMovementPSR (DtVrfObject *vrfObject, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| constructor | |
| DtSurfaceMovementPSR (const DtSurfaceMovementPSR &orig, const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) | |
| copy constructor | |
| virtual | ~DtSurfaceMovementPSR () |
| destructor | |
| DtSurfaceMovementPSR & | operator= (const DtSurfaceMovementPSR &orig) |
| assignment operator | |
| virtual DtVrfProcessStateRepository * | clone (const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const |
| returns a newly created copy of this object | |
| virtual DtString | type () const |
| Returns the string type of the repository, as defined in procSRTypes.h. | |
| virtual void | setRouteVertices (const DtLocalVectorIterator &routeIterator) |
| Set/get route vertices (local coordinates). | |
| virtual const DtLocalVertexList & | routeVertices () const |
| virtual void | emptyRouteVertices () |
| Empty route vertices. | |
| virtual void | setReverseFlag (bool flag) |
| Set/get the reverse flag (reverse the direction of travel while patrolling - either between points or along a route). | |
| virtual bool | reverseFlag () const |
| virtual void | setFirstWaypoint (const DtUUID &) |
| Set/get the first waypoint object. | |
| virtual const DtRwVrfObjectReference & | firstWaypoint () const |
| virtual DtRwVrfObjectReference & | firstWaypoint () |
| virtual void | setSecondWaypoint (const DtUUID &) |
| Set/get the second waypoint object. | |
| virtual const DtRwVrfObjectReference & | secondWaypoint () const |
| virtual DtRwVrfObjectReference & | secondWaypoint () |
| virtual void | setEntityToFollow (const DtUUID &) |
| Set/get the entity to follow. | |
| virtual const DtRwVrfObjectReference & | entityToFollow () const |
| virtual DtRwVrfObjectReference & | entityToFollow () |
| virtual void | setFollowOffsetVector (const DtVector &offset) |
| Set/get the entity follow offset (offset vector in body coordinates of the entity to follow, in meters). | |
| virtual const DtVector & | followOffsetVector () const |
| virtual void | setWaitUntilOrderedSpeedMetToStopTask (bool) |
| Accessor for myWaitUntilOrderedSpeedMetToStopTask. | |
| virtual bool | waitUntilOrderedSpeedMetToStopTask () |
| virtual void | setGeodeticAimingPoint (const DtVector &pnt) |
| Get/set the point to which this entity is moving towards for a move to location task. | |
| virtual const DtVector | geodeticAimingPoint () const |
| virtual void | setGoalVector (const DtVector &goalVector) |
| The vector from the goal position (destination) to the entity's position at the start of the move task. | |
| virtual const DtVector & | goalVector () const |
| virtual void | setContinueAtGoal (const bool cont) |
| Get/set the flag to determine if entity should continue at speed after reaching the destination. | |
| virtual bool | continueAtGoal (void) const |
| virtual void | setIsEmergencyStop (const bool isEmergency) |
| virtual bool | isEmergencyStop (void) const |
| virtual void | setIsDriftStop (const bool isDriftStop) |
| virtual bool | isDriftStop (void) const |
| virtual void | putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtReaderWriter::appPath()) |
| Override to set myCurrentVertex from route state before writing. | |
| virtual double | forwardSpeed () |
| These accessors return the values that the actuator caches between ticks for kinematic values. | |
| virtual void | setForwardSpeed (const double speed) |
| virtual double | forwardAcceleration () |
| virtual void | setForwardAcceleration (const double acceleration) |
| virtual double | clampSpeed () |
| virtual void | setClampSpeed (const double speed) |
| virtual double | clampHeading () |
| virtual void | setClampHeading (const double clampHeading) |
| virtual double | altitudeChangeRate () |
| virtual void | setAltitudeChangeRate (const double altitudeRate) |
| virtual double | clampAltitude () |
| virtual void | setClampAltitude (const double altitude) |
| virtual bool | hasFuel () const |
| Accessors for actuator status info. | |
| virtual void | setHasFuel (const bool hasFuel) |
| virtual bool | isAground () const |
| virtual void | setIsAground (bool isAground) |
| virtual double | goalDepth () |
| Access functions for state variables describing the various movement tasks. | |
| virtual void | setGoalDepth (const double depth) |
| virtual double | desiredDepthRate () |
| virtual void | setDesiredDepthRate (const double rate) |
| virtual bool | isTurnContinuous () |
| virtual void | setIsTurnContinuous (const bool isContinous) |
| virtual double | goalHeading () |
| virtual void | setGoalHeading (const double goalHeading) |
| virtual bool | isUsingConstantDiameter () |
| virtual void | setIsUsingConstantDiameter (const bool usingDiameter) |
| virtual bool | isTurningRight () |
| virtual void | setIsTurningRight (const bool isContinous) |
| virtual double | desiredTurnDiameter () |
| virtual void | setDesiredTurnDiameter (const double desiredTurnDiameter) |
| virtual double | desiredTurnRate () |
| virtual void | setDesiredTurnRate (const double desiredTurnRate) |
| virtual bool | turnTaskIsControllingSpeed () const |
| virtual void | setTurnTaskIsControllingSpeed (const bool isControlling) |
| virtual void | setControlObject (const DtUUID &) |
| Set/get control object to head towards. | |
| virtual const DtRwVrfObjectReference & | controlObject () const |
| Was: controlObjectName. | |
| virtual DtRwVrfObjectReference & | controlObject () |
| virtual void | setRoute (const DtUUID &) |
| Set/get route to follow. | |
| virtual const DtRwVrfObjectReference & | route () const |
| Was: routeName. | |
| virtual DtRwVrfObjectReference & | route () |
| virtual DtLocalVectorIterator * | routeState () const |
| Get route state (an iterator over the route used to keep track of which point along the route we're heading toward). | |
| virtual DtReal | startTurnDistance2 () |
| Accessors for start-turn-distance squared (see description below). | |
| virtual void | setStartTurnDistance2 (const DtReal distance) |
| virtual int | prevRoutePointIndex () |
| Accessors for next- and prev-route-point index. | |
| virtual void | setPrevRoutPointIndex (const int index) |
| virtual int | nextRoutePointIndex () |
| virtual void | setNextRoutePointIndex (const int index) |
| virtual void | setCurrentRoutePointIndex (const int index) |
| virtual DtRwInt & | currentVertex () |
| Accessors for the current vertex indices (RW) into the route. | |
| virtual const DtRwInt & | currentVertex () const |
| virtual DtRwInt & | nextVertex () |
| virtual const DtRwInt & | nextVertex () const |
| virtual DtRwInt & | previousVertex () |
| virtual const DtRwInt & | previousVertex () const |
| virtual DtReal | maxYawRate () const |
| These accessors are for copies of parameters from the actuator descriptor that are saved in the PSR. | |
| virtual void | setMaxYawRate (DtReal maxYawRate) |
| virtual DtReal | maxYawAcceleration () const |
| Accessor/mutator for myMaxYawAcceleration. | |
| virtual void | setMaxYawAcceleration (DtReal maxYawAcceleration) |
| virtual double | stoppingSpeed () const |
| Accessor/mutator for myStoppingSpeed. | |
| virtual void | setStoppingSpeed (DtReal stoppingSpeed) |
Public Member Functions inherited from DtVrfProcessStateRepository | |
| DtVrfProcessStateRepository (DtVrfObject *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 () |
| Used for virtual construction. This base method simply returns true. | |
| virtual bool | loadedFromMTL () const |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| default constructor | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| real constructor Setting the readonly flag prevents object from writing itself to the stream. | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| pseudo-copy constructor | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| assignment operator | |
| bool | operator== (const DtReaderWriter &) const |
| Equivalence operator. | |
| bool | operator!= (const DtReaderWriter &rhs) |
| virtual | ~DtReaderWriter () |
| destructor | |
| virtual void | postPutSelf () |
| Called after either version of put self (file or environment). Default is no-op. | |
| virtual void | prePutSelf () |
| Called before either version of put self (file or environment). Default is no-op. | |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| Top level to read itself from an input stream. | |
| virtual void | postGetSelf () |
| Called after either version of getSelf (mtl or environment). Default is no-op. | |
| virtual void | preGetSelf () |
| Called before either version of get self (file or environment). Default is no-op. | |
| virtual void | writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| Called from putSelf, calls myRegistry.putSelf which in turn calls putSelf on each reader/writer in the registry. | |
| virtual DtSymbolString | name () const |
| Accessor for name of this readable/writable object. | |
| virtual void | addAlias (const DtSymbolString &alias) |
| Add an alias as an alternative name for this object. | |
| virtual void | addAlias (const DtString &alias) |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| Set read-only flag. | |
| bool | isReadonly () const |
| virtual void | reset () |
| For those reader/writer items that support it, resets the reader/writer value to original state Default is no-op. | |
| virtual int | alignment () const |
| For those items that are sent over the network via HLA, this will give the network alignment. | |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| Sets the myVariableIsBound flag to false. | |
| virtual void | setName (const DtString &) |
| Set the name of the object. | |
| virtual const char * | readerWriterType () const |
| Used to supply a string type that this reader writer type is. | |
| virtual const char * | xmlType () const |
| virtual DtString | prettyPrint () const |
| Routine to return a human readable form of the reader/writer variable. | |
| std::string | debugText () const |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| Runs a variable binding pass on this reader writer and any of its children. | |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| Returns true if this variable has a child p in it's chain. | |
| virtual bool | hasVariableReference () const |
| Returns true if this item or any item in the registry (recursive) is a variable reference. | |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| Checks to see if this RW object is a variable reference that can be bound using the provided bindings. | |
| virtual void | recordUpdateTime () const |
| Can be implemented in subclasses to stamp the time when updated. | |
| virtual bool | wasUpdatedSince (DtTime t) const |
| Can be implemented in subclasses to return true if an update occurred after the specified time. | |
| virtual bool | changedSinceLastChecked () |
| Returns true if this objects value has changed since the last time this function was called. | |
| virtual bool | peekChangedSinceLastChecked () const |
| Returns the value that changedSinceLastChecked would return but does not reset the internal flag. | |
| virtual void | putData (std::string &fp, int indentLevel=0) |
| Deriving class overrides these to get/put class specific data. | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| The specified flags are used for optional values. | |
| virtual bool | valueSpecified () const |
| virtual bool | isVariableReference () const |
| Specifies whether or not this reader writer is really a variable that is specified elsewhere. | |
| virtual void | setIsVariableReference (bool value) |
| virtual void | clearAllVariableReferenceFlags () |
| Clears out all variable reference flags from all readerwriter items in registry recursively. | |
| virtual DtSymbolString | variableName () const |
| The variable name, if this object is a variable reference. | |
| virtual void | setVariableName (const DtSymbolString variableName) |
| virtual const DtReaderWriter * | defaultRWValue () const |
| The default value to use if the reader/writer object is a variable and that variable is not specified. | |
| virtual DtReaderWriter * | defaultRWValue () |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| Previous default value, if exists, will be removed and replaced with a clone of the supplied variable. | |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| Give the stream, if the stream contains a default value then set it here. | |
| const DtReaderWriterRegistry & | registry () const |
| Collection of child DtReaderWriter nodes owned by this object. | |
| DtReaderWriterRegistry & | registry () |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual DtString | toXml () const |
| virtual bool | toXml (const DtFilename &) const |
| Writes contents of xml result to the given filename. | |
| virtual bool | fromXml (const DtString &) |
| Restores object from given xml string. Returns true if valid. | |
| virtual bool | fromXmlFile (const DtFilename &) |
| Restores object from given xml file. | |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| Override to add attributes of actual data. | |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| Called when the item is a variable reference. | |
| 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()) |
| Gets data from the environment value. | |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| Called when the xml reader tries to parse an unknown reader/writer item. Default is a no-op. | |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
| Called when the item is a variable reference. | |
Static Public Member Functions | |
| static DtVrfProcessStateRepository * | creator (const DtString &rwName, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry) |
| Returns a newly created instance of this class. | |
Static Public Member Functions inherited from DtVrfProcessStateRepository | |
| static DtVrfProcessStateRepositoryFactory * | factory () |
| a DtVrfProcessStateRepositoryFactory is allocated by the DtSimCreator, and this pointer is set. | |
| static void | setFactory (DtVrfProcessStateRepositoryFactory *factory) |
| static void | addVrfProcessStateRepositoryCreatorFcn (const DtString &type, DtVrfProcessStateRepositoryCreatorFcn fcn) |
| static DtVrfProcessStateRepository * | createRepository (const DtString &name, const DtString &type, DtVrfObject *vrfObject, DtReaderWriterRegistry *parentRegistry=0) |
| Creates a new state repository object, using the factory. | |
Static Public Member Functions inherited from DtReaderWriter | |
| static void | putIndent (std::string &fp, int indentLevel) |
| static const DtVariableBindingsList & | nullVariableReference () |
| static void | setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData) |
| static void | setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData) |
| static void | setPutIndent (bool) |
| static bool | putIndent () |
| static const char * | theXmlType () |
| The type that is used when archiving to an XML stream. | |
| static const DtFilename & | appPath () |
| Gets the current working directory. | |
| static void | setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn) |
| Sets the function to create the DtReaderWriterFactory. | |
| static void | createReaderWriterFactory () |
| static void | cleanupFactory () |
| static DtReaderWriter * | createFromXmlFile (const DtFilename &, bool createAsProperty=false) |
| Given a filename, returns a newly created reader/writer object from the object found within. | |
| static DtReaderWriter * | createFromXml (const DtString &, bool createAsProperty=false) |
| Given a xml string, returns a newly created reader/writer object from the object found within. | |
| static DtReaderWriter * | createFromEnvironment (DtEnvironmentSP, bool createAsProperty=false) |
| Given a xml environment, returns a newly created reader/writer object from the object found within. | |
| static DtString | getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root) |
| Gets the named attribute from a DtEnvValueSP. | |
Static Public Member Functions inherited from DtObjectDebugger< DtReaderWriter > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
Protected Attributes | |
| DtRwReal | myStartTurnDistance2 |
| The distance (squared) before the next point that the ship has to start heading for the following point, so that it can make the turn "inside" the route segments (vs. | |
| DtRwBoolean | myReverseFlag |
| For patrol-route control. | |
| DtRwReal | myForwardSpeed |
| Used in the actuator DtSufaceEntitySimpleActuator. | |
| DtRwReal | myForwardAcceleration |
| DtRwReal | myClampSpeed |
| DtRwReal | myClampHeading |
| DtRwReal | myAltitudeChangeRate |
| For the subsurface depth actuator: | |
| DtRwReal | myClampAltitude |
| DtRwBoolean | myHasFuel |
| Actuator status information. | |
| DtRwBoolean | myIsAground |
| Set by the actuator when it detects that the entity is aground. | |
| DtRwReal | myGoalDepth |
| This is used by subsurface depth controller. | |
| DtRwReal | myDesiredDepthRate |
| The desired depth change rate. This is always positive. | |
| DtRwBoolean | myIsTurnContinuous |
| For turn-move: | |
| DtRwReal | myGoalHeading |
| DtRwBoolean | myIsUsingConstantDiameter |
| If turn rate is set with diameter, then each tick the radians/secc turn rate for the output port has to be computed from the speed. | |
| DtRwBoolean | myIsTurningRight |
| If turning on a diameter, this flag indicates which way: | |
| DtRwReal | myDesiredTurnDiameter |
| DtRwReal | myDesiredTurnRate |
| Positive if turning right, negative if left. Rad/sec. | |
| DtRwBoolean | myTurnTaskControllingSpeed |
| True when the task is run; stays true until another movement task runs. | |
| DtRwBoolean | myWaitUntilOrderedSpeedMetToStopTask |
| Whether or not to wait until the ordered speed has been met to stop the task. | |
| DtRwVector | myGeodeticAimingPoint |
| For Surface Entity Move To Location controller. | |
| DtRwVector | myGoalVector |
| The vector from the aiming point (goal) to the start point of the move. | |
| DtRwBoolean | myContinueAtGoal |
| Indicates that the entity should continue at speed after hitting the destination location. | |
| DtRwVrfObjectReference | myControlObject |
| For move-to [waypoint] control. | |
| DtRwVrfObjectReference | myRoute |
| For move-along [route] control. | |
| DtLocalVectorIterator * | myRouteState |
| Route state used to get info about the current route we're trying to follow (e.g. | |
| DtLocalVertexList | myVertices |
| my copy of the current route | |
| DtRwInt | myCurrentVertex |
| Read/write variables to capture route state. | |
| DtRwInt | myNextVertex |
| DtRwInt | myPrevVertex |
| DtRwVrfObjectReference | myFirstWaypoint |
| For patrol-between control. | |
| DtRwVrfObjectReference | mySecondWaypoint |
| DtRwVrfObjectReference | myEntityToFollow |
| For follow control. | |
| DtRwVector | myFollowOffsetVector |
| Following offset vector (in body coordinates of entity to follow, in meters). | |
| DtRwBoolean | myIsEmergencyStop |
| For stop task. | |
| DtRwBoolean | myIsDriftStop |
| DtRwReal | myStoppingSpeed |
| Other variables: not used in the above controllers or actuators. | |
| DtRwReal | myMaxYawRate |
| Max yaw rate– used only in DtSurfaceEntityActuator. | |
| DtRwReal | myMaxYawAcceleration |
| Max yaw rate acceleration– used only in DtSurfaceEntityActuator. | |
Protected Attributes inherited from DtVrfProcessStateRepository | |
| DtVrfObject * | myVrfObject |
| bool | myLoadedFromMTL |
Protected Attributes inherited from DtReaderWriter | |
| const DtSymbolString | myName |
| DtReaderWriterRegistry | myRegistry |
| DtReaderWriterRegistry * | myParentRegistry |
| bool | myValueSpecified |
| bool | myReadOnlyFlag |
| bool | myIsVariableReference |
| DtSymbolString | myVariableName |
| bool | myVariableIsBound |
| DtReaderWriter * | myDefaultValue |
| aliasContainer | myAliases |
| Container for the aliases which represent alternative names for the object. | |
| bool | myInvalid |
| Set to true if there is a problem reading this item. | |
| bool | myChangedFlag |
| Set to true when value changes Set to false when value checked with changedSinceLastChecked. | |
Additional Inherited Members | |
Public Types inherited from DtReaderWriter | |
| typedef std::vector < DtSymbolString > | aliasContainer |
| typedef std::vector < DtSymbolString >::iterator | aliasIter |
| typedef std::vector < DtSymbolString > ::const_iterator | aliasConstIter |
| typedef std::vector< DtFilename > | SearchPaths |
| typedef std::pair < DtSymbolString, DtString > | DtVariableNameType |
| typedef DtReaderWriterFactory *(* | DtReaderWriterFactoryCreatorFcn )() |
Protected Member Functions inherited from DtVrfProcessStateRepository | |
| DtVrfProcessStateRepository () | |
Static Protected Attributes inherited from DtVrfProcessStateRepository | |
| static DtVrfProcessStateRepositoryFactory * | theFactory |
| DtSurfaceMovementPSR::DtSurfaceMovementPSR | ( | DtVrfObject * | vrfObject, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
constructor
| DtSurfaceMovementPSR::DtSurfaceMovementPSR | ( | const DtSurfaceMovementPSR & | orig, |
| const DtString & | rwName = DtString::nullString(), |
||
| DtReaderWriterRegistry * | parentRegistry = 0 |
||
| ) |
copy constructor
|
virtual |
destructor
| DtSurfaceMovementPSR& DtSurfaceMovementPSR::operator= | ( | const DtSurfaceMovementPSR & | 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.
(DtVrfSurfaceMovementProcessStateRepositoryType).
Implements DtVrfProcessStateRepository.
|
inlinevirtual |
These accessors return the values that the actuator caches between ticks for kinematic values.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Accessors for actuator status info.
The accessor is a shortcut for looking up the fuel resource. This flag is set by the actuator when it checks fuel usage.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Access functions for state variables describing the various movement tasks.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set/get control object to head towards.
Was: setControlObjectName
|
virtual |
Was: controlObjectName.
|
virtual |
|
virtual |
Set/get route to follow.
Was: setRouteName
|
virtual |
Was: routeName.
|
virtual |
|
virtual |
Set/get route vertices (local coordinates).
Once route is set, can access routeState() to query and set current position along route. The minSpacing parameter allows this function to prune route points that are closer together than this.
|
virtual |
|
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).
|
inlinevirtual |
Accessors for start-turn-distance squared (see description below).
|
inlinevirtual |
References makVrv::vrvTacticalGraphicUtilities::distance().
|
inlinevirtual |
Accessors for next- and prev-route-point index.
|
virtual |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
Accessors for the current vertex indices (RW) into the route.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set/get the reverse flag (reverse the direction of travel while patrolling - either between points or along a route).
|
virtual |
|
virtual |
Set/get the first waypoint object.
|
virtual |
|
virtual |
|
virtual |
Set/get the second waypoint object.
|
virtual |
|
virtual |
|
virtual |
Set/get the entity to follow.
|
virtual |
|
virtual |
|
virtual |
Set/get the entity follow offset (offset vector in body coordinates of the entity to follow, in meters).
|
virtual |
|
virtual |
Accessor for myWaitUntilOrderedSpeedMetToStopTask.
|
virtual |
|
virtual |
Get/set the point to which this entity is moving towards for a move to location task.
In a triple (DtVector) containing lat-lon-alt.
|
virtual |
|
virtual |
The vector from the goal position (destination) to the entity's position at the start of the move task.
This vector is used to determine when the entity has passed by the goal location. North-east-down (i.e., like topocentric) data from a DtVector3D.
|
virtual |
|
virtual |
Get/set the flag to determine if entity should continue at speed after reaching the destination.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Override to set myCurrentVertex from route state before writing.
Reimplemented from DtReaderWriter.
|
virtual |
These accessors are for copies of parameters from the actuator descriptor that are saved in the PSR.
Accessor/mutator for myMaxYawRate.
|
virtual |
|
virtual |
Accessor/mutator for myMaxYawAcceleration.
|
virtual |
|
virtual |
Accessor/mutator for myStoppingSpeed.
|
virtual |
|
static |
Returns a newly created instance of this class.
|
protected |
Used in the actuator DtSufaceEntitySimpleActuator.
These are kinematic values for the previous tick. The first two are caches of values that can be computed from kinematic state; using these values saves computation of transformations. Speed and acceleration are signed values; they are negative if they are in the rearward direction. Clamp speed from the previous tick must be saved in state (the alternative is to use the clamp speed for the next tick, which is available to the actuator on its input port.) Rotation rate is easier to get from kinematic state, so is not saved here. Clamp heading is for the previous tick. If the entity is performing a turn task, this will be the same as myGoalHeading, but myGoalHeading may not be valid for other tasks.
|
protected |
|
protected |
|
protected |
|
protected |
For the subsurface depth actuator:
|
protected |
|
protected |
Actuator status information.
Set by the actuator when it checks fuel.
When the actuator determines that the entity is out of fuel, it will set the power plant appearance to "off." The (pilot) controller can also turn off the power plant to drift. The controller should check fuel before trying to turn the power plant on.
|
protected |
Set by the actuator when it detects that the entity is aground.
|
protected |
This is used by subsurface depth controller.
The desired depth. Note this is 0 at sea level and increases with decreasing altitude.
|
protected |
The desired depth change rate. This is always positive.
|
protected |
For turn-move:
If true, goalHeading is not used:
|
protected |
|
protected |
If turn rate is set with diameter, then each tick the radians/secc turn rate for the output port has to be computed from the speed.
|
protected |
If turning on a diameter, this flag indicates which way:
|
protected |
|
protected |
Positive if turning right, negative if left. Rad/sec.
|
protected |
True when the task is run; stays true until another movement task runs.
While true, the task keeps controlling speed to match ordered speed, even if the task is complete.
|
protected |
Whether or not to wait until the ordered speed has been met to stop the task.
Default is true to allow for previous tasks that did not use this value to perform the way it does now. This is not set by the task, but rather is set as a function of the DtTurnMoveTaskType. The DtSailHeadingTaskType will set this value to false to stop when it reaches the heading. The entity will still continue to increase it's speed until it matches it's ordered speed
|
protected |
For Surface Entity Move To Location controller.
The current destination location, in a triple that represents lat-lon-alt. Copied to a DtLocation3D each tick.
|
protected |
The vector from the aiming point (goal) to the start point of the move.
Used to determine when the entity has passed the goal (when it's vector to the goal is 90 degrees to this). North-east-down (i.e., like topocentric) data from a DtVector3D.
|
protected |
Indicates that the entity should continue at speed after hitting the destination location.
Used in move-to as well.
|
protected |
For move-to [waypoint] control.
Object name of a waypoint we're moving toward.
|
protected |
For move-along [route] control.
Route object we're following.
|
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.
The route following controller may skip closely-spaced route points, so cannot just use the iterator's prev() and next() functions to get at the points it is actually using.
|
protected |
|
protected |
|
protected |
The distance (squared) before the next point that the ship has to start heading for the following point, so that it can make the turn "inside" the route segments (vs.
overshooting the next point), and yet stay close to the route segments (vs. turning away early).
|
protected |
For patrol-route control.
Current direction of patrol (along route or between waypoints).
|
protected |
For patrol-between control.
Object names of the waypoints to patrol between.
|
protected |
|
protected |
For follow control.
Object name of entity to follow.
|
protected |
Following offset vector (in body coordinates of entity to follow, in meters).
|
protected |
For stop task.
|
protected |
|
protected |
Other variables: not used in the above controllers or actuators.
Copies of parameters in the actuator descriptor.
Stopping speed. This is the epsilon within which the vessel's speed must be of the desired (clamp) speed before the actuator clamps the speed. (PSR version used only in DtSurfaceEntityActuator)
|
protected |
Max yaw rate– used only in DtSurfaceEntityActuator.
|
protected |
Max yaw rate acceleration– used only in DtSurfaceEntityActuator.