Skip to content
Snippets Groups Projects
Commit c9f527a0 authored by Dinesh Atchuthan's avatar Dinesh Atchuthan
Browse files

use minus from rotations.h to compute error in ConstraintQuaternionAbsolute::operator ()

parent e71647a9
No related branches found
No related tags found
Loading
Loading
  • Dinesh Atchuthan @AtDinesh

    mentioned in issue #147 (closed)

    ·

    mentioned in issue #147 (closed)

    Toggle commit list
  • In my opinion, as first option, in line 68 it is clearer to write:

    er = log_q( q2.cast<T> * q1.conjugate() ); // This is a minus operation in global frame

    than to twist the code with unclear shortcuts.

    Otherwise, we could define plus_left(), plus_right(), minus_left() and minus_right(), as we defined Jac_SO3_left() and Jac_SO3_right() in rotations.h. But I would go for the first option.

    Edited by Joan Solà Ortega
  • OK then let's use log_q( q2.cast<T>() * q1.conjugate() ) as temporary fix and define new functions in rotations.h if really needed in other places.

    Edited by Dinesh Atchuthan
  • I'm on it. Will do the following:

    • create plus_right(), plus_left(), minus_right(), minus_left()
    • have plus() = plus_right(), and minus() = minus_right()
    • leave diff() = minus() as only option by now
  • Done and pushed to master. You can merge from master.

  • so now you can use minus_left(q1, q2)

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment