From 6f581cebef02bd46eb3e6b7b641f844597bca03f Mon Sep 17 00:00:00 2001 From: Paul Gesel Date: Mon, 18 Nov 2024 12:50:14 -0700 Subject: [PATCH 1/6] Fix depend of moveit_studio_behavior Signed-off-by: Paul Gesel --- src/example_behaviors/package.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/example_behaviors/package.xml b/src/example_behaviors/package.xml index d68b3219..86f625d8 100644 --- a/src/example_behaviors/package.xml +++ b/src/example_behaviors/package.xml @@ -19,6 +19,7 @@ moveit_ros_planning_interface moveit_studio_vision_msgs moveit_studio_vision + moveit_studio_behavior ament_lint_auto ament_cmake_gtest From 15baa7f26f41e99155425b8639943776b4fa518e Mon Sep 17 00:00:00 2001 From: bgill92 Date: Mon, 18 Nov 2024 14:55:53 -0500 Subject: [PATCH 2/6] Update ports explicitly --- src/lab_sim/objectives/create_pose_vector.xml | 18 ++++++++++++++++++ src/lab_sim/objectives/pick_object.xml | 1 + src/lab_sim/objectives/place_object.xml | 1 + src/lab_sim/objectives/register_cad_part.xml | 1 + 4 files changed, 21 insertions(+) diff --git a/src/lab_sim/objectives/create_pose_vector.xml b/src/lab_sim/objectives/create_pose_vector.xml index af7432b9..787f42ea 100644 --- a/src/lab_sim/objectives/create_pose_vector.xml +++ b/src/lab_sim/objectives/create_pose_vector.xml @@ -6,82 +6,100 @@ ID="CreateStampedPose" orientation_xyzw="0;-1;0;0" position_xyz="1;0.5;1" + stamped_pose="{stamped_pose}" /> diff --git a/src/lab_sim/objectives/pick_object.xml b/src/lab_sim/objectives/pick_object.xml index 66dcbacd..481097e8 100644 --- a/src/lab_sim/objectives/pick_object.xml +++ b/src/lab_sim/objectives/pick_object.xml @@ -15,6 +15,7 @@ ID="CreateStampedPose" orientation_xyzw="0;1;0;0" position_xyz="0.01;.75;0.515" + stamped_pose="{stamped_pose}" /> Date: Mon, 18 Nov 2024 13:29:07 -0700 Subject: [PATCH 3/6] Fix pick ApriTag object Signed-off-by: Paul Gesel --- .../objectives/apriltag_detection_config.yaml | 6 +-- .../objectives/apriltag_pick_object.xml | 36 +++++++++++++--- .../get_april_tag_pose_from_image.xml | 41 +++++++++++++++++++ src/lab_sim/objectives/plan_move_to_pose.xml | 36 ++++++++++++++++ src/lab_sim/objectives/wrist_snap.xml | 15 +++++-- 5 files changed, 122 insertions(+), 12 deletions(-) create mode 100644 src/lab_sim/objectives/get_april_tag_pose_from_image.xml create mode 100644 src/lab_sim/objectives/plan_move_to_pose.xml diff --git a/src/lab_sim/objectives/apriltag_detection_config.yaml b/src/lab_sim/objectives/apriltag_detection_config.yaml index f1a96237..7af7bf1c 100644 --- a/src/lab_sim/objectives/apriltag_detection_config.yaml +++ b/src/lab_sim/objectives/apriltag_detection_config.yaml @@ -3,7 +3,7 @@ DetectAprilTags: apriltag_size: 0.04 max_hamming: 0 n_threads: 1 - quad_decimate: 1 - quad_sigma: 0.1 - refine_edges: false + quad_decimate: 2 + quad_sigma: 0.0 + refine_edges: true z_up: false diff --git a/src/lab_sim/objectives/apriltag_pick_object.xml b/src/lab_sim/objectives/apriltag_pick_object.xml index 00a6ca45..df3f814f 100644 --- a/src/lab_sim/objectives/apriltag_pick_object.xml +++ b/src/lab_sim/objectives/apriltag_pick_object.xml @@ -1,3 +1,4 @@ + - + @@ -27,19 +28,39 @@ topic_name="/wrist_camera/color" message_out="{image}" /> + + + + - - @@ -68,4 +89,7 @@ + + + diff --git a/src/lab_sim/objectives/get_april_tag_pose_from_image.xml b/src/lab_sim/objectives/get_april_tag_pose_from_image.xml new file mode 100644 index 00000000..789682be --- /dev/null +++ b/src/lab_sim/objectives/get_april_tag_pose_from_image.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/src/lab_sim/objectives/plan_move_to_pose.xml b/src/lab_sim/objectives/plan_move_to_pose.xml new file mode 100644 index 00000000..b5072d77 --- /dev/null +++ b/src/lab_sim/objectives/plan_move_to_pose.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + diff --git a/src/lab_sim/objectives/wrist_snap.xml b/src/lab_sim/objectives/wrist_snap.xml index 83c58612..7c04c0c4 100644 --- a/src/lab_sim/objectives/wrist_snap.xml +++ b/src/lab_sim/objectives/wrist_snap.xml @@ -1,6 +1,11 @@ - + + - + @@ -8,6 +13,10 @@ - + + + + + From ad79604eae475267e7e2dddd09c0ef3ba048c7c9 Mon Sep 17 00:00:00 2001 From: Paul Gesel Date: Mon, 18 Nov 2024 14:41:36 -0700 Subject: [PATCH 4/6] update submodule Signed-off-by: Paul Gesel --- src/picknik_accessories | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/picknik_accessories b/src/picknik_accessories index c9b1e709..18b1e9f5 160000 --- a/src/picknik_accessories +++ b/src/picknik_accessories @@ -1 +1 @@ -Subproject commit c9b1e709df2de65c1087d4433cbc7f079601cf70 +Subproject commit 18b1e9f50f8f566b979e7251baf8744fa6387b29 From b090cff5e8bf5bc6a6076e444c037718c44c2c41 Mon Sep 17 00:00:00 2001 From: Michael Wrock Date: Mon, 18 Nov 2024 13:58:02 -0800 Subject: [PATCH 5/6] more fixes --- .../objectives/add_waypoints_to_mtc_task.xml | 35 +++-------- src/lab_sim/objectives/pick_object.xml | 34 +---------- .../objectives/plan_and_save_trajectory.xml | 60 ++++--------------- 3 files changed, 22 insertions(+), 107 deletions(-) diff --git a/src/lab_sim/objectives/add_waypoints_to_mtc_task.xml b/src/lab_sim/objectives/add_waypoints_to_mtc_task.xml index 04947544..35596a12 100644 --- a/src/lab_sim/objectives/add_waypoints_to_mtc_task.xml +++ b/src/lab_sim/objectives/add_waypoints_to_mtc_task.xml @@ -1,38 +1,19 @@ - + - - - - - - + + + + - - - - + + + diff --git a/src/lab_sim/objectives/pick_object.xml b/src/lab_sim/objectives/pick_object.xml index 481097e8..ac46e08c 100644 --- a/src/lab_sim/objectives/pick_object.xml +++ b/src/lab_sim/objectives/pick_object.xml @@ -1,33 +1 @@ - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/src/lab_sim/objectives/plan_and_save_trajectory.xml b/src/lab_sim/objectives/plan_and_save_trajectory.xml index 232e1f08..b3782ba2 100644 --- a/src/lab_sim/objectives/plan_and_save_trajectory.xml +++ b/src/lab_sim/objectives/plan_and_save_trajectory.xml @@ -1,53 +1,19 @@ - + - + - - - - - - - - + + + + + + + + + + + From 23d20c4b79d4797ac8e437808e8e76fc353d0da3 Mon Sep 17 00:00:00 2001 From: Michael Wrock Date: Mon, 18 Nov 2024 13:59:01 -0800 Subject: [PATCH 6/6] formatting --- .../objectives/add_waypoints_to_mtc_task.xml | 40 ++++++++++--- src/lab_sim/objectives/pick_object.xml | 33 ++++++++++- src/lab_sim/objectives/pick_up_cube.xml | 10 ++-- .../objectives/plan_and_save_trajectory.xml | 59 +++++++++++++++---- 4 files changed, 117 insertions(+), 25 deletions(-) diff --git a/src/lab_sim/objectives/add_waypoints_to_mtc_task.xml b/src/lab_sim/objectives/add_waypoints_to_mtc_task.xml index 35596a12..31a2650f 100644 --- a/src/lab_sim/objectives/add_waypoints_to_mtc_task.xml +++ b/src/lab_sim/objectives/add_waypoints_to_mtc_task.xml @@ -1,19 +1,43 @@ - + - - - - + + + + - - - + + + diff --git a/src/lab_sim/objectives/pick_object.xml b/src/lab_sim/objectives/pick_object.xml index ac46e08c..2aa4018c 100644 --- a/src/lab_sim/objectives/pick_object.xml +++ b/src/lab_sim/objectives/pick_object.xml @@ -1 +1,32 @@ - \ No newline at end of file + + + + + + + + + + + + + + diff --git a/src/lab_sim/objectives/pick_up_cube.xml b/src/lab_sim/objectives/pick_up_cube.xml index e23c4dab..336abbae 100644 --- a/src/lab_sim/objectives/pick_up_cube.xml +++ b/src/lab_sim/objectives/pick_up_cube.xml @@ -1,13 +1,13 @@ - + - - + + - - + + diff --git a/src/lab_sim/objectives/plan_and_save_trajectory.xml b/src/lab_sim/objectives/plan_and_save_trajectory.xml index b3782ba2..a3c28efd 100644 --- a/src/lab_sim/objectives/plan_and_save_trajectory.xml +++ b/src/lab_sim/objectives/plan_and_save_trajectory.xml @@ -1,19 +1,56 @@ - + - + - - - - - - - - + + + + + + + + - +