Skip to content

Commit

Permalink
Merge pull request #1767 from wkentaro/check-grasp-before-saving
Browse files Browse the repository at this point in the history
Check the grasp before saving data
  • Loading branch information
wkentaro committed Jun 22, 2016
2 parents 1f1780f + 30423fe commit 4a66086
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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
5 changes: 4 additions & 1 deletion jsk_2016_01_baxter_apc/launch/in_hand_data_collection.launch
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@
</node>

<!-- Recoding -->
<include file="$(find jsk_tools)/launch/record_axis_camera.launch" />
<include file="$(find jsk_tools)/launch/record_axis_camera.launch">
<arg name="stamped_filename" value="true" />
<arg name="filename" value="$(env HOME)/.ros/jsk_2016_01_baxter_apc/in_hand_data_collection/.avi" />
</include>

</launch>

0 comments on commit 4a66086

Please sign in to comment.