Setter functions for the ETSI ITS CAM (TS) More...
#include <etsi_its_msgs_utils/impl/cdd/cdd_v2-1-1_setters.h>
#include <etsi_its_msgs_utils/impl/cam/cam_setters_common.h>
Go to the source code of this file.
Functions | |
template<typename T1, typename T2> | |
void | etsi_its_cam_ts_msgs::access::throwIfOutOfRange (const T1 &val, const T2 &min, const T2 &max, const std::string val_desc) |
Throws an exception if a given value is out of a defined range. | |
void | etsi_its_cam_ts_msgs::access::throwIfNotPresent (const bool is_present, const std::string val_desc) |
Throws an exception if the given value is not present. | |
uint16_t | etsi_its_cam_ts_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_cam_ts_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.rbegin() ->second) |
Set the TimestampITS object. | |
void | etsi_its_cam_ts_msgs::access::setLatitude (Latitude &latitude, const double deg) |
Set the Latitude object. | |
void | etsi_its_cam_ts_msgs::access::setLongitude (Longitude &longitude, const double deg) |
Set the Longitude object. | |
void | etsi_its_cam_ts_msgs::access::setAltitudeValue (AltitudeValue &altitude, const double value) |
Set the AltitudeValue object. | |
void | etsi_its_cam_ts_msgs::access::setAltitude (Altitude &altitude, const double value) |
Set the Altitude object. | |
void | etsi_its_cam_ts_msgs::access::setSpeedValue (SpeedValue &speed, const double value) |
Set the SpeedValue object. | |
void | etsi_its_cam_ts_msgs::access::setSpeedConfidence (SpeedConfidence &speed_confidence, const double value) |
Set the Speed Confidence object. | |
void | etsi_its_cam_ts_msgs::access::setSpeed (Speed &speed, const double value, const double confidence=std::numeric_limits< double >::infinity()) |
Set the Speed object. | |
template<typename AccelerationConfidence> | |
void | etsi_its_cam_ts_msgs::access::setAccelerationConfidence (AccelerationConfidence &accel_confidence, const double value) |
Set the Acceleration Confidence object. | |
template<typename T> | |
void | etsi_its_cam_ts_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_cam_ts_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 HeadingValue> | |
void | etsi_its_cam_ts_msgs::access::setHeadingValue (HeadingValue &heading, const double value) |
Set the HeadingValue object. | |
template<typename HeadingConfidence> | |
void | etsi_its_cam_ts_msgs::access::setHeadingConfidence (HeadingConfidence &heading_confidence, const double value) |
Set the Heading Confidence object. | |
template<typename Heading, typename HeadingConfidence = decltype(Heading::heading_confidence)> | |
void | etsi_its_cam_ts_msgs::access::setHeadingCDD (Heading &heading, const double value, double confidence=std::numeric_limits< double >::infinity()) |
Set the Heading object. | |
template<typename SemiAxisLength> | |
void | etsi_its_cam_ts_msgs::access::setSemiAxis (SemiAxisLength &semi_axis_length, const double length) |
Set the Semi Axis length. | |
template<typename PosConfidenceEllipse> | |
void | etsi_its_cam_ts_msgs::access::setPosConfidenceEllipse (PosConfidenceEllipse &position_confidence_ellipse, const double semi_major_axis, const double semi_minor_axis, const double orientation) |
Set the Pos Confidence Ellipse object. | |
std::tuple< double, double, double > | etsi_its_cam_ts_msgs::access::confidenceEllipseFromCovMatrix (const std::array< double, 4 > &covariance_matrix, const double object_heading) |
Gets the values needed to set a confidence ellipse from a covariance matrix. | |
std::tuple< double, double, double > | etsi_its_cam_ts_msgs::access::confidenceEllipseFromWGSCovMatrix (const std::array< double, 4 > &covariance_matrix) |
Gets the values needed to set a confidence ellipse from a covariance matrix. | |
template<typename PosConfidenceEllipse> | |
void | etsi_its_cam_ts_msgs::access::setPosConfidenceEllipse (PosConfidenceEllipse &position_confidence_ellipse, const std::array< double, 4 > &covariance_matrix, const double object_heading) |
Set the Pos Confidence Ellipse object. | |
template<typename PosConfidenceEllipse> | |
void | etsi_its_cam_ts_msgs::access::setWGSPosConfidenceEllipse (PosConfidenceEllipse &position_confidence_ellipse, const std::array< double, 4 > &covariance_matrix) |
Set the Pos Confidence Ellipse object. | |
void | etsi_its_cam_ts_msgs::access::setStationId (StationId &station_id, const uint32_t id_value) |
Set the Station Id object. | |
void | etsi_its_cam_ts_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_cam_ts_msgs::access::setStationType (TrafficParticipantType &station_type, const uint8_t value) |
Set the Station Type. | |
void | etsi_its_cam_ts_msgs::access::setLongitudinalAccelerationValue (AccelerationValue &accel, const double value) |
Set the LongitudinalAccelerationValue object. | |
void | etsi_its_cam_ts_msgs::access::setLongitudinalAcceleration (AccelerationComponent &accel, const double value, const double confidence) |
Set the LongitudinalAcceleration object. | |
void | etsi_its_cam_ts_msgs::access::setLateralAccelerationValue (AccelerationValue &accel, const double value) |
Set the LateralAccelerationValue object. | |
void | etsi_its_cam_ts_msgs::access::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 | etsi_its_cam_ts_msgs::access::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 | etsi_its_cam_ts_msgs::access::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 | etsi_its_cam_ts_msgs::access::setWGSPositionConfidenceEllipse (PositionConfidenceEllipse &position_confidence_ellipse, const std::array< double, 4 > &covariance_matrix) |
Set the Position Confidence Ellipse object. | |
template<typename T> | |
void | etsi_its_cam_ts_msgs::access::setBitString (T &bitstring, const std::vector< bool > &bits) |
Set a Bit String by a vector of bools. | |
void | etsi_its_cam_ts_msgs::access::setGenerationDeltaTime (GenerationDeltaTime &generation_delta_time, const uint64_t unix_nanosecs, const uint16_t n_leap_seconds=etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.rbegin() ->second) |
Set the GenerationDeltaTime-Value. | |
void | etsi_its_cam_ts_msgs::access::setGenerationDeltaTime (CAM &cam, const uint64_t unix_nanosecs, const uint16_t n_leap_seconds=etsi_its_msgs::LEAP_SECOND_INSERTIONS_SINCE_2004.rbegin() ->second) |
Set the Generation Delta Time object. | |
void | etsi_its_cam_ts_msgs::access::setStationType (CAM &cam, const uint8_t value) |
Set the StationType for a CAM. | |
void | etsi_its_cam_ts_msgs::access::setHeading (CAM &cam, const double heading_val, const double confidence=std::numeric_limits< double >::infinity()) |
Set the Heading for a CAM. | |
void | etsi_its_cam_ts_msgs::access::setVehicleWidth (VehicleWidth &vehicle_width, const double value) |
Set the VehicleWidth object. | |
void | etsi_its_cam_ts_msgs::access::setVehicleLengthValue (VehicleLengthValue &vehicle_length, const double value) |
Set the VehicleLengthValue object. | |
void | etsi_its_cam_ts_msgs::access::setVehicleLength (VehicleLength &vehicle_length, const double value) |
Set the VehicleLength object. | |
void | etsi_its_cam_ts_msgs::access::setVehicleDimensions (CAM &cam, const double vehicle_length, const double vehicle_width) |
Set the vehicle dimensions. | |
void | etsi_its_cam_ts_msgs::access::setSpeed (CAM &cam, const double speed_val, const double confidence=SpeedConfidence::UNAVAILABLE) |
Set the vehicle speed. | |
void | etsi_its_cam_ts_msgs::access::setLongitudinalAcceleration (CAM &cam, const double lon_accel, const double confidence=std::numeric_limits< double >::infinity()) |
Set the longitudinal acceleration. | |
void | etsi_its_cam_ts_msgs::access::setLateralAcceleration (CAM &cam, const double lat_accel, const double confidence=std::numeric_limits< double >::infinity()) |
Set the lateral acceleration. | |
void | etsi_its_cam_ts_msgs::access::setReferencePosition (CAM &cam, const double latitude, const double longitude, const double altitude=AltitudeValue::UNAVAILABLE) |
Set the ReferencePosition for a CAM. | |
void | etsi_its_cam_ts_msgs::access::setFromUTMPosition (CAM &cam, const gm::PointStamped &utm_position, const int &zone, const bool &northp) |
Set the ReferencePosition of a CAM from a given UTM-Position. | |
void | etsi_its_cam_ts_msgs::access::setExteriorLights (ExteriorLights &exterior_lights, const std::vector< bool > &bits) |
Set the Exterior Lights by a vector of bools. | |
void | etsi_its_cam_ts_msgs::access::setExteriorLights (CAM &cam, const std::vector< bool > &exterior_lights) |
Set the Exterior Lights by using a vector of bools. | |
void | etsi_its_cam_ts_msgs::access::setAccelerationControl (AccelerationControl &acceleration_control, const std::vector< bool > &bits) |
Set the Acceleration Control by a vector of bools. | |
void | etsi_its_cam_ts_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_cam_ts_msgs::access::setSpecialTransportType (SpecialTransportType &special_transport_type, const std::vector< bool > &bits) |
Set the Special Transport Type by a vector of bools. | |
void | etsi_its_cam_ts_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. | |
void | etsi_its_cam_ts_msgs::access::setEmergencyPriority (EmergencyPriority &emergency_priority, const std::vector< bool > &bits) |
Set the Emergency Priority by a vector of bools. | |
void | etsi_its_cam_ts_msgs::access::setItsPduHeader (CAM &cam, const uint32_t station_id, const uint8_t protocol_version=0) |
Set the ItsPduHeader-object for a CAM. | |
void | etsi_its_cam_ts_msgs::access::setRefPosConfidence (CAM &cam, const std::array< double, 4 > &covariance_matrix, const double object_heading) |
Set the confidence of the reference position. | |
void | etsi_its_cam_ts_msgs::access::setWGSRefPosConfidence (CAM &cam, const std::array< double, 4 > &covariance_matrix) |
Set the confidence of the reference position. | |
Setter functions for the ETSI ITS CAM (TS)
Definition in file cam_ts_setters.h.
|
inline |
Gets the values needed to set a confidence ellipse from a covariance matrix.
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 376 of file cam_ts_setters.h.
|
inline |
Gets the values needed to set a confidence ellipse from a covariance matrix.
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 417 of file cam_ts_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 cam_ts_access.h.
|
inline |
Set the Acceleration Confidence object.
accel_confidence | object to set |
value | standard deviation in m/s^2 as decimal number |
Definition at line 220 of file cam_ts_setters.h.
|
inline |
Set the Acceleration Control by a vector of bools.
acceleration_control | |
bits |
Definition at line 294 of file cam_ts_setters.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 166 of file cam_ts_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 147 of file cam_ts_setters.h.
|
inline |
Set a Bit String by a vector of bools.
T |
bitstring | BitString to set |
bits | vector of bools |
Definition at line 44 of file cam_ts_setters.h.
|
inline |
Set the Driving Lane Status by a vector of bools.
driving_lane_status | |
bits |
Definition at line 304 of file cam_ts_setters.h.
|
inline |
Set the Emergency Priority by a vector of bools.
emergency_priority | |
bits |
Definition at line 334 of file cam_ts_setters.h.
|
inline |
Set the Exterior Lights by using a vector of bools.
cam | CAM to set the exterior lights |
exterior_lights | vector of bools to set the exterior lights |
Definition at line 269 of file cam_ts_setters.h.
|
inline |
Set the Exterior Lights by a vector of bools.
exterior_lights | |
bits |
Definition at line 259 of file cam_ts_setters.h.
|
inline |
Set the ReferencePosition of a CAM 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] | cam | CAM 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 249 of file cam_ts_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 268 of file cam_ts_setters.h.
|
inline |
Set the Generation Delta Time object.
cam | CAM to set the GenerationDeltaTime-Value for |
unix_nanosecs | Timestamp in unix-nanoseconds to set the GenerationDeltaTime-Value from |
n_leap_seconds | Number of leap seconds since 2004 for the given timestamp (Defaults to the todays number of leap seconds since 2004.) |
Definition at line 98 of file cam_ts_setters.h.
|
inline |
Set the GenerationDeltaTime-Value.
generation_delta_time | GenerationDeltaTime to set the GenerationDeltaTime-Value for |
unix_nanosecs | Timestamp in unix-nanoseconds to set the GenerationDeltaTime-Value from |
n_leap_seconds | Number of leap seconds since 2004 for the given timestamp (Defaults to the todays number of leap seconds since 2004.) |
Definition at line 81 of file cam_ts_setters.h.
|
inline |
Set the Heading for a CAM.
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
cam | CAM to set the ReferencePosition |
value | Heading value in degree as decimal number |
confidence | standard deviation of heading in degree as decimal number (default: infinity, mapping to HeadingConfidence::UNAVAILABLE) |
Definition at line 124 of file cam_ts_setters.h.
void etsi_its_cam_ts_msgs::access::setHeadingCDD | ( | Heading & | heading, |
const double | value, | ||
double | confidence = std::numeric_limits<double>::infinity() ) |
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 |
confidence | standard deviation of heading in degree as decimal number (default: infinity, mapping to HeadingConfidence::UNAVAILABLE) |
Definition at line 327 of file cam_ts_setters.h.
|
inline |
Set the Heading Confidence object.
heading_confidence | object to set |
value | standard deviation of heading in degree as decimal number |
Definition at line 306 of file cam_ts_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 293 of file cam_ts_setters.h.
|
inline |
Set the ItsPduHeader-object for a CAM.
cam | CAM-Message to set the ItsPduHeader |
station_id | |
protocol_version |
Definition at line 347 of file cam_ts_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 85 of file cam_ts_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 160 of file cam_ts_setters.h.
|
inline |
Set the lateral acceleration.
cam | CAM to set the acceleration value s |
lat_accel | lateral acceleration to set in m/s^2 as decimal number (left is positiv), if not available use 16.1 m/s^2 |
confidence | standard deviation of the lateral acceleration in m/s^2 as decimal number Default is infinity, mapping to AccelerationConfidence::UNAVAILABLE |
Definition at line 213 of file cam_ts_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 141 of file cam_ts_setters.h.
|
inline |
Set the Latitude object.
latitude | object to set |
deg | Latitude value in degree as decimal number |
Definition at line 123 of file cam_ts_setters.h.
|
inline |
Set the Lightbar Siren In Use by a vector of bools.
light_bar_siren_in_use | |
bits |
Definition at line 324 of file cam_ts_setters.h.
|
inline |
Set the Longitude object.
longitude | object to set |
deg | Longitude value in degree as decimal number |
Definition at line 135 of file cam_ts_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 130 of file cam_ts_setters.h.
|
inline |
Set the longitudinal acceleration.
cam | CAM to set the acceleration value s |
lon_accel | longitudinal acceleration to set in m/s^2 as decimal number (braking is negative), if not available use 16.1 m/s^2 |
confidence | standard deviation of the longitudinal acceleration in m/s^2 as decimal number Default is infinity, mapping to AccelerationConfidence::UNAVAILABLE |
Definition at line 199 of file cam_ts_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 111 of file cam_ts_setters.h.
|
inline |
Set the Pos Confidence Ellipse object.
[out] | position_confidence_ellipse | The PosConfidenceEllipse to set |
[in] | semi_major_axis | length of the semi-major axis in meters |
[in] | semi_minor_axis | length of the semi-minor axis in meters |
[in] | orientation | of the semi-major axis in degrees, with respect to WGS84 |
Definition at line 360 of file cam_ts_setters.h.
|
inline |
Set the Pos 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 433 of file cam_ts_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 174 of file cam_ts_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 191 of file cam_ts_setters.h.
|
inline |
Set the ReferencePosition for a CAM.
This function sets the latitude, longitude, and altitude of the CAMs reference position. If the altitude is not provided, it is set to AltitudeValue::UNAVAILABLE.
cam | CAM 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 232 of file cam_ts_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 242 of file cam_ts_setters.h.
|
inline |
Set the confidence of the reference position.
cam | CAM-Message to set the confidence |
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 | heading of the object in rad, with respect to WGS84 |
Definition at line 360 of file cam_ts_setters.h.
|
inline |
Set the Semi Axis length.
// See https://godbolt.org/z/Eceavfo99 on how the OneCentimeterHelper works with this template
semi_axis_length | The SemiAxisLength to set |
length | the desired length in meters |
Definition at line 341 of file cam_ts_setters.h.
|
inline |
Set the Special Transport Type by a vector of bools.
special_transport_type | |
bits |
Definition at line 314 of file cam_ts_setters.h.
|
inline |
Set the vehicle speed.
cam | CAM to set the speed value |
speed_val | speed value to set in m/s as decimal number |
Definition at line 187 of file cam_ts_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 |
confidence | standard deviation in m/s as decimal number (Optional. Default is std::numeric_limits<double>::infinity(), mapping to SpeedConfidence::UNAVAILABLE) |
Definition at line 208 of file cam_ts_setters.h.
|
inline |
Set the Speed Confidence object.
speed_confidence | object to set |
value | standard deviation in m/s as decimal number |
Definition at line 189 of file cam_ts_setters.h.
|
inline |
Set the SpeedValue object.
speed | object to set |
value | SpeedValue in m/s as decimal number |
Definition at line 177 of file cam_ts_setters.h.
|
inline |
Set the Station Id object.
station_id | |
id_value |
Definition at line 72 of file cam_ts_setters.h.
|
inline |
Set the StationType for a CAM.
cam | CAM-Message to set the station_type value |
value | station_type value to set |
Definition at line 110 of file cam_ts_setters.h.
|
inline |
Set the Station Type.
station_type | |
value |
Definition at line 100 of file cam_ts_setters.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. (Defaults to the todays number of leap seconds since 2004.) |
[in] | epoch_offset | Unix-Timestamp in seconds for the 01.01.2004 at 00:00:00 |
Definition at line 109 of file cam_ts_setters.h.
|
inline |
Set the vehicle dimensions.
cam | CAM to set the vehicle dimensions |
vehicle_length | vehicle length in meter as decimal number |
vehicle_width | vehicle width in meter as decimal number |
Definition at line 173 of file cam_ts_setters.h.
|
inline |
Set the VehicleLength object.
VehicleLengthConfidenceIndication is set to UNAVAILABLE
vehicle_length | object to set |
value | VehicleLengthValue in meter as decimal number |
Definition at line 161 of file cam_ts_setters.h.
|
inline |
Set the VehicleLengthValue object.
vehicle_length | object to set |
value | VehicleLengthValue in meter as decimal number |
Definition at line 147 of file cam_ts_setters.h.
|
inline |
Set the VehicleWidth object.
vehicle_width | object to set |
value | VehicleWidth in meter as decimal number |
Definition at line 135 of file cam_ts_setters.h.
|
inline |
Set the Pos 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 448 of file cam_ts_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 206 of file cam_ts_setters.h.
|
inline |
Set the confidence of the reference position.
cam | CAM-Message to set the confidence |
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 WGS84 (x = North, y = East) |
Definition at line 384 of file cam_ts_setters.h.
|
inline |
Throws an exception if the given value is not present.
is_present | Whether the value is present. |
val_desc | Description of the value for the exception message. |
Definition at line 58 of file cam_ts_access.h.
void etsi_its_cam_ts_msgs::access::throwIfOutOfRange | ( | const T1 & | val, |
const T2 & | min, | ||
const T2 & | max, | ||
const std::string | val_desc ) |
Throws an exception if a given value is out of a defined range.
T1 | |
T2 |
val | The value to check if it is in the range. |
min | The minimum value of the range. |
max | The maximum value of the range. |
val_desc | Description of the value for the exception message. |
Definition at line 47 of file cam_ts_access.h.