ROSaic
Namespaces | Functions
parsing_utilities.cpp File Reference

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

#include <septentrio_gnss_driver/parsers/string_utilities.h>
#include <septentrio_gnss_driver/parsers/parsing_utilities.hpp>
#include <limits>
Include dependency graph for parsing_utilities.cpp:

Go to the source code of this file.

Namespaces

 parsing_utilities
 

Functions

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...
 
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...
 
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...
 
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...
 
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...
 
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...
 
geometry_msgs::Quaternion parsing_utilities::convertEulerToQuaternion (double yaw, double pitch, double roll)
 Transforms Euler angles to a quaternion. More...
 
uint32_t parsing_utilities::convertUserPeriodToRxCommand (uint32_t period_user)
 Transforms the input polling period [milliseconds] into a uint32_t number that can be appended to either sec or msec for Rx commands. More...
 

Detailed Description

Declares utility functions used when parsing messages.

Date
17/08/20

Definition in file parsing_utilities.cpp.