2023-08-20 20:49:55 -07:00
|
|
|
from openpilot.common.transformations.orientation import numpy_wrap
|
|
|
|
|
from openpilot.common.transformations.transformations import (ecef2geodetic_single,
|
2020-06-09 16:44:26 -07:00
|
|
|
geodetic2ecef_single)
|
2023-08-20 20:49:55 -07:00
|
|
|
from openpilot.common.transformations.transformations import LocalCoord as LocalCoord_single
|
2020-01-17 10:28:44 -08:00
|
|
|
|
|
|
|
|
|
2020-06-09 16:44:26 -07:00
|
|
|
class LocalCoord(LocalCoord_single):
|
|
|
|
|
ecef2ned = numpy_wrap(LocalCoord_single.ecef2ned_single, (3,), (3,))
|
|
|
|
|
ned2ecef = numpy_wrap(LocalCoord_single.ned2ecef_single, (3,), (3,))
|
|
|
|
|
geodetic2ned = numpy_wrap(LocalCoord_single.geodetic2ned_single, (3,), (3,))
|
|
|
|
|
ned2geodetic = numpy_wrap(LocalCoord_single.ned2geodetic_single, (3,), (3,))
|
2020-01-17 10:28:44 -08:00
|
|
|
|
|
|
|
|
|
2020-06-09 16:44:26 -07:00
|
|
|
geodetic2ecef = numpy_wrap(geodetic2ecef_single, (3,), (3,))
|
|
|
|
|
ecef2geodetic = numpy_wrap(ecef2geodetic_single, (3,), (3,))
|
2020-06-01 12:09:00 -07:00
|
|
|
|
|
|
|
|
geodetic_from_ecef = ecef2geodetic
|
|
|
|
|
ecef_from_geodetic = geodetic2ecef
|