bug fix for no camera; changed objid argument to obj_name

This commit is contained in:
Abhishek Joshi
2024-03-14 09:02:34 -05:00
parent 069708a599
commit 7013c288bd
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.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,