From ecd36eecd99fa5cfcdaa2686c8d3e4039ffec6db Mon Sep 17 00:00:00 2001 From: Yusuke Niitani Date: Thu, 23 Jun 2016 10:46:35 +0900 Subject: [PATCH 1/4] collect sib data more modular --- jsk_2016_01_baxter_apc/launch/collect_sib_data.launch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jsk_2016_01_baxter_apc/launch/collect_sib_data.launch b/jsk_2016_01_baxter_apc/launch/collect_sib_data.launch index 7714cc59c..538ef00dc 100644 --- a/jsk_2016_01_baxter_apc/launch/collect_sib_data.launch +++ b/jsk_2016_01_baxter_apc/launch/collect_sib_data.launch @@ -1,15 +1,16 @@ + - + - + From 44fccbf334654a9e8c0c9895ad0a4b8f5a3efdca Mon Sep 17 00:00:00 2001 From: Yusuke Niitani Date: Thu, 23 Jun 2016 10:47:02 +0900 Subject: [PATCH 2/4] move collect sib to launch/include --- .../launch/{ => include}/collect_sib_data.launch | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename jsk_2016_01_baxter_apc/launch/{ => include}/collect_sib_data.launch (100%) diff --git a/jsk_2016_01_baxter_apc/launch/collect_sib_data.launch b/jsk_2016_01_baxter_apc/launch/include/collect_sib_data.launch similarity index 100% rename from jsk_2016_01_baxter_apc/launch/collect_sib_data.launch rename to jsk_2016_01_baxter_apc/launch/include/collect_sib_data.launch From 6a2075d3209e9e8b0f7160f4ddb694badb791b00 Mon Sep 17 00:00:00 2001 From: Yusuke Niitani Date: Thu, 23 Jun 2016 10:50:18 +0900 Subject: [PATCH 3/4] add collect sib data in main.launch --- jsk_2016_01_baxter_apc/launch/main.launch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jsk_2016_01_baxter_apc/launch/main.launch b/jsk_2016_01_baxter_apc/launch/main.launch index a9d1095c4..35552f0b3 100644 --- a/jsk_2016_01_baxter_apc/launch/main.launch +++ b/jsk_2016_01_baxter_apc/launch/main.launch @@ -97,4 +97,13 @@ + + + + + + + + + From 509467ab0d8c6a2ab3d1967200785f98eb3d702b Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Sat, 25 Jun 2016 16:49:07 +0900 Subject: [PATCH 4/4] Make data collection in main.launch as optional --- jsk_2016_01_baxter_apc/euslisp/main.l | 10 +++++---- jsk_2016_01_baxter_apc/launch/main.launch | 26 ++++++++++++++++------- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/jsk_2016_01_baxter_apc/euslisp/main.l b/jsk_2016_01_baxter_apc/euslisp/main.l index 4da111378..7936bad2b 100755 --- a/jsk_2016_01_baxter_apc/euslisp/main.l +++ b/jsk_2016_01_baxter_apc/euslisp/main.l @@ -114,10 +114,12 @@ (send *ri* :move-arm-body->bin-overlook-pose arm target-bin) (send *ri* :wait-interpolation) (unix::sleep 6) - (ros::set-param - (format nil "~a_collect_sib_data/ready_to_save" (send *ri* :arm-symbol2str arm)) - t) - (unix::sleep 2) + (when (ros::get-param "~collect_data") + (ros::set-param + (format nil "~a_collect_sib_data/ready_to_save" (send *ri* :arm-symbol2str arm)) + t) + (unix::sleep 2) + ) (ros::ros-info "[main] Segmentating objects in bin" target-bin) (send *ri* :recognize-objects-segmentation-in-bin arm target-bin :stamp (ros::time-now)) diff --git a/jsk_2016_01_baxter_apc/launch/main.launch b/jsk_2016_01_baxter_apc/launch/main.launch index 35552f0b3..722354e8d 100644 --- a/jsk_2016_01_baxter_apc/launch/main.launch +++ b/jsk_2016_01_baxter_apc/launch/main.launch @@ -1,6 +1,7 @@ + @@ -81,11 +82,17 @@ args=""(progn (apc-init :larm-controller) (apc-mainloop :larm))"" respawn="true" output="screen"> + + collect_data: $(arg collect_data) + + + collect_data: $(arg collect_data) + @@ -98,12 +105,15 @@ - - - - - - - - + + + + + + + + + + +