Skip to content

Commit 363dbf7

Browse files
committed
[Quaternion] Use the right type from QuaternionBase
1 parent 80f4f53 commit 363dbf7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/quaternion.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ namespace eigenpy
4545

4646
typedef typename QuaternionBase::Scalar Scalar;
4747
typedef typename Quaternion::Coefficients Coefficients;
48-
typedef Eigen::Matrix<Scalar,3,1> Vector3;
49-
typedef Eigen::Matrix<Scalar,4,1> Vector4;
50-
typedef Eigen::Matrix<Scalar,3,3> Matrix3;
48+
typedef typename QuaternionBase::Vector3 Vector3;
49+
typedef typename Eigen::Matrix<Scalar,4,1> Vector4;
50+
typedef typename QuaternionBase::Matrix3 Matrix3;
5151

52-
typedef Eigen::AngleAxis<Scalar> AngleAxis;
52+
typedef typename QuaternionBase::AngleAxisType AngleAxis;
5353

5454
public:
5555

0 commit comments

Comments
 (0)