diff --git a/source/isaaclab/changelog.d/klakhi-fix-leapp-deployment-env-extras.rst b/source/isaaclab/changelog.d/klakhi-fix-leapp-deployment-env-extras.rst new file mode 100644 index 000000000000..1253f5ab83d9 --- /dev/null +++ b/source/isaaclab/changelog.d/klakhi-fix-leapp-deployment-env-extras.rst @@ -0,0 +1,6 @@ +Fixed +^^^^^ + +* Fixed :class:`~envs.LeappDeploymentEnv` crashing on ``reset()`` with + ``AttributeError: 'LeappDeploymentEnv' object has no attribute 'extras'`` + by initializing ``self.extras`` in ``__init__``. diff --git a/source/isaaclab/isaaclab/envs/leapp_deployment_env.py b/source/isaaclab/isaaclab/envs/leapp_deployment_env.py index fe81e8f82e5f..16f76c5ab3a7 100644 --- a/source/isaaclab/isaaclab/envs/leapp_deployment_env.py +++ b/source/isaaclab/isaaclab/envs/leapp_deployment_env.py @@ -175,6 +175,7 @@ def __init__(self, cfg: Any, leapp_yaml_path: str): self._leapp_yaml_path = leapp_yaml_path self._step_count = 0 self._sim_step_counter = 0 + self.extras: dict = {} # ── Simulation + scene ──────────────────────────────────── self.sim = SimulationContext(cfg.sim)