Skip to content

Commit

Permalink
Fix Isaac Lab observation space (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni-SM authored Jun 22, 2024
1 parent cf9e6ad commit 932a56b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skrl/envs/wrappers/jax/isaaclab_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def __init__(self, env: Any) -> None:
self._reset_once = True
self._obs_dict = None

self._observation_space = self._observation_space["policy"]

def step(self, actions: Union[np.ndarray, jax.Array]) -> \
Tuple[Union[np.ndarray, jax.Array], Union[np.ndarray, jax.Array],
Union[np.ndarray, jax.Array], Union[np.ndarray, jax.Array], Any]:
Expand Down
2 changes: 2 additions & 0 deletions skrl/envs/wrappers/torch/isaaclab_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def __init__(self, env: Any) -> None:
self._reset_once = True
self._obs_dict = None

self._observation_space = self._observation_space["policy"]

def step(self, actions: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor, Any]:
"""Perform a step in the environment
Expand Down

0 comments on commit 932a56b

Please sign in to comment.