mani-skill-nightly 2025.4.5.358__py3-none-any.whl → 2025.4.5.440__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.
@@ -168,6 +168,9 @@ class BaseController:
168
168
  action, self.action_space_low, self.action_space_high
169
169
  )
170
170
 
171
+ def __repr__(self):
172
+ return f"{self.__class__.__name__}(dof={len(self.active_joint_indices)}, active_joints={len(self.joints)}, joints=({', '.join([x.name for x in self.joints])}))"
173
+
171
174
 
172
175
  @dataclass
173
176
  class ControllerConfig:
@@ -275,6 +278,21 @@ class DictController(BaseController):
275
278
  final_action.append(sub_action)
276
279
  return torch.concat(final_action)
277
280
 
281
+ def __repr__(self):
282
+ dims = len(self.joints)
283
+ dof = sum(
284
+ [
285
+ controller.single_action_space.shape[0]
286
+ for controller in self.controllers.values()
287
+ ]
288
+ )
289
+ main_str = f"{self.__class__.__name__}(dof={dof}, active_joints={dims}"
290
+ for uid, controller in self.controllers.items():
291
+ controller_str = controller.__repr__()
292
+ controller_str = controller_str.replace("\n", "\n ")
293
+ main_str += f"\n {uid}: {controller_str}"
294
+ return main_str + "\n)"
295
+
278
296
 
279
297
  class CombinedController(DictController):
280
298
 
@@ -126,6 +126,9 @@ class PDEEPosController(PDJointPosController):
126
126
  target_pose[:, :3], target_pose[:, 3:]
127
127
  )
128
128
 
129
+ def __repr__(self):
130
+ return f"{self.__class__.__name__}(dof={self.single_action_space.shape[0]}, active_joints={len(self.joints)}, end_link={self.config.ee_link}, joints=({', '.join([x.name for x in self.joints])}))"
131
+
129
132
 
130
133
  # TODO (stao): This config should really inherit the pd joint pos controller config
131
134
  @dataclass
@@ -193,6 +193,8 @@ class PDJointPosMimicController(PDJointPosController):
193
193
  )
194
194
  """list of all directly controlled joint indices"""
195
195
 
196
+ self.effective_dof = len(self.control_joint_indices)
197
+
196
198
  def _get_joint_limits(self):
197
199
  joint_limits = super()._get_joint_limits()
198
200
  joint_limits = joint_limits[self.control_joint_indices]
@@ -223,6 +225,15 @@ class PDJointPosMimicController(PDJointPosController):
223
225
  else:
224
226
  self.set_drive_targets(self._target_qpos)
225
227
 
228
+ def __repr__(self):
229
+ data = {k: v["joint"] for k, v in self.config.mimic.items()}
230
+ main_str = "{\n"
231
+ for k, v in data.items():
232
+ main_str += f" {k}: {v},\n"
233
+ main_str += "}"
234
+ data = main_str
235
+ return f"PDJointPosMimicController(dof={self.single_action_space.shape[0]}, active_joints={len(self.joints)}, mimic_to_control_joint_map={main_str})"
236
+
226
237
 
227
238
  @dataclass
228
239
  class PDJointPosMimicControllerConfig(PDJointPosControllerConfig):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mani-skill-nightly
3
- Version: 2025.4.5.358
3
+ Version: 2025.4.5.440
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
@@ -5,11 +5,11 @@ mani_skill/agents/multi_agent.py,sha256=OL7sPDwP1Gfn870W3LRNhwsPp7Gy52sdYI4LySva
5
5
  mani_skill/agents/registration.py,sha256=rtu9vAys_Qz76d9LsDFpqanZxaFiLSPZajA3uHF9HHQ,1331
6
6
  mani_skill/agents/utils.py,sha256=U8wdgsNHRa-RtlC3HQM8_Agn9P82TIe3ZrXetaMMU_U,1912
