Skip to content
Snippets Groups Projects
Commit 452e7d8d authored by Johannes Mey's avatar Johannes Mey
Browse files

define fields as optional instead of two different types

parent f5fc4fb6
No related branches found
No related tags found
No related merge requests found
...@@ -2,14 +2,7 @@ syntax = "proto3"; ...@@ -2,14 +2,7 @@ syntax = "proto3";
message IposConfig { message IposConfig {
repeated IposFrame frame = 1; repeated IposFrame frame = 1;
repeated IposObject object = 2; // an object must be either in this list repeated IposObject object = 2;
repeated IposObjectConfig objectConfig = 3; // or in this list, not in both
}
message IposObjectConfig {
string id = 1; // unique for each object, but there may be multiple positioning sensors for that object
string sensorId = 2; // unique (each sensor localizes a single object)
string type = 3; // CeTI will send BOX,BIN,ZONE,ROBOT,HUMAN,OTHER
} }
message IposPositionUpdate { message IposPositionUpdate {
...@@ -17,12 +10,17 @@ message IposPositionUpdate { ...@@ -17,12 +10,17 @@ message IposPositionUpdate {
} }
message IposObject { message IposObject {
// required:
string id = 1; // unique for each object, but there may be multiple sensors string id = 1; // unique for each object, but there may be multiple sensors
string sensorId = 2; // unique string sensorId = 2; // unique
string type = 3; // Applications may send BOX,BIN,ZONE,ROBOT,HUMAN,OTHER string type = 3; // Applications may send BOX,BIN,ZONE,ROBOT,HUMAN,OTHER
// optional:
IposRelativePosition position = 4; IposRelativePosition position = 4;
IposSimpleOrientation orientation = 5; IposSimpleOrientation orientation = 5;
string lastPosUpdate = 6; // https://en.wikipedia.org/wiki/ISO_8601 string lastPosUpdate = 6; // https://en.wikipedia.org/wiki/ISO_8601
} }
message IposFrame { message IposFrame {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment