mani-skill-nightly 2025.6.28.415__py3-none-any.whl → 2025.6.28.701__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.
@@ -94,7 +94,6 @@ class BaseDigitalTwinEnv(BaseEnv):
94
94
 
95
95
  def _after_reconfigure(self, options: dict):
96
96
  super()._after_reconfigure(options)
97
- self._objects_to_remove_from_greenscreen = []
98
97
 
99
98
  if self.rgb_overlay_mode != "none":
100
99
  # after reconfiguration in CPU/GPU sim we have initialized all ids of objects in the scene.
@@ -119,6 +118,7 @@ class BaseDigitalTwinEnv(BaseEnv):
119
118
  self._rgb_overlay_images[camera_name] = common.to_tensor(
120
119
  rgb_overlay_img, device=self.device
121
120
  )
121
+ self._objects_to_remove_from_greenscreen = []
122
122
 
123
123
  def _green_sceen_rgb(self, rgb, segmentation, overlay_img):
124
124
  """returns green screened RGB data given a batch of RGB and segmentation images and one overlay image"""
@@ -195,6 +195,10 @@ class BaseBridgeEnv(BaseDigitalTwinEnv):
195
195
  self.model_db: Dict[str, Dict] = io_utils.load_json(
196
196
  BRIDGE_DATASET_ASSET_PATH / "custom/" / self.MODEL_JSON
197
197
  )
198
+
199
+ self.consecutive_grasp = None
200
+ self.episode_stats = None
201
+
198
202
  super().__init__(
199
203
  robot_uids=robot_cls,
200
204
  **kwargs,
@@ -454,17 +458,21 @@ class BaseBridgeEnv(BaseDigitalTwinEnv):
454
458
  )[0, :, 0]
455
459
  """target object bbox size (3, )"""
456
460
 
461
+ if self.consecutive_grasp is None:
462
+ self.consecutive_grasp = torch.zeros(self.num_envs, dtype=torch.int32).to(self.device)
463
+ if self.episode_stats is None:
464
+ self.episode_stats = dict(
465
+ moved_correct_obj=torch.zeros((self.num_envs,), dtype=torch.bool).to(self.device),
466
+ moved_wrong_obj=torch.zeros((self.num_envs,), dtype=torch.bool).to(self.device),
467
+ is_src_obj_grasped=torch.zeros((self.num_envs,), dtype=torch.bool).to(self.device),
468
+ consecutive_grasp=torch.zeros((self.num_envs,), dtype=torch.bool).to(self.device),
469
+ )
457
470
  # stats to track
458
- self.consecutive_grasp = torch.zeros((b,), dtype=torch.int32)
459
- self.episode_stats = dict(
460
- # all_obj_keep_height=torch.zeros((b,), dtype=torch.bool),
461
- moved_correct_obj=torch.zeros((b,), dtype=torch.bool),
462
- moved_wrong_obj=torch.zeros((b,), dtype=torch.bool),
463
- # near_tgt_obj=torch.zeros((b,), dtype=torch.bool),
464
- is_src_obj_grasped=torch.zeros((b,), dtype=torch.bool),
465
- # is_closest_to_tgt=torch.zeros((b,), dtype=torch.bool),
466
- consecutive_grasp=torch.zeros((b,), dtype=torch.bool),
467
- )
471
+ self.consecutive_grasp[env_idx] = 0
472
+ self.episode_stats["moved_correct_obj"][env_idx] = 0
473
+ self.episode_stats["moved_wrong_obj"][env_idx] = 0
474
+ self.episode_stats["is_src_obj_grasped"][env_idx] = 0
475
+ self.episode_stats["consecutive_grasp"][env_idx] = 0
468
476
 
469
477
  def _settle(self, t: int = 0.5):
