Skip to content

Commit 8772cc4

Browse files
committed
add another option
1 parent 66f8547 commit 8772cc4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/rpad/rlbench_utils/placement_dataset.py

+3
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ def filter_out_names(rgb, point_cloud, mask, handlemapping, names=BACKGROUND_NAM
222222
class ActionMode(str, Enum):
223223
GRIPPER_AND_OBJECT = "gripper_and_object"
224224
OBJECT = "object"
225+
GRIPPER = "gripper"
225226

226227

227228
class AnchorMode(str, Enum):
@@ -308,6 +309,8 @@ def get_action_points(
308309
action_handles = action_handles + gripper_handles
309310
elif action_mode == ActionMode.OBJECT:
310311
pass
312+
elif action_mode == ActionMode.GRIPPER:
313+
action_handles = gripper_handles
311314
else:
312315
raise ValueError("Action mode must be one of the ActionMode enum values.")
313316

src/rpad/rlbench_utils/task_info.py

-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@
496496
SAFE_OBJ_NAMES = ["safe_body", "safe_door"]
497497
MONEY_OBJ_NAMES = ["dollar_stack0", "dollar_back_visual0"]
498498
SAFE_POSE_NAME = "safe_body"
499-
# MONEY_POSE_NAME = "dollar_stack0"
500499
MONEY_POSE_NAME = "dollar_front_visual0"
501500

502501

0 commit comments

Comments
 (0)