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

This commit is contained in:
yunfeibai committed 2016-04-19 16:52:47 -07:00
1 parent c384383250
commit cbeddfc897
19 files changed
+321 -14

No files matched your search

@@ -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;