From c7a5403f4d5db0b3e2c4af7161b05e3dc301ed25 Mon Sep 17 00:00:00 2001 From: Justin Carpentier Date: Mon, 21 Oct 2019 14:10:08 +0200 Subject: [PATCH 1/2] quaternion: fix exposure of toRotationMatrix --- include/eigenpy/quaternion.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/eigenpy/quaternion.hpp b/include/eigenpy/quaternion.hpp index 2017d4ea1..d8d429fc5 100644 --- a/include/eigenpy/quaternion.hpp +++ b/include/eigenpy/quaternion.hpp @@ -103,7 +103,7 @@ namespace eigenpy .def("coeffs",(const Vector4 & (Quaternion::*)()const)&Quaternion::coeffs, bp::return_value_policy()) .def("matrix",&Quaternion::matrix,"Returns an equivalent rotation matrix") - .def("toRotationMatrix ",&Quaternion::toRotationMatrix,"Returns an equivalent 3x3 rotation matrix.") + .def("toRotationMatrix",&Quaternion::toRotationMatrix,"Returns an equivalent 3x3 rotation matrix.") .def("setFromTwoVectors",&setFromTwoVectors,((bp::arg("a"),bp::arg("b"))),"Set *this to be the quaternion which transform a into b through a rotation." ,bp::return_self<>()) From 928c1f74fb8b883d2b3f2e614991b341e25577ca Mon Sep 17 00:00:00 2001 From: Justin Carpentier Date: Mon, 21 Oct 2019 18:05:31 +0200 Subject: [PATCH 2/2] quaternion: fix doc --- include/eigenpy/quaternion.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/eigenpy/quaternion.hpp b/include/eigenpy/quaternion.hpp index d8d429fc5..de9592c3a 100644 --- a/include/eigenpy/quaternion.hpp +++ b/include/eigenpy/quaternion.hpp @@ -102,7 +102,7 @@ namespace eigenpy /* --- Methods --- */ .def("coeffs",(const Vector4 & (Quaternion::*)()const)&Quaternion::coeffs, bp::return_value_policy()) - .def("matrix",&Quaternion::matrix,"Returns an equivalent rotation matrix") + .def("matrix",&Quaternion::matrix,"Returns an equivalent 3x3 rotation matrix. Similar to toRotationMatrix.") .def("toRotationMatrix",&Quaternion::toRotationMatrix,"Returns an equivalent 3x3 rotation matrix.") .def("setFromTwoVectors",&setFromTwoVectors,((bp::arg("a"),bp::arg("b"))),"Set *this to be the quaternion which transform a into b through a rotation."