Utility functions for the ETSI ITS SPATEM. More...
#include <ctime>
Go to the source code of this file.
Namespaces | |
etsi_its_spatem_ts_msgs | |
etsi_its_spatem_ts_msgs::access | |
Functions | |
uint64_t | etsi_its_spatem_ts_msgs::access::getUnixNanosecondsFromMinuteOfTheYear (const MinuteOfTheYear &moy, const uint64_t unix_nanoseconds_estimate) |
Get the unix nanoseconds from MinuteOfTheYear object. More... | |
uint64_t | etsi_its_spatem_ts_msgs::access::getUnixSecondsOfYear (const uint64_t unixSecond) |
Get the unix seconds of the beginning of a year that corresponds to a given unix timestamp. More... | |
std::array< float, 4 > | etsi_its_spatem_ts_msgs::access::interpretMovementPhaseStateAsColor (const uint8_t value) |
Interprets the MovementPhaseState type as a color (see etsi definition) More... | |
float | etsi_its_spatem_ts_msgs::access::interpretTimeIntervalConfidenceAsFloat (const uint16_t encoded_probability) |
Interprets the TimeIntervalConfidence type as a float value (see etsi definition) More... | |
float | etsi_its_spatem_ts_msgs::access::interpretTimeMarkValueAsSeconds (const uint16_t time, const int32_t seconds, const uint32_t nanosec) |
Calculate the amount of seconds until the given time is reached. More... | |
time_mark_value_interpretation | etsi_its_spatem_ts_msgs::access::interpretTimeMarkValueType (const uint16_t time) |
Interprets the type of a TimeMark message See etsi ASNI1 - IS TS 103 301 documentation for for the encoding of "TimeMark". More... | |
std::string | etsi_its_spatem_ts_msgs::access::parseTimeMarkValueToString (const uint16_t time, const int32_t seconds, const uint32_t nanosec) |
Converts a value from message type TimeMarkValue into a string representation. More... | |
Variables | |
const std::array< float, 4 > | etsi_its_spatem_ts_msgs::access::color_green {0.18, 0.79, 0.21, 1.0} |
const std::array< float, 4 > | etsi_its_spatem_ts_msgs::access::color_grey {0.5, 0.5, 0.5, 1.0} |
const std::array< float, 4 > | etsi_its_spatem_ts_msgs::access::color_orange {0.9, 0.7, 0.09, 1.0} |
const std::array< float, 4 > | etsi_its_spatem_ts_msgs::access::color_red {0.8, 0.2, 0.2, 1.0} |
Utility functions for the ETSI ITS SPATEM.
Definition in file spatem_ts_utils.h.