Skip to content

Commit

Permalink
Check the grasp before saving data
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jun 22, 2016
1 parent 1e16e9c commit 30423fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jsk_2016_01_baxter_apc/euslisp/in-hand-data-collection-main.l
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@
(send self :view-hand-pose :pos :i)
)
(send self :set-param-hand-pose)
(if (send *ri* :graspingp arm_)
(ros::set-param "~object_label" (elt object-list_ object-id_))
(ros::set-param "~object_label" "no_object")
)
(send self :send-save-request)
;; View hand randomly (optimally in future)
;; TODO(wkentaro): view hand optimally here with ML
Expand All @@ -264,6 +268,10 @@
(send self :view-hand-pose)
(send self :set-param-hand-pose)
;; Send saving request
(if (send *ri* :graspingp arm_)
(ros::set-param "~object_label" (elt object-list_ object-id_))
(ros::set-param "~object_label" "no_object")
)
(send self :send-save-request)
)
(while
Expand Down

0 comments on commit 30423fe

Please sign in to comment.