Skip to content

Commit 63acf6a

Browse files
committed
Fix for tiled camera type
1 parent d850e8d commit 63acf6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/extensions/humanoid.tasks/humanoid/tasks/push_box/push_box_env.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ def _setup_scene(self):
284284
elif camera_type == "CAMERA":
285285
self.camera = Camera(self.cfg.camera)
286286
elif camera_type == "TILED_THIRD_PERSON_CAMERA":
287-
self.camera = Camera(self.cfg.tiled_third_person_camera)
287+
self.camera = TiledCamera(self.cfg.tiled_third_person_camera)
288288
elif camera_type == "TILED_CAMERA":
289-
self.camera = Camera(self.cfg.tiled_camera)
289+
self.camera = TiledCamera(self.cfg.tiled_camera)
290290

291291
self.cabinet = Articulation(self.cfg.cabinet)
292292
self.tomato_soup_can = RigidObject(self.cfg.tomato_soup_can)
@@ -306,7 +306,7 @@ def _setup_scene(self):
306306

307307
# after Hydra config support is available, we can set reolutions and camera type from the command line
308308
if not self.state_only:
309-
self.scene.sensors["camera"] = self.camera
309+
self.scene.sensors["tiled_camera"] = self.cfg.tiled_camera.class_type(self.cfg.tiled_camera)
310310

311311
# add table
312312
self.cfg.table.spawn.func(

0 commit comments

Comments
 (0)