File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -182,10 +182,15 @@ void declareEigenTypes(py::module & m) {
182
182
return Eigen::Quaterniond::FromTwoVectors (a, b);
183
183
})
184
184
185
- .def (" x" , (double (Eigen::Quaterniond::*) () const ) &Eigen::Quaterniond::x)
186
- .def (" y" , (double (Eigen::Quaterniond::*) () const ) &Eigen::Quaterniond::y)
187
- .def (" z" , (double (Eigen::Quaterniond::*) () const ) &Eigen::Quaterniond::z)
188
- .def (" w" , (double (Eigen::Quaterniond::*) () const ) &Eigen::Quaterniond::w)
185
+ // .def("x", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::x)
186
+ // .def("y", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::y)
187
+ // .def("z", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::z)
188
+ // .def("w", (double (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::w)
189
+ // Replaced by the following: @Pietro Griffa - ETHZ - following this issue https://github.com/uoip/g2opy/issues/46#issuecomment-704190419
190
+ .def (" x" , [](const Eigen::Quaterniond& q) { return q.x (); })
191
+ .def (" y" , [](const Eigen::Quaterniond& q) { return q.y (); })
192
+ .def (" z" , [](const Eigen::Quaterniond& q) { return q.z (); })
193
+ .def (" w" , [](const Eigen::Quaterniond& q) { return q.w (); })
189
194
190
195
.def (" vec" , (const Eigen::VectorBlock<const Eigen::Quaterniond::Coefficients,3 > (Eigen::Quaterniond::*) () const ) &Eigen::Quaterniond::vec)
191
196
You can’t perform that action at this time.
0 commit comments