Unverified Commit 01d6d5c0 authored by Kelly Guo's avatar Kelly Guo Committed by GitHub

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
-->
parent f0c1ca6e
...@@ -27,6 +27,9 @@ class FrankaCubeStackInstanceRandomizeEnvCfg( ...@@ -27,6 +27,9 @@ class FrankaCubeStackInstanceRandomizeEnvCfg(
# We switch here to a stiffer PD controller for IK tracking to be better. # We switch here to a stiffer PD controller for IK tracking to be better.
self.scene.robot = FRANKA_PANDA_HIGH_PD_CFG.replace(prim_path="{ENV_REGEX_NS}/Robot") self.scene.robot = FRANKA_PANDA_HIGH_PD_CFG.replace(prim_path="{ENV_REGEX_NS}/Robot")
# Reduce the number of environments due to camera resources
self.scene.num_envs = 2
# Set actions for the specific robot type (franka) # Set actions for the specific robot type (franka)
self.actions.arm_action = DifferentialInverseKinematicsActionCfg( self.actions.arm_action = DifferentialInverseKinematicsActionCfg(
asset_name="robot", asset_name="robot",
......
...@@ -75,6 +75,9 @@ class FrankaCubeStackInstanceRandomizeEnvCfg(StackInstanceRandomizeEnvCfg): ...@@ -75,6 +75,9 @@ class FrankaCubeStackInstanceRandomizeEnvCfg(StackInstanceRandomizeEnvCfg):
# Set Franka as robot # Set Franka as robot
self.scene.robot = FRANKA_PANDA_CFG.replace(prim_path="{ENV_REGEX_NS}/Robot") self.scene.robot = FRANKA_PANDA_CFG.replace(prim_path="{ENV_REGEX_NS}/Robot")
# Reduce the number of environments due to camera resources
self.scene.num_envs = 2
# Set actions for the specific robot type (franka) # Set actions for the specific robot type (franka)
self.actions.arm_action = mdp.JointPositionActionCfg( self.actions.arm_action = mdp.JointPositionActionCfg(
asset_name="robot", joint_names=["panda_joint.*"], scale=0.5, use_default_offset=True asset_name="robot", joint_names=["panda_joint.*"], scale=0.5, use_default_offset=True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment