Skip to content

Commit

Permalink
Fix auto wrapping for Isaac Gym preview 4 in torch
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni-SM committed Aug 5, 2024
1 parent a6e93d0 commit d2edbcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skrl/envs/wrappers/torch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def _in(values, container):
return "isaaclab"
elif _in("omni.isaac.gym.vec_env.vec_env_base.VecEnvBase", base_classes) or _in("omni.isaac.gym.vec_env.vec_env_mt.VecEnvMT", base_classes):
return "omniverse-isaacgym"
elif _in("rlgpu.tasks.base.vec_task.VecTask", base_classes):
elif _in("tasks..*.VecTask", base_classes):
return "isaacgym-preview4" # preview 4 is the same as 3
elif _in("rlgpu.tasks..*.VecTask", base_classes):
return "isaacgym-preview2"
elif _in("robosuite.environments.", base_classes):
return "robosuite"
Expand Down

0 comments on commit d2edbcf

Please sign in to comment.