Function etsi_its_cpm_ts_msgs::access::setCartesianCoordinateWithConfidence
Defined in File cpm_ts_setters.h
Function Documentation
-
inline void etsi_its_cpm_ts_msgs::access::setCartesianCoordinateWithConfidence(CartesianCoordinateWithConfidence &coordinate, const double value, const double confidence = std::numeric_limits<double>::infinity())
Sets the value and confidence of a CartesianCoordinateWithConfidence object.
This function sets the value and confidence of a CartesianCoordinateWithConfidence object. The value is limited to the range defined by CartesianCoordinateLarge::NEGATIVE_OUT_OF_RANGE and CartesianCoordinateLarge::POSITIVE_OUT_OF_RANGE. The confidence is limited to the range defined by CoordinateConfidence::MIN and CoordinateConfidence::MAX. If the provided confidence is out of range, the confidence value is set to CoordinateConfidence::OUT_OF_RANGE.
- Parameters:
coordinate – The CartesianCoordinateWithConfidence object to be modified.
value – The value to be set in centimeters.
confidence – The confidence to be set in centimeters (default: infinity, which will map to CoordinateConfidence::UNAVAILABLE).