Skip to content

Commit

Permalink
fixed build error as per issue uoip#46
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBommes committed Jul 7, 2021
1 parent 5587024 commit b49aa65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/core/eigen_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ void declareEigenTypes(py::module & m) {
return Eigen::Quaterniond::FromTwoVectors(a, b);
})

.def("x", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::x)
.def("y", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::y)
.def("z", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::z)
.def("w", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::w)
.def("x", [](const Eigen::Quaterniond& q) { return q.x(); })
.def("y", [](const Eigen::Quaterniond& q) { return q.y(); })
.def("z", [](const Eigen::Quaterniond& q) { return q.z(); })
.def("w", [](const Eigen::Quaterniond& q) { return q.w(); })

.def("vec", (const Eigen::VectorBlock<const Eigen::Quaterniond::Coefficients,3> (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::vec)

Expand Down Expand Up @@ -292,4 +292,4 @@ void declareEigenTypes(py::module & m) {

}

} // end namespace g2o
} // end namespace g2o

0 comments on commit b49aa65

Please sign in to comment.