This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Trying to instantiate a Quaternion

Tags: None
(comma "," separated)
konolige
Registered Member
Posts
9
Karma
0
OS

Trying to instantiate a Quaternion

Mon Nov 23, 2009 4:35 am
Sorry to bother folks, this must be a simple thing - the following code gives me an error, "Incomplete type":

#include <Eigen/Core>

void xx()
{
Eigen::Quaternion<double> qrot;
}

But this does not:

#include <Eigen/Core>

template<typename T>
void xx()
{
Eigen::Quaternion<double> qrot;
}

I'm using Eigen 2.0.3.

CHeers --Kurt
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
You need to #include <Eigen/Geometry> to have access to Quaternion.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]