From 65eb863c72201cbbab0d9dcf200ddfa1d64e079c Mon Sep 17 00:00:00 2001 From: marqrazz Date: Fri, 15 Sep 2023 12:31:18 -0600 Subject: [PATCH 1/6] Add objectives to teach and pick objects relitive to AprilTag pose observations --- .../objectives/pick_apriltag_labeled_object.xml | 7 +++---- .../objectives/teach_apriltag_grasp_offset.xml | 13 +++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml diff --git a/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml b/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml index 82090e3a..4bd58fac 100644 --- a/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml +++ b/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml @@ -8,12 +8,11 @@ + - - - - + + diff --git a/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml b/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml new file mode 100644 index 00000000..edf5597a --- /dev/null +++ b/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + From 916c7b23e43c0281c36574d3db19b6f63c9705cf Mon Sep 17 00:00:00 2001 From: marqrazz Date: Tue, 26 Sep 2023 09:58:57 -0600 Subject: [PATCH 2/6] update behavior names --- .../objectives/apriltag1_grasp_offset.yaml | 8 ++++++++ .../objectives/loop_detect_apriltag.xml | 2 +- .../objectives/pick_apriltag_labeled_object.xml | 2 +- .../objectives/sample_april_tag.xml | 2 +- .../objectives/teach_apriltag_grasp_offset.xml | 7 +++---- 5 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml diff --git a/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml b/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml new file mode 100644 index 00000000..a196344e --- /dev/null +++ b/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml @@ -0,0 +1,8 @@ +GraspOffset: + x: -0.098261620631764912 + y: 0.30160987978794107 + z: 0.061677289758278485 + qx: 0.7071241158041649 + qy: -0.70708660591421257 + qz: -0.0013366860602812623 + qw: -0.0014927349398203876 \ No newline at end of file diff --git a/src/picknik_ur_gazebo_config/objectives/loop_detect_apriltag.xml b/src/picknik_ur_gazebo_config/objectives/loop_detect_apriltag.xml index 8c4ae282..70413321 100644 --- a/src/picknik_ur_gazebo_config/objectives/loop_detect_apriltag.xml +++ b/src/picknik_ur_gazebo_config/objectives/loop_detect_apriltag.xml @@ -1,7 +1,7 @@ - + diff --git a/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml b/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml index 4bd58fac..056b2a99 100644 --- a/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml +++ b/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml @@ -1,7 +1,7 @@ - + diff --git a/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml b/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml index b69044b1..dcc70f2e 100644 --- a/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml +++ b/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml @@ -1,7 +1,7 @@ - + diff --git a/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml b/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml index edf5597a..16efce35 100644 --- a/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml +++ b/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml @@ -1,12 +1,11 @@ - - + + - - + From 6f2188e59ea3e2b2aeaa24bc7aaac1d62e186e10 Mon Sep 17 00:00:00 2001 From: marqrazz Date: Tue, 26 Sep 2023 10:00:02 -0600 Subject: [PATCH 3/6] pre-commit --- .../objectives/apriltag1_grasp_offset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml b/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml index a196344e..9427aac1 100644 --- a/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml +++ b/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml @@ -5,4 +5,4 @@ GraspOffset: qx: 0.7071241158041649 qy: -0.70708660591421257 qz: -0.0013366860602812623 - qw: -0.0014927349398203876 \ No newline at end of file + qw: -0.0014927349398203876 From 5dfa28c011e02991c23d40eac9edce567e5af55b Mon Sep 17 00:00:00 2001 From: marqrazz Date: Wed, 27 Sep 2023 10:34:09 -0600 Subject: [PATCH 4/6] update objectives to work with tutorial --- .../objectives/apriltag1_grasp_offset.yaml | 14 +++++------ .../objectives/loop_detect_apriltag.xml | 2 -- .../pick_apriltag_labeled_object.xml | 2 +- .../objectives/sample_april_tag.xml | 6 ++--- .../teach_apriltag_grasp_offset.xml | 2 +- .../objectives/tree_nodes_model.xml | 25 +++++++++++++++++++ 6 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml diff --git a/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml b/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml index 9427aac1..bee43d3c 100644 --- a/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml +++ b/src/picknik_ur_gazebo_config/objectives/apriltag1_grasp_offset.yaml @@ -1,8 +1,8 @@ GraspOffset: - x: -0.098261620631764912 - y: 0.30160987978794107 - z: 0.061677289758278485 - qx: 0.7071241158041649 - qy: -0.70708660591421257 - qz: -0.0013366860602812623 - qw: -0.0014927349398203876 + x: -0.1 + y: 0.0 + z: 0.05 + qx: 0.707 + qy: -0.707 + qz: 0.0 + qw: 0.0 diff --git a/src/picknik_ur_gazebo_config/objectives/loop_detect_apriltag.xml b/src/picknik_ur_gazebo_config/objectives/loop_detect_apriltag.xml index 70413321..eeaad793 100644 --- a/src/picknik_ur_gazebo_config/objectives/loop_detect_apriltag.xml +++ b/src/picknik_ur_gazebo_config/objectives/loop_detect_apriltag.xml @@ -10,8 +10,6 @@ - - diff --git a/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml b/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml index 056b2a99..e91f4ec2 100644 --- a/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml +++ b/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml @@ -7,7 +7,7 @@ - + diff --git a/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml b/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml index dcc70f2e..24937cc1 100644 --- a/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml +++ b/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml @@ -1,8 +1,8 @@ - + - - + + diff --git a/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml b/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml index 16efce35..85c0ed8b 100644 --- a/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml +++ b/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml @@ -3,7 +3,7 @@ - + diff --git a/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml b/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml new file mode 100644 index 00000000..fded7784 --- /dev/null +++ b/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml @@ -0,0 +1,25 @@ + + + + +

