Namespaces | Functions | Variables
parsing_utilities.hpp File Reference

Declares utility functions used when parsing messages. More...

#include <cmath>
#include <cstdint>
#include <ctime>
#include <string>
#include <Eigen/Core>
#include <Eigen/LU>
#include <boost/math/constants/constants.hpp>
#include <septentrio_gnss_driver/abstraction/typedefs.hpp>
Include dependency graph for parsing_utilities.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 parsing_utilities
 

Functions

double parsing_utilities::convertDMSToDegrees (double dms)
 Converts latitude or longitude from the DMS notation (in the without-colon-delimiter format), to the pure degree notation. More...
 
Eigen::Quaterniond parsing_utilities::convertEulerToQuaternion (double roll, double pitch, double yaw)
 Transforms Euler angles to a quaternion. More...
 
QuaternionMsg parsing_utilities::convertEulerToQuaternionMsg (double roll, double pitch, double yaw)
 Transforms Euler angles to a QuaternionMsg. More...
 
std::string parsing_utilities::convertUserPeriodToRxCommand (uint32_t period_user)
 Transforms the input polling period [milliseconds] into a std::string number that can be appended to either sec or msec for Rx commands. More...
 
double parsing_utilities::convertUTCDoubleToSeconds (double utc_double)
 Converts UTC time from the without-colon-delimiter format to the number-of-seconds-since-midnight format. More...
 
std::time_t parsing_utilities::convertUTCtoUnix (double utc_double)
 Converts UTC time from the without-colon-delimiter format to Unix Epoch time (a number-of-seconds-since-1970/01/01 format) More...
 
template<class T >
parsing_utilities::deg2rad (T deg)
 
template<class T >
parsing_utilities::deg2radSq (T deg)
 
uint16_t parsing_utilities::getCrc (const std::vector< uint8_t > &message)
 Get the CRC of the SBF message. More...
 
uint16_t parsing_utilities::getId (const std::vector< uint8_t > &message)
 Get the ID of the SBF message. More...
 
uint16_t parsing_utilities::getLength (const std::vector< uint8_t > &message)
 Get the length of the SBF message. More...
 
uint32_t parsing_utilities::getTow (const std::vector< uint8_t > &message)
 Get the time of week in ms of the SBF message. More...
 
uint16_t parsing_utilities::getWnc (const std::vector< uint8_t > &message)
 Get the GPS week counter of the SBF message. More...
 
bool parsing_utilities::parseDouble (const std::string &string, double &value)
 Interprets the contents of "string" as a floating point number of type double. More...
 
double parsing_utilities::parseDouble (const uint8_t *buffer)
 Converts an 8-byte-buffer into a double. More...
 
bool parsing_utilities::parseFloat (const std::string &string, float &value)
 Interprets the contents of "string" as a floating point number of type float. More...
 
float parsing_utilities::parseFloat (const uint8_t *buffer)
 Converts a 4-byte-buffer into a float. More...
 
bool parsing_utilities::parseInt16 (const std::string &string, int16_t &value, int32_t base=10)
 Interprets the contents of "string" as a integer number of type int16_t. More...
 
int16_t parsing_utilities::parseInt16 (const uint8_t *buffer)
 Converts a 2-byte-buffer into a signed 16-bit integer. More...
 
bool parsing_utilities::parseInt32 (const std::string &string, int32_t &value, int32_t base=10)
 Interprets the contents of "string" as a integer number of type int32_t. More...
 
int32_t parsing_utilities::parseInt32 (const uint8_t *buffer)
 Converts a 4-byte-buffer into a signed 32-bit integer. More...
 
bool parsing_utilities::parseUInt16 (const std::string &string, uint16_t &value, int32_t base=10)
 Interprets the contents of "string" as a unsigned integer number of type uint16_t. More...
 
uint16_t parsing_utilities::parseUInt16 (const uint8_t *buffer)
 Converts a 2-byte-buffer into an unsigned 16-bit integer. More...
 
bool parsing_utilities::parseUInt32 (const std::string &string, uint32_t &value, int32_t base=10)
 Interprets the contents of "string" as a unsigned integer number of type uint32_t. More...
 
uint32_t parsing_utilities::parseUInt32 (const uint8_t *buffer)
 Converts a 4-byte-buffer into an unsigned 32-bit integer. More...
 
bool parsing_utilities::parseUInt8 (const std::string &string, uint8_t &value, int32_t base=10)
 Interprets the contents of "string" as a unsigned integer number of type uint8_t. More...
 
Eigen::Quaterniond parsing_utilities::q_enu_ecef (double lat, double lon)
 Generates the quaternion to rotate from local ENU to ECEF. More...
 
Eigen::Quaterniond parsing_utilities::q_ned_ecef (double lat, double lon)
 Generates the quaternion to rotate from local NED to ECEF. More...
 
QuaternionMsg parsing_utilities::quaternionToQuaternionMsg (const Eigen::Quaterniond &q)
 Convert Eigen quaternion to a QuaternionMsg. More...
 
Eigen::Matrix3d parsing_utilities::R_enu_ecef (double lat, double lon)
 Generates the matrix to rotate from local ENU to ECEF. More...
 
Eigen::Matrix3d parsing_utilities::R_ned_ecef (double lat, double lon)
 Generates the matrix to rotate from local NED to ECEF. More...
 
template<class T >
parsing_utilities::rad2deg (T rad)
 
Eigen::Matrix3d parsing_utilities::rpyToRot (double roll, double pitch, double yaw)
 
template<class T >
parsing_utilities::square (T val)
 
double parsing_utilities::wrapAngle180to180 (double angle)
 Wraps an angle between -180 and 180 degrees. More...
 

Variables

constexpr double parsing_utilities::pi_half = boost::math::constants::pi<double>() / 2.0
 

Detailed Description

Declares utility functions used when parsing messages.

Date
17/08/20

Definition in file parsing_utilities.hpp.



septentrio_gnss_driver
Author(s): Tibor Dome
autogenerated on Wed Nov 22 2023 04:04:27