diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 5e06bcc2dfe..ff543b00958 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -49,6 +49,7 @@ Guidelines for modifications: * CY (Chien-Ying) Chen * David Yang * Dorsa Rohani +* Felipe Mohr * Felix Yu * Gary Lvov * Giulio Romualdi diff --git a/source/isaaclab_rl/config/extension.toml b/source/isaaclab_rl/config/extension.toml index 0f95136bc98..79e0efc943c 100644 --- a/source/isaaclab_rl/config/extension.toml +++ b/source/isaaclab_rl/config/extension.toml @@ -1,7 +1,7 @@ [package] # Note: Semantic Versioning is used: https://semver.org/ -version = "0.1.2" +version = "0.1.3" # Description title = "Isaac Lab RL" diff --git a/source/isaaclab_rl/docs/CHANGELOG.rst b/source/isaaclab_rl/docs/CHANGELOG.rst index a2fe563a9bb..282c59364b1 100644 --- a/source/isaaclab_rl/docs/CHANGELOG.rst +++ b/source/isaaclab_rl/docs/CHANGELOG.rst @@ -1,6 +1,17 @@ Changelog --------- +0.1.3 (2025-03-31) +~~~~~~~~~~~~~~~~~~ + +Fixed +^^^^^ + +* Fixed the location of :meth:`isaaclab_rl.rsl_rl.RslRlOnPolicyRunnerCfg._modify_action_space` + to be called only after retrieving the dimensions of the environment, preventing errors + related to accessing uninitialized attributes. + + 0.1.2 (2025-03-28) ~~~~~~~~~~~~~~~~~~ diff --git a/source/isaaclab_rl/isaaclab_rl/rsl_rl/vecenv_wrapper.py b/source/isaaclab_rl/isaaclab_rl/rsl_rl/vecenv_wrapper.py index 5f351a9f0de..24ad664eed0 100644 --- a/source/isaaclab_rl/isaaclab_rl/rsl_rl/vecenv_wrapper.py +++ b/source/isaaclab_rl/isaaclab_rl/rsl_rl/vecenv_wrapper.py @@ -58,9 +58,6 @@ def __init__(self, env: ManagerBasedRLEnv | DirectRLEnv, clip_actions: float | N self.device = self.unwrapped.device self.max_episode_length = self.unwrapped.max_episode_length - # modify the action space to the clip range - self._modify_action_space() - # obtain dimensions of the environment if hasattr(self.unwrapped, "action_manager"): self.num_actions = self.unwrapped.action_manager.total_action_dim @@ -81,6 +78,9 @@ def __init__(self, env: ManagerBasedRLEnv | DirectRLEnv, clip_actions: float | N else: self.num_privileged_obs = 0 + # modify the action space to the clip range + self._modify_action_space() + # reset at the start since the RSL-RL runner does not call reset self.env.reset()