mani-skill-nightly 2025.6.14.2004__py3-none-any.whl → 2025.6.14.2042__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.
@@ -57,7 +57,7 @@ class LeRobotRealAgent(BaseRealAgent):
57
57
  qpos = {f"{self._motor_keys[i]}.pos": qpos[i] for i in range(len(qpos))}
58
58
  # NOTE (stao): It seems the calibration from LeRobot has some offsets in some joints. We fix reading them here to match the expected behavior
59
59
  if self.real_robot.name == "so100_follower":
60
- qpos["elbow_flex.pos"] = qpos["elbow_flex.pos"] + 6.8
60
+ qpos["elbow_flex.pos"] = qpos["elbow_flex.pos"] + 3
61
61
  self.real_robot.send_action(qpos)
62
62
 
63
63
  def reset(self, qpos: Array):
@@ -112,7 +112,7 @@ class LeRobotRealAgent(BaseRealAgent):
112
112
 
113
113
  # NOTE (stao): It seems the calibration from LeRobot has some offsets in some joints. We fix reading them here to match the expected behavior
114
114
  if self.real_robot.name == "so100_follower":
115
- qpos_deg["elbow_flex"] = qpos_deg["elbow_flex"] - 6.8
115
+ qpos_deg["elbow_flex"] = qpos_deg["elbow_flex"] - 3
116
116
  if self._motor_keys is None:
117
117
  self._motor_keys = list(qpos_deg.keys())
118
118
  qpos_deg = common.flatten_state_dict(qpos_deg)
@@ -1,5 +1,5 @@
1
1
  from dataclasses import asdict, dataclass
2
- from typing import Any, Dict, Sequence, Union
2
+ from typing import Any, Dict, Optional, Sequence, Union
3
3
 
4
4
  import dacite
5
5
  import numpy as np
@@ -27,8 +27,11 @@ from mani_skill.utils.structs.types import GPUMemoryConfig, SimConfig
27
27
  class SO100GraspCubeDomainRandomizationConfig:
28
28
  ### task agnostic domain randomizations, many of which you can copy over to your own tasks ###
29
29
  initial_qpos_noise_scale: float = 0.02
30
- robot_color: Union[str, Sequence[float]] = (1, 1, 1)
31
- """Color of the robot in RGB format in scale of 0 to 1 mapping to 0 to 255. If you want to randomize it just set this value to "random"."""
30
+ robot_color: Optional[Union[str, Sequence[float]]] = None
31
+ """Color of the robot in RGB format in scale of 0 to 1 mapping to 0 to 255.
32
+ If you want to randomize it just set this value to "random". If left as None which is
33
+ the default, it will set the robot parts to white and motors to black. For more fine-grained choices on robot colors you need to modify
34
+ mani_skill/assets/robots/so100/so100.urdf in the ManiSkill package."""
32
35
  randomize_lighting: bool = True
33
36
  max_camera_offset: Sequence[float] = (0.025, 0.025, 0.025)
34
37
  """max camera offset from the base camera position in x, y, and z axes"""
@@ -275,31 +278,34 @@ class SO100GraspCubeEnv(BaseDigitalTwinEnv):
275
278
  self.camera_mount = builder.build_kinematic("camera_mount")
276
279
 
277
280
  # randomize or set a fixed robot color
278
- for link in self.agent.robot.links:
279
- for i, obj in enumerate(link._objs):
280
- # modify the i-th object which is in parallel environment i
281
- render_body_component: RenderBodyComponent = (
282
- obj.entity.find_component_by_type(RenderBodyComponent)
283
- )
284
- if render_body_component is not None:
285
- for render_shape in render_body_component.render_shapes:
286
- for part in render_shape.parts:
287
- if (
288
- self.domain_randomization
289
- and self.domain_randomization_config.robot_color
290
- == "random"
291
- ):
292
- part.material.set_base_color(
293
- self._batched_episode_rng[i]
294
- .uniform(low=0.0, high=1.0, size=(3,))
295
- .tolist()
296
- + [1]
297
- )
298
- else:
299
- part.material.set_base_color(
300
- list(self.domain_randomization_config.robot_color)
301
- + [1]
302
- )
281
+ if self.domain_randomization_config.robot_color is not None:
282
+ for link in self.agent.robot.links:
283
+ for i, obj in enumerate(link._objs):
284
+ # modify the i-th object which is in parallel environment i
285
+ render_body_component: RenderBodyComponent = (
286
+ obj.entity.find_component_by_type(RenderBodyComponent)
287
+ )
288
+ if render_body_component is not None:
289
+ for render_shape in render_body_component.render_shapes:
290
+ for part in render_shape.parts:
291
+ if (
292
+ self.domain_randomization
293
+ and self.domain_randomization_config.robot_color
294
+ == "random"
295
+ ):
296
+ part.material.set_base_color(
297
+ self._batched_episode_rng[i]
298
+ .uniform(low=0.0, high=1.0, size=(3,))
299
+ .tolist()
300
+ + [1]
301
+ )
302
+ else:
303
+ part.material.set_base_color(
304
+ list(
305
+ self.domain_randomization_config.robot_color
306
+ )
307
+ + [1]
308
+ )
303
309
 
