Skip to content
Snippets Groups Projects
Commit 7e861410 authored by jcarpent's avatar jcarpent
Browse files

[Spatial] Use correct input type for {Motion,Force}Ref types

parent 0032f3fb
Branches
Tags
No related merge requests found
......@@ -72,8 +72,8 @@ namespace se3
using Base::operator=;
ForceRef(Vector6ArgType & f_like)
: ref(f_like)
ForceRef(const Eigen::MatrixBase<Vector6ArgType> & f_like)
: ref(const_cast<Vector6ArgType &>(f_like.derived()))
{
EIGEN_STATIC_ASSERT(Vector6ArgType::ColsAtCompileTime == 1,
YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX);
......
......@@ -67,8 +67,8 @@ namespace se3
using Base::operator=;
MotionRef(Vector6ArgType & v_like)
: ref(v_like)
MotionRef(const Eigen::MatrixBase<Vector6ArgType> & v_like)
: ref(const_cast<Vector6ArgType &>(v_like.derived()))
{
EIGEN_STATIC_ASSERT(Vector6ArgType::ColsAtCompileTime == 1,
YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment