Modify shared memory client example to test joint motor torque measurement.

This commit is contained in:
yunfeibai
2016-04-19 16:52:47 -07:00
parent c384383250
commit cbeddfc897
19 changed files with 321 additions and 14 deletions

View File

@@ -219,11 +219,10 @@ void ConvertURDF2BulletInternal(const URDFImporterInterface& u2b, MultiBodyCreat
color.setValue(visual->material->color.r,visual->material->color.g,visual->material->color.b);//,visual->material->color.a);
}
*/
//btVector3 localInertiaDiagonal(0, 0, 0);
//if (mass)
//{
// shape->calculateLocalInertia(mass, localInertiaDiagonal);
//}
if (mass)
{
compoundShape->calculateLocalInertia(mass, localInertiaDiagonal);
}
btRigidBody* linkRigidBody = 0;
btTransform inertialFrameInWorldSpace = linkTransformInWorldSpace*localInertialFrame;