From 750d69d4d8c0cd7e98974c5a4b8fcdd5e75e9d4f Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Fri, 21 May 2021 18:22:27 +0200 Subject: [PATCH] geometry: fix constructor from vector --- 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 5c2c2bf..1f824ec 100644 --- a/include/eigenpy/quaternion.hpp +++ b/include/eigenpy/quaternion.hpp @@ -277,7 +277,7 @@ namespace eigenpy static Quaternion* FromOneVector(const Vector4& v) { - Quaternion* q(new Quaternion(v)); + Quaternion* q(new Quaternion(v[3],v[0],v[1],v[2])); return q; } -- GitLab