Menu

Correct method to convert GDC (lat,lon,alt,yaw,pit,rol) to WCS (x,y,z,psi,the,phi) and vice versa

Help
Anonymous
2021-06-04
2025-02-05
  • Anonymous

    Anonymous - 2021-06-04

    The geocentric class is great for single point spatial conversions. But it is NOT obvious from the source about how best to use the matrix parameter to convert rotations to/from. Might there be some example source that shows a complete 6dof to/from conversion between GDC and WCS.

    Please advise.
    Thanks.

     
  • Charles Karney

    Charles Karney - 2021-06-05

    There are too many ways that Euler angles are defined to be able to give a simple prescription for what you want to do. I recommend you roll up your sleeves and work out carefully how to do the operations correctly in your application.

     
  • Anonymous

    Anonymous - 2025-02-05

    Hi, I realize this is an old question, but I'm looking to do something similar as well. I realize this is not part of the Geographiclib API, but are there classes within the library to use to accomplish this?

    I'm working on a project where I have Geographiclib for some things, and some other matrix and vector classes that I use primarily to accomplish my orientation conversions. I'd really like it if I could get rid of all those other classes and just use Geographiclib, if possible.

    Can I do those orientations with Geographiclib, even if I have to work out the process myself?

    Thanks,

     
  • Charles Karney

    Charles Karney - 2025-02-05

    No, GeographicLib doesn't contain any routines for matrix and vector algebra. I recommend you use Eigen for this purpose. It's capable and, as a header-only package, easy to incorporate into your project.

     
    • Anonymous

      Anonymous - 2025-02-05

      Thanks for the tip, I'll check it out.

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.