18#include "Navigation/Transformations/Units.hpp"
24#include <Eigen/src/Core/MatrixBase.h>
34 [[nodiscard]]
static std::string
type()
41 [[nodiscard]] std::string
getType()
const override {
return type(); }
89 [[nodiscard]] std::optional<double>
getValueAt(
size_t idx)
const override
156 [[nodiscard]]
bool setValueAt(
size_t idx,
double value)
override
285 template<
typename Derived>
294 template<
typename Derived>
304 template<
typename Derived,
typename Derived2>
315 template<
typename Derived,
typename Derived2>
326 template<
typename Derived>
345 template<
typename Derived>
367 Eigen::Vector3d
_e_position{ std::nan(
""), std::nan(
""), std::nan(
"") };
#define INS_ASSERT(_EXPR)
Assert function wrapper.
Definition Assert.h:19
#define INS_ASSERT_USER_ERROR(_EXP, _MSG)
Assert function with message.
Definition Assert.h:21
Common logging variables like time into run and local positions.
Transformation collection.
static LocalPosition calcLocalPosition(const Eigen::Vector3d &lla_position)
Calculate the local position offset from a reference point.
Dynamic sized KeyedMatrix.
Definition KeyedMatrix.hpp:2055
Parent class for all data transmitted over Flow pins.
Definition NodeData.hpp:28
static std::string type()
Returns the type of the data class.
Definition NodeData.hpp:45
Position, Velocity and Attitude Storage Class.
Definition Pos.hpp:30
void setPositionAndStdDev_e(const Eigen::MatrixBase< Derived > &e_position, const Eigen::MatrixBase< Derived2 > &e_positionCovarianceMatrix)
Set the Position in ECEF coordinates and its standard deviation.
Definition Pos.hpp:305
std::optional< KeyedMatrixXd< States::StateKeys, States::StateKeys > > _n_covarianceMatrix
Covariance matrix in local navigation coordinates.
Definition Pos.hpp:380
std::optional< std::reference_wrapper< const Eigen::Vector3d > > e_positionStdev() const
Returns the standard deviation of the position in ECEF frame coordinates in [m].
Definition Pos.hpp:268
std::optional< double > getValueAt(size_t idx) const override
Get the value at the index.
Definition Pos.hpp:89
static std::vector< std::string > GetStaticDataDescriptors()
Returns a vector of data descriptors.
Definition Pos.hpp:51
Eigen::Vector3d _e_position
Position in ECEF coordinates [m].
Definition Pos.hpp:367
static constexpr size_t GetStaticDescriptorCount()
Get the amount of descriptors.
Definition Pos.hpp:78
bool setValueAt(size_t idx, double value) override
Set the value at the index.
Definition Pos.hpp:156
const double & latitude() const
Returns the latitude 𝜙 in [rad].
Definition Pos.hpp:256
static std::vector< std::string > parentTypes()
Returns the parent types of the data class.
Definition Pos.hpp:45
std::optional< std::reference_wrapper< const KeyedMatrixXd< States::StateKeys, States::StateKeys > > > n_CovarianceMatrix() const
Returns the Covariance matrix in local navigation frame.
Definition Pos.hpp:277
Eigen::Quaterniond e_Quat_n() const
Returns the Quaternion from navigation to Earth-fixed frame.
Definition Pos.hpp:218
static std::string type()
Returns the type of the data class.
Definition Pos.hpp:34
void setPosCovarianceMatrix_n(const Eigen::MatrixBase< Derived > &n_covarianceMatrix)
Set the Covariance matrix in ECEF coordinates.
Definition Pos.hpp:346
std::optional< std::reference_wrapper< const KeyedMatrixXd< States::StateKeys, States::StateKeys > > > e_CovarianceMatrix() const
Returns the Covariance matrix in ECEF frame.
Definition Pos.hpp:274
std::optional< Eigen::Vector3d > _n_positionStdev
Standard deviation of Position in local navigation frame coordinates [m].
Definition Pos.hpp:374
Eigen::Quaterniond n_Quat_e() const
Returns the Quaternion from Earth-fixed frame to navigation.
Definition Pos.hpp:225
const Eigen::Vector3d & e_position() const
Returns the coordinates in [m].
Definition Pos.hpp:265
void setPositionAndStdDev_lla(const Eigen::MatrixBase< Derived > &lla_position, const Eigen::MatrixBase< Derived2 > &n_positionCovarianceMatrix)
Set the Position in LLA coordinates and its standard deviation.
Definition Pos.hpp:316
void setPosition_e(const Eigen::MatrixBase< Derived > &e_position)
Set the Position in coordinates.
Definition Pos.hpp:286
const Eigen::Vector3d & lla_position() const
Returns the latitude 𝜙, longitude λ and altitude (height above ground) in [rad, rad,...
Definition Pos.hpp:253
size_t staticDescriptorCount() const override
Get the amount of descriptors.
Definition Pos.hpp:84
std::string getType() const override
Returns the type of the data class.
Definition Pos.hpp:41
std::optional< std::reference_wrapper< const Eigen::Vector3d > > n_positionStdev() const
Returns the standard deviation of the position in local navigation frame coordinates in [m].
Definition Pos.hpp:271
std::optional< Eigen::Vector3d > _e_positionStdev
Standard deviation of Position in ECEF coordinates [m].
Definition Pos.hpp:372
Eigen::Vector3d _lla_position
Position in LatLonAlt coordinates [rad, rad, m].
Definition Pos.hpp:369
std::optional< KeyedMatrixXd< States::StateKeys, States::StateKeys > > _e_covarianceMatrix
Covariance matrix in ECEF coordinates.
Definition Pos.hpp:377
const double & altitude() const
Returns the altitude (height above ground) in [m].
Definition Pos.hpp:262
std::vector< std::string > staticDataDescriptors() const override
Returns a vector of data descriptors.
Definition Pos.hpp:81
void setPosition_lla(const Eigen::MatrixBase< Derived > &lla_position)
Set the Position lla object.
Definition Pos.hpp:295
const double & longitude() const
Returns the longitude λ in [rad].
Definition Pos.hpp:259
void setPosCovarianceMatrix_e(const Eigen::MatrixBase< Derived > &e_covarianceMatrix)
Set the Covariance matrix in ECEF coordinates.
Definition Pos.hpp:327
double northSouth
North/South deviation from the reference point [m].
Definition CommonLog.hpp:55
double eastWest
East/West deviation from the reference point [m].
Definition CommonLog.hpp:56
States.
Definition Pos.hpp:236
StateKeys
State Keys.
Definition Pos.hpp:242
@ PosX
Position ECEF_X [m].
Definition Pos.hpp:243
@ States_COUNT
Count.
Definition Pos.hpp:246
@ PosY
Position ECEF_Y [m].
Definition Pos.hpp:244
@ PosZ
Position ECEF_Z [m].
Definition Pos.hpp:245
static const std::vector< StateKeys > Pos
All position keys.
Definition Pos.hpp:249
States()=delete
Constructor.
Matrix which can be accessed by keys.