mani-skill-nightly 2025.5.13.24__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.
@@ -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 parse_sim_and_render_backend, CPU_SIM_BACKENDS
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.sets_target_qpos:
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mani-skill-nightly
3
- Version: 2025.5.13.24
3
+ Version: 2025.5.13.26
4
4
  Summary: ManiSkill3: A Unified Benchmark for Generalizable Manipulation Skills
5
5
  Home-page: https://github.com/haosulab/ManiSkill
6
6
  Author: ManiSkill contributors
@@ -530,7 +530,7 @@ 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=sUwjgVk8K1vvhYXqIY0z-KhvOpBuZ8JvuXBvJRZCBzM,71734
533
+ mani_skill/envs/sapien_env.py,sha256=mW0ar_nP7TbkdTqycSBq7rjELcWFg1NC2IokV9L7UzQ,72251
534
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
@@ -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.24.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
815
- mani_skill_nightly-2025.5.13.24.dist-info/METADATA,sha256=0-1W9Hh2CVoxn_TsLbCRaxBr8NXN3C1SPC4sL42Bb90,9409
816
- mani_skill_nightly-2025.5.13.24.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
817
- mani_skill_nightly-2025.5.13.24.dist-info/top_level.txt,sha256=bkBgOVl_MZMoQx2aRFsSFEYlZLxjWlip5vtJ39FB3jA,11
818
- mani_skill_nightly-2025.5.13.24.dist-info/RECORD,,
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,,