changing name to exporter

This commit is contained in:
Abhishek Joshi
2024-02-12 08:34:24 -06:00
parent 18edadb975
commit e7a493bcca
+3 -6
View File
@@ -13,7 +13,7 @@ from typing import Optional, List, Union, Tuple
from mujoco import _structs, _constants, _enums from mujoco import _structs, _constants, _enums
from scipy.spatial.transform import Rotation as R from scipy.spatial.transform import Rotation as R
class USDRenderer: class USDExporter:
def __init__( def __init__(
self, self,
@@ -165,12 +165,9 @@ class USDRenderer:
img.save(os.path.join(self.assets_directory, texture_file_name)) img.save(os.path.join(self.assets_directory, texture_file_name))
relative_path = os.path.relpath(self.assets_directory, self.frames_directory) relative_path = os.path.relpath(self.assets_directory, self.frames_directory)
# img_path = os.path.join(relative_path, texture_file_name) # relative path, TODO: switch back to this img_path = os.path.join(relative_path, texture_file_name) # relative path, TODO: switch back to this
# absolute path for cluster, TODO: remove! self.texture_files.append(img_path)
abs_path = os.path.join(os.path.abspath(self.assets_directory), texture_file_name)
self.texture_files.append(abs_path)
data_adr += pixels data_adr += pixels