From 0097f3fe5a3c9e0017b3d9a0b2f5ca07fa47981a Mon Sep 17 00:00:00 2001
From: Frank Rohde <frank.rohde@tu-dresden.de>
Date: Thu, 14 Oct 2021 20:58:52 +0200
Subject: [PATCH] - added ZoneDescriptors to IposObject - added
 IposQueryRequest - added message IposQueryResponse

---
 interfaces/SimpleScene/SimpleScene.proto | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/interfaces/SimpleScene/SimpleScene.proto b/interfaces/SimpleScene/SimpleScene.proto
index 45040db..5bc13ae 100644
--- a/interfaces/SimpleScene/SimpleScene.proto
+++ b/interfaces/SimpleScene/SimpleScene.proto
@@ -9,6 +9,7 @@ message IposConfigWrapper { // wrapper-message for configuration-topic
   repeated POI pois = 4;
   repeated RefSystem refSystems = 5;
   repeated IposMonitoringRequest monitoringRequests = 6;
+  repeated IposQueryRequest queryRequests = 7;
 }
 
 message IposObjectConfig {
@@ -22,12 +23,11 @@ message IposObjectConfig {
 message IposPositionEvent {
   repeated IposObject object = 1;
   string type = 2; // deprecated may be ExitNotification or EntryNotification
-  // repeated IposZoneDescriptor zoneDescriptors = 2; // contains information about all zones that this position belongs to
 }
 
 message IposZoneDescriptor {
   string zoneId = 1;
-  string type = 2; // may be ExitNotification or EntryNotification
+  string notificationType = 2; // may be ExitNotification or EntryNotification
 }
 
 message IposObject {
@@ -38,6 +38,7 @@ message IposObject {
   IposPosition position = 5;
   IposSimpleOrientation orientation = 6;
   string lastPosUpdate = 7; // https://en.wikipedia.org/wiki/ISO_8601
+  repeated IposZoneDescriptor zoneDescriptors = 8; // contains information about all zones that the current position of this object belongs to
 }
 
 message IposFrameConfig {
@@ -71,6 +72,15 @@ message IposMonitoringResponse {
   string status = 2; // success- or error-Message
 }
 
+message IposQueryRequest {
+  string trackingTaskId = 1; // temporal solution: each monitoringRequest causes the system to track the monitored objects. The monitoringTaskId equals the trackingTaskId
+}
+
+message IposQueryResponse {
+  string trackingTaskId = 1;
+  repeated IposObject objects = 2;
+}
+
 message IposPosition {
   string refSystemId = 1; // e.g., "WGS84" if absolute position, "ROOT" for testcases or if specific absolute position is actually irrelevant
   IposPoint3D point = 2;
-- 
GitLab