Skip to content

Commit f9de56c

Browse files
authored
Merge pull request #781 from OpenSimulationInterface/feature/virtual-detection-area
feat: Add virtual detection area
2 parents c60c72a + 14593d6 commit f9de56c

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

osi_common.proto

+12
Original file line numberDiff line numberDiff line change
@@ -1089,3 +1089,15 @@ message KeyValuePair
10891089
//
10901090
optional string value = 2;
10911091
}
1092+
1093+
//
1094+
// \brief Polygon in 3 dimensions
1095+
//
1096+
// A polygon in 3 dimensions which contains a list of vertices.
1097+
//
1098+
message Polygon3d
1099+
{
1100+
// A list of vertices
1101+
//
1102+
repeated Vector3d vertex = 1;
1103+
}

osi_sensordata.proto

+23
Original file line numberDiff line numberDiff line change
@@ -313,4 +313,27 @@ message SensorData
313313
// in cartesian coordinates.
314314
//
315315
optional LogicalDetectionData logical_detection_data = 27;
316+
317+
//
318+
// \brief Virtual detection area of a sensor
319+
//
320+
// The virtual detection area describes the nominal area the sensor is capable of covering
321+
// in its current operating mode, without taking occlusion or other statistical effects into account.
322+
// This information can be used for visualization or other development purposes as a rough guide
323+
// to nominal sensor performance.
324+
//
325+
// It is described by a set of polygons in cartesian coordinates as a pragmatic approximation for
326+
// the rough shapes expected.
327+
//
328+
message VirtualDetectionArea
329+
{
330+
// List of polygons. Each polygon represents a surface of the virtual detection area
331+
// and is given with respect to the virtual sensor coordinate system.
332+
//
333+
repeated Polygon3d polygon = 1;
334+
}
335+
336+
// Virtual detection area of the sensor
337+
//
338+
optional VirtualDetectionArea virtual_detection_area = 28;
316339
}

0 commit comments

Comments
 (0)