Function etsi_its_cpm_ts_msgs::access::getOrientationOfPerceivedObject
Defined in File cpm_ts_getters.h
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
PerceivedObjectstructure. The angles are converted to radians and used to set the roll, pitch, and yaw values of atf2::Quaternionobject. The resulting quaternion is then converted to agm::Quaternionmessage and returned.- Parameters:
object – The
PerceivedObjectstructure containing the angles of the perceived object.- Returns:
gm::Quaternion The orientation of the perceived object in radians from -pi to pi.