Skip to content

Commit 7831d29

Browse files
committed
feat: Add virtual detection area
Signed-off-by: Jonas <jonas.ruebsam@avl.com>
1 parent 2466fcb commit 7831d29

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

osi_common.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,3 +952,16 @@ message KeyValuePair
952952
//
953953
optional string value = 2;
954954
}
955+
956+
//
957+
// \brief Polygon in 3 dimensions
958+
//
959+
// A polygon in 3 dimensions which contains a list of vertices.
960+
// The vertices are required to lie in the same 2 dimensional plane.
961+
// The outer surface of the polygon is defined by a counter-clockwise ordering of the vertices
962+
// relative to the current viewpoint.
963+
//
964+
message Polygon3d
965+
{
966+
repeated Vector3d vertices = 1;
967+
}

osi_sensordata.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,23 @@ message SensorData
297297
// in cartesian coordinates.
298298
//
299299
optional LogicalDetectionData logical_detection_data = 27;
300+
301+
//
302+
// \brief Virtual detection area of a sensor
303+
//
304+
// The virtual detection area describes the are the sensor can see in a best case scenario
305+
// where no occlusion or other statistical effects are considered. It is described by a set
306+
// of polygons which represent the surface of the detection area.
307+
//
308+
message VirtualDetectionArea {
309+
repeated Polygon3d polygons = 1;
310+
}
311+
312+
// Virtual detection area of the sensordata
313+
//
314+
// The virtual detection of the corresponding sensor of the sensordata message
315+
//
316+
optional VirtualDetectionArea virtual_detection_area = 28;
317+
318+
300319
}

0 commit comments

Comments
 (0)