etsi_its_messages 2.4.0
|
Setter functions for the ETSI ITS DENM (EN) More...
#include <etsi_its_msgs_utils/impl/constants.h>
#include <etsi_its_msgs_utils/impl/cdd/cdd_v1-3-1_setters.h>
Go to the source code of this file.
Functions | |
template<typename T1 , typename T2 > | |
void | etsi_its_denm_msgs::access::throwIfOutOfRange (const T1 &val, const T2 &min, const T2 &max, const std::string val_desc) |
uint16_t | etsi_its_denm_msgs::access::etsi_its_msgs::getLeapSecondInsertionsSince2004 (const uint64_t unix_seconds) |
Get the leap second insertions since 2004 for given unix seconds. | |
void | etsi_its_denm_msgs::access::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 | etsi_its_denm_msgs::access::setLatitude (Latitude &latitude, const double deg) |
Set the Latitude object. | |
void | etsi_its_denm_msgs::access::setLongitude (Longitude &longitude, const double deg) |
Set the Longitude object. | |
void | etsi_its_denm_msgs::access::setAltitudeValue (AltitudeValue &altitude, const double value) |
Set the AltitudeValue object. | |
void | etsi_its_denm_msgs::access::setAltitude (Altitude &altitude, const double value) |
Set the Altitude object. | |
void | etsi_its_denm_msgs::access::setSpeedValue (SpeedValue &speed, const double value) |
Set the SpeedValue object. | |
void | etsi_its_denm_msgs::access::setSpeed (Speed &speed, const double value) |
Set the Speed object. | |
template<typename T > | |
void | etsi_its_denm_msgs::access::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 | etsi_its_denm_msgs::access::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 | etsi_its_denm_msgs::access::setBitString (T &bitstring, const std::vector< bool > &bits) |
Set a Bit String by a vector of bools. | |
void | etsi_its_denm_msgs::access::setStationId (StationID &station_id, const uint32_t id_value) |
Set the Station Id object. | |
void | etsi_its_denm_msgs::access::setItsPduHeader (ItsPduHeader &header, const uint8_t message_id, const uint32_t station_id, const uint8_t protocol_version=0) |
Set the Its Pdu Header object. | |
void | etsi_its_denm_msgs::access::setStationType (StationType &station_type, const uint8_t value) |
Set the Station Type. | |
void | etsi_its_denm_msgs::access::setItsPduHeader (DENM &denm, const uint32_t station_id, const uint8_t protocol_version=0) |
Set the ItsPduHeader-object for a DENM. | |
void | etsi_its_denm_msgs::access::setReferenceTime (DENM &denm, const uint64_t unix_nanosecs, const uint16_t n_leap_seconds=etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.end() ->second) |
Set the ReferenceTime-value. | |
void | etsi_its_denm_msgs::access::setStationType (DENM &denm, const int value) |
Set the StationType for a DENM. | |
void | etsi_its_denm_msgs::access::setReferencePosition (DENM &denm, const double latitude, const double longitude, const double altitude=AltitudeValue::UNAVAILABLE) |
Set the ReferencePositionWithConfidence for a DENM. | |
void | etsi_its_denm_msgs::access::setHeadingValue (HeadingValue &heading, const double value) |
Set the HeadingValue object. | |
void | etsi_its_denm_msgs::access::setHeading (Heading &heading, const double value) |
Set the Heading object. | |
void | etsi_its_denm_msgs::access::setIsHeadingPresent (DENM &denm, bool presence_of_heading) |
Set the IsHeadingPresent object for DENM. | |
void | etsi_its_denm_msgs::access::setHeading (DENM &denm, const double heading_val) |
Set the Heading for a DENM. | |
void | etsi_its_denm_msgs::access::setIsSpeedPresent (DENM &denm, bool presence_of_speed) |
Set the IsSpeedPresent object for DENM. | |
void | etsi_its_denm_msgs::access::setSpeed (DENM &denm, const double speed_val) |
Set the vehicle speed. | |
void | etsi_its_denm_msgs::access::setFromUTMPosition (DENM &denm, const gm::PointStamped &utm_position, const int &zone, const bool &northp) |
Set the ReferencePosition of a DENM from a given UTM-Position. | |
void | etsi_its_denm_msgs::access::setDrivingLaneStatus (DrivingLaneStatus &driving_lane_status, const std::vector< bool > &bits) |
Set the Driving Lane Status by a vector of bools. | |
void | etsi_its_denm_msgs::access::setLightBarSirenInUse (LightBarSirenInUse &light_bar_siren_in_use, const std::vector< bool > &bits) |
Set the Lightbar Siren In Use by a vector of bools. | |
Setter functions for the ETSI ITS DENM (EN)
Definition in file denm_setters.h.
|
inline |
Get the leap second insertions since 2004 for given unix seconds.
unix_seconds | the current unix seconds for that the leap second insertions since 2004 shall be provided |
Definition at line 61 of file denm_access.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 140 of file denm_setters.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 121 of file denm_setters.h.
|
inline |
Set a Bit String by a vector of bools.
T |
bitstring | BitString to set |
bits | vector of bools |
Definition at line 232 of file denm_setters.h.
|
inline |
Set the Driving Lane Status by a vector of bools.
driving_lane_status | |
bits |
Definition at line 251 of file denm_setters.h.
|
inline |
Set the ReferencePosition of a DENM 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] | denm | DENM for which to set the ReferencePosition |
[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 241 of file denm_setters.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 208 of file denm_setters.h.
|
inline |
Set the Heading for a DENM.
0.0° equals WGS84 North, 90.0° equals WGS84 East, 180.0° equals WGS84 South and 270.0° equals WGS84 West HeadingConfidence is set to UNAVAILABLE
denm | DENM to set the ReferencePosition |
value | Heading value in degree as decimal number |
Definition at line 191 of file denm_setters.h.
|
inline |
Set the Heading object.
0.0° equals WGS84 North, 90.0° equals WGS84 East, 180.0° equals WGS84 South and 270.0° equals WGS84 West HeadingConfidence is set to UNAVAILABLE
heading | object to set |
value | Heading value in degree as decimal number |
Definition at line 163 of file denm_setters.h.
|
inline |
Set the HeadingValue object.
0.0° equals WGS84 North, 90.0° equals WGS84 East, 180.0° equals WGS84 South and 270.0° equals WGS84 West
heading | object to set |
value | Heading value in degree as decimal number |
Definition at line 148 of file denm_setters.h.
|
inline |
Set the IsHeadingPresent object for DENM.
denm | DENM to set IsHeadingPresent |
presence_of_heading | IsHeadingPresent-Value (true or false) |
Definition at line 174 of file denm_setters.h.
|
inline |
Set the IsSpeedPresent object for DENM.
denm | DENM to set IsSpeedPresent |
presence_of_heading | IsSpeedPresent-Value (true or false) |
Definition at line 206 of file denm_setters.h.
|
inline |
Set the ItsPduHeader-object for a DENM.
denm | DENM-Message to set the ItsPduHeader |
station_id | |
protocol_version |
Definition at line 96 of file denm_setters.h.
|
inline |
Set the Its Pdu Header object.
header | ItsPduHeader to be set |
message_id | ID of the message |
station_id | |
protocol_version |
Definition at line 66 of file denm_setters.h.
|
inline |
Set the Latitude object.
latitude | object to set |
deg | Latitude value in degree as decimal number |
Definition at line 97 of file denm_setters.h.
|
inline |
Set the Lightbar Siren In Use by a vector of bools.
light_bar_siren_in_use | |
bits |
Definition at line 261 of file denm_setters.h.
|
inline |
Set the Longitude object.
longitude | object to set |
deg | Longitude value in degree as decimal number |
Definition at line 109 of file denm_setters.h.
|
inline |
Set the ReferencePositionWithConfidence for a DENM.
This function sets the latitude, longitude, and altitude of the DENMs reference position. If the altitude is not provided, it is set to AltitudeValue::UNAVAILABLE.
denm | DENM to set the ReferencePosition |
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 135 of file denm_setters.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 182 of file denm_setters.h.
|
inline |
Set the ReferenceTime-value.
denm | DENM to set the ReferenceTime-Value for |
unix_nanosecs | Timestamp in unix-nanoseconds to set the ReferenceTime-Value from |
n_leap_seconds | Number of leap seconds since 2004 for the given timestamp (Default: etsi_its_msgs::N_LEAP_SECONDS) |
Definition at line 107 of file denm_setters.h.
|
inline |
Set the vehicle speed.
denm | DENM to set the speed value |
speed_val | speed value to set in m/s as decimal number |
Definition at line 220 of file denm_setters.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 165 of file denm_setters.h.
|
inline |
Set the SpeedValue object.
speed | object to set |
value | SpeedValue in m/s as decimal number |
Definition at line 151 of file denm_setters.h.
|
inline |
Set the Station Id object.
station_id | |
id_value |
Definition at line 53 of file denm_setters.h.
|
inline |
Set the StationType for a DENM.
denm | DENM-Message to set the station_type value |
value | station_type value to set |
Definition at line 122 of file denm_setters.h.
|
inline |
|
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 83 of file denm_setters.h.
void etsi_its_denm_msgs::access::throwIfOutOfRange | ( | const T1 & | val, |
const T2 & | min, | ||
const T2 & | max, | ||
const std::string | val_desc ) |
Definition at line 37 of file denm_access.h.