Function etsi_its_cpm_ts_msgs::access::getOrientationOfPerceivedObject

Function Documentation

inline gm::Quaternion etsi_its_cpm_ts_msgs::access::getOrientationOfPerceivedObject(const PerceivedObject &object)

Calculates the orientation of a perceived object.

This function calculates the orientation of a perceived object based on the angles provided in the PerceivedObject structure. The angles are converted to radians and used to set the roll, pitch, and yaw values of a tf2::Quaternion object. The resulting quaternion is then converted to a gm::Quaternion message and returned.

Parameters:

object – The PerceivedObject structure containing the angles of the perceived object.

Returns:

gm::Quaternion The orientation of the perceived object in radians from -pi to pi.