14 for (
int i=0; i<t.rows(); i++){
23 t << -3, -2, -4, .2, .1, .3;
25 cout <<
"transform" << endl;
26 cout << T.matrix() << endl;
29 cl1 << 20, 50, -70, .1, .2, .3;
31 cout <<
"cartesian line L1: ";
printVector(cout, cl1); cout << endl;
32 Line3D pl1 = Line3D::fromCartesian(cl1);
33 cout <<
"pluecker line L1: ";
printVector(cout, pl1); cout << endl;
34 cout <<
"cartesian line L1, reconstructed from puecker: ";
printVector(cout, pl1.
toCartesian()); cout << endl;
39 cout <<
"transformed line L2: ";
printVector(cout, cl2); cout << endl;
40 cout <<
"transformed pline L2: ";
printVector(cout, pl2); cout << endl;
41 cout <<
"error of cartesian line L2, reconstructed from puecker: ";
printVector(cout, cl2 - pl2.
toCartesian());
Vector6d transformCartesianLine(const Isometry3D &t, const Vector6d &line)
ostream & printVector(ostream &os, const T &t)
Eigen::Transform< double, 3, Eigen::Isometry, Eigen::ColMajor > Isometry3D
G2O_TYPES_SLAM3D_ADDONS_API Vector6d toCartesian() const
Eigen::Matrix< double, 6, 1 > Vector6d
Isometry3D fromVectorMQT(const Vector6d &v)
Vector6d normalizeCartesianLine(const Vector6d &line)