Setter functions for the ETSI ITS Common Data Dictionary (CDD) v2.1.1. More...
#include <etsi_its_msgs_utils/impl/cdd/cdd_setters_common.h>
#include <etsi_its_msgs_utils/impl/checks.h>
#include <GeographicLib/UTMUPS.hpp>
#include <cstring>
Go to the source code of this file.
Functions | |
void | setStationId (StationId &station_id, const uint32_t id_value) |
Set the Station Id object. | |
void | 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 | setStationType (TrafficParticipantType &station_type, const uint8_t value) |
Set the Station Type. | |
void | setLongitudinalAccelerationValue (AccelerationValue &accel, const double value) |
Set the LongitudinalAccelerationValue object. | |
void | setLongitudinalAcceleration (AccelerationComponent &accel, const double value, const double confidence) |
Set the LongitudinalAcceleration object. | |
void | setLateralAccelerationValue (AccelerationValue &accel, const double value) |
Set the LateralAccelerationValue object. | |
void | setLateralAcceleration (AccelerationComponent &accel, const double value, const double confidence) |
Set the LateralAcceleration object. | |
template<typename PositionConfidenceEllipse, typename Wgs84AngleValue = decltype(PositionConfidenceEllipse::semi_major_axis_orientation)> | |
void | setPositionConfidenceEllipse (PositionConfidenceEllipse &position_confidence_ellipse, const double semi_major_axis, const double semi_minor_axis, const double orientation) |
Set the Position Confidence Ellipse object. | |
template<typename PositionConfidenceEllipse> | |
void | setPositionConfidenceEllipse (PositionConfidenceEllipse &position_confidence_ellipse, const std::array< double, 4 > &covariance_matrix, const double object_heading) |
Set the Position Confidence Ellipse object. | |
template<typename PositionConfidenceEllipse> | |
void | setWGSPositionConfidenceEllipse (PositionConfidenceEllipse &position_confidence_ellipse, const std::array< double, 4 > &covariance_matrix) |
Set the Position Confidence Ellipse object. | |
Setter functions for the ETSI ITS Common Data Dictionary (CDD) v2.1.1.
Definition in file cdd_v2-1-1_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 59 of file cdd_v2-1-1_setters.h.
|
inline |
Set the LateralAcceleration object.
AccelerationConfidence is set to UNAVAILABLE
accel | object to set |
value | LaterallAccelerationValue in m/s^2 as decimal number (left is positive) |
Definition at line 134 of file cdd_v2-1-1_setters.h.
|
inline |
Set the LateralAccelerationValue object.
accel | object to set |
value | LateralAccelerationValue in m/s^2 as decimal number (left is positive) |
Definition at line 115 of file cdd_v2-1-1_setters.h.
|
inline |
Set the LongitudinalAcceleration object.
AccelerationConfidence is set to UNAVAILABLE
accel | object to set |
value | LongitudinalAccelerationValue in m/s^2 as decimal number (braking is negative) |
Definition at line 104 of file cdd_v2-1-1_setters.h.
|
inline |
Set the LongitudinalAccelerationValue object.
accel | object to set |
value | LongitudinalAccelerationValue in m/s^2 as decimal number (braking is negative) |
Definition at line 85 of file cdd_v2-1-1_setters.h.
|
inline |
Set the Position Confidence Ellipse object.
position_confidence_ellipse | The position confidence ellipse to set |
semi_major_axis | The length of the semi-major axis in meters |
semi_minor_axis | The length of the semi-minor axis in meters |
orientation | The orientation of the semi-major axis in degrees, relative to WGS84 |
Definition at line 148 of file cdd_v2-1-1_setters.h.
|
inline |
Set the Position Confidence Ellipse object.
position_confidence_ellipse | |
covariance_matrix | The four values of the covariance matrix in the order: cov_xx, cov_xy, cov_yx, cov_yy The matrix has to be SPD, otherwise a std::invalid_argument exception is thrown. Its coordinate system is aligned with the object (x = longitudinal, y = lateral) |
object_heading | The heading of the object in rad, with respect to WGS84 |
Definition at line 165 of file cdd_v2-1-1_setters.h.
|
inline |
Set the Station Id object.
station_id | |
id_value |
Definition at line 46 of file cdd_v2-1-1_setters.h.
|
inline |
Set the Station Type.
station_type | |
value |
Definition at line 74 of file cdd_v2-1-1_setters.h.
|
inline |
Set the Position Confidence Ellipse object.
position_confidence_ellipse | |
covariance_matrix | The four values of the covariance matrix in the order: cov_xx, cov_xy, cov_yx, cov_yy The matrix has to be SPD, otherwise a std::invalid_argument exception is thrown. Its coordinate system is aligned with the WGS axes (x = North, y = East) |
object_heading | The heading of the object in rad, with respect to WGS84 |
Definition at line 180 of file cdd_v2-1-1_setters.h.