Commit acd49eaa authored by Mayank Mittal's avatar Mayank Mittal

removes replicate_physics flag in IsaacEnv as it doesn't work with dr

parent 3f6197dc
[package] [package]
# Note: Semantic Versioning is used: https://semver.org/ # Note: Semantic Versioning is used: https://semver.org/
version = "0.1.0" version = "0.1.1"
# Description # Description
title = "ORBIT Environments" title = "ORBIT Environments"
......
Changelog Changelog
--------- ---------
0.1.1 (2023-01-18)
~~~~~~~~~~~~~~~~~~
Fixed
^^^^^
* Fixed a bug in ``Isaac-Velocity-Anymal-C-v0`` where the domain randomization is
not applicable if cloning the environments with ``replicate_physics=True``.
0.1.0 (2023-01-17) 0.1.0 (2023-01-17)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
......
...@@ -146,9 +146,7 @@ class IsaacEnv(gym.Env): ...@@ -146,9 +146,7 @@ class IsaacEnv(gym.Env):
global_prim_paths = list() global_prim_paths = list()
# clone the scenes into the namespace "/World/envs" based on template namespace # clone the scenes into the namespace "/World/envs" based on template namespace
self.envs_prim_paths = cloner.generate_paths(self.env_ns + "/env", self.num_envs) self.envs_prim_paths = cloner.generate_paths(self.env_ns + "/env", self.num_envs)
self.envs_positions = cloner.clone( self.envs_positions = cloner.clone(source_prim_path=self.template_env_ns, prim_paths=self.envs_prim_paths)
source_prim_path=self.template_env_ns, prim_paths=self.envs_prim_paths, replicate_physics=True
)
# convert environment positions to torch tensor # convert environment positions to torch tensor
self.envs_positions = torch.tensor(self.envs_positions, dtype=torch.float, device=self.device) self.envs_positions = torch.tensor(self.envs_positions, dtype=torch.float, device=self.device)
# filter collisions within each environment instance # filter collisions within each environment instance
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment