mani-skill-nightly 2025.8.1.229__py3-none-any.whl → 2025.8.1.537__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mani-skill-nightly might be problematic. Click here for more details.
- mani_skill/agents/base_agent.py +1 -1
- mani_skill/envs/utils/system/backend.py +19 -2
- {mani_skill_nightly-2025.8.1.229.dist-info → mani_skill_nightly-2025.8.1.537.dist-info}/METADATA +1 -1
- {mani_skill_nightly-2025.8.1.229.dist-info → mani_skill_nightly-2025.8.1.537.dist-info}/RECORD +7 -7
- {mani_skill_nightly-2025.8.1.229.dist-info → mani_skill_nightly-2025.8.1.537.dist-info}/LICENSE +0 -0
- {mani_skill_nightly-2025.8.1.229.dist-info → mani_skill_nightly-2025.8.1.537.dist-info}/WHEEL +0 -0
- {mani_skill_nightly-2025.8.1.229.dist-info → mani_skill_nightly-2025.8.1.537.dist-info}/top_level.txt +0 -0
mani_skill/agents/base_agent.py
CHANGED
|
@@ -358,7 +358,7 @@ class BaseAgent:
|
|
|
358
358
|
|
|
359
359
|
# robot state
|
|
360
360
|
root_link = self.robot.get_links()[0]
|
|
361
|
-
state["robot_root_pose"] = root_link.
|
|
361
|
+
state["robot_root_pose"] = root_link.pose
|
|
362
362
|
state["robot_root_vel"] = root_link.get_linear_velocity()
|
|
363
363
|
state["robot_root_qvel"] = root_link.get_angular_velocity()
|
|
364
364
|
state["robot_qpos"] = self.robot.get_qpos()
|
|
@@ -43,7 +43,16 @@ render_backend_name_mapping = {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
|
|
46
|
+
def parse_backend_device_id(backend: str) -> tuple[str, int]:
|
|
47
|
+
if ":" in backend:
|
|
48
|
+
return backend.split(":")
|
|
49
|
+
return backend, None
|
|
50
|
+
|
|
51
|
+
|
|
46
52
|
def parse_sim_and_render_backend(sim_backend: str, render_backend: str) -> BackendInfo:
|
|
53
|
+
# Parse sim_backend string to check for CUDA device specification
|
|
54
|
+
sim_backend, sim_device_id = parse_backend_device_id(sim_backend)
|
|
55
|
+
render_backend, render_device_id = parse_backend_device_id(render_backend)
|
|
47
56
|
sim_backend = sim_backend_name_mapping[sim_backend]
|
|
48
57
|
render_backend = render_backend_name_mapping.get(render_backend, render_backend)
|
|
49
58
|
if sim_backend == "physx_cpu":
|
|
@@ -51,7 +60,11 @@ def parse_sim_and_render_backend(sim_backend: str, render_backend: str) -> Backe
|
|
|
51
60
|
sim_device = sapien.Device("cpu")
|
|
52
61
|
elif sim_backend == "physx_cuda":
|
|
53
62
|
device = torch.device("cuda")
|
|
54
|
-
sim_device =
|
|
63
|
+
sim_device = (
|
|
64
|
+
sapien.Device(f"cuda:{sim_device_id}")
|
|
65
|
+
if sim_device_id is not None
|
|
66
|
+
else sapien.Device("cuda")
|
|
67
|
+
)
|
|
55
68
|
elif sim_backend[:4] == "cuda":
|
|
56
69
|
device = torch.device(sim_backend)
|
|
57
70
|
sim_device = sapien.Device(sim_backend)
|
|
@@ -66,7 +79,11 @@ def parse_sim_and_render_backend(sim_backend: str, render_backend: str) -> Backe
|
|
|
66
79
|
"Detected MacOS system, forcing render backend to be sapien_cpu and render device to be MacOS compatible."
|
|
67
80
|
)
|
|
68
81
|
elif render_backend == "sapien_cuda":
|
|
69
|
-
render_device =
|
|
82
|
+
render_device = (
|
|
83
|
+
sapien.Device(f"cuda:{render_device_id}")
|
|
84
|
+
if render_device_id is not None
|
|
85
|
+
else sapien.Device("cuda")
|
|
86
|
+
)
|
|
70
87
|
elif render_backend == "sapien_cpu":
|
|
71
88
|
render_device = sapien.Device("cpu")
|
|
72
89
|
elif render_backend[:4] == "cuda":
|
{mani_skill_nightly-2025.8.1.229.dist-info → mani_skill_nightly-2025.8.1.537.dist-info}/RECORD
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
mani_skill/__init__.py,sha256=_wZjMWSlWZYeAAEjiHAHa5W6uq7Eh4fbny8HwlYSJhQ,2101
|
|
2
2
|
mani_skill/agents/__init__.py,sha256=87Xa-eaPbbVm6LmD1111yXSBuRkcoTG0g_5RdkaFiGI,130
|
|
3
|
-
mani_skill/agents/base_agent.py,sha256=
|
|
3
|
+
mani_skill/agents/base_agent.py,sha256=ZcWWkW5E3KbGZ-kV__XeVkRutsjAk_TMlK4ikVkL378,18394
|
|
4
4
|
mani_skill/agents/base_real_agent.py,sha256=DD9SXZa7er5zF7wdm97IO_0W4xbdw-66iLC8j86ykYw,8549
|
|
5
5
|
mani_skill/agents/multi_agent.py,sha256=AFygr2797M5Hhk4qMoLuFmFk7msqnp82bFuSyP1j8JA,3341
|
|
6
6
|
mani_skill/agents/registration.py,sha256=rtu9vAys_Qz76d9LsDFpqanZxaFiLSPZajA3uHF9HHQ,1331
|
|
@@ -638,7 +638,7 @@ mani_skill/envs/utils/randomization/samplers.py,sha256=EOkF18mmDC7fA2hgj8QC2Ag0g
|
|
|
638
638
|
mani_skill/envs/utils/rewards/__init__.py,sha256=66MV5YCbnpF4ac_SvTVJ000RxM1AIsclX7OatiA-Wak,22
|
|
639
639
|
mani_skill/envs/utils/rewards/common.py,sha256=1lfJNWG3x7UjarHLteLXa8DCzbe_L7nYBMOBo5D9CRQ,3647
|
|
640
640
|
mani_skill/envs/utils/system/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
641
|
-
mani_skill/envs/utils/system/backend.py,sha256=
|
|
641
|
+
mani_skill/envs/utils/system/backend.py,sha256=Y4QoJpHseUdOjyXbT-lWfYUOC7iTeXBfLOc2zj9b5Pw,3938
|
|
642
642
|
mani_skill/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
643
643
|
mani_skill/examples/demo_manual_control.py,sha256=Z17ER37oehS8VgtDO_4dwiy5jDgL93nT9IdCsNDf0Es,8275
|
|
644
644
|
mani_skill/examples/demo_manual_control_continuous.py,sha256=tnCnKX2v1iIhtXwvWR2NzXgpf3e0y2-qAO91jJBLIO0,9679
|
|
@@ -826,8 +826,8 @@ mani_skill/vector/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
826
826
|
mani_skill/vector/wrappers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
827
827
|
mani_skill/vector/wrappers/gymnasium.py,sha256=voHNmYg5Jyy-laMSC2Fd8VggQvhXw3NnfYLbD9QDXAc,7305
|
|
828
828
|
mani_skill/vector/wrappers/sb3.py,sha256=SlXdiEPqcNHYMhJCzA29kBU6zK7DKTe1nc0L6Z3QQtY,4722
|
|
829
|
-
mani_skill_nightly-2025.8.1.
|
|
830
|
-
mani_skill_nightly-2025.8.1.
|
|
831
|
-
mani_skill_nightly-2025.8.1.
|
|
832
|
-
mani_skill_nightly-2025.8.1.
|
|
833
|
-
mani_skill_nightly-2025.8.1.
|
|
829
|
+
mani_skill_nightly-2025.8.1.537.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
830
|
+
mani_skill_nightly-2025.8.1.537.dist-info/METADATA,sha256=nOhNWNSQfGfN7ttTRYb8HaS0cQdqovTSu3XfZXjICIA,9314
|
|
831
|
+
mani_skill_nightly-2025.8.1.537.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
832
|
+
mani_skill_nightly-2025.8.1.537.dist-info/top_level.txt,sha256=bkBgOVl_MZMoQx2aRFsSFEYlZLxjWlip5vtJ39FB3jA,11
|
|
833
|
+
mani_skill_nightly-2025.8.1.537.dist-info/RECORD,,
|
{mani_skill_nightly-2025.8.1.229.dist-info → mani_skill_nightly-2025.8.1.537.dist-info}/LICENSE
RENAMED
|
File without changes
|
{mani_skill_nightly-2025.8.1.229.dist-info → mani_skill_nightly-2025.8.1.537.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|