Skip to content

Commit 76df718

Browse files
Merge pull request #642 from ARISE-Initiative/allow-non-default-mount
Update NutAssembly to handle different mounts aside from default
2 parents 502131b + 408d082 commit 76df718

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

robosuite/environments/manipulation/nut_assembly.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@ def __init__(
159159
env_configuration="default",
160160
controller_configs=None,
161161
gripper_types="default",
162+
base_types="default",
162163
initialization_noise="default",
163164
table_full_size=(0.8, 0.8, 0.05),
164165
table_friction=(1, 0.005, 0.0001),
166+
table_offset=(0, 0, 0.82),
165167
use_camera_obs=True,
166168
use_object_obs=True,
167169
reward_scale=1.0,
@@ -202,7 +204,7 @@ def __init__(
202204
# settings for table top
203205
self.table_full_size = table_full_size
204206
self.table_friction = table_friction
205-
self.table_offset = np.array((0, 0, 0.82))
207+
self.table_offset = table_offset
206208

207209
# reward configuration
208210
self.reward_scale = reward_scale
@@ -218,7 +220,7 @@ def __init__(
218220
robots=robots,
219221
env_configuration=env_configuration,
220222
controller_configs=controller_configs,
221-
base_types="default",
223+
base_types=base_types,
222224
gripper_types=gripper_types,
223225
initialization_noise=initialization_noise,
224226
use_camera_obs=use_camera_obs,

0 commit comments

Comments
 (0)