From 1ce92f91608c9949ca6aa01684fde8a5d25eece7 Mon Sep 17 00:00:00 2001 From: Paul Gesel Date: Mon, 18 Nov 2024 13:29:07 -0700 Subject: [PATCH] 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 +++++-- src/lab_sim/package.xml | 2 +- 6 files changed, 123 insertions(+), 13 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 @@ - + + + + + diff --git a/src/lab_sim/package.xml b/src/lab_sim/package.xml index 1438d94e..c28b2cba 100644 --- a/src/lab_sim/package.xml +++ b/src/lab_sim/package.xml @@ -13,7 +13,7 @@ BSD-3-Clause ament_cmake - + k admittance_controller moveit_planners_stomp moveit_ros_perception