Skip to content

Configurable Origin

Matthew Krupczak requested to merge configurable_origin into master

This MR adds optional configuration to specify either a geodetic (lat,lon) coordinate to use as the origin for the ENU frame, or a cartesian [x,y,z] to use as the new origin for the ENU frame (translating all outputed points accordingly)

The MR adds the optional arguments -c' or '--cartesian_origin to specify a new cartesian origin for the ENU frame. It also adds the optional argument -g or --geodetic_origin to specify a geodetic latitude/longitude to convert and use as the new origin for the local ENU frame

If one of these arguments is given, we'll use it as the origin for our ENU frame. If both are given, we'll use the cartesian origin and ignore the geodetic origin. If neither is given, we'll use the first point in the data as the origin, as before.

Example usage:

python3 geodetic-to-cartesian.py Perdue_Track_GoogEarth.csv -o test_origin.csv -g 40.4371406 -86.9433496 207.4059125

@bsolon524 @jamesrivett77

Merge request reports