Function etsi_its_cpm_ts_msgs::access::getUTMPositionOfPerceivedObject
Defined in File cpm_ts_getters.h
Function Documentation
-
inline gm::PointStamped etsi_its_cpm_ts_msgs::access::getUTMPositionOfPerceivedObject(const CollectivePerceptionMessage &cpm, const PerceivedObject &object)
Calculates the UTM position of a perceived object based on the CPMs referencep position.
This function takes a CPM and a PerceivedObject as input parameters and calculates the UTM position of the object. The UTM position is calculated by adding the relative position of the object to the UTM position of the reference point in the CPM.
- Parameters:
cpm – The Collective Perception Message (CPM) containing the reference position.
object – The PerceivedObject for which the UTM position needs to be calculated.
- Returns:
The UTM position of the perceived object.