Skip to content

Commit 01d6d5c

Browse files
authored
Updates stack instance randomization default environments (#2251)
# Description The instance randomization stack environments have multiple cameras in the scene, which requires heavy resources on large numbers of environments. This PR reduces the default environment so that they can be run with less memory resources. ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task -->
1 parent f0c1ca6 commit 01d6d5c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/stack/config/franka/stack_ik_rel_instance_randomize_env_cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def __post_init__(self):
2727
# We switch here to a stiffer PD controller for IK tracking to be better.
2828
self.scene.robot = FRANKA_PANDA_HIGH_PD_CFG.replace(prim_path="{ENV_REGEX_NS}/Robot")
2929

30+
# Reduce the number of environments due to camera resources
31+
self.scene.num_envs = 2
32+
3033
# Set actions for the specific robot type (franka)
3134
self.actions.arm_action = DifferentialInverseKinematicsActionCfg(
3235
asset_name="robot",

source/isaaclab_tasks/isaaclab_tasks/manager_based/manipulation/stack/config/franka/stack_joint_pos_instance_randomize_env_cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ def __post_init__(self):
7575
# Set Franka as robot
7676
self.scene.robot = FRANKA_PANDA_CFG.replace(prim_path="{ENV_REGEX_NS}/Robot")
7777

78+
# Reduce the number of environments due to camera resources
79+
self.scene.num_envs = 2
80+
7881
# Set actions for the specific robot type (franka)
7982
self.actions.arm_action = mdp.JointPositionActionCfg(
8083
asset_name="robot", joint_names=["panda_joint.*"], scale=0.5, use_default_offset=True

0 commit comments

Comments
 (0)