mani-skill-nightly 2025.6.14.1947__py3-none-any.whl → 2025.6.14.2004__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/tasks/digital_twins/so100_arm/grasp_cube.py +24 -8
- {mani_skill_nightly-2025.6.14.1947.dist-info → mani_skill_nightly-2025.6.14.2004.dist-info}/METADATA +1 -1
- {mani_skill_nightly-2025.6.14.1947.dist-info → mani_skill_nightly-2025.6.14.2004.dist-info}/RECORD +6 -6
- {mani_skill_nightly-2025.6.14.1947.dist-info → mani_skill_nightly-2025.6.14.2004.dist-info}/LICENSE +0 -0
- {mani_skill_nightly-2025.6.14.1947.dist-info → mani_skill_nightly-2025.6.14.2004.dist-info}/WHEEL +0 -0
- {mani_skill_nightly-2025.6.14.1947.dist-info → mani_skill_nightly-2025.6.14.2004.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,7 @@
|
|
1
|
-
from dataclasses import dataclass
|
2
|
-
from typing import Any, Dict,
|
1
|
+
from dataclasses import asdict, dataclass
|
2
|
+
from typing import Any, Dict, Sequence, Union
|
3
3
|
|
4
|
+
import dacite
|
4
5
|
import numpy as np
|
5
6
|
import sapien
|
6
7
|
import torch
|
@@ -26,10 +27,10 @@ from mani_skill.utils.structs.types import GPUMemoryConfig, SimConfig
|
|
26
27
|
class SO100GraspCubeDomainRandomizationConfig:
|
27
28
|
### task agnostic domain randomizations, many of which you can copy over to your own tasks ###
|
28
29
|
initial_qpos_noise_scale: float = 0.02
|
29
|
-
robot_color: Union[str,
|
30
|
+
robot_color: Union[str, Sequence[float]] = (1, 1, 1)
|
30
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"."""
|
31
32
|
randomize_lighting: bool = True
|
32
|
-
max_camera_offset:
|
33
|
+
max_camera_offset: Sequence[float] = (0.025, 0.025, 0.025)
|
33
34
|
"""max camera offset from the base camera position in x, y, and z axes"""
|
34
35
|
camera_target_noise: float = 1e-3
|
35
36
|
"""scale of noise added to the camera target position"""
|
@@ -39,12 +40,15 @@ class SO100GraspCubeDomainRandomizationConfig:
|
|
39
40
|
"""scale of noise added to the camera fov"""
|
40
41
|
|
41
42
|
### task-specific related domain randomizations that occur during scene loading ###
|
42
|
-
cube_half_size_range:
|
43
|
+
cube_half_size_range: Sequence[float] = (0.022 / 2, 0.028 / 2)
|
43
44
|
cube_friction_mean: float = 0.3
|
44
45
|
cube_friction_std: float = 0.05
|
45
|
-
cube_friction_bounds:
|
46
|
+
cube_friction_bounds: Sequence[float] = (0.1, 0.5)
|
46
47
|
randomize_cube_color: bool = True
|
47
48
|
|
49
|
+
def dict(self):
|
50
|
+
return {k: v for k, v in asdict(self).items()}
|
51
|
+
|
48
52
|
|
49
53
|
@register_env("SO100GraspCube-v1", max_episode_steps=64)
|
50
54
|
class SO100GraspCubeEnv(BaseDigitalTwinEnv):
|
@@ -71,7 +75,9 @@ class SO100GraspCubeEnv(BaseDigitalTwinEnv):
|
|
71
75
|
robot_uids="so100",
|
72
76
|
control_mode="pd_joint_target_delta_pos",
|
73
77
|
greenscreen_overlay_path=None,
|
74
|
-
domain_randomization_config
|
78
|
+
domain_randomization_config: Union[
|
79
|
+
SO100GraspCubeDomainRandomizationConfig, dict
|
80
|
+
] = SO100GraspCubeDomainRandomizationConfig(),
|
75
81
|
domain_randomization=True,
|
76
82
|
base_camera_settings=dict(
|
77
83
|
fov=52 * np.pi / 180,
|
@@ -84,8 +90,18 @@ class SO100GraspCubeEnv(BaseDigitalTwinEnv):
|
|
84
90
|
):
|
85
91
|
self.domain_randomization = domain_randomization
|
86
92
|
"""whether randomization is turned on or off."""
|
87
|
-
self.domain_randomization_config =
|
93
|
+
self.domain_randomization_config = SO100GraspCubeDomainRandomizationConfig()
|
88
94
|
"""domain randomization config"""
|
95
|
+
merged_domain_randomization_config = self.domain_randomization_config.dict()
|
96
|
+
if isinstance(domain_randomization_config, dict):
|
97
|
+
common.dict_merge(
|
98
|
+
merged_domain_randomization_config, domain_randomization_config
|
99
|
+
)
|
100
|
+
self.domain_randomization_config = dacite.from_dict(
|
101
|
+
data_class=SO100GraspCubeDomainRandomizationConfig,
|
102
|
+
data=domain_randomization_config,
|
103
|
+
config=dacite.Config(strict=True),
|
104
|
+
)
|
89
105
|
self.base_camera_settings = base_camera_settings
|
90
106
|
"""what the camera fov, position and target are when domain randomization is off. DR is centered around these settings"""
|
91
107
|
|
{mani_skill_nightly-2025.6.14.1947.dist-info → mani_skill_nightly-2025.6.14.2004.dist-info}/RECORD
RENAMED
@@ -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=
|
572
|
+
mani_skill/envs/tasks/digital_twins/so100_arm/grasp_cube.py,sha256=U0ldL-lDMipcjEUhrlWvn5Kzh_r1TkkjfdUxj9OGyX0,21875
|
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.
|
828
|
-
mani_skill_nightly-2025.6.14.
|
829
|
-
mani_skill_nightly-2025.6.14.
|
830
|
-
mani_skill_nightly-2025.6.14.
|
831
|
-
mani_skill_nightly-2025.6.14.
|
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,,
|
{mani_skill_nightly-2025.6.14.1947.dist-info → mani_skill_nightly-2025.6.14.2004.dist-info}/LICENSE
RENAMED
File without changes
|
{mani_skill_nightly-2025.6.14.1947.dist-info → mani_skill_nightly-2025.6.14.2004.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|