![]() |
VR-Link API Documentation for HLA 1.3
|
Instances of DtSmoother are used to provide approximated position and orientation information for entities. More...
Inheritance diagram for DtSmoother:
Collaboration diagram for DtSmoother:Public Member Functions | |
| DtSmoother () | |
| Default constructor. | |
| virtual | ~DtSmoother () |
| Destructor. | |
| DtSmoother (const DtSmoother &src) | |
| Copy constructor. | |
| DtSmoother & | operator= (const DtSmoother &src) |
| Assignment operator. | |
| virtual DtApproximator * | clone () const |
| Create a copy of this object. | |
| virtual void | setLocation (const DtVector &loc, DtTime t) |
| Set absolute location. | |
| virtual const DtVector & | approxLocation (DtTime t) const |
| Get the approximated location at the specified time. | |
| virtual void | setVelocity (const DtVector &vel, DtTime t) |
| Set absolute velocity. | |
| virtual const DtVector & | approxVelocity (DtTime t) const |
| Get the approximated velocity at the specified time. | |
| virtual void | setOrientation (const DtTaitBryan &ori, DtTime t) |
| Set absolute orientation. | |
| virtual const DtTaitBryan & | approxEuler (DtTime t) const |
| Get approximated orientation (Euler angles) at the specified time. | |
| virtual void | setAcceleration (const DtVector &acc, DtTime t) |
| Set/Get absolute acceleration. | |
| virtual const DtVector & | acceleration (DtTime t) const |
| virtual void | setRotationalVelocity (const DtVector &vel, DtTime t) |
| Set/Get absolute rotational velocity. | |
| virtual const DtVector & | rotationalVelocity (DtTime t) const |
| virtual const DtDcm & | approxBodyToGeoc (DtTime t) const |
| Get the approximated data body to geocentric coordinate matrix. | |
| virtual void | setSmoothPeriod (DtTime t) |
| Set/Get smoothing period - the amount of time over which smoothing takes place. | |
| virtual DtTime | smoothPeriod () const |
| virtual void | setOriSmoothPeriod (DtTime t) |
| Set/Get orientation smoothing period - the amount of time over which orientation smoothing takes place. | |
| virtual DtTime | oriSmoothPeriod () const |
| virtual void | setSmoothEnable (bool onOff) |
| virtual bool | smoothEnable () const |
Public Member Functions inherited from DtDeadReckoner | |
| DtDeadReckoner () | |
| default constructor | |
| virtual | ~DtDeadReckoner () |
| destructor | |
| DtDeadReckoner (const DtDeadReckoner &orig) | |
| copy constructor | |
| DtDeadReckoner & | operator= (const DtDeadReckoner &orig) |
| assignment operator | |
| virtual const DtVector & | deadReckonedLocation (DtTime curTime) const |
| Get the dead-reckoned location at the specified time. | |
| virtual const DtVector & | deadReckonedVelocity (DtTime curTime) const |
| Get the dead-reckoned velocity at the specified time. | |
| virtual const DtTaitBryan & | deadReckonedEuler (DtTime curTime) const |
| Get dead-reckoned orientation (Euler angles) at the specified time. | |
| virtual const DtDcm & | deadReckonedBodyToGeoc (DtTime curTime) const |
| Get the dead-reckoned body to geocentric coordinate matrix. | |
| virtual void | setAlgorithm (DtDeadReckonTypes alg) |
| Set/Get the dead reckoning algorithm used for generating the approximated values from the absolute values. | |
| virtual DtDeadReckonTypes | algorithm () const |
| virtual void | deadReckonPosition (DtTime dt, const DtVector &oldPos, const DtVector &oldVel, const DtVector &oldAccel, DtVector &newVel, DtVector &newPos) |
| Calculate the dead reckon position information based on the algorithm type. | |
| virtual void | deadReckonOrientation (DtTime dt, const DtDcm &old_b2w, const DtDirectedRotRate &drr, DtDcm &new_b2w) |
| Calculate the orientation matrix based on the algorithm type. | |
Public Member Functions inherited from DtApproximator | |
| virtual | ~DtApproximator () |
| destructor | |
| DtApproximator & | operator= (const DtApproximator &orig) |
| assignment operator | |
Static Public Member Functions | |
| static void | setDfltSmoothPeriod (DtTime smoothPeriod) |
| Set/Get the default smoothing period. | |
| static DtTime | dfltSmoothPeriod () |
| static void | setMasterSmoothEnable (bool onOff) |
| Set/Get the value of the "master" smoothing-enabled switch. | |
| static bool | masterSmoothEnable () |
| static void | rotAngleAndAxisFromRotMatrix (DtVector &n, double &phi, const DtDcm &m) |
| static void | rotMatrixFromRotRatesAndTime (DtDcm &m, DtDcm &o, DtVector &n, double &w, const DtVector &r, double t) |
Static Public Member Functions inherited from DtDeadReckoner | |
| static void | deadReckonPosition (DtTime dt, DtDeadReckonTypes algorithm, const DtVector &oldPos, const DtVector &oldVel, const DtVector &oldAccel, DtVector &newVel, DtVector &newPos) |
| Calculate the dead reckon position information. | |
| static void | deadReckonOrientation (DtTime dt, DtDeadReckonTypes algorithm, const DtDcm &old_b2w, const DtDirectedRotRate &drr, DtDcm &new_b2w) |
| Calculate the orientation matrix. | |
Protected Member Functions | |
| virtual void | resetPosSmoother (DtTime t) |
| virtual void | resetOriSmoother (DtTime t) |
| virtual const DtVector & | smoothPosition (DtTime t) |
| virtual const DtVector & | smoothVelocity (DtTime t) |
| virtual const DtDcm & | smoothBodyToGeoc (DtTime t) |
| virtual void | initSmootherParams () |
| virtual void | initSmoothOriParams () |
| DtSmoother * | self () const |
| Get rid of constness on the "this" pointer in order to access non-const functions from const member functions (such as simple accessors). | |
Protected Member Functions inherited from DtDeadReckoner | |
| virtual void | deadReckonLoc (DtTime curTime) const |
| If the last dead reckoned position is not valid for the specified time, recalculate it and update the time at which this value is valid. | |
| virtual void | deadReckonBodyToGeoc (DtTime curTime) const |
| If the last dead reckoned body to geocentric coordinate matrix is not valid for the specified time, recalculate it and update the time at which this value is valid. | |
| virtual void | deadReckonEuler (DtTime curTime) const |
| If the last dead reckoned orientation (Euler angles) is not valid for the specified time, recalculate it and update the time at which this value is valid. | |
| virtual int | isRotational () |
| Returns 1 if the dead reckoning algorithm is a rotational one, 0 otherwise. | |
Protected Member Functions inherited from DtApproximator | |
| DtApproximator () | |
| Constructors are protected since this is an abstract base class. | |
| DtApproximator (const DtApproximator &orig) | |
| copy constructor | |
Static Protected Attributes | |
| static double | theTimeTolerance |
| static bool | theMasterSmoothEnable |
| static DtTime | theDfltSmoothPeriod |
Additional Inherited Members | |
Static Protected Member Functions inherited from DtDeadReckoner | |
| static int | isRotational (DtDeadReckonTypes algorithm) |
| Returns 1 if the dead reckoning algorithm is a rotational one, 0 otherwise. | |
Instances of DtSmoother are used to provide approximated position and orientation information for entities.
Position and orientation information is approximated over time from the last set absolute (non-approximated) information. When a new position is set, the current position moves smoothly to reflect the new information, rather than jumping to the new absolute position.
| DtSmoother::DtSmoother | ( | ) |
Default constructor.
|
virtual |
Destructor.
| DtSmoother::DtSmoother | ( | const DtSmoother & | src | ) |
Copy constructor.
Reimplemented from DtDeadReckoner.
Reimplemented in DtOldSmoother.
Get the approximated data body to geocentric coordinate matrix.
Reimplemented from DtDeadReckoner.
Reimplemented in DtOldSmoother.
|
virtual |
Get approximated orientation (Euler angles) at the specified time.
Reimplemented from DtDeadReckoner.
Reimplemented in DtOldSmoother.
Get the approximated location at the specified time.
Reimplemented from DtDeadReckoner.
Reimplemented in DtOldSmoother.
Get the approximated velocity at the specified time.
Reimplemented from DtDeadReckoner.
Reimplemented in DtOldSmoother.
|
virtual |
Create a copy of this object.
Memory is allocated and it is the responsibility of the caller to free the memory via delete.
Reimplemented from DtDeadReckoner.
Reimplemented in DtOldSmoother.
|
static |
Reimplemented in DtOldSmoother.
|
protectedvirtual |
|
protectedvirtual |
|
static |
Reimplemented in DtOldSmoother.
| DtSmoother& DtSmoother::operator= | ( | const DtSmoother & | src | ) |
Assignment operator.
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
static |
Reimplemented from DtDeadReckoner.
Reimplemented in DtOldSmoother.
|
static |
|
inlineprotected |
Get rid of constness on the "this" pointer in order to access non-const functions from const member functions (such as simple accessors).
This should be used sparingly since it bypasses the const protection. Note: This is essentially like an operator and is non-virtual, since can't override based on return type. Allows derived classes to also define this member.
Reimplemented from DtDeadReckoner.
Reimplemented in DtOldSmoother.
|
static |
Set/Get the default smoothing period.
Reimplemented in DtOldSmoother.
|
static |
Set/Get the value of the "master" smoothing-enabled switch.
Master smoothing switch defaults to on.
Reimplemented in DtOldSmoother.
|
virtual |
|
virtual |
Set/Get orientation smoothing period - the amount of time over which orientation smoothing takes place.
Pass a value of -1 to indicate use of the default smoothing period.
Set/Get absolute rotational velocity.
Reimplemented from DtDeadReckoner.
Reimplemented in DtOldSmoother.
|
virtual |
Reimplemented in DtOldSmoother.
|
virtual |
Set/Get smoothing period - the amount of time over which smoothing takes place.
Pass a value of -1 to indicate use of the default smoothing period.
Reimplemented in DtOldSmoother.
|
virtual |
Reimplemented in DtOldSmoother.
|
virtual |
Reimplemented in DtOldSmoother.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |