etsi_its_messages 2.4.0
|
Common setter functions for the ETSI ITS Common Data Dictionary (CDD) v1.3.1 and v2.1.1. More...
#include <etsi_its_msgs_utils/impl/cdd/cdd_checks.h>
#include <etsi_its_msgs_utils/impl/constants.h>
#include <GeographicLib/UTMUPS.hpp>
#include <cstring>
Go to the source code of this file.
Functions | |
void | setTimestampITS (TimestampIts ×tamp_its, const uint64_t unix_nanosecs, const uint16_t n_leap_seconds=etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.end() ->second) |
Set the TimestampITS object. | |
void | setLatitude (Latitude &latitude, const double deg) |
Set the Latitude object. | |
void | setLongitude (Longitude &longitude, const double deg) |
Set the Longitude object. | |
void | setAltitudeValue (AltitudeValue &altitude, const double value) |
Set the AltitudeValue object. | |
void | setAltitude (Altitude &altitude, const double value) |
Set the Altitude object. | |
void | setSpeedValue (SpeedValue &speed, const double value) |
Set the SpeedValue object. | |
void | setSpeed (Speed &speed, const double value) |
Set the Speed object. | |
template<typename T > | |
void | setReferencePosition (T &ref_position, const double latitude, const double longitude, const double altitude=AltitudeValue::UNAVAILABLE) |
Sets the reference position in the given ReferencePostion object. | |
template<typename T > | |
void | setFromUTMPosition (T &reference_position, const gm::PointStamped &utm_position, const int zone, const bool northp) |
Set the ReferencePosition from a given UTM-Position. | |
template<typename T > | |
void | setBitString (T &bitstring, const std::vector< bool > &bits) |
Set a Bit String by a vector of bools. | |
Common setter functions for the ETSI ITS Common Data Dictionary (CDD) v1.3.1 and v2.1.1.
Definition in file cdd_setters_common.h.
|
inline |
Set the Altitude object.
AltitudeConfidence is set to UNAVAILABLE
altitude | object to set |
value | Altitude value (above the reference ellipsoid surface) in meter as decimal number |
Definition at line 105 of file cdd_setters_common.h.
|
inline |
Set the AltitudeValue object.
altitude | object to set |
value | AltitudeValue value (above the reference ellipsoid surface) in meter as decimal number |
Definition at line 86 of file cdd_setters_common.h.
|
inline |
Set a Bit String by a vector of bools.
T |
bitstring | BitString to set |
bits | vector of bools |
Definition at line 197 of file cdd_setters_common.h.
|
inline |
Set the ReferencePosition from a given UTM-Position.
The position is transformed to latitude and longitude by using GeographicLib::UTMUPS The z-Coordinate is directly used as altitude value The frame_id of the given utm_position must be set to 'utm_<zone><N/S>'
[out] | reference_position | ReferencePostion or ReferencePositionWithConfidence to set |
[in] | utm_position | geometry_msgs::PointStamped describing the given utm position |
[in] | zone | the UTM zone (zero means UPS) of the given position |
[in] | northp | hemisphere (true means north, false means south) |
Definition at line 173 of file cdd_setters_common.h.
|
inline |
Set the Latitude object.
latitude | object to set |
deg | Latitude value in degree as decimal number |
Definition at line 62 of file cdd_setters_common.h.
|
inline |
Set the Longitude object.
longitude | object to set |
deg | Longitude value in degree as decimal number |
Definition at line 74 of file cdd_setters_common.h.
|
inline |
Sets the reference position in the given ReferencePostion object.
This function sets the latitude, longitude, and altitude of the reference position. If the altitude is not provided, it is set to AltitudeValue::UNAVAILABLE.
ref_position | ReferencePostion or ReferencePositionWithConfidence object to set the reference position in. |
latitude | The latitude value position in degree as decimal number. |
longitude | The longitude value in degree as decimal number. |
altitude | The altitude value (above the reference ellipsoid surface) in meter as decimal number (optional). |
Definition at line 147 of file cdd_setters_common.h.
|
inline |
Set the Speed object.
SpeedConfidence is set to UNAVAILABLE
speed | object to set |
value | Speed in in m/s as decimal number |
Definition at line 130 of file cdd_setters_common.h.
|
inline |
Set the SpeedValue object.
speed | object to set |
value | SpeedValue in m/s as decimal number |
Definition at line 116 of file cdd_setters_common.h.
|
inline |
Set the TimestampITS object.
[in] | timestamp_its | TimestampITS object to set the timestamp |
[in] | unix_nanosecs | Unix-Nanoseconds to set the timestamp for |
[in] | n_leap_seconds | Number of leap-seconds since 2004. (Default: etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.end()->second) |
[in] | epoch_offset | Unix-Timestamp in seconds for the 01.01.2004 at 00:00:00 |
Definition at line 48 of file cdd_setters_common.h.