Skip to content

Commit

Permalink
add another option
Browse files Browse the repository at this point in the history
  • Loading branch information
beneisner committed Jun 12, 2024
1 parent 66f8547 commit 8772cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/rpad/rlbench_utils/placement_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def filter_out_names(rgb, point_cloud, mask, handlemapping, names=BACKGROUND_NAM
class ActionMode(str, Enum):
GRIPPER_AND_OBJECT = "gripper_and_object"
OBJECT = "object"
GRIPPER = "gripper"


class AnchorMode(str, Enum):
Expand Down Expand Up @@ -308,6 +309,8 @@ def get_action_points(
action_handles = action_handles + gripper_handles
elif action_mode == ActionMode.OBJECT:
pass
elif action_mode == ActionMode.GRIPPER:
action_handles = gripper_handles
else:
raise ValueError("Action mode must be one of the ActionMode enum values.")

Expand Down
1 change: 0 additions & 1 deletion src/rpad/rlbench_utils/task_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,6 @@
SAFE_OBJ_NAMES = ["safe_body", "safe_door"]
MONEY_OBJ_NAMES = ["dollar_stack0", "dollar_back_visual0"]
SAFE_POSE_NAME = "safe_body"
# MONEY_POSE_NAME = "dollar_stack0"
MONEY_POSE_NAME = "dollar_front_visual0"


Expand Down

0 comments on commit 8772cc4

Please sign in to comment.