Commit f7967e37 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

FIx computation of maximal distance to parent joint

  - when calling addChildJoint, compute maximal distance of the child joint and
    not of the parent.
parent ec1d99d5
......@@ -98,7 +98,7 @@ namespace hpp {
fcl::Transform3f Mj = joint->currentTransformation_;
if (computePositionInParent) {
joint->positionInParentFrame_ = Mp.inverse () * Mj;
computeMaximalDistanceToParent ();
joint->computeMaximalDistanceToParent ();
// If child joint has been created by Joint::clone, bodies and list of
// inner and outer objects have been copied without updating the number of
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