From 8cb1c31dccc09b1a500959b8eb1b65a9ca2f2b6a Mon Sep 17 00:00:00 2001
From: swittl <simon.wittl@th-deg.de>
Date: Fri, 21 Jun 2024 16:24:41 +0200
Subject: [PATCH] fix roi

---
 rq_controller.egg-info/SOURCES.txt        | 1 +
 rq_controller/common/region_of_intrest.py | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/rq_controller.egg-info/SOURCES.txt b/rq_controller.egg-info/SOURCES.txt
index 9bc966b..14660b4 100644
--- a/rq_controller.egg-info/SOURCES.txt
+++ b/rq_controller.egg-info/SOURCES.txt
@@ -4,6 +4,7 @@ setup.cfg
 setup.py
 resource/rq_controller
 rq_controller/__init__.py
+rq_controller/rq_workflow_client.py
 rq_controller.egg-info/PKG-INFO
 rq_controller.egg-info/SOURCES.txt
 rq_controller.egg-info/dependency_links.txt
diff --git a/rq_controller/common/region_of_intrest.py b/rq_controller/common/region_of_intrest.py
index 8f07a99..a3dfcc4 100644
--- a/rq_controller/common/region_of_intrest.py
+++ b/rq_controller/common/region_of_intrest.py
@@ -47,6 +47,7 @@ class PyRegionOfIntrest():
     
     def as_message(self) -> RegionOfIntrest:
         message = RegionOfIntrest()
+        roi_list = list()
 
         for i in range(self.number_of_rois):
             roi = Marker()
@@ -60,8 +61,10 @@ class PyRegionOfIntrest():
             roi.scale.z = self.dimensions_mm[i][2]
 
             roi.header.frame_id = self.frame_id
+
+            roi_list.append(roi)            
         
-        message.region_of_intrest_stack.markers = list(message)
+        message.region_of_intrest_stack.markers = roi_list
 
         message.resolution.x = self.resolution_mm[0]
         message.resolution.x = self.resolution_mm[1]
-- 
GitLab