Skip to content

Commit 7180920

Browse files
committed
Fix: move video resolution
1 parent a5e6b8b commit 7180920

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

source/isaaclab_tasks/isaaclab_tasks/core/lift/config/franka_soft/franka_cloth_env_cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class FrankaClothRewardsCfg(FrankaSoftRewardsCfg):
192192

193193
lifting_deformable = RewTerm(
194194
func=mdp.deformable_lifting,
195-
params={"std": 0.1, "minimal_height": 0.1, "asset_cfg": SceneEntityCfg("deformable")},
195+
params={"std": 0.1, "minimal_height": 0.08, "asset_cfg": SceneEntityCfg("deformable")},
196196
weight=5.0,
197197
)
198198

source/isaaclab_tasks/isaaclab_tasks/core/lift/config/franka_soft/franka_soft_env_cfg.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,12 @@ class FrankaSoftCameraSceneCfg(PresetCfg):
620620
default = newton_mjwarp_vbd_proxy
621621

622622

623+
@configclass
624+
class _FrankaSoftVisualizerCfg(VisualizerCfg):
625+
window_width: int = 1920
626+
window_height: int = 1080
627+
628+
623629
@configclass
624630
class FrankaSoftEnvCfg(ManagerBasedRLEnvCfg):
625631
"""Manager-based RL environment: Franka Panda lifting a soft beam to a target pose."""
@@ -648,10 +654,10 @@ def __post_init__(self) -> None:
648654

649655
self.viewer.eye = (0.75, 0.25, 0.65)
650656
self.viewer.lookat = (0.0, 0.75, 0.4)
651-
self.sim.default_visualizer_cfg = VisualizerCfg(eye=self.viewer.eye, lookat=self.viewer.lookat)
652-
653-
self.video_recorder.window_width = 1920
654-
self.video_recorder.window_height = 1080
657+
self.sim.default_visualizer_cfg = _FrankaSoftVisualizerCfg(
658+
eye=self.viewer.eye,
659+
lookat=self.viewer.lookat,
660+
)
655661

656662
def play_mode(self):
657663
super().play_mode()

0 commit comments

Comments
 (0)