Giter VIP home page Giter VIP logo

Comments (8)

traversaro avatar traversaro commented on August 15, 2024

Regarding the quaternion to rotation, two formulas are used in the code:

dcm = eye(3) + 2*qt_b_mod_s*skew(qt_b_mod_r) + 2 * skew(qt_b_mod_r)^2;

in the quite used frame2pos function and

dcm = eye(3) - 2*qt_b_mod_s*skew(qt_b_mod_r) + 2 * skew(qt_b_mod_r)^2;

in the rest of the code. As far as I remember the one with the minus is the correct one, but I think it is good if we all agree on which fix is the one most correct.

from mex-wholebodymodel.

DanielePucci avatar DanielePucci commented on August 15, 2024

Guys, I'm really frustrated, since I remember that I personally worked on that, and I tried to fix this stuff with @gabrielenava. I don't know why these obscure formulae keep going around. I remember that the first one should be right, instead [1, p. 101, Eq. 3.8]. Anyways, please try to write these functions once for all in appropriate separate files, so we can debug them only once.

@naveenoid

[1] https://www-sop.inria.fr/act_recherche/formulaire/uploads/phd-425.pdf

from mex-wholebodymodel.

traversaro avatar traversaro commented on August 15, 2024

I checked and apparently the formula with a plus is the one consistent with Rodriguez Formula.

from mex-wholebodymodel.

traversaro avatar traversaro commented on August 15, 2024

I also checked and apparently mex-wholebodymodel_balancing code is not using the minus version anywhere.

from mex-wholebodymodel.

DanielePucci avatar DanielePucci commented on August 15, 2024

Ack.

from mex-wholebodymodel.

naveenoid avatar naveenoid commented on August 15, 2024

I have no idea why the incorrect version crept in. I remember fixing this a while ago also with @gabrielenava. I guess with automated tests this will stop being a problem.

from mex-wholebodymodel.

traversaro avatar traversaro commented on August 15, 2024

Given that it was the source of the error in #30 and an important piece of computation in general, I will now investigate how to consolidated all the different functions implementing the "Constrained Dynamics with Torque as a input".

from mex-wholebodymodel.

traversaro avatar traversaro commented on August 15, 2024

@gabrielenava Can you fix the last point in #42 (comment) ?

from mex-wholebodymodel.

Related Issues (20)

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.