470
478
  """run the simulation for some steps to help settle the objects"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mani-skill-nightly
3
- Version: 2025.6.28.415
3
+ Version: 2025.6.28.701
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
@@ -564,9 +564,9 @@ mani_skill/envs/tasks/dexterity/__init__.py,sha256=wXXGA6ZdY5HExcnf3Dux4sMFUgmWj
564
564
  mani_skill/envs/tasks/dexterity/rotate_single_object_in_hand.py,sha256=cKnlWB5EcTjNVi53wSkqxVgVUYhuRm5QJcPmg9sP-iI,14165
565
565
  mani_skill/envs/tasks/dexterity/rotate_valve.py,sha256=SwSaOUXPZJEC5UdrcLGYwat2m3YUQFpHQ_WHCD77890,11659
566
566
  mani_skill/envs/tasks/digital_twins/__init__.py,sha256=_yWWBFH-P69UTPvo9GRa8Ux_FXOjLWdkiK3rs2ojX3o,60
567
- mani_skill/envs/tasks/digital_twins/base_env.py,sha256=m9cSMdEdUvFMg2F8-iV0pOOAT61byTQL2RIYNmNv09k,8277
567
+ mani_skill/envs/tasks/digital_twins/base_env.py,sha256=uo66gCYBBXYS6zRF8CpoVxRF6ERUPuGRz5iirib3zHg,8277
568
568
  mani_skill/envs/tasks/digital_twins/bridge_dataset_eval/__init__.py,sha256=2okxye0Tg_kmmKNXP7h4MlAxxGS5cJE3OKAo4LIVAcs,172
569
- mani_skill/envs/tasks/digital_twins/bridge_dataset_eval/base_env.py,sha256=HFjZwcMOSNduDmyD-qo9zVeHqHOdXdx0H11japbTpEI,21997
569
+ mani_skill/envs/tasks/digital_twins/bridge_dataset_eval/base_env.py,sha256=L7eQ8MuelfcrOwGL2Tw9RUik-15ycuelaCVooE9wuOQ,22433
570
570
  mani_skill/envs/tasks/digital_twins/bridge_dataset_eval/put_on_in_scene.py,sha256=kDKEX-e1Hq5kZiBs9xfEzU2jjx35eHWriAAYFJcBbgE,9419
571
571
  mani_skill/envs/tasks/digital_twins/so100_arm/__init__.py,sha256=uehHSCaHoZDB9awMtF81r4A-X4fM6NFmErzOsgzgSs4,42
572
572
  mani_skill/envs/tasks/digital_twins/so100_arm/grasp_cube.py,sha256=Uv2wTMUyfh8ygG4g6WfPj5E8jaDUyBZ789lPPCRBJjM,22386
@@ -825,8 +825,8 @@ mani_skill/vector/wrappers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
825
825
  mani_skill/vector/wrappers/gymnasium.py,sha256=aNPB-2oGDLep8qzdsuTSIlwGGO0OGQAQ193LefOGoTk,7434
826
826
  mani_skill/vector/wrappers/sb3.py,sha256=SlXdiEPqcNHYMhJCzA29kBU6zK7DKTe1nc0L6Z3QQtY,4722
827
827
  mani_skill/viewer/__init__.py,sha256=srvDBsk4LQU75K2VIttrhiQ68p_ro7PSDqQRls2PY5c,1722
828
- mani_skill_nightly-2025.6.28.415.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
829
- mani_skill_nightly-2025.6.28.415.dist-info/METADATA,sha256=4FsrSNMc_B18tguzDegFOMAdRv8jnCFbGxxOvjm05AM,9271
830
- mani_skill_nightly-2025.6.28.415.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
831
- mani_skill_nightly-2025.6.28.415.dist-info/top_level.txt,sha256=bkBgOVl_MZMoQx2aRFsSFEYlZLxjWlip5vtJ39FB3jA,11
832
- mani_skill_nightly-2025.6.28.415.dist-info/RECORD,,
828
+ mani_skill_nightly-2025.6.28.701.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
829
+ mani_skill_nightly-2025.6.28.701.dist-info/METADATA,sha256=da_frAOt-bP2o2JgrGUYeHXu-_E9ntvzF2iugf20o58,9271
830
+ mani_skill_nightly-2025.6.28.701.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
831
+ mani_skill_nightly-2025.6.28.701.dist-info/top_level.txt,sha256=bkBgOVl_MZMoQx2aRFsSFEYlZLxjWlip5vtJ39FB3jA,11
832
+ mani_skill_nightly-2025.6.28.701.dist-info/RECORD,,