7
7
  mani_skill/agents/controllers/__init__.py,sha256=tsd27dW6brQBm563CddUGtFMBNAxe_MCpTqqR5VyJaY,1103
8
- mani_skill/agents/controllers/base_controller.py,sha256=gSLIADsehgtscJjQUUla_oQSWlP69uhSAgCkonTHYEU,12034
8
+ mani_skill/agents/controllers/base_controller.py,sha256=O6AJiF7OCmGBgiLAEf5sfTVM_NFED440xbczmxswkIY,12803
9
9
  mani_skill/agents/controllers/passive_controller.py,sha256=R-hZeuxmNKA9TvDZzVKd-YIv45xE4tc6wMHargdrxjY,1264
10
10
  mani_skill/agents/controllers/pd_base_vel.py,sha256=-3ZzLZ9nRDMGHWnFE7c4reEbC3jHtQJCOx3LmArz95g,2868
11
- mani_skill/agents/controllers/pd_ee_pose.py,sha256=MkQF1jpNaD5QNsrM7JOiWi_waQSMfz7vw8jXB4WK_Q4,11464
12
- mani_skill/agents/controllers/pd_joint_pos.py,sha256=Z2zyzv93w3tAAHa5vQC95y964QMtjqvtZvHf-KlsO_E,10588
11
+ mani_skill/agents/controllers/pd_ee_pose.py,sha256=g8euEL8hW_M8QFKFf9vMNKoGWk3acaeoRUCPDrSjfRw,11693
12
+ mani_skill/agents/controllers/pd_joint_pos.py,sha256=FHN-Rr_cweBi3GHyhzBpRzrjt7UszHb2jv6BkmG8nO0,11052
13
13
  mani_skill/agents/controllers/pd_joint_pos_vel.py,sha256=G8SBIa8jM939zGCETY17RlmwHoHLS5iCMTZsYZaH1mY,2433
14
14
  mani_skill/agents/controllers/pd_joint_vel.py,sha256=XQK13lsbteeUsztGw0u-DCBgCCv0ChglvncgwxVQCWY,1900
15
15
  mani_skill/agents/controllers/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -705,8 +705,8 @@ mani_skill/vector/wrappers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
705
705
  mani_skill/vector/wrappers/gymnasium.py,sha256=v1MDPIrVACBKCulrpdXBK2jDZQI7LKYFZgGgaCC5avY,7408
706
706
  mani_skill/vector/wrappers/sb3.py,sha256=SlXdiEPqcNHYMhJCzA29kBU6zK7DKTe1nc0L6Z3QQtY,4722
707
707
  mani_skill/viewer/__init__.py,sha256=srvDBsk4LQU75K2VIttrhiQ68p_ro7PSDqQRls2PY5c,1722
708
- mani_skill_nightly-2025.4.5.358.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
709
- mani_skill_nightly-2025.4.5.358.dist-info/METADATA,sha256=_GyZUzSt8rppWKc_ofgMkxnSdDdHRfFv62YWfVHeJuU,9290
710
- mani_skill_nightly-2025.4.5.358.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
711
- mani_skill_nightly-2025.4.5.358.dist-info/top_level.txt,sha256=bkBgOVl_MZMoQx2aRFsSFEYlZLxjWlip5vtJ39FB3jA,11
712
- mani_skill_nightly-2025.4.5.358.dist-info/RECORD,,
708
+ mani_skill_nightly-2025.4.5.440.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
709
+ mani_skill_nightly-2025.4.5.440.dist-info/METADATA,sha256=lIsKlHE7VN7tVBu-E7IipXUXDRvZIGzQh6C62JmafhU,9290
710
+ mani_skill_nightly-2025.4.5.440.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
711
+ mani_skill_nightly-2025.4.5.440.dist-info/top_level.txt,sha256=bkBgOVl_MZMoQx2aRFsSFEYlZLxjWlip5vtJ39FB3jA,11
712
+ mani_skill_nightly-2025.4.5.440.dist-info/RECORD,,