Verified Commit 7f4ea6ea authored by Justin Carpentier's avatar Justin Carpentier
Browse files

joints: handle older version of Eigen (bad initializer)

parent ab7e7967
......@@ -257,7 +257,9 @@ namespace pinocchio
operator* (const ForceDense<ForceDerived> & f) const
{
typedef typename ConstraintForceOp<ConstraintPrismaticUnaligned,ForceDerived>::ReturnType ReturnType;
return ReturnType(ref.axis.dot(f.linear()));
ReturnType res;
res[0] = ref.axis.dot(f.linear());
return res;
}
/* [CRBA] MatrixBase operator* (Constraint::Transpose S, ForceSet::Block) */
......
......@@ -273,7 +273,9 @@ namespace pinocchio
operator*(const ForceDense<ForceDerived> & f) const
{
typedef typename ConstraintForceOp<ConstraintRevoluteUnalignedTpl,ForceDerived>::ReturnType ReturnType;
return ReturnType(ref.axis.dot(f.angular()));
ReturnType res;
res[0] = ref.axis.dot(f.angular());
return res;
}
/* [CRBA] MatrixBase operator* (Constraint::Transpose S, ForceSet::Block) */
......
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