Getter functions for the ETSI ITS CAM (EN) More...
#include <etsi_its_msgs_utils/impl/cdd/cdd_v1-3-1_getters.h>
#include <etsi_its_msgs_utils/impl/cam/cam_getters_common.h>
Go to the source code of this file.
Functions | |
uint32_t | etsi_its_cam_msgs::access::getStationID (const ItsPduHeader &header) |
Get the StationID of ItsPduHeader. | |
double | etsi_its_cam_msgs::access::getLatitude (const Latitude &latitude) |
Get the Latitude value. | |
double | etsi_its_cam_msgs::access::getLongitude (const Longitude &longitude) |
Get the Longitude value. | |
double | etsi_its_cam_msgs::access::getAltitude (const Altitude &altitude) |
Get the Altitude value. | |
double | etsi_its_cam_msgs::access::getSpeed (const Speed &speed) |
Get the vehicle speed. | |
double | etsi_its_cam_msgs::access::getSpeedConfidence (const Speed &speed) |
Get the Speed Confidence. | |
template<typename T> | |
gm::PointStamped | etsi_its_cam_msgs::access::getUTMPosition (const T &reference_position, int &zone, bool &northp) |
Get the UTM Position defined by the given ReferencePosition. | |
template<typename Heading> | |
double | etsi_its_cam_msgs::access::getHeadingCDD (const Heading &heading) |
Get the Heading value. | |
template<typename Heading> | |
double | etsi_its_cam_msgs::access::getHeadingConfidenceCDD (const Heading &heading) |
Get the Heading value. | |
template<typename SemiAxisLength> | |
double | etsi_its_cam_msgs::access::getSemiAxis (const SemiAxisLength &semi_axis_length) |
Get the Semi Axis object. | |
template<typename PosConfidenceEllipse> | |
std::tuple< double, double, double > | etsi_its_cam_msgs::access::getPosConfidenceEllipse (const PosConfidenceEllipse &position_confidence_ellipse) |
Extract major axis length, minor axis length and orientation from the given position confidence ellipse. | |
std::array< double, 4 > | etsi_its_cam_msgs::access::CovMatrixFromConfidenceEllipse (double semi_major, double semi_minor, double major_orientation, const double object_heading) |
Convert the confidence ellipse to a covariance matrix. | |
std::array< double, 4 > | etsi_its_cam_msgs::access::WGSCovMatrixFromConfidenceEllipse (double semi_major, double semi_minor, double major_orientation) |
Convert the confidence ellipse to a covariance matrix. | |
template<typename PosConfidenceEllipse> | |
std::array< double, 4 > | etsi_its_cam_msgs::access::getPosConfidenceEllipse (const PosConfidenceEllipse &position_confidence_ellipse, const double object_heading) |
Get the covariance matrix of the position confidence ellipse. | |
template<typename PosConfidenceEllipse> | |
std::array< double, 4 > | etsi_its_cam_msgs::access::getWGSPosConfidenceEllipse (const PosConfidenceEllipse &position_confidence_ellipse) |
Get the covariance matrix of the position confidence ellipse. | |
double | etsi_its_cam_msgs::access::getLongitudinalAcceleration (const LongitudinalAcceleration &longitudinal_acceleration) |
Get the longitudinal acceleration. | |
double | etsi_its_cam_msgs::access::getLongitudinalAccelerationConfidence (const LongitudinalAcceleration &longitudinal_acceleration) |
Get the Longitudinal Acceleration Confidence. | |
double | etsi_its_cam_msgs::access::getLateralAcceleration (const LateralAcceleration &lateral_acceleration) |
Get the lateral acceleration. | |
double | etsi_its_cam_msgs::access::getLateralAccelerationConfidence (const LateralAcceleration &lateral_acceleration) |
Get the Lateral Acceleration Confidence. | |
std::vector< bool > | etsi_its_cam_msgs::access::getBitString (const std::vector< uint8_t > &buffer, const int bits_unused) |
Get a Bit String in form of bool vector. | |
uint32_t | etsi_its_cam_msgs::access::getStationID (const CAM &cam) |
Get the Station ID object. | |
GenerationDeltaTime | etsi_its_cam_msgs::access::getGenerationDeltaTime (const CAM &cam) |
Get the GenerationDeltaTime. | |
uint16_t | etsi_its_cam_msgs::access::getGenerationDeltaTimeValue (const CAM &cam) |
Get the GenerationDeltaTime-Value. | |
uint8_t | etsi_its_cam_msgs::access::getStationType (const CAM &cam) |
Get the stationType object. | |
double | etsi_its_cam_msgs::access::getLatitude (const CAM &cam) |
Get the Latitude value of CAM. | |
double | etsi_its_cam_msgs::access::getLongitude (const CAM &cam) |
Get the Longitude value of CAM. | |
double | etsi_its_cam_msgs::access::getAltitude (const CAM &cam) |
Get the Altitude value of CAM. | |
double | etsi_its_cam_msgs::access::getHeading (const CAM &cam) |
Get the Heading value of CAM. | |
double | etsi_its_cam_msgs::access::getHeadingConfidence (const CAM &cam) |
Get the Heading confidence of CAM. | |
double | etsi_its_cam_msgs::access::getVehicleLength (const VehicleLength &vehicle_length) |
Get the Vehicle Length. | |
double | etsi_its_cam_msgs::access::getVehicleLength (const CAM &cam) |
Get the Vehicle Length. | |
double | etsi_its_cam_msgs::access::getVehicleWidth (const VehicleWidth &vehicle_width) |
Get the Vehicle Width. | |
double | etsi_its_cam_msgs::access::getVehicleWidth (const CAM &cam) |
Get the Vehicle Width. | |
double | etsi_its_cam_msgs::access::getSpeed (const CAM &cam) |
Get the vehicle speed. | |
double | etsi_its_cam_msgs::access::getSpeedConfidence (const CAM &cam) |
Get the Speed Confidence. | |
double | etsi_its_cam_msgs::access::getLongitudinalAcceleration (const CAM &cam) |
Get the longitudinal acceleration. | |
double | etsi_its_cam_msgs::access::getLongitudinalAccelerationConfidence (const CAM &cam) |
Get the Longitudinal Acceleration Confidence. | |
double | etsi_its_cam_msgs::access::getLateralAcceleration (const CAM &cam) |
Get the lateral acceleration. | |
double | etsi_its_cam_msgs::access::getLateralAccelerationConfidence (const CAM &cam) |
Get the Lateral Acceleration Confidence. | |
gm::PointStamped | etsi_its_cam_msgs::access::getUTMPosition (const CAM &cam, int &zone, bool &northp) |
Get the UTM Position defined within the BasicContainer of the CAM. | |
gm::PointStamped | etsi_its_cam_msgs::access::getUTMPosition (const CAM &cam) |
Get the UTM Position defined within the BasicContainer of the CAM. | |
std::vector< bool > | etsi_its_cam_msgs::access::getExteriorLights (const ExteriorLights &exterior_lights) |
Get the Exterior Lights in form of bool vector. | |
std::vector< bool > | etsi_its_cam_msgs::access::getExteriorLights (const CAM &cam) |
Get Exterior Lights as bool vector. | |
std::vector< bool > | etsi_its_cam_msgs::access::getAccelerationControl (const AccelerationControl &acceleration_control) |
Get Acceleration Control in form of bool vector. | |
std::vector< bool > | etsi_its_cam_msgs::access::getDrivingLaneStatus (const DrivingLaneStatus &driving_lane_status) |
Get the Driving Lane Status in form of bool vector. | |
std::vector< bool > | etsi_its_cam_msgs::access::getSpecialTransportType (const SpecialTransportType &special_transport_type) |
Get the Special Transport Type in form of bool vector. | |
std::vector< bool > | etsi_its_cam_msgs::access::getLightBarSirenInUse (const LightBarSirenInUse &light_bar_siren_in_use) |
Get the Lightbar Siren In Use in form of bool vector. | |
std::vector< bool > | etsi_its_cam_msgs::access::getEmergencyPriority (const EmergencyPriority &emergency_priority) |
Get the Vehicle Role in form of bool vector. | |
const std::array< double, 4 > | etsi_its_cam_msgs::access::getRefPosConfidence (const CAM &cam) |
Get the confidence ellipse of the reference position as Covariance matrix. | |
const std::array< double, 4 > | etsi_its_cam_msgs::access::getWGSRefPosConfidence (const CAM &cam) |
Get the confidence ellipse of the reference position as Covariance matrix. | |
Getter functions for the ETSI ITS CAM (EN)
Definition in file cam_getters.h.
|
inline |
Convert the confidence ellipse to a covariance matrix.
Note that the major_orientation is given in degrees, while the object_heading is given in radians!
semi_major | Semi major axis length in meters |
semi_minor | Semi minor axis length in meters |
major_orientation | Orientation of the major axis in degrees, relative to WGS84 |
object_heading | object heading in radians, relative to WGS84 |
Definition at line 182 of file cam_getters.h.
|
inline |
Get Acceleration Control in form of bool vector.
acceleration_control |
Definition at line 336 of file cam_getters.h.
|
inline |
Get the Altitude value.
altitude | to get the Altitude value from |
Definition at line 71 of file cam_getters.h.
|
inline |
Get the Altitude value of CAM.
cam | CAM to get the Altitude value from |
Definition at line 128 of file cam_getters.h.
|
inline |
Get a Bit String in form of bool vector.
buffer | as uint8_t vector |
bits_unused | number of bits to ignore at the end of the bit string |
Definition at line 43 of file cam_getters.h.
|
inline |
Get the Driving Lane Status in form of bool vector.
driving_lane_status |
Definition at line 346 of file cam_getters.h.
|
inline |
Get the Vehicle Role in form of bool vector.
vehicle_role |
Definition at line 376 of file cam_getters.h.
|
inline |
Get Exterior Lights as bool vector.
cam | CAM to get the ExteriorLights values from |
Definition at line 316 of file cam_getters.h.
|
inline |
Get the Exterior Lights in form of bool vector.
exterior_lights |
Definition at line 306 of file cam_getters.h.
|
inline |
Get the GenerationDeltaTime.
cam | CAM to get the GenerationDeltaTime from |
Definition at line 84 of file cam_getters.h.
|
inline |
Get the GenerationDeltaTime-Value.
cam | CAM to get the GenerationDeltaTime-Value from |
Definition at line 92 of file cam_getters.h.
|
inline |
Get the Heading value of CAM.
0.0° equals WGS84 North, 90.0° equals WGS84 East, 180.0° equals WGS84 South and 270.0° equals WGS84 West
cam | CAM to get the Heading value from |
Definition at line 140 of file cam_getters.h.
|
inline |
Get the Heading value.
0.0° equals WGS84 North, 90.0° equals WGS84 East, 180.0° equals WGS84 South and 270.0° equals WGS84 West
heading | to get the Heading value from |
Definition at line 132 of file cam_getters.h.
|
inline |
Get the Heading confidence of CAM.
cam | CAM to get the Heading confidence from |
Definition at line 151 of file cam_getters.h.
|
inline |
Get the Heading value.
0.0° equals WGS84 North, 90.0° equals WGS84 East, 180.0° equals WGS84 South and 270.0° equals WGS84 West
heading | to get the Heading standard deviation from |
Definition at line 143 of file cam_getters.h.
|
inline |
Get the lateral acceleration.
cam | CAM to get the lateral acceleration from |
Definition at line 244 of file cam_getters.h.
|
inline |
Get the lateral acceleration.
lateralAcceleration | to get the lateral acceleration from |
Definition at line 272 of file cam_getters.h.
|
inline |
Get the Lateral Acceleration Confidence.
cam | CAM to get the LateralAccelerationConfidence from |
Definition at line 260 of file cam_getters.h.
|
inline |
Get the Lateral Acceleration Confidence.
longitudinal_acceleration | to get the LateralAccelerationConfidence from |
Definition at line 282 of file cam_getters.h.
|
inline |
Get the Latitude value of CAM.
cam | CAM to get the Latitude value from |
Definition at line 108 of file cam_getters.h.
|
inline |
Get the Latitude value.
latitude | to get the Latitude value from |
Definition at line 55 of file cam_getters.h.
|
inline |
Get the Lightbar Siren In Use in form of bool vector.
light_bar_siren_in_use |
Definition at line 366 of file cam_getters.h.
|
inline |
Get the Longitude value of CAM.
cam | CAM to get the Longitude value from |
Definition at line 118 of file cam_getters.h.
|
inline |
Get the Longitude value.
longitude | to get the Longitude value from |
Definition at line 63 of file cam_getters.h.
|
inline |
Get the longitudinal acceleration.
cam | CAM to get the longitudinal acceleration from |
Definition at line 222 of file cam_getters.h.
|
inline |
Get the longitudinal acceleration.
longitudinalAcceleration | to get the longitudinal acceleration from |
Definition at line 252 of file cam_getters.h.
|
inline |
Get the Longitudinal Acceleration Confidence.
cam | CAM to get the LongitudinalAccelerationConfidence from |
Definition at line 233 of file cam_getters.h.
|
inline |
Get the Longitudinal Acceleration Confidence.
longitudinal_acceleration | to get the LongitudinalAccelerationConfidence from |
Definition at line 262 of file cam_getters.h.
|
inline |
Extract major axis length, minor axis length and orientation from the given position confidence ellipse.
position_confidence_ellipse | The position confidence ellipse to extract the values from |
Definition at line 163 of file cam_getters.h.
|
inline |
Get the covariance matrix of the position confidence ellipse.
position_confidence_ellipse | The position confidence ellipse to get the covariance matrix from |
object_heading | The object heading in radians |
Definition at line 224 of file cam_getters.h.
|
inline |
Get the confidence ellipse of the reference position as Covariance matrix.
The covariance matrix will have the entries cov_xx, cov_xy, cov_yx, cov_yy where x is the longitudinal axis and y is the lateral axis of the vehicle.
cam | The CAM message to get the reference position from |
Definition at line 391 of file cam_getters.h.
|
inline |
Get the Semi Axis object.
semi_axis_length | The SemiAxisLength object to get the semi axis from |
Definition at line 152 of file cam_getters.h.
|
inline |
Get the Special Transport Type in form of bool vector.
special_transport_type |
Definition at line 356 of file cam_getters.h.
|
inline |
Get the vehicle speed.
cam | CAM to get the speed value from |
Definition at line 201 of file cam_getters.h.
|
inline |
Get the vehicle speed.
speed | to get the speed value from |
Definition at line 79 of file cam_getters.h.
|
inline |
Get the Speed Confidence.
cam | CAM to get the Speed Confidence from |
Definition at line 211 of file cam_getters.h.
|
inline |
Get the Speed Confidence.
speed | to get the SpeedConfidence from |
Definition at line 87 of file cam_getters.h.
|
inline |
Get the Station ID object.
cam | CAM to get the StationID value from |
Definition at line 76 of file cam_getters.h.
|
inline |
Get the StationID of ItsPduHeader.
header | ItsPduHeader to get the StationID value from |
Definition at line 47 of file cam_getters.h.
|
inline |
Get the stationType object.
cam | CAM to get the stationType value from |
Definition at line 100 of file cam_getters.h.
|
inline |
Get the UTM Position defined within the BasicContainer of the CAM.
The position is transformed into UTM by using GeographicLib::UTMUPS The altitude value is directly used as z-Coordinate
[in] | cam | CAM to get the UTM Position from |
Definition at line 294 of file cam_getters.h.
|
inline |
Get the UTM Position defined within the BasicContainer of the CAM.
The position is transformed into UTM by using GeographicLib::UTMUPS The altitude value is directly used as z-Coordinate
[in] | cam | CAM to get the UTM Position from |
[out] | zone | the UTM zone (zero means UPS) |
[out] | northp | hemisphere (true means north, false means south) |
Definition at line 281 of file cam_getters.h.
|
inline |
Get the UTM Position defined by the given ReferencePosition.
The position is transformed into UTM by using GeographicLib::UTMUPS The altitude value is directly used as z-Coordinate
[in] | reference_position | ReferencePosition or ReferencePositionWithConfidence to get the UTM Position from |
[out] | zone | the UTM zone (zero means UPS) |
[out] | northp | hemisphere (true means north, false means south) |
Definition at line 103 of file cam_getters.h.
|
inline |
Get the Vehicle Length.
cam | CAM to get the vehicle length value from |
Definition at line 171 of file cam_getters.h.
|
inline |
Get the Vehicle Length.
vehicleLength | to get the vehicle length value from |
Definition at line 161 of file cam_getters.h.
|
inline |
Get the Vehicle Width.
cam | CAM to get the vehicle width value from |
Definition at line 190 of file cam_getters.h.
|
inline |
Get the Vehicle Width.
vehicleWidth | to get the vehicle width value from |
Definition at line 182 of file cam_getters.h.
|
inline |
Get the covariance matrix of the position confidence ellipse.
position_confidence_ellipse | The position confidence ellipse to get the covariance matrix from |
object_heading | The object heading in radians |
Definition at line 237 of file cam_getters.h.
|
inline |
Get the confidence ellipse of the reference position as Covariance matrix.
The covariance matrix will have the entries cov_xx, cov_xy, cov_yx, cov_yy where x is WGS84 North and y is East
cam | The CAM message to get the reference position from |
Definition at line 405 of file cam_getters.h.
|
inline |
Convert the confidence ellipse to a covariance matrix.
Note that the major_orientation is given in degrees, while the object_heading is given in radians!
semi_major | Semi major axis length in meters |
semi_minor | Semi minor axis length in meters |
major_orientation | Orientation of the major axis in degrees, relative to WGS84 |
Definition at line 211 of file cam_getters.h.