Function etsi_its_cpm_ts_msgs::access::setAccelerationOfPerceivedObject

Function Documentation

inline void etsi_its_cpm_ts_msgs::access::setAccelerationOfPerceivedObject(PerceivedObject &object, const gm::Vector3 &cartesian_acceleration, const uint8_t x_confidence = AccelerationConfidence::UNAVAILABLE, const uint8_t y_confidence = AccelerationConfidence::UNAVAILABLE, const uint8_t z_confidence = AccelerationConfidence::UNAVAILABLE)

Sets the acceleration of a perceived object.

This function sets the acceleration of a perceived object using the provided Cartesian acceleration components. Optionally, confidence values can be specified for each acceleration component.

Parameters:
  • object – The perceived object for which the acceleration is being set.

  • cartesian_acceleration – The Cartesian acceleration components (x, y, z) of the object (in m/s^2).

  • x_confidence – The confidence value in m/s^2 for the x acceleration component (default: AccelerationConfidence::UNAVAILABLE).

  • y_confidence – The confidence value in m/s^2 for the y acceleration component (default: AccelerationConfidence::UNAVAILABLE).

  • z_confidence – The confidence value in m/s^2 for the z acceleration component (default: AccelerationConfidence::UNAVAILABLE).