removing usd import from __init__.py
This commit is contained in:
@@ -46,9 +46,6 @@ from mujoco._render import *
|
|||||||
from mujoco._structs import *
|
from mujoco._structs import *
|
||||||
from mujoco.gl_context import *
|
from mujoco.gl_context import *
|
||||||
from mujoco.renderer import Renderer
|
from mujoco.renderer import Renderer
|
||||||
from mujoco.usd.usd_exporter import USDExporter
|
|
||||||
from mujoco.usd.usd_component import *
|
|
||||||
from mujoco.usd.usd_utils import *
|
|
||||||
|
|
||||||
HEADERS_DIR = os.path.join(os.path.dirname(__file__), 'include/mujoco')
|
HEADERS_DIR = os.path.join(os.path.dirname(__file__), 'include/mujoco')
|
||||||
PLUGINS_DIR = os.path.join(os.path.dirname(__file__), 'plugin')
|
PLUGINS_DIR = os.path.join(os.path.dirname(__file__), 'plugin')
|
||||||
|
|||||||
@@ -22,12 +22,6 @@ class USDMesh:
|
|||||||
rgba: Tuple[int] = (1,1,1,1),
|
rgba: Tuple[int] = (1,1,1,1),
|
||||||
texture_file: Optional[str] = None
|
texture_file: Optional[str] = None
|
||||||
):
|
):
|
||||||
""" Initializes a new USD mesh
|
|
||||||
Args:
|
|
||||||
model: an MjModel instance.
|
|
||||||
dataid: id of the mesh
|
|
||||||
texture_file: texture associated with the mesh
|
|
||||||
"""
|
|
||||||
self.stage = stage
|
self.stage = stage
|
||||||
self.model = model
|
self.model = model
|
||||||
self.geom = geom
|
self.geom = geom
|
||||||
@@ -34,7 +34,7 @@ class USDExporter:
|
|||||||
specialized_materials_file: str = None,
|
specialized_materials_file: str = None,
|
||||||
verbose: bool = True,
|
verbose: bool = True,
|
||||||
):
|
):
|
||||||
""" Initializes a new USD Renderer
|
"""Initializes a new USD Renderer
|
||||||
Args:
|
Args:
|
||||||
model: an MjModel instance.
|
model: an MjModel instance.
|
||||||
height: image height in pixels.
|
height: image height in pixels.
|
||||||
@@ -98,10 +98,6 @@ class USDExporter:
|
|||||||
# loading required textures for the scene
|
# loading required textures for the scene
|
||||||
self._load_textures()
|
self._load_textures()
|
||||||
|
|
||||||
self.extra_added_water = False
|
|
||||||
self.extra_added_stove = False
|
|
||||||
self.extra_added_coffee = False
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def usd(self):
|
def usd(self):
|
||||||
return self.stage.GetRootLayer().ExportToString()
|
return self.stage.GetRootLayer().ExportToString()
|
||||||
@@ -141,7 +137,7 @@ class USDExporter:
|
|||||||
data: _structs.MjData,
|
data: _structs.MjData,
|
||||||
scene_option: Optional[_structs.MjvOption] = None,
|
scene_option: Optional[_structs.MjvOption] = None,
|
||||||
):
|
):
|
||||||
""" Updates the scene with latest sim data
|
"""Updates the scene with latest sim data
|
||||||
Args:
|
Args:
|
||||||
data: structure storing current simulation state
|
data: structure storing current simulation state
|
||||||
scene_option: we use this to determine which geom groups to activate
|
scene_option: we use this to determine which geom groups to activate
|
||||||
Reference in New Issue
Block a user