Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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__``.
1 change: 1 addition & 0 deletions source/isaaclab/isaaclab/envs/leapp_deployment_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Consider type annotation: For consistency with other env classes, you could add the type annotation inline:

Suggested change
self.extras: dict = {}
self.extras: dict[str, Any] = {}

Minor nit — the current form is fine.


# ── Simulation + scene ────────────────────────────────────
self.sim = SimulationContext(cfg.sim)
Expand Down
Loading