Setter functions for the UULM MCM (TR) More...
#include <etsi_its_msgs_utils/impl/checks.h>Go to the source code of this file.
Functions | |
| void | etsi_its_mcm_uulm_msgs::access::setItsPduHeader (MCM &mcm, const uint32_t station_id, const uint8_t protocol_version=2) |
| Sets the ITS PDU header for the given MCM message. | |
| void | etsi_its_mcm_uulm_msgs::access::setGenerationDeltaTime (MCM &mcm, 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_mcm_uulm_msgs::access::setStationType (MCM &mcm, const int value) |
| Set the StationType for a MCM. | |
| void | etsi_its_mcm_uulm_msgs::access::setLatitude (Latitude &latitude, const double deg) |
| Set the Latitude object. | |
| void | etsi_its_mcm_uulm_msgs::access::setLongitude (Longitude &longitude, const double deg) |
| Set the Longitude object. | |
| void | etsi_its_mcm_uulm_msgs::access::setAltitudeValue (AltitudeValue &altitude, const double value) |
| Set the AltitudeValue object. | |
| void | etsi_its_mcm_uulm_msgs::access::setAltitude (Altitude &altitude, const double value) |
| Set the Altitude object. | |
| void | etsi_its_mcm_uulm_msgs::access::setReferencePosition (MCM &mcm, const double latitude, const double longitude, const double altitude=AltitudeValue::UNAVAILABLE) |
| Set the ReferencePosition for an MCM. | |
| void | etsi_its_mcm_uulm_msgs::access::setFromUTMPosition (MCM &mcm, const gm::PointStamped &utm_position, const int zone, const bool northp) |
| Set the ReferencePosition of a MCM from a given UTM-Position. | |
| void | etsi_its_mcm_uulm_msgs::access::setSpeedValue (SpeedValue &speed, const double value) |
| Set the SpeedValue object. | |
| void | etsi_its_mcm_uulm_msgs::access::setHeadingValue (HeadingValue &heading, const double value) |
| Set the HeadingValue object. | |
| template<typename T> | |
| void | etsi_its_mcm_uulm_msgs::access::setRoadUserDimension (T &dim, const double value) |
| Sets the dimension value for a road user (width or length). | |
| void | etsi_its_mcm_uulm_msgs::access::setRoadUserState (RoadUserContainer &road_user_container, const uint8_t type, const double speed, const double heading, const double length, const double width) |
| Sets the state of a road user in the given container. | |
| void | etsi_its_mcm_uulm_msgs::access::setCartesianCoordinateLarge (CartesianCoordinateLarge &coordinate, const double value) |
| Sets the value of a CartesianCoordinateLarge object. | |
| void | etsi_its_mcm_uulm_msgs::access::setWaypoint (Waypoint &waypoint, const double x, const double y) |
| Sets the coordinates of a Waypoint object. | |
Setter functions for the UULM MCM (TR)
Definition in file mcm_setters.h.
|
inline |
Set the Altitude object.
| altitude | object to set |
| value | Altitude value (above the reference ellipsoid surface) in meter as decimal number |
Definition at line 132 of file mcm_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 115 of file mcm_setters.h.
|
inline |
Sets the value of a CartesianCoordinateLarge object.
If the converted value is outside the valid range, sets the value to NEGATIVE_OUT_OF_RANGE or POSITIVE_OUT_OF_RANGE accordingly.
| coordinate | Reference to the CartesianCoordinateLarge object to set. |
| value | The coordinate value in meters. |
Definition at line 272 of file mcm_setters.h.
|
inline |
Set the ReferencePosition of a MCM 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] | mcm | MCM 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 182 of file mcm_setters.h.
|
inline |
Set the Generation Delta Time object.
| mcm | MCM 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 63 of file mcm_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 219 of file mcm_setters.h.
|
inline |
Sets the ITS PDU header for the given MCM message.
| mcm | Reference to the MCM message whose header will be set. |
| station_id | The unique identifier of the ITS station. |
| protocol_version | The protocol version to use (default is 2). |
| std::out_of_range | if the protocol_version is outside the valid range defined by OrdinalNumber1B::MIN and OrdinalNumber1B::MAX. |
Definition at line 49 of file mcm_setters.h.
|
inline |
Set the Latitude object.
| latitude | object to set |
| deg | Latitude value in degree as decimal number |
Definition at line 91 of file mcm_setters.h.
|
inline |
Set the Longitude object.
| longitude | object to set |
| deg | Longitude value in degree as decimal number |
Definition at line 103 of file mcm_setters.h.
|
inline |
Set the ReferencePosition for an MCM.
If the altitude is not provided, it is set to AltitudeValue::UNAVAILABLE. Resets all Confidence values to UNAVAILABLE.
| mcm | MCM 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 148 of file mcm_setters.h.
|
inline |
Sets the dimension value for a road user (width or length).
| T | Type representing the road user dimension, which must have static MIN and MAX members and a value member. |
| dim | Reference to the dimension object to be set. |
| value | The dimension value (in meters) to be set. |
| std::exception | if the scaled value is out of the allowed range. |
Definition at line 235 of file mcm_setters.h.
|
inline |
Sets the state of a road user in the given container.
This function updates the road user type, speed, heading, length, and width of the specified RoadUserContainer object.
| road_user_container | Reference to the RoadUserContainer to update. |
| type | The type of the road user (as a uint8_t value). |
| speed | The speed of the road user (in m/s). |
| heading | The heading of the road user (in degrees). |
| length | The length of the road user (in meters). |
| width | The width of the road user (in meters). |
Definition at line 254 of file mcm_setters.h.
|
inline |
Set the SpeedValue object.
| speed | object to set |
| value | SpeedValue in m/s as decimal number |
Definition at line 205 of file mcm_setters.h.
|
inline |
Set the StationType for a MCM.
| mcm | MCM-Message to set the station_type value |
| value | station_type value to set |
Definition at line 80 of file mcm_setters.h.
|
inline |
Sets the coordinates of a Waypoint object.
| waypoint | Reference to the Waypoint object to be modified. |
| x | The x-coordinate value to set (in meters as decimal number). |
| y | The y-coordinate value to set (in meters as decimal number). |
Definition at line 289 of file mcm_setters.h.