Verified Commit 93a5e64f authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: remove bugs with setIndexes

parent 7a91755b
...@@ -183,9 +183,6 @@ namespace pinocchio ...@@ -183,9 +183,6 @@ namespace pinocchio
JointModelTpl(const JointModelVariant & jmodel_variant) JointModelTpl(const JointModelVariant & jmodel_variant)
: JointCollection::JointModelVariant(jmodel_variant) : JointCollection::JointModelVariant(jmodel_variant)
{ {
setIndexes(::pinocchio::id(jmodel_variant),
::pinocchio::nq(jmodel_variant),
::pinocchio::nv(jmodel_variant));
} }
template<typename JointModelDerived> template<typename JointModelDerived>
...@@ -193,8 +190,6 @@ namespace pinocchio ...@@ -193,8 +190,6 @@ namespace pinocchio
: JointModelVariant((JointModelVariant)jmodel.derived()) : JointModelVariant((JointModelVariant)jmodel.derived())
{ {
BOOST_MPL_ASSERT((boost::mpl::contains<typename JointModelVariant::types,JointModelDerived>)); BOOST_MPL_ASSERT((boost::mpl::contains<typename JointModelVariant::types,JointModelDerived>));
setIndexes(jmodel.id(),jmodel.nq(),jmodel.nv());
} }
JointModelVariant & toVariant() JointModelVariant & toVariant()
......
Markdown is supported
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