Function common::ecefToNed

Function Documentation

void common::ecefToNed(const Eigen::Vector3d &earth_centered_earth_fixed, const Eigen::Vector3d &origin_earth_centered_earth_fixed, Eigen::Vector3d *north_east_down)

Converts from WGS84 earth centered, earth fixed cartesian (ECEF) coordinates (x, y, z) into local tangent plane where the origin is the origin in ECEF coordinates.

Parameters
  • [in] earth_centered_earth_fixed – Cartesian coordinates (x, y, z) in meter to be converted.

  • [in] origin_earth_centered_earth_fixed – Origin in cartesian coordinates (x0, y0, z0) in meter.

  • [out] north_east_down – Converted coordinates in (north, east, down).