0.3.0
Loading...
Searching...
No Matches
Units.hpp File Reference

Units used by GNSS positioning. More...

Go to the source code of this file.

Enumerations

enum class  NAV::Units::AttitudeUncertaintyUnits : uint8_t {
  rad ,
  deg ,
  rad2 ,
  deg2 ,
  COUNT
}
 Possible units for the uncertainty of the attitude. More...
 
enum class  NAV::Units::AttitudeUnits : uint8_t {
  rad ,
  deg ,
  COUNT
}
 Possible units for the attitude. More...
 
enum class  NAV::Units::PositionUncertaintyUnits : uint8_t {
  meter ,
  meter2 ,
  COUNT
}
 Possible units for the uncertainty of the position. More...
 
enum class  NAV::Units::VelocityUncertaintyUnits : uint8_t {
  m_s ,
  m2_s2 ,
  COUNT
}
 Possible units for the uncertainty of the velocity. More...
 
enum class  NAV::Units::VelocityUnits : uint8_t {
  m_s ,
  COUNT
}
 Possible units for the velocity. More...
 

Functions

double NAV::convertUnit (const double &value, Units::AttitudeUncertaintyUnits unit)
 Converts the value depending on the unit provided.
 
double NAV::convertUnit (const double &value, Units::AttitudeUnits unit)
 Converts the value depending on the unit provided.
 
double NAV::convertUnit (const double &value, Units::PositionUncertaintyUnits unit)
 Converts the value depending on the unit provided.
 
double NAV::convertUnit (const double &value, Units::VelocityUncertaintyUnits unit)
 Converts the value depending on the unit provided.
 
double NAV::convertUnit (const double &value, Units::VelocityUnits unit)
 Converts the value depending on the unit provided.
 
Eigen::Vector3d NAV::convertUnit (const Eigen::Vector3d &value, Units::AttitudeUncertaintyUnits unit)
 Converts the value depending on the unit provided.
 
Eigen::Vector3d NAV::convertUnit (const Eigen::Vector3d &value, Units::AttitudeUnits unit)
 Converts the value depending on the unit provided.
 
Eigen::Vector3d NAV::convertUnit (const Eigen::Vector3d &value, Units::PositionUncertaintyUnits unit)
 Converts the value depending on the unit provided.
 
Eigen::Vector3d NAV::convertUnit (const Eigen::Vector3d &value, Units::VelocityUncertaintyUnits unit)
 Converts the value depending on the unit provided.
 
Eigen::Vector3d NAV::convertUnit (const Eigen::Vector3d &value, Units::VelocityUnits unit)
 Converts the value depending on the unit provided.
 
void NAV::Units::from_json (const json &j, AttitudeUncertaintyUnits &data)
 Converts the provided json object into the data object.
 
void NAV::Units::from_json (const json &j, AttitudeUnits &data)
 Converts the provided json object into the data object.
 
void NAV::Units::from_json (const json &j, PositionUncertaintyUnits &data)
 Converts the provided json object into the data object.
 
void NAV::Units::from_json (const json &j, VelocityUncertaintyUnits &data)
 Converts the provided json object into the data object.
 
void NAV::Units::from_json (const json &j, VelocityUnits &data)
 Converts the provided json object into the data object.
 
void NAV::Units::to_json (json &j, const AttitudeUncertaintyUnits &data)
 Converts the provided data into a json object.
 
void NAV::Units::to_json (json &j, const AttitudeUnits &data)
 Converts the provided data into a json object.
 
void NAV::Units::to_json (json &j, const PositionUncertaintyUnits &data)
 Converts the provided data into a json object.
 
void NAV::Units::to_json (json &j, const VelocityUncertaintyUnits &data)
 Converts the provided data into a json object.
 
void NAV::Units::to_json (json &j, const VelocityUnits &data)
 Converts the provided data into a json object.
 
std::string NAV::to_string (Units::AttitudeUncertaintyUnits unit)
 Converts the unit into a string.
 
std::string NAV::to_string (Units::AttitudeUnits unit)
 Converts the unit into a string.
 
std::string NAV::to_string (Units::PositionUncertaintyUnits unit)
 Converts the unit into a string.
 
std::string NAV::to_string (Units::VelocityUncertaintyUnits unit)
 Converts the unit into a string.
 
std::string NAV::to_string (Units::VelocityUnits unit)
 Converts the unit into a string.
 

Detailed Description

Units used by GNSS positioning.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2025-02-18

Enumeration Type Documentation

◆ AttitudeUncertaintyUnits

enum class NAV::Units::AttitudeUncertaintyUnits : uint8_t
strong

Possible units for the uncertainty of the attitude.

Enumerator
rad 

Standard deviation [radian].

deg 

Standard deviation [degree].

rad2 

Variance [radian^2].

deg2 

Variance [degree^2].

COUNT 

Amount of items in the enum.

◆ AttitudeUnits

enum class NAV::Units::AttitudeUnits : uint8_t
strong

Possible units for the attitude.

Enumerator
rad 

[radian]

deg 

[degree]

COUNT 

Amount of items in the enum.

◆ PositionUncertaintyUnits

enum class NAV::Units::PositionUncertaintyUnits : uint8_t
strong

Possible units for the uncertainty of the position.

Enumerator
meter 

Standard deviation [m, m, m].

