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>

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... | |
| QuaternionMsg | parsing_utilities::convertEulerToQuaternion (double yaw, double pitch, double roll) |
| Transforms Euler angles to a quaternion. 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 > | |
| T | parsing_utilities::deg2rad (T deg) |
| template<class T > | |
| T | parsing_utilities::deg2radSq (T deg) |
| uint16_t | parsing_utilities::getCrc (const uint8_t *buffer) |
| Get the CRC of the SBF message. More... | |
| uint16_t | parsing_utilities::getId (const uint8_t *buffer) |
| Get the ID of the SBF message. More... | |
| uint16_t | parsing_utilities::getLength (const uint8_t *buffer) |
| Get the length of the SBF message. More... | |
| uint32_t | parsing_utilities::getTow (const uint8_t *buffer) |
| Get the time of week in ms of the SBF message. More... | |
| uint16_t | parsing_utilities::getWnc (const uint8_t *buffer) |
| Get the GPS week counter of the SBF message. More... | |
| double | parsing_utilities::parseDouble (const uint8_t *buffer) |
| Converts an 8-byte-buffer into a double. 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... | |
| float | parsing_utilities::parseFloat (const uint8_t *buffer) |
| Converts a 4-byte-buffer into a float. 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... | |
| int16_t | parsing_utilities::parseInt16 (const uint8_t *buffer) |
| Converts a 2-byte-buffer into a signed 16-bit integer. 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... | |
| int32_t | parsing_utilities::parseInt32 (const uint8_t *buffer) |
| Converts a 4-byte-buffer into a signed 32-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... | |
| uint16_t | parsing_utilities::parseUInt16 (const uint8_t *buffer) |
| Converts a 2-byte-buffer into an unsigned 16-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... | |
| uint32_t | parsing_utilities::parseUInt32 (const uint8_t *buffer) |
| Converts a 4-byte-buffer into an unsigned 32-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... | |
| 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... | |
| template<class T > | |
| T | parsing_utilities::rad2deg (T rad) |
| Eigen::Matrix3d | parsing_utilities::rpyToRot (double roll, double pitch, double yaw) |
| template<class T > | |
| 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 |
Declares utility functions used when parsing messages.
Definition in file parsing_utilities.hpp.