Verified Commit 106faa74 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

spatial: fix missing copy constructors

parent 9df73032
......@@ -59,6 +59,7 @@ namespace pinocchio
using Base::operator==;
using Base::operator!=;
/// \brief Default constructor from a 6 dimensional vector.
ForceRef(typename PINOCCHIO_EIGEN_REF_TYPE(Vector6ArgType) f_like)
: m_ref(f_like)
{
......@@ -67,6 +68,11 @@ namespace pinocchio
assert(f_like.size() == 6);
}
/// \brief Copy constructor from another ForceRef.
ForceRef(const ForceRef & other)
: m_ref(other.m_ref)
{}
ToVectorConstReturnType toVector_impl() const { return m_ref; }
ToVectorReturnType toVector_impl() { return m_ref; }
......
......@@ -82,6 +82,7 @@ namespace pinocchio
using Base::__mequ__;
using Base::__mult__;
/// \brief Default constructor from a 6 dimensional vector.
MotionRef(typename PINOCCHIO_EIGEN_REF_TYPE(Vector6ArgType) v_like)
: m_ref(v_like)
{
......@@ -90,6 +91,11 @@ namespace pinocchio
assert(v_like.size() == 6);
}
/// \brief Copy constructor from another MotionRef.
MotionRef(const MotionRef & other)
: m_ref(other.m_ref)
{}
ToVectorConstReturnType toVector_impl() const { return m_ref; }
ToVectorReturnType toVector_impl() { return m_ref; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment