Git Product home page Git Product logo

mrps's Introduction

MRPs

Conversion from/to Modified Rodrigues Parameters (MRPs) representation for 3D rotation

This directory contains Matlab scripts for converting between MRPs and other popular rotation representations (e.g., Gibbs, Rodrigues, quaternion, rotation matrix). MRPs are a minimal rotation parameterization. Just like quaternions q and -q refer to the same rotation (the 2-fold symmetry), there are two possible MRPs that represent the same rotation. One is called the "shadow" of the other, however it is unimportant which one is considered the original and which the shadow. The MRP representation has a singularity at 2*pi which can be avoided with the shadow MRP that has a singularity at the zero rotation (see mrp2shmrp.m).

More information on MRPs can be found in M.D. Shuster, "A Survey of Attitude Representations", Journal of the Astronautical Sciences, 41(4): 439–517 (1993).

G. Terzakis, M. Lourakis, D. Ait-Boudaoud, "Modified Rodrigues Parameters: An Efficient Representation of Orientation in 3D Vision and Graphics", Journal of Mathematical Imaging and Vision, 60(3): 422-442, (2018).

mrps's People

Contributors

mlourakis avatar

Stargazers

Pablo Alexis Domínguez Grau avatar Bing Zhao_BUAA avatar  avatar ZhouHang avatar

Watchers

 avatar

mrps's Issues

notes to mrp2quat

Just want to note small rearrange of calculations, lets use direct equations

  1. //sn = mrp.squaredNorm();
    
    vs = 2 / (1 + sn); // vector component scale
    qw = (1-sn) / (1 + sn); // w component of quat
    //4 FLOPS, we can store intermediate 1+sn
    We can see relation vs = qw+1; Using this we can rewrite 2 versions of conversion
  2. qw = (1-sn) / (1 + sn);
    vs = qw+1;
    //4 FLOPS
    and
  3. vs = 2 / (1 + sn);
    qw = vs -1;
    //3 FLOPS

Notes: Version 2) have average smaller error that 1) in result quaternion length (in terms ULP). And version 3) surprisingly have twice error in quaternion length (in terms ULP) than 1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.