From b11be2cc6458e597a3e68dbe33e59371126da03e Mon Sep 17 00:00:00 2001
From: Sanic <sanic@users.noreply.github.com>
Date: Wed, 23 Nov 2022 15:17:57 +0100
Subject: [PATCH] Added a new action interface for processing a list of input
 images

---
 CMakeLists.txt                            |  5 +++-
 action/GenericImgListProcAnnotator.action | 30 +++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 action/GenericImgListProcAnnotator.action

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 702eefb..90143ea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,10 @@ add_message_files(
   ObjectDesignator.msg
 )
 
-add_action_files(DIRECTORY action FILES Query.action GenericImgProcAnnotator.action)
+add_action_files(DIRECTORY action FILES
+    Query.action
+    GenericImgProcAnnotator.action
+    GenericImgListProcAnnotator.action)
 
 generate_messages(DEPENDENCIES std_msgs actionlib_msgs geometry_msgs sensor_msgs)
 
diff --git a/action/GenericImgListProcAnnotator.action b/action/GenericImgListProcAnnotator.action
new file mode 100644
index 0000000..d5d656f
--- /dev/null
+++ b/action/GenericImgListProcAnnotator.action
@@ -0,0 +1,30 @@
+#goal
+sensor_msgs/Image[] rgb
+sensor_msgs/Image[] depth
+string description
+
+---
+#result
+bool success
+string result_feedback
+
+# The array indices here point to the index of the input image 'rgb' and 'depth'
+
+# Optional: Define bounding_boxes for each of the inputted image
+sensor_msgs/RegionOfInterest[] bounding_boxes
+
+# Class IDs for each entry in rgb/depth
+int32[] class_ids
+
+# Class confidence for each entry in rgb/depth
+float32[] class_confidences
+
+# The best pose for each entry in rgb/depth
+geometry_msgs/Pose[] pose_results
+
+# Array-based string feedback when generating text for all detected objects etc.
+string[] descriptions
+
+---
+#feedback
+string feedback
\ No newline at end of file
-- 
GitLab