meter2 

Variance [m^2, m^2, m^2].

COUNT 

Amount of items in the enum.

◆ VelocityUncertaintyUnits

enum class NAV::Units::VelocityUncertaintyUnits : uint8_t
strong

Possible units for the uncertainty of the velocity.

Enumerator
m_s 

Standard deviation [m/s].

m2_s2 

Variance [m^2/s^2].

COUNT 

Amount of items in the enum.

◆ VelocityUnits

enum class NAV::Units::VelocityUnits : uint8_t
strong

Possible units for the velocity.

Enumerator
m_s 

[m/s]

COUNT 

Amount of items in the enum.

Function Documentation

◆ convertUnit() [1/10]

double NAV::convertUnit ( const double & value,
Units::AttitudeUncertaintyUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [2/10]

double NAV::convertUnit ( const double & value,
Units::AttitudeUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [3/10]

double NAV::convertUnit ( const double & value,
Units::PositionUncertaintyUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [4/10]

double NAV::convertUnit ( const double & value,
Units::VelocityUncertaintyUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [5/10]

double NAV::convertUnit ( const double & value,
Units::VelocityUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [6/10]

Eigen::Vector3d NAV::convertUnit ( const Eigen::Vector3d & value,
Units::AttitudeUncertaintyUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [7/10]

Eigen::Vector3d NAV::convertUnit ( const Eigen::Vector3d & value,
Units::AttitudeUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [8/10]

Eigen::Vector3d NAV::convertUnit ( const Eigen::Vector3d & value,
Units::PositionUncertaintyUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [9/10]

Eigen::Vector3d NAV::convertUnit ( const Eigen::Vector3d & value,
Units::VelocityUncertaintyUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ convertUnit() [10/10]

Eigen::Vector3d NAV::convertUnit ( const Eigen::Vector3d & value,
Units::VelocityUnits unit )
nodiscard

Converts the value depending on the unit provided.

Parameters
[in]valueValue to convert
[in]unitUnit the value is in
Returns
Value in unit of the first item in the Unit enum

◆ from_json() [1/5]

void NAV::Units::from_json ( const json & j,
AttitudeUncertaintyUnits & data )

Converts the provided json object into the data object.

Parameters
[in]jJson object with the needed values
[out]dataObject to fill from the json

◆ from_json() [2/5]

void NAV::Units::from_json ( const json & j,
AttitudeUnits & data )

Converts the provided json object into the data object.

Parameters
[in]jJson object with the needed values
[out]dataObject to fill from the json

◆ from_json() [3/5]

void NAV::Units::from_json ( const json & j,
PositionUncertaintyUnits & data )

Converts the provided json object into the data object.

Parameters
[in]jJson object with the needed values
[out]dataObject to fill from the json

◆ from_json() [4/5]

void NAV::Units::from_json ( const json & j,
VelocityUncertaintyUnits & data )

Converts the provided json object into the data object.

Parameters
[in]jJson object with the needed values
[out]dataObject to fill from the json

◆ from_json() [5/5]

void NAV::Units::from_json ( const json & j,
VelocityUnits & data )

Converts the provided json object into the data object.

Parameters
[in]jJson object with the needed values
[out]dataObject to fill from the json

◆ to_json() [1/5]

void NAV::Units::to_json ( json & j,
const AttitudeUncertaintyUnits & data )

Converts the provided data into a json object.

Parameters
[out]jJson object which gets filled with the info
[in]dataData to convert into json

◆ to_json() [2/5]

void NAV::Units::to_json ( json & j,
const AttitudeUnits & data )

Converts the provided data into a json object.

Parameters
[out]jJson object which gets filled with the info
[in]dataData to convert into json

◆ to_json() [3/5]

void NAV::Units::to_json ( json & j,
const PositionUncertaintyUnits & data )

Converts the provided data into a json object.

Parameters
[out]jJson object which gets filled with the info
[in]dataData to convert into json

◆ to_json() [4/5]

void NAV::Units::to_json ( json & j,
const VelocityUncertaintyUnits & data )

Converts the provided data into a json object.

Parameters
[out]jJson object which gets filled with the info
[in]dataData to convert into json

◆ to_json() [5/5]

void NAV::Units::to_json ( json & j,
const VelocityUnits & data )

Converts the provided data into a json object.

Parameters
[out]jJson object which gets filled with the info
[in]dataData to convert into json

◆ to_string() [1/5]

std::string NAV::to_string ( Units::AttitudeUncertaintyUnits unit)
nodiscard

Converts the unit into a string.

Parameters
[in]unitUnit

◆ to_string() [2/5]

std::string NAV::to_string ( Units::AttitudeUnits unit)
nodiscard

Converts the unit into a string.

Parameters
[in]unitUnit

◆ to_string() [3/5]

std::string NAV::to_string ( Units::PositionUncertaintyUnits unit)
nodiscard

Converts the unit into a string.

Parameters
[in]unitUnit

◆ to_string() [4/5]

std::string NAV::to_string ( Units::VelocityUncertaintyUnits unit)
nodiscard

Converts the unit into a string.

Parameters
[in]unitUnit

◆ to_string() [5/5]

std::string NAV::to_string ( Units::VelocityUnits unit)
nodiscard

Converts the unit into a string.

Parameters
[in]unitUnit