-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
176 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
source/isaaclab_tasks/isaaclab_tasks/manager_based/loco_manipulation/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2022-2025, The Isaac Lab Project Developers. | ||
# All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
"""Locomotion environments for legged robots.""" | ||
|
||
from .tracking import * # noqa |
4 changes: 4 additions & 0 deletions
4
source/isaaclab_tasks/isaaclab_tasks/manager_based/loco_manipulation/tracking/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright (c) 2022-2025, The Isaac Lab Project Developers. | ||
# All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause |
4 changes: 4 additions & 0 deletions
4
...isaaclab_tasks/isaaclab_tasks/manager_based/loco_manipulation/tracking/config/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright (c) 2022-2025, The Isaac Lab Project Developers. | ||
# All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause |
32 changes: 32 additions & 0 deletions
32
...ab_tasks/isaaclab_tasks/manager_based/loco_manipulation/tracking/config/digit/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright (c) 2022-2025, The Isaac Lab Project Developers. | ||
# All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
import gymnasium as gym | ||
|
||
from . import agents | ||
|
||
## | ||
# Register Gym environments. | ||
## | ||
gym.register( | ||
id="Isaac-Velocity-LocoManip-Digit-v0", | ||
entry_point="isaaclab.envs:ManagerBasedRLEnv", | ||
disable_env_checker=True, | ||
kwargs={ | ||
"env_cfg_entry_point": f"{__name__}.loco_manip_env_cfg:DigitLocoManipEnvCfg", | ||
"rsl_rl_cfg_entry_point": f"{agents.__name__}.rsl_rl_ppo_cfg:DigitLocoManipPPORunnerCfg", | ||
}, | ||
) | ||
|
||
|
||
gym.register( | ||
id="Isaac-Velocity-LocoManip-Digit-Play-v0", | ||
entry_point="isaaclab.envs:ManagerBasedRLEnv", | ||
disable_env_checker=True, | ||
kwargs={ | ||
"env_cfg_entry_point": f"{__name__}.loco_manip_env_cfg:DigitLocoManipEnvCfg_PLAY", | ||
"rsl_rl_cfg_entry_point": f"{agents.__name__}.rsl_rl_ppo_cfg:DigitLocoManipPPORunnerCfg", | ||
}, | ||
) |
4 changes: 4 additions & 0 deletions
4
...s/isaaclab_tasks/manager_based/loco_manipulation/tracking/config/digit/agents/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright (c) 2022-2025, The Isaac Lab Project Developers. | ||
# All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause |
37 changes: 37 additions & 0 deletions
37
...clab_tasks/manager_based/loco_manipulation/tracking/config/digit/agents/rsl_rl_ppo_cfg.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (c) 2022-2025, The Isaac Lab Project Developers. | ||
# All rights reserved. | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
from isaaclab_rl.rsl_rl import RslRlOnPolicyRunnerCfg, RslRlPpoActorCriticCfg, RslRlPpoAlgorithmCfg | ||
|
||
from isaaclab.utils import configclass | ||
|
||
|
||
@configclass | ||
class DigitLocoManipPPORunnerCfg(RslRlOnPolicyRunnerCfg): | ||
num_steps_per_env = 24 | ||
max_iterations = 2000 | ||
save_interval = 50 | ||
experiment_name = "digit_loco_manip" | ||
empirical_normalization = False | ||
policy = RslRlPpoActorCriticCfg( | ||
init_noise_std=1.0, | ||
actor_hidden_dims=[256, 128, 128], | ||
critic_hidden_dims=[256, 128, 128], | ||
activation="elu", | ||
) | ||
algorithm = RslRlPpoAlgorithmCfg( | ||
value_loss_coef=1.0, | ||
use_clipped_value_loss=True, | ||
clip_param=0.2, | ||
entropy_coef=0.01, | ||
num_learning_epochs=5, | ||
num_mini_batches=4, | ||
learning_rate=1.0e-3, | ||
schedule="adaptive", | ||
gamma=0.99, | ||
lam=0.95, | ||
desired_kl=0.01, | ||
max_grad_norm=1.0, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.