15 int start = withBase ? 0 : 1;
16 for(
int j = start; j < int(mb.nrJoints()); ++j)
18 if(line >= start && line <= (start + mb.joint(j).dof())) {
return j; }
19 start += mb.joint(j).dof();
24 inline bool compareDof(
const rbd::MultiBody & mb1,
const rbd::MultiBody & mb2)
26 return mb1.nrDof() < mb2.nrDof();
bool compareDof(const rbd::MultiBody &mb1, const rbd::MultiBody &mb2)
Definition: utils.h:24
int findJointFromVector(const rbd::MultiBody &mb, int line, bool withBase)
Definition: utils.h:13
Definition: GenQPUtils.h:19