304
310
  def sample_camera_poses(self, n: int):
305
311
  # a custom function to sample random camera poses
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mani-skill-nightly
3
- Version: 2025.6.14.2004
3
+ Version: 2025.6.14.2042
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
@@ -40,7 +40,7 @@ mani_skill/agents/robots/koch/__init__.py,sha256=-bZbNQnXk6rlXgSkIG2umLENJkNqAQb
40
40
  mani_skill/agents/robots/koch/koch.py,sha256=r5morOu6Fv35qpSm2OFhhO2Aaw2x9ZtT3wrET-YtiCw,6736
41
41
  mani_skill/agents/robots/koch/koch_real.py,sha256=w8lIzRsAZEvLGXbC598ktpGiHKuPp3XDspmU1xYXKqc,124
42
42
  mani_skill/agents/robots/lerobot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
- mani_skill/agents/robots/lerobot/manipulator.py,sha256=6D4Qa-lhnwV7E1u2Y1JqUd-YRaYH9Swl1VvNG3K2YmQ,5642
43
+ mani_skill/agents/robots/lerobot/manipulator.py,sha256=69BNZQKab3GOAdVgNHyffTMBVNfY6rxYinEs-ENhUS8,5638
44
44
  mani_skill/agents/robots/panda/__init__.py,sha256=VnFJLcmPMBjo-mlBpfMo5acYKud_wngRAcf67uiugSk,102
45
45
  mani_skill/agents/robots/panda/panda.py,sha256=aufC9et7TK5Ojms03ITT3cb7jsVClcbqLquGWaXzEH4,10760
46
46
  mani_skill/agents/robots/panda/panda_stick.py,sha256=YEGYLPGZFKkCTTAry4F82_fNZqrso3LdMWgBfT_RRbY,6131
@@ -569,7 +569,7 @@ mani_skill/envs/tasks/digital_twins/bridge_dataset_eval/__init__.py,sha256=2okxy
569
569
  mani_skill/envs/tasks/digital_twins/bridge_dataset_eval/base_env.py,sha256=HFjZwcMOSNduDmyD-qo9zVeHqHOdXdx0H11japbTpEI,21997
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
- mani_skill/envs/tasks/digital_twins/so100_arm/grasp_cube.py,sha256=U0ldL-lDMipcjEUhrlWvn5Kzh_r1TkkjfdUxj9OGyX0,21875
572
+ mani_skill/envs/tasks/digital_twins/so100_arm/grasp_cube.py,sha256=Uv2wTMUyfh8ygG4g6WfPj5E8jaDUyBZ789lPPCRBJjM,22386
573
573
  mani_skill/envs/tasks/drawing/__init__.py,sha256=eZ7CnzIWBOHUihvOKStSQK94eKSv5wchRdSodiDYBlw,72
574
574
  mani_skill/envs/tasks/drawing/draw.py,sha256=WlhxJjt0-DlkxC3t-o0M8BoOwdwWpM9reupFg5OqiZc,8146
575
575
  mani_skill/envs/tasks/drawing/draw_svg.py,sha256=UKnVl_tMfUNHmOg24Ny-wFynb5CaZC0uIHvW9sBxbyo,16206
@@ -824,8 +824,8 @@ mani_skill/vector/wrappers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
824
824
  mani_skill/vector/wrappers/gymnasium.py,sha256=0kNe_iquf8J3503obkbmCKNaYr5m3cPrC_hBZS0Nl9Y,7408
825
825
  mani_skill/vector/wrappers/sb3.py,sha256=SlXdiEPqcNHYMhJCzA29kBU6zK7DKTe1nc0L6Z3QQtY,4722
826
826
  mani_skill/viewer/__init__.py,sha256=srvDBsk4LQU75K2VIttrhiQ68p_ro7PSDqQRls2PY5c,1722
827
- mani_skill_nightly-2025.6.14.2004.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
828
- mani_skill_nightly-2025.6.14.2004.dist-info/METADATA,sha256=apDEpbBIfYmUimW8Nsj_OP8RHhfx_UH4q8I8wCfb2jY,9272
829
- mani_skill_nightly-2025.6.14.2004.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
830
- mani_skill_nightly-2025.6.14.2004.dist-info/top_level.txt,sha256=bkBgOVl_MZMoQx2aRFsSFEYlZLxjWlip5vtJ39FB3jA,11
831
- mani_skill_nightly-2025.6.14.2004.dist-info/RECORD,,
827
+ mani_skill_nightly-2025.6.14.2042.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
828
+ mani_skill_nightly-2025.6.14.2042.dist-info/METADATA,sha256=vT9luyrrGJvxQFX4CozTeQzdsHdpmWI9kLuBfagE2fY,9272
829
+ mani_skill_nightly-2025.6.14.2042.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
830
+ mani_skill_nightly-2025.6.14.2042.dist-info/top_level.txt,sha256=bkBgOVl_MZMoQx2aRFsSFEYlZLxjWlip5vtJ39FB3jA,11
831
+ mani_skill_nightly-2025.6.14.2042.dist-info/RECORD,,