Commit 55407f2a authored by Justin Carpentier's avatar Justin Carpentier

algo/model: throw if the argument frameInModelA is not correct

parent 68e0818a
......@@ -193,6 +193,9 @@ namespace pinocchio
typedef details::AppendJointOfModelAlgoTpl<Scalar, Options, JointCollectionTpl> AppendJointOfModelAlgo;
typedef typename AppendJointOfModelAlgo::ArgsType ArgsType;
PINOCCHIO_CHECK_INPUT_ARGUMENT(frameInModelA < (FrameIndex) modelA.nframes,
"frameInModelA is an invalid Frame index, greater than the number of frames contained in modelA.");
typedef ModelTpl<Scalar,Options,JointCollectionTpl> Model;
typedef typename Model::SE3 SE3;
typedef typename Model::Frame Frame;
......
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