Verified Commit 7c94ca98 authored by jcarpent's avatar jcarpent Committed by Justin Carpentier
Browse files

[Joint] Add constructor for JointDataTpl from JointDataBase

parent 8fb72075
......@@ -94,6 +94,13 @@ namespace se3
JointDataTpl(const JointDataVariant & jdata_variant)
: JointDataVariant(jdata_variant)
{}
template<typename JointDataDerived>
JointDataTpl(const JointDataBase<JointDataDerived> & jdata)
: JointCollection::JointDataVariant((JointDataVariant)jdata.derived())
{
BOOST_MPL_ASSERT((boost::mpl::contains<typename JointDataVariant::types,JointDataDerived>));
}
};
......
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