Merge pull request #1084 from erwincoumans/master
fix some potentially uninitialized variable
This commit is contained in:
@@ -1741,6 +1741,11 @@ class btCompoundShape* BulletMJCFImporter::convertLinkCollisionShapes(int linkIn
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case URDF_GEOM_UNKNOWN:
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
} // switch geom
|
} // switch geom
|
||||||
|
|
||||||
if (childShape)
|
if (childShape)
|
||||||
|
|||||||
@@ -50,9 +50,9 @@ enum UrdfGeomTypes
|
|||||||
URDF_GEOM_BOX,
|
URDF_GEOM_BOX,
|
||||||
URDF_GEOM_CYLINDER,
|
URDF_GEOM_CYLINDER,
|
||||||
URDF_GEOM_MESH,
|
URDF_GEOM_MESH,
|
||||||
URDF_GEOM_PLANE,
|
URDF_GEOM_PLANE,
|
||||||
URDF_GEOM_CAPSULE//non-standard URDF?
|
URDF_GEOM_CAPSULE, //non-standard URDF?
|
||||||
|
URDF_GEOM_UNKNOWN,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -83,6 +83,14 @@ struct UrdfGeometry
|
|||||||
|
|
||||||
UrdfMaterial m_localMaterial;
|
UrdfMaterial m_localMaterial;
|
||||||
bool m_hasLocalMaterial;
|
bool m_hasLocalMaterial;
|
||||||
|
|
||||||
|
UrdfGeometry()
|
||||||
|
:m_type(URDF_GEOM_UNKNOWN),
|
||||||
|
m_hasFromTo(false),
|
||||||
|
m_hasLocalMaterial(false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bool findExistingMeshFile(const std::string& urdf_path, std::string fn,
|
bool findExistingMeshFile(const std::string& urdf_path, std::string fn,
|
||||||
|
|||||||
Reference in New Issue
Block a user