Skip to content

Commit

Permalink
additional one
Browse files Browse the repository at this point in the history
  • Loading branch information
beneisner committed May 16, 2024
1 parent ed54f36 commit e65459e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/rpad/rlbench_utils/placement_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,14 @@ def get_action_points(
rgb,
point_cloud,
mask,
action_handles,
gripper_handles,
use_from_simulator=False,
action_handles=None,
gripper_handles=None,
):
if use_from_simulator:
action_handles = [sim.simGetObjectHandle(name) for name in action_handles]
gripper_handles = [sim.simGetObjectHandle(name) for name in gripper_handles]

if action_mode == ActionMode.GRIPPER_AND_OBJECT:
action_handles = action_handles + gripper_handles
elif action_mode == ActionMode.OBJECT:
Expand Down

0 comments on commit e65459e

Please sign in to comment.