Skip to content

Commit

Permalink
Update using correct class
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhoeller19 committed Jul 31, 2024
1 parent 7929f1b commit 494f334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _configure_gym_env_spaces(self):
def _setup_scene(self):
"""Setup the scene with the cartpole and camera."""
self._cartpole = Articulation(self.cfg.robot_cfg)
self._tiled_camera = TiledCamera(self.cfg.tiled_camera)
self._tiled_camera = self.cfg.tiled_camera.class_type(self.cfg.tiled_camera)

# clone, filter, and replicate
self.scene.clone_environments(copy_from_source=False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _setup_scene(self):
# add hand, in-hand object, and goal object
self.hand = Articulation(self.cfg.robot_cfg)
self.object = RigidObject(self.cfg.object_cfg)
self._tiled_camera = TiledCamera(self.cfg.tiled_camera)
self._tiled_camera = self.cfg.tiled_camera.class_type(self.cfg.tiled_camera)
# clone and replicate (no need to filter for this environment)
self.scene.clone_environments(copy_from_source=False)
# add articultion to scene - we must register to scene to randomize with EventManager
Expand Down

0 comments on commit 494f334

Please sign in to comment.