+ Samples the pose of an Apriltag and returns the average measurement. +

+
+ The number of times to sample the pose. + The Apriltag ID to detect. + The configuration file for detecting AprilTags. + The maximum distance allow between the average pose and the new sample (Euclidean distance between pose positions). + The maximum angle allow between the average pose and the new sample (shortest angle between two pose quaternions). + The calculated average pose. +
+ + +

+ Picks an object at the specified grasp pose. +

+
+ The desired grasp pose. +
+
+
From c372d810ca4e8e439c9d28cfcd03960d7dbdfcb6 Mon Sep 17 00:00:00 2001 From: marqrazz Date: Wed, 27 Sep 2023 16:09:36 -0600 Subject: [PATCH 5/6] Refactor to April Tag expect where Apriltag is requied --- .../objectives/pick_apriltag_labeled_object.xml | 6 +++--- .../objectives/sample_april_tag.xml | 4 ++-- .../objectives/teach_apriltag_grasp_offset.xml | 2 +- .../objectives/tree_nodes_model.xml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml b/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml index e91f4ec2..af9a2e7b 100644 --- a/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml +++ b/src/picknik_ur_gazebo_config/objectives/pick_apriltag_labeled_object.xml @@ -1,13 +1,13 @@ - + - + - + diff --git a/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml b/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml index 24937cc1..2e47213d 100644 --- a/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml +++ b/src/picknik_ur_gazebo_config/objectives/sample_april_tag.xml @@ -1,7 +1,7 @@ - + - + diff --git a/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml b/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml index 85c0ed8b..31181961 100644 --- a/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml +++ b/src/picknik_ur_gazebo_config/objectives/teach_apriltag_grasp_offset.xml @@ -3,7 +3,7 @@ - + diff --git a/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml b/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml index fded7784..4296b7e2 100644 --- a/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml +++ b/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml @@ -1,6 +1,6 @@ - +

Samples the pose of an Apriltag and returns the average measurement. From 0ef2dc78d043ab00a03e7d5c3ef7c07c81a16b42 Mon Sep 17 00:00:00 2001 From: marqrazz Date: Mon, 2 Oct 2023 11:18:49 -0600 Subject: [PATCH 6/6] cleanup and add defaults for tags 2 & 3 --- .../objectives/apriltag2_grasp_offset.yaml | 8 ++++++++ .../objectives/apriltag3_grasp_offset.yaml | 8 ++++++++ .../objectives/tree_nodes_model.xml | 4 ++-- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 src/picknik_ur_gazebo_config/objectives/apriltag2_grasp_offset.yaml create mode 100644 src/picknik_ur_gazebo_config/objectives/apriltag3_grasp_offset.yaml diff --git a/src/picknik_ur_gazebo_config/objectives/apriltag2_grasp_offset.yaml b/src/picknik_ur_gazebo_config/objectives/apriltag2_grasp_offset.yaml new file mode 100644 index 00000000..bee43d3c --- /dev/null +++ b/src/picknik_ur_gazebo_config/objectives/apriltag2_grasp_offset.yaml @@ -0,0 +1,8 @@ +GraspOffset: + x: -0.1 + y: 0.0 + z: 0.05 + qx: 0.707 + qy: -0.707 + qz: 0.0 + qw: 0.0 diff --git a/src/picknik_ur_gazebo_config/objectives/apriltag3_grasp_offset.yaml b/src/picknik_ur_gazebo_config/objectives/apriltag3_grasp_offset.yaml new file mode 100644 index 00000000..bee43d3c --- /dev/null +++ b/src/picknik_ur_gazebo_config/objectives/apriltag3_grasp_offset.yaml @@ -0,0 +1,8 @@ +GraspOffset: + x: -0.1 + y: 0.0 + z: 0.05 + qx: 0.707 + qy: -0.707 + qz: 0.0 + qw: 0.0 diff --git a/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml b/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml index 4296b7e2..eee414d6 100644 --- a/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml +++ b/src/picknik_ur_gazebo_config/objectives/tree_nodes_model.xml @@ -3,11 +3,11 @@

- Samples the pose of an Apriltag and returns the average measurement. + Samples the pose of an AprilTag and returns the average measurement.

The number of times to sample the pose. - The Apriltag ID to detect. + The AprilTag ID to detect. The configuration file for detecting AprilTags. The maximum distance allow between the average pose and the new sample (Euclidean distance between pose positions). The maximum angle allow between the average pose and the new sample (shortest angle between two pose quaternions).