Merge branch 'camera-bug-fixes' into demo_script

This commit is contained in:
Abhishek Joshi
2024-03-18 15:50:57 -05:00
2 changed files with 47 additions and 48 deletions
+3 -4
View File
@@ -352,12 +352,11 @@ class USDExporter:
frame=self.updates,
)
print("done updating")
def _load_cameras(self):
self.usd_cameras = []
for name in self.camera_names:
self.usd_cameras.append(mujoco.usd.component.USDCamera(stage=self.stage, objid=name))
if self.camera_names is not None:
for name in self.camera_names:
self.usd_cameras.append(mujoco.usd.USDCamera(stage=self.stage, objid=name))
def _update_cameras(
self,