Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ajonnavittula committed Sep 6, 2024
1 parent 5faa523 commit 9064572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generate_ablation_demos.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def parse_args():
grip = target[-1]
action = np.hstack((linear, angular, [grip]))

robot_state, _,_, info = sim.step(action)
robot_state, _, _,_, info = sim.step(action)
state = np.hstack((robot_state[:3], robot_state[-1]))
object_state = np.array(info['object_positions'][object_of_interest][:3]).squeeze() # remove orientation of object

Expand Down
2 changes: 1 addition & 1 deletion helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def simulate(args, traj, object_of_interest, verbose=False):

robot_state, _,_, info = sim.step(action)
while not grip == robot_state[-1]: # wait for gripper to open/close
robot_state, _,_, info = sim.step(action)
robot_state, _,_, _, info = sim.step(action)
state = np.hstack((robot_state[:3], robot_state[-1]))
object_state = np.array(info['object_positions'][object_of_interest][:3]) # remove orientation of object

Expand Down

0 comments on commit 9064572

Please sign in to comment.