Function etsi_its_cpm_ts_msgs::access::setVelocityOfPerceivedObject

Function Documentation

inline void etsi_its_cpm_ts_msgs::access::setVelocityOfPerceivedObject(PerceivedObject &object, const gm::Vector3 &cartesian_velocity, const uint8_t x_confidence = SpeedConfidence::UNAVAILABLE, const uint8_t y_confidence = SpeedConfidence::UNAVAILABLE, const uint8_t z_confidence = SpeedConfidence::UNAVAILABLE)

Sets the velocity of a perceived object.

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

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

  • cartesian_velocity – The Cartesian velocity components (x, y, z) of the object (in m/s).

  • x_confidence – The confidence value in m/s for the x velocity component (default: SpeedConfidence::UNAVAILABLE).

  • y_confidence – The confidence value in m/s for the y velocity component (default: SpeedConfidence::UNAVAILABLE).

  • z_confidence – The confidence value in m/s for the z velocity component (default: SpeedConfidence::UNAVAILABLE).