Menu

Local cartesian with orientation

Anonymous
2020-07-01
2020-07-01
  • Anonymous

    Anonymous - 2020-07-01

    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

     
  • Charles Karney

    Charles Karney - 2020-07-01

    GeographicLib doesn't deal with the heading, pitch, roll of a coordinate system. You'll have to apply these rotations yourself.

     
  • Anonymous

    Anonymous - 2020-07-01

    OK, thanks for your quick answer !
    So I use this way to do, and after apply the rotation matrix, right ?

     
  • Charles Karney

    Charles Karney - 2020-07-01

    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.

     

Anonymous
Anonymous

Add attachments
Cancel