Skip to content

Commit

Permalink
supports slide joints in calcCMJacobian()
Browse files Browse the repository at this point in the history
  • Loading branch information
fkanehiro committed Apr 3, 2016
1 parent b9b1b85 commit 7b674f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hrplib/hrpModel/Body.cpp
Expand Up @@ -900,6 +900,12 @@ void Body::calcCMJacobian(Link *base, dmatrix &J)
J.col(j->jointId) = dp;
break;
}
case Link::SLIDE_JOINT:
{
Vector3 dp((j->subm/totalMass_)*sgn[j->jointId]*j->R*j->d);
J.col(j->jointId) = dp;
break;
}
default:
std::cerr << "calcCMJacobian() : unsupported jointType("
<< j->jointType << ")" << std::endl;
Expand Down

0 comments on commit 7b674f8

Please sign in to comment.