34namespace etsi_its_cam_msgs::access {
44 return ((
double)longitudinal_acceleration.longitudinal_acceleration_value.value) * 1e-1;
54 return ((
double)longitudinal_acceleration.longitudinal_acceleration_confidence.value) * 1e-1 / etsi_its_msgs::ONE_D_GAUSSIAN_FACTOR;
64 return ((
double)lateral_acceleration.lateral_acceleration_value.value) * 1e-1;
74 return ((
double)lateral_acceleration.lateral_acceleration_confidence.value) * 1e-1 / etsi_its_msgs::ONE_D_GAUSSIAN_FACTOR;
89 double object_heading =
getHeading(cam) * M_PI / 180.0;
90 return getPosConfidenceEllipse(cam.cam.cam_parameters.basic_container.reference_position.position_confidence_ellipse, object_heading);
double getLongitudinalAccelerationConfidence(const LongitudinalAcceleration &longitudinal_acceleration)
Get the Longitudinal Acceleration Confidence.
const std::array< double, 4 > getRefPosConfidence(const CAM &cam)
Get the confidence ellipse of the reference position as Covariance matrix.
std::array< double, 4 > getWGSPosConfidenceEllipse(const PosConfidenceEllipse &position_confidence_ellipse)
Get the covariance matrix of the position confidence ellipse.
double getLateralAcceleration(const LateralAcceleration &lateral_acceleration)
Get the lateral acceleration.
const std::array< double, 4 > getWGSRefPosConfidence(const CAM &cam)
Get the confidence ellipse of the reference position as Covariance matrix.
double getLateralAccelerationConfidence(const LateralAcceleration &lateral_acceleration)
Get the Lateral Acceleration Confidence.
std::tuple< double, double, double > getPosConfidenceEllipse(const PosConfidenceEllipse &position_confidence_ellipse)
Extract major axis length, minor axis length and orientation from the given position confidence ellip...
double getLongitudinalAcceleration(const LongitudinalAcceleration &longitudinal_acceleration)
Get the longitudinal acceleration.
double getHeading(const CAM &cam)
Get the Heading value of CAM.
Common getter functions for the ETSI ITS CAM (EN and TS)
Getter functions for the ETSI ITS Common Data Dictionary (CDD) v1.3.1.