Skip to content

Commit e65459e

Browse files
committed
additional one
1 parent ed54f36 commit e65459e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/rpad/rlbench_utils/placement_dataset.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,14 @@ def get_action_points(
240240
rgb,
241241
point_cloud,
242242
mask,
243-
action_handles,
244-
gripper_handles,
243+
use_from_simulator=False,
244+
action_handles=None,
245+
gripper_handles=None,
245246
):
247+
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]
250+
246251
if action_mode == ActionMode.GRIPPER_AND_OBJECT:
247252
action_handles = action_handles + gripper_handles
248253
elif action_mode == ActionMode.OBJECT:

0 commit comments

Comments
 (0)