mani-skill-nightly 2025.5.13.5__py3-none-any.whl → 2025.5.13.26__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.
- mani_skill/envs/sapien_env.py +12 -3
- mani_skill/envs/scene.py +4 -0
- {mani_skill_nightly-2025.5.13.5.dist-info → mani_skill_nightly-2025.5.13.26.dist-info}/METADATA +1 -1
- {mani_skill_nightly-2025.5.13.5.dist-info → mani_skill_nightly-2025.5.13.26.dist-info}/RECORD +7 -7
- {mani_skill_nightly-2025.5.13.5.dist-info → mani_skill_nightly-2025.5.13.26.dist-info}/LICENSE +0 -0
- {mani_skill_nightly-2025.5.13.5.dist-info → mani_skill_nightly-2025.5.13.26.dist-info}/WHEEL +0 -0
- {mani_skill_nightly-2025.5.13.5.dist-info → mani_skill_nightly-2025.5.13.26.dist-info}/top_level.txt +0 -0
mani_skill/envs/sapien_env.py
CHANGED
@@ -24,7 +24,10 @@ from mani_skill.envs.utils.observations import (
|
|
24
24
|
sensor_data_to_pointcloud,
|
25
25
|
)
|
26
26
|
from mani_skill.envs.utils.randomization.batched_rng import BatchedRNG
|
27
|
-
from mani_skill.envs.utils.system.backend import
|
27
|
+
from mani_skill.envs.utils.system.backend import (
|
28
|
+
CPU_SIM_BACKENDS,
|
29
|
+
parse_sim_and_render_backend,
|
30
|
+
)
|
28
31
|
from mani_skill.sensors.base_sensor import BaseSensor, BaseSensorConfig
|
29
32
|
from mani_skill.sensors.camera import (
|
30
33
|
Camera,
|
@@ -1069,10 +1072,16 @@ class BaseEnv(gym.Env):
|
|
1069
1072
|
action = common.batch(action)
|
1070
1073
|
self.agent.set_action(action)
|
1071
1074
|
if self._sim_device.is_cuda():
|
1072
|
-
if self.agent.controller
|
1075
|
+
if isinstance(self.agent.controller, dict):
|
1076
|
+
# TODO: a small optimization is to cache whether the dict of controllers has any that set qpos/qvel values
|
1077
|
+
# in the BaseAgent/MultiAgent class. Code below just avoids iterating over the dict of controllers each time
|
1073
1078
|
self.scene.px.gpu_apply_articulation_target_position()
|
1074
|
-
if self.agent.controller.sets_target_qvel:
|
1075
1079
|
self.scene.px.gpu_apply_articulation_target_velocity()
|
1080
|
+
else:
|
1081
|
+
if self.agent.controller.sets_target_qpos:
|
1082
|
+
self.scene.px.gpu_apply_articulation_target_position()
|
1083
|
+
if self.agent.controller.sets_target_qvel:
|
1084
|
+
self.scene.px.gpu_apply_articulation_target_velocity()
|
1076
1085
|
self._before_control_step()
|
1077
1086
|
for _ in range(self._sim_steps_per_control):
|
1078
1087
|
if self.agent is not None:
|
mani_skill/envs/scene.py
CHANGED
@@ -928,11 +928,15 @@ class ManiSkillScene:
|
|
928
928
|
self.px.cuda_articulation_qvel.torch()[:, :] = torch.zeros_like(
|
929
929
|
self.px.cuda_articulation_qvel.torch()
|
930
930
|
) # zero out all q velocities
|
931
|
+
self.px.cuda_articulation_qf.torch()[:, :] = torch.zeros_like(
|
932
|
+
self.px.cuda_articulation_qf.torch()
|
933
|
+
) # zero out all qf
|
931
934
|
|
932
935
|
self.px.gpu_apply_rigid_dynamic_data()
|
933
936
|
self.px.gpu_apply_articulation_root_pose()
|
934
937
|
self.px.gpu_apply_articulation_root_velocity()
|
935
938
|
self.px.gpu_apply_articulation_qvel()
|
939
|
+
self.px.gpu_apply_articulation_qf()
|
936
940
|
|
937
941
|
self._gpu_sim_initialized = True
|
938
942
|
self.px.gpu_update_articulation_kinematics()
|
{mani_skill_nightly-2025.5.13.5.dist-info → mani_skill_nightly-2025.5.13.26.dist-info}/RECORD
RENAMED
@@ -530,8 +530,8 @@ mani_skill/assets/robots/xarm7/meshes/visual/link7.glb,sha256=aZatACOv20VJbi2tOE
|
|
530
530
|
mani_skill/assets/robots/xarm7/meshes/visual/link_base.glb,sha256=vcy2lN1V72jIsSDRT0ZKVskR_0pVOXtDvBkxO2GENWs,467668
|
531
531
|
mani_skill/envs/__init__.py,sha256=YPlttBErTcf9vSnkZ54EQ8vTABSfFFrBdUY0AkF4vmg,43
|
532
532
|
mani_skill/envs/minimal_template.py,sha256=9THHWA1vkHatptc9g5Ojh-UBUKWQmLHVeq4fcaqv2aY,2200
|
533
|
-
mani_skill/envs/sapien_env.py,sha256=
|
534
|
-
mani_skill/envs/scene.py,sha256=
|
533
|
+
mani_skill/envs/sapien_env.py,sha256=mW0ar_nP7TbkdTqycSBq7rjELcWFg1NC2IokV9L7UzQ,72251
|
534
|
+
mani_skill/envs/scene.py,sha256=_E3n86SmGloC7xSGHF37Pbc-42RC54hSXYlj4s8F4WA,48215
|
535
535
|
mani_skill/envs/sim2real_env.py,sha256=n4TMNry9ZIx9d9A6BCFDJTEgpNPhcwecCwV5hNhca7w,19220
|
536
536
|
mani_skill/envs/template.py,sha256=0wnwKjnGOF7RvTR5Gz4VopaUiFxnIioXwmb4nPVxAs8,11939
|
537
537
|
mani_skill/envs/scenes/__init__.py,sha256=uL2T3AuoUkqe2FXmFjo4OQAMQDsePa6qVjCjEzJLqtE,868
|
@@ -811,8 +811,8 @@ mani_skill/vector/wrappers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
811
811
|
mani_skill/vector/wrappers/gymnasium.py,sha256=v1MDPIrVACBKCulrpdXBK2jDZQI7LKYFZgGgaCC5avY,7408
|
812
812
|
mani_skill/vector/wrappers/sb3.py,sha256=SlXdiEPqcNHYMhJCzA29kBU6zK7DKTe1nc0L6Z3QQtY,4722
|
813
813
|
mani_skill/viewer/__init__.py,sha256=srvDBsk4LQU75K2VIttrhiQ68p_ro7PSDqQRls2PY5c,1722
|
814
|
-
mani_skill_nightly-2025.5.13.
|
815
|
-
mani_skill_nightly-2025.5.13.
|
816
|
-
mani_skill_nightly-2025.5.13.
|
817
|
-
mani_skill_nightly-2025.5.13.
|
818
|
-
mani_skill_nightly-2025.5.13.
|
814
|
+
mani_skill_nightly-2025.5.13.26.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
815
|
+
mani_skill_nightly-2025.5.13.26.dist-info/METADATA,sha256=RfuvX7y0eWcO_Ow3jn7gtIONbwq2bw_5vGtEuwF6ePI,9409
|
816
|
+
mani_skill_nightly-2025.5.13.26.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
817
|
+
mani_skill_nightly-2025.5.13.26.dist-info/top_level.txt,sha256=bkBgOVl_MZMoQx2aRFsSFEYlZLxjWlip5vtJ39FB3jA,11
|
818
|
+
mani_skill_nightly-2025.5.13.26.dist-info/RECORD,,
|
{mani_skill_nightly-2025.5.13.5.dist-info → mani_skill_nightly-2025.5.13.26.dist-info}/LICENSE
RENAMED
File without changes
|
{mani_skill_nightly-2025.5.13.5.dist-info → mani_skill_nightly-2025.5.13.26.dist-info}/WHEEL
RENAMED
File without changes
|
{mani_skill_nightly-2025.5.13.5.dist-info → mani_skill_nightly-2025.5.13.26.dist-info}/top_level.txt
RENAMED
File without changes
|