|
15 | 15 |
|
16 | 16 | from StrideSim.anymal_articulation import AnymalD_Atriculation
|
17 | 17 | from StrideSim.base_sample import BaseSample
|
| 18 | +from StrideSim.parameters import DEFAULT_WORLD_SETTINGS # , SIMULATION_ENVIRONMENTS |
18 | 19 |
|
19 |
| -from StrideSim.parameters import DEFAULT_WORLD_SETTINGS, SIMULATION_ENVIRONMENTS |
20 | 20 |
|
21 | 21 | class AnymalD(BaseSample):
|
22 | 22 | def __init__(self) -> None:
|
@@ -54,27 +54,27 @@ def setup_scene(self) -> None:
|
54 | 54 | if self._world.stage.GetPrimAtPath("/World"):
|
55 | 55 | raise Exception("A primitive already exists at the specified path")
|
56 | 56 |
|
57 |
| - # Create the stage primitive and load the usd into it |
58 |
| - prim = self._world.stage.DefinePrim("/World") |
59 |
| - success = prim.GetReferences().AddReference( |
60 |
| - SIMULATION_ENVIRONMENTS["Flat Plane"] |
| 57 | + # # Create the stage primitive and load the usd into it |
| 58 | + # prim = self._world.stage.DefinePrim("/World") |
| 59 | + # success = prim.GetReferences().AddReference( |
| 60 | + # SIMULATION_ENVIRONMENTS["Flat Plane"] |
| 61 | + # ) |
| 62 | + |
| 63 | + # if not success: |
| 64 | + # raise Exception( |
| 65 | + # "failed to load the usd asset at path " |
| 66 | + # + SIMULATION_ENVIRONMENTS["Flat Plane"] |
| 67 | + # ) |
| 68 | + |
| 69 | + self._world.scene.add_default_ground_plane( |
| 70 | + z_position=0, |
| 71 | + name="default_ground_plane", |
| 72 | + prim_path="/World/defaultGroundPlane", |
| 73 | + static_friction=1.0, |
| 74 | + dynamic_friction=1.0, |
| 75 | + restitution=0, |
61 | 76 | )
|
62 | 77 |
|
63 |
| - if not success: |
64 |
| - raise Exception( |
65 |
| - "failed to load the usd asset at path " |
66 |
| - + SIMULATION_ENVIRONMENTS["Flat Plane"] |
67 |
| - ) |
68 |
| - |
69 |
| - # self._world.scene.add_default_ground_plane( |
70 |
| - # z_position=0, |
71 |
| - # name="default_ground_plane", |
72 |
| - # prim_path="/World/defaultGroundPlane", |
73 |
| - # static_friction=1.0, |
74 |
| - # dynamic_friction=1.0, |
75 |
| - # restitution=0, |
76 |
| - # ) |
77 |
| - |
78 | 78 | self.AnymalD = AnymalD_Atriculation(
|
79 | 79 | prim_path="/World/AnymalD",
|
80 | 80 | name="AnymalD",
|
|
0 commit comments