I wan to convert a geodetic location (Lat/Lon/Alt) to a oriented local cartesian.
Exemple :
- I have an entity located at lat/lon/alt, with an attiude heading/pitch/roll
- I want to convert another location (lat2/lon2/alt2) in the local frame of my entity but depending on its heading !
If I use :
GeographicLib::LocalCartesian localCartesian (lat, lon,alt);
double x = 0., y = 0., z = 0.;
localCartesian.Forward (lat2, lon2,alt2, x, y, z);
I have my result, but without depends on attitude of my entity.
Is there any way to taking account of the orientation of my entity during conversion ?
Regards
Nico
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In my experience, it's easy to make mistakes in the order of rotations (and even in the sense of the rotations -- clockwise vs anticlockwise). My recommendation is to be careful and to be skeptical.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I wan to convert a geodetic location (Lat/Lon/Alt) to a oriented local cartesian.
Exemple :
- I have an entity located at lat/lon/alt, with an attiude heading/pitch/roll
- I want to convert another location (lat2/lon2/alt2) in the local frame of my entity but depending on its heading !
If I use :
GeographicLib::LocalCartesian localCartesian (lat, lon,alt);
double x = 0., y = 0., z = 0.;
localCartesian.Forward (lat2, lon2,alt2, x, y, z);
I have my result, but without depends on attitude of my entity.
Is there any way to taking account of the orientation of my entity during conversion ?
Regards
Nico
GeographicLib doesn't deal with the heading, pitch, roll of a coordinate system. You'll have to apply these rotations yourself.
OK, thanks for your quick answer !
So I use this way to do, and after apply the rotation matrix, right ?
In my experience, it's easy to make mistakes in the order of rotations (and even in the sense of the rotations -- clockwise vs anticlockwise). My recommendation is to be careful and to be skeptical.