|
Sen API
Sen Libraries
|
Enables the user to predict an object’s position and movement at any future time applying dead reckoning. It adheres to the algorithms specified in IEEE 1278_1:2012, Annex E. More...
#include <dead_reckoner.h>
Public Types | |
| using | Parent = DeadReckonerTemplateBase<T> |
| using | SpatialVariant = typename Parent::SpatialVariant |
| using | StaticSpatial = typename Parent::StaticSpatial |
| using | FpsSpatial = typename Parent::FpsSpatial |
| using | RpsSpatial = typename Parent::RpsSpatial |
| using | RvsSpatial = typename Parent::RvsSpatial |
| using | FvsSpatial = typename Parent::FvsSpatial |
| using | RprLocation = typename Parent::RprLocation |
| using | RprOrientation = typename Parent::RprOrientation |
| using | RprVelocity = typename Parent::RprVelocity |
| using | RprAcceleration = typename Parent::RprAcceleration |
| using | RprAngularVelocity = typename Parent::RprAngularVelocity |
| using | SituationProcessor = std::function<Situation(sen::TimeStamp)> |
| using | GeodeticSituationProcessor = std::function<GeodeticSituation(sen::TimeStamp)> |
Public Member Functions | |
| DeadReckoner (const T &object, DrConfig config={}) | |
| Constructor for the DeadReckoner where an object inheriting from rpr::BaseEntity is inputted as a reference. This is the easiest version of the API to instantiate a DeadReckoner. | |
| ~DeadReckoner () override=default | |
| Situation | situation (sen::TimeStamp timeStamp) override |
| Returns the extrapolated/smoothed situation of the object at the timestamp introduced as argument, expressed in the following coordinates: | |
| GeodeticSituation | geodeticSituation (sen::TimeStamp timeStamp) override |
| Returns the extrapolated/smoothed situation of the object at the timestamp introduced as argument, expressed in the following coordinates: | |
| T & | getObject () noexcept |
| Provides direct mutable access to the internal object managed by this instance of the DeadReckoner. | |
| void | updateSituation (const Situation &value) |
| Updates the last known real time Situation. A valid timestamp is needed inside the Situation provided as argument. | |
| void | updateGeodeticSituation (const GeodeticSituation &value) |
| Updates the last known real time GeodeticSituation. A valid timestamp is needed inside the GeodeticSituation provided as argument. | |
| const DrConfig & | getConfig () const noexcept |
| void | setConfig (const DrConfig &config) |
Static Public Member Functions | |
| static Situation | toSituation (const SpatialVariant &spatial, sen::TimeStamp timeStamp={}) |
| Translates a SpatialVariant to a Situation struct. | |
| static GeodeticSituation | toGeodeticSituation (const SpatialVariant &spatial, sen::TimeStamp timeStamp={}) |
| Translates a SpatialVariant to a GeodeticSituation struct. | |
Protected Member Functions | |
| const Situation & | getSmoothSituation () const noexcept |
| void | smooth (const Situation &update) |
| void | invalidateCache () |
| bool | isSituationCached (sen::TimeStamp timeStamp) const noexcept |
| void | setCachedSituation (const Situation &situation) |
| const Situation & | getCachedSituation () const noexcept |
| bool | isGeodeticSituationCached (sen::TimeStamp timeStamp) const noexcept |
| void | setCachedGeodeticSituation (const GeodeticSituation &situation) |
| const GeodeticSituation & | getCachedGeodeticSituation () const noexcept |
Static Protected Member Functions | |
| static Situation | extrapolate (const SpatialVariant &spatial, sen::TimeStamp time, sen::TimeStamp lastTimeStamp) |
| Returns the extrapolated situation of the RPR Entity given its Spatial field and two timestamps that define a time delta for the extrapolation. | |
Enables the user to predict an object’s position and movement at any future time applying dead reckoning. It adheres to the algorithms specified in IEEE 1278_1:2012, Annex E.
| T | rpr::BaseEntityInterface or a subclass of it |
| using sen::util::DeadReckoner< T >::Parent = DeadReckonerTemplateBase<T> |
| using sen::util::DeadReckoner< T >::SpatialVariant = typename Parent::SpatialVariant |
| using sen::util::DeadReckoner< T >::StaticSpatial = typename Parent::StaticSpatial |
| using sen::util::DeadReckoner< T >::FpsSpatial = typename Parent::FpsSpatial |
| using sen::util::DeadReckoner< T >::RpsSpatial = typename Parent::RpsSpatial |
| using sen::util::DeadReckoner< T >::RvsSpatial = typename Parent::RvsSpatial |
| using sen::util::DeadReckoner< T >::FvsSpatial = typename Parent::FvsSpatial |
| using sen::util::DeadReckoner< T >::RprLocation = typename Parent::RprLocation |
| using sen::util::DeadReckoner< T >::RprOrientation = typename Parent::RprOrientation |
| using sen::util::DeadReckoner< T >::RprVelocity = typename Parent::RprVelocity |
| using sen::util::DeadReckoner< T >::RprAcceleration = typename Parent::RprAcceleration |
| using sen::util::DeadReckoner< T >::RprAngularVelocity = typename Parent::RprAngularVelocity |
| using sen::util::DeadReckoner< T >::SituationProcessor = std::function<Situation(sen::TimeStamp)> |
| using sen::util::DeadReckoner< T >::GeodeticSituationProcessor = std::function<GeodeticSituation(sen::TimeStamp)> |
|
inlineexplicit |
Constructor for the DeadReckoner where an object inheriting from rpr::BaseEntity is inputted as a reference. This is the easiest version of the API to instantiate a DeadReckoner.
|
overridedefault |
|
inlinenodiscardoverridevirtual |
Returns the extrapolated/smoothed situation of the object at the timestamp introduced as argument, expressed in the following coordinates:
Reimplemented from sen::util::DeadReckonerBase.
|
inlinenodiscardoverridevirtual |
Returns the extrapolated/smoothed situation of the object at the timestamp introduced as argument, expressed in the following coordinates:
Reimplemented from sen::util::DeadReckonerBase.
|
inlinenodiscardnoexcept |
Provides direct mutable access to the internal object managed by this instance of the DeadReckoner.
|
inlinestaticnodiscard |
Translates a SpatialVariant to a Situation struct.
|
inlinestaticnodiscard |
Translates a SpatialVariant to a GeodeticSituation struct.
|
inlinestaticnodiscardprotectedinherited |
Returns the extrapolated situation of the RPR Entity given its Spatial field and two timestamps that define a time delta for the extrapolation.
|
inherited |
|
inherited |
Updates the last known real time GeodeticSituation. A valid timestamp is needed inside the GeodeticSituation provided as argument.
|
nodiscardnoexceptinherited |
|
inherited |
|
nodiscardprotectednoexceptinherited |
|
protectedinherited |
|
inlineprotectedinherited |
|
inlinenodiscardprotectednoexceptinherited |
|
inlineprotectedinherited |
|
inlinenodiscardprotectednoexceptinherited |
|
inlinenodiscardprotectednoexceptinherited |
|
inlineprotectedinherited |
|
inlinenodiscardprotectednoexceptinherited |