Skip to content

Commit f762dbf

Browse files
authored
Merge pull request #160 from OpenSimulationInterface/update/traffic_light
Replacing semantic Traffic Lights with Traffic Light Bulbs (issue #70)
2 parents 1aad35f + dd19945 commit f762dbf

File tree

2 files changed

+179
-158
lines changed

2 files changed

+179
-158
lines changed

osi_detectedlandmark.proto

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ message DetectedTrafficSign
4848
// The measurement state.
4949
//
5050
optional MeasurementState measurement_state = 8;
51-
51+
5252
// The root mean squared error of the base parameters of the detected
5353
// traffic sign.
5454
//
@@ -137,8 +137,8 @@ message DetectedTrafficSign
137137
message CandidateSign
138138
{
139139
// The definition of the candidate's properties.
140-
// The sign.id values of all \c CandidateSign within one
141-
// \c DetectedTrafficSign correspond to the tracking ID and must be identical.
140+
// The sign.id values of all CandidateSigns within one DetectedTrafficSign
141+
// correspond to the tracking ID and must be identical.
142142
//
143143
optional TrafficSign sign = 1;
144144

@@ -192,35 +192,36 @@ message DetectedTrafficLight
192192
//
193193
optional Identifier ground_truth_id = 3;
194194

195-
// Description of the detected traffic light.
195+
// A list of candidates for this traffic light as estimated by the sensor.
196+
//
197+
repeated CandidateTrafficLight candidate_traffic_light = 4;
198+
199+
// The root mean squared error of the base parameters of the detected
200+
// traffic light's geometry. TrafficLight::base have to be identical for all
201+
// \c DetectedTrafficLight::candidate_traffic_light traffic lights.
196202
//
197-
optional TrafficLight traffic_light = 4;
203+
optional BaseStationary rmse = 5;
198204

199205
// Determines for which directions the traffic light applies.
200206
//
201-
repeated RelevantDirection relevant_direction = 5;
207+
repeated RelevantDirection relevant_direction = 6;
202208

203209
// Links to the corresponding lanes.
204210
//
205-
repeated RelevantLane relevant_lane = 6;
211+
repeated RelevantLane relevant_lane = 7;
206212

207213
// The estimated probability that this traffic light really exists, not
208214
// based on history.
209215
//
210216
// \note Use as confidence measure where a low value means less confidence
211217
// and a high value indicates strong confidence.
212218
//
213-
optional double existence_probability = 7;
219+
optional double existence_probability = 8;
214220

215221
// The measurement state.
216222
//
217-
optional MeasurementState measurement_state = 8;
223+
optional MeasurementState measurement_state = 9;
218224

219-
// The root mean squared error of the base parameters of the detected
220-
// traffic light.
221-
//
222-
optional BaseStationary rmse = 9;
223-
224225
// A list of sensors which detected this detected entity.
225226
//
226227
// If SensorData has detected entities and all detections are missing, then
@@ -272,6 +273,22 @@ message DetectedTrafficLight
272273
}
273274
}
274275

276+
//
277+
// \brief A candidate for (a) detected traffic light(s) as estimated by the
278+
// sensor.
279+
message CandidateTrafficLight
280+
{
281+
// The definition of one traffic light that define this candidate.
282+
//
283+
optional TrafficLight traffic_light = 1;
284+
285+
// The estimated probability that this candidate is the true value.
286+
// Range [0,1].
287+
// The sum of all candidate_probabilities must be one.
288+
//
289+
optional double candidate_probability = 2;
290+
}
291+
275292
//
276293
// \brief Further specifies the relevant lane of a detected object.
277294
//

0 commit comments

Comments
 (0)