Skip to content

Commit 83e408d

Browse files
committed
dumb
1 parent e65459e commit 83e408d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rpad/rlbench_utils/placement_dataset.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,10 @@ def get_action_points(
245245
gripper_handles=None,
246246
):
247247
if use_from_simulator:
248-
action_handles = [sim.simGetObjectHandle(name) for name in action_handles]
249-
gripper_handles = [sim.simGetObjectHandle(name) for name in gripper_handles]
248+
action_names = TASK_DICT[task_name]["phase"][phase]["action_obj_names"]
249+
gripper_names = GRIPPER_OBJ_NAMES
250+
action_handles = [sim.simGetObjectHandle(name) for name in action_names]
251+
gripper_handles = [sim.simGetObjectHandle(name) for name in gripper_names]
250252

251253
if action_mode == ActionMode.GRIPPER_AND_OBJECT:
252254
action_handles = action_handles + gripper_handles

0 commit comments

Comments
 (0)