Skip to content

Commit

Permalink
Avoid to use Eigen::Vector4d in bindings_so3.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Mar 16, 2021
1 parent 8af8758 commit 90e119e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/bindings_so3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void wrap_SO3(py::module &m)

SO3.def(py::init<const Scalar, const Scalar, const Scalar>());
SO3.def(py::init<const Scalar, const Scalar, const Scalar, const Scalar>());
SO3.def(py::init([](const Eigen::Vector4d& quat) {
SO3.def(py::init([](const Eigen::Matrix<Scalar, 4, 1>& quat) {
if(abs(quat.norm() - Scalar(1)) >= manif::Constants<Scalar>::eps_s) {
throw pybind11::value_error("The quaternion is not normalized!");
}
Expand Down

0 comments on commit 90e119e

Please sign in to comment.