Skip to content

Commit

Permalink
showing top grasps - gitignore change
Browse files Browse the repository at this point in the history
  • Loading branch information
stebl committed Feb 10, 2014
1 parent 19b5090 commit e591ab3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/database/
/models/

#################
## Eclipse
#################
Expand Down
8 changes: 5 additions & 3 deletions hw1_grasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ def eval_grasp(self, grasp):

G[:, i] = wrench

#TODO use G to compute scrores as discussed in class
# Use SVD to compute minimum score
U, S, V = np.linalg.svd(G)
score = S[-1]
return score #change thisD
return score

except openravepy.planning_error,e:
#you get here if there is a failure in planning
Expand Down Expand Up @@ -209,7 +209,9 @@ def show_grasp(self, grasp, delay=1.5):

if __name__ == '__main__':
robo = RoboHandler()
#robo.show_grasp(robo.grasps_ordered[0], delay=30)

for i in range(5):
robo.show_grasp(robo.grasps_ordered[i], delay=30)

#import IPython
#IPython.embed()
Expand Down

0 comments on commit e591ab3

Please sign in to comment.