Skip to content
Snippets Groups Projects
Commit 425e7dbe authored by FrankR's avatar FrankR
Browse files

added OSM-extension protobuf specification

parent fdf267ad
No related branches found
No related tags found
No related merge requests found
syntax = "proto3";
package ipos.models;
message OSMOutputWrapper {
repeated OSMObject objects = 1;
}
message OSMExtInputWrapper {
repeated OSMMonitoringTarget monitoringTargets = 1;
}
message OSMMonitoringTarget {
string monitorintTaskId = 1;
string protocol = 2;
}
message OSMObject {
string id = 1;
string sensorId = 2;
string type = 3;
string sensorType = 4;
OSMPosition position = 5;
OSMOrientation orientation = 6;
string lastPosUpdate = 7; // https://en.wikipedia.org/wiki/ISO_8601
repeated OSMZoneDescriptor zoneDescriptors = 8; // contains information about all zones that the current position of this object belongs to
OSMExtractedAttributes extractedAttributes = 9;
}
message OSMPosition{
string refSystemId = 1; // e.g., "WGS84" if absolute position, "ROOT" for testcases or if specific absolute position is actually irrelevant
OSMPoint point = 2;
float accuracy = 3; // object is with 95% probability within x metres of this point (gaussian distribution)
}
message OSMPoint{
float x = 1; // pos in x direction in m
float y = 2; // pos in y direction in m
float z = 3; // pos in z direction in m (up)
}
message OSMOrientation{
float x = 1; // quaternion notation
float y = 2; // if the quaternion is (0,0,0,0)
float z = 3; // there is no orientation
float w = 4; // available
}
message OSMExtractedAttributes{
float batteryChargeLevel = 1;
repeated int32 loadedItems = 2;
repeated int32 errors = 3;
float theta = 4;
}
message OSMZoneDescriptor{
string zoneId = 1;
string notificationType = 2; // may be ExitNotification or EntryNotification
}
\ No newline at end of file
# OSM Protobuf Definition
This protobuf data model is a description of the messages sent to the OpenStreetMap-application ("frontend").
\ No newline at end of file
......@@ -14,7 +14,7 @@ message IposConfigWrapper { // wrapper-message for configuration-topic
message IposMonitoringWrapper {
repeated IposPositionEvent iposPositionEvents = 1;
repeated IposMsgRcvEvent iposMsgRcvEvent = 2;
repeated IposMsgRcvEvent iposMsgRcvEvents = 2;
}
message IposObjectConfig {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment