remove the contype=0 in inverted_pendulum.xml, so we can 'mouse-pick' the pendulum.

[mjcf importer] add rudimentary support for inertial frame computation, for 'fromto' capsules.
This commit is contained in:
Erwin Coumans
2017-01-24 21:10:21 -08:00
parent a9be975601
commit 76dcf3a751
3 changed files with 38 additions and 11 deletions

View File

@@ -26,11 +26,14 @@ struct UrdfMaterial
struct UrdfInertia
{
btTransform m_linkLocalFrame;
bool m_hasLinkLocalFrame;
double m_mass;
double m_ixx,m_ixy,m_ixz,m_iyy,m_iyz,m_izz;
UrdfInertia()
{
m_hasLinkLocalFrame = false;
m_linkLocalFrame.setIdentity();
m_mass = 0.f;
m_ixx=m_ixy=m_ixz=m_iyy=m_iyz=m_izz=0.f;