Template Function getUTMPosition(const T&, int&, bool&)

Function Documentation

template<typename T>
inline gm::PointStamped getUTMPosition(const T &reference_position, int &zone, bool &northp)

Get the UTM Position defined by the given ReferencePosition.

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

Parameters:
  • reference_position[in] ReferencePosition or ReferencePositionWithConfidence to get the UTM Position from

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

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

Returns:

gm::PointStamped geometry_msgs::PointStamped of the given position