Function etsi_its_cpm_ts_msgs::access::getUTMPosition(const CollectivePerceptionMessage&, int&, bool&)

Function Documentation

inline gm::PointStamped etsi_its_cpm_ts_msgs::access::getUTMPosition(const CollectivePerceptionMessage &cpm, int &zone, bool &northp)

Get the UTM Position defined within the ManagementContainer of the CPM.

The position is transformed into UTM by using GeographicLib::UTMUPS The altitude value is directly used as z-Coordinate

Parameters:
  • cpm[in] CPM to get the UTM Position from

  • zone[out] the UTM zone (zero means UPS)

  • northp[out] hemisphere (true means north, false means south)

Returns:

geometry_msgs::PointStamped of the given position with the UTM zone and hemisphere as frame_id