updating demo script

This commit is contained in:
Abhishek Joshi
2024-04-02 15:11:37 -04:00
parent df88171ae1
commit 67a9f91c00
2 changed files with 1 additions and 10 deletions
-9
View File
@@ -245,11 +245,6 @@ class USDPrimitiveMesh:
self.rgba = rgba
self.texture_file = texture_file
# self.usd_prim = Usd.Prim()
# self.usd_mesh = Usd.Mesh()
# self.prim_mesh = Usd.PrimMesh()
# self.transform_op = Usd.TransformOp()
self.prim_mesh = None
def _set_refinement_properties(self):
@@ -395,10 +390,6 @@ class USDPrimitive:
self.rgba = rgba
self.texture_file = texture_file
# self.usd_prim = Usd.Prim()
# self.usd_primitive_shape = Usd.PrimitiveShape()
# self.transform_op = Usd.TransformOp()
def _set_refinement_properties(self):
self.usd_prim.GetAttribute("subdivisionScheme").Set("none")
+1 -1
View File
@@ -4,7 +4,7 @@ from mujoco.usd import exporter
if __name__ == "__main__":
# load a model to mujoco
m = mujoco.MjModel.from_xml_path("/Users/abhishek/Documents/research/mujoco/model/cards/cards.xml")
m = mujoco.MjModel.from_xml_path("/Users/abhishek/Documents/research/mujoco/model/humanoid/humanoid.xml")
d = mujoco.MjData(m)
# create an instance of the USDExporter