|
Sen API
Sen Libraries
|
Base class for the DeadReckoner and SettableDeadReckoner classes. More...
#include <dead_reckoner_base.h>
Public Types | |
| using | SpatialVariant = std::remove_const_t<std::remove_reference_t<decltype(std::declval<T>().getSpatial())>> |
| using | StaticSpatial = std::variant_alternative_t<0U, SpatialVariant> |
| using | FpsSpatial = std::variant_alternative_t<1U, SpatialVariant> |
| using | RpsSpatial = std::variant_alternative_t<2U, SpatialVariant> |
| using | RvsSpatial = std::variant_alternative_t<3U, SpatialVariant> |
| using | FvsSpatial = std::variant_alternative_t<4U, SpatialVariant> |
| using | RprLocation = decltype(std::declval<RvsSpatial>().worldLocation) |
| using | RprOrientation = decltype(std::declval<RvsSpatial>().orientation) |
| using | RprVelocity = decltype(std::declval<RvsSpatial>().velocityVector) |
| using | RprAcceleration = decltype(std::declval<RvsSpatial>().accelerationVector) |
| using | RprAngularVelocity = decltype(std::declval<RvsSpatial>().angularVelocity) |
Public Member Functions | |
| DeadReckonerTemplateBase (DrConfig config={}) | |
| ~DeadReckonerTemplateBase () override=default | |
| virtual Situation | situation (sen::TimeStamp timeStamp) |
| Returns the extrapolated/smoothed situation of the object at the timestamp introduced as argument, expressed in the following coordinates: | |
| virtual GeodeticSituation | geodeticSituation (sen::TimeStamp timeStamp) |
| Returns the extrapolated/smoothed situation of the object at the timestamp introduced as argument, expressed in the following coordinates: | |
| 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) |
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. | |
Base class for the DeadReckoner and SettableDeadReckoner classes.
| using sen::util::DeadReckonerTemplateBase< T >::SpatialVariant = std::remove_const_t<std::remove_reference_t<decltype(std::declval<T>().getSpatial())>> |
| using sen::util::DeadReckonerTemplateBase< T >::StaticSpatial = std::variant_alternative_t<0U, SpatialVariant> |
| using sen::util::DeadReckonerTemplateBase< T >::FpsSpatial = std::variant_alternative_t<1U, SpatialVariant> |
| using sen::util::DeadReckonerTemplateBase< T >::RpsSpatial = std::variant_alternative_t<2U, SpatialVariant> |
| using sen::util::DeadReckonerTemplateBase< T >::RvsSpatial = std::variant_alternative_t<3U, SpatialVariant> |
| using sen::util::DeadReckonerTemplateBase< T >::FvsSpatial = std::variant_alternative_t<4U, SpatialVariant> |
| using sen::util::DeadReckonerTemplateBase< T >::RprLocation = decltype(std::declval<RvsSpatial>().worldLocation) |
| using sen::util::DeadReckonerTemplateBase< T >::RprOrientation = decltype(std::declval<RvsSpatial>().orientation) |
| using sen::util::DeadReckonerTemplateBase< T >::RprVelocity = decltype(std::declval<RvsSpatial>().velocityVector) |
| using sen::util::DeadReckonerTemplateBase< T >::RprAcceleration = decltype(std::declval<RvsSpatial>().accelerationVector) |
| using sen::util::DeadReckonerTemplateBase< T >::RprAngularVelocity = decltype(std::declval<RvsSpatial>().angularVelocity) |
|
explicit |
|
overridedefault |
|
inlinestaticnodiscardprotected |
Returns the extrapolated situation of the RPR Entity given its Spatial field and two timestamps that define a time delta for the extrapolation.
|
nodiscardvirtualinherited |
Returns the extrapolated/smoothed situation of the object at the timestamp introduced as argument, expressed in the following coordinates:
Reimplemented in sen::util::DeadReckoner< T >.
|
nodiscardvirtualinherited |
Returns the extrapolated/smoothed situation of the object at the timestamp introduced as argument, expressed in the following coordinates:
Reimplemented in sen::util::DeadReckoner< T >.
|
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 |