Re: [eigen] Quaternion initialization from Block/segment (Eigen 3 beta 1)

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Jens Andersen wrote:
Hi from a long time lurker, one-time poster
I'm trying to use eigen to efficiently work with a quaternion stored inside an Eigen::VectorXd (a state vector in an EKF-based SLAM)

In Eigen3 there is a QuaternionMapd. It should work like this:

Eigen::VectorXd myvector;
Eigen::QuaternionMapd q(myvector.data()+3);

and then use (and modify) q like an ordinary quaternion.




--
----------------------------------------------
Dipl.-Inf. Christoph Hertzberg
Cartesium 0.051
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: (+49) 421-218-64252
----------------------------------------------



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/