Skip to content

Commit 5a04df2

Browse files
authored
Merge pull request #186 from OpenSimulationInterface/feature/DetectedLane_1
DetectedLane similar to other detected messages.
2 parents ba73472 + 03aae4b commit 5a04df2

File tree

1 file changed

+58
-28
lines changed

1 file changed

+58
-28
lines changed

osi_detectedlane.proto

Lines changed: 58 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ message DetectedLane
1616
// Specific ID of the detected lane as assigned by the sensor internally.
1717
// Need not match with \c #ground_truth_id IDs.
1818
//
19-
optional Identifier tracking_id = 2;
19+
optional Identifier tracking_id = 1;
2020

2121
// The ID of the original lane in the ground truth.
2222
// Multiple entries if the detected lane is a merge of multiple lanes in
@@ -25,33 +25,19 @@ message DetectedLane
2525
//
2626
// \note OSI uses singular instead of plural for repeated field names.
2727
//
28-
repeated Identifier ground_truth_id = 3;
29-
30-
// The amount of time that this detected object has been currently
31-
// observed/tracked.
32-
//
33-
// Unit: [s]
34-
//
35-
optional double age = 1000;
36-
37-
// The measurement state of the detected object.
38-
//
39-
optional MeasurementState measurement_state = 1001;
40-
41-
// The detected lane.
28+
repeated Identifier ground_truth_id = 2;
29+
30+
// The lane as detected by the sensor.
4231
//
43-
// \note IDs, which is referenced in this message, usually reference to
44-
// \c DetectedXXX::tracking_id IDs.
45-
//
46-
optional Lane lane = 4;
47-
32+
optional EstimatedLane lane = 3;
33+
4834
// The estimated probability that this lane really exists, not based on
4935
// history.
5036
//
5137
// \note Use as confidence measure where a low value means less confidence
5238
// and a high value indicates strong confidence.
5339
//
54-
optional double existence_probability = 5;
40+
optional double existence_probability = 4;
5541

5642
// A list of sensors which detected this detected entity.
5743
//
@@ -65,7 +51,51 @@ message DetectedLane
6551
//
6652
// \note OSI uses singular instead of plural for repeated field names.
6753
//
68-
repeated Identifier sensor_id = 6;
54+
repeated Identifier sensor_id = 5;
55+
56+
//
57+
// \brief Candidates for a detected lane as estimated by the sensor.
58+
//
59+
message EstimatedLane
60+
{
61+
// A list of candidates for this lane as estimated by the sensor.
62+
//
63+
// \note OSI uses singular instead of plural for repeated field names.
64+
//
65+
repeated CandidateLane candidate = 1;
66+
67+
//
68+
// \brief A candidate for a detected lane as estimated by the
69+
// sensor.
70+
//
71+
message CandidateLane
72+
{
73+
// The definition of one lane that defines this candidate.
74+
//
75+
// \note IDs, which are referenced in this message, usually
76+
// reference to \c DetectedXXX::tracking_id IDs.
77+
//
78+
optional Lane lane = 1;
79+
80+
// The estimated probability that this candidate is the true value.
81+
// The sum of all \c #probability must be one.
82+
//
83+
// Range: [0,1]
84+
//
85+
optional double probability = 2;
86+
87+
// The amount of time that this detected object has been currently
88+
// observed/tracked.
89+
//
90+
// Unit: [s]
91+
//
92+
optional double age = 3;
93+
94+
// The measurement state.
95+
//
96+
optional MeasurementState measurement_state = 4;
97+
}
98+
}
6999
}
70100

71101
//
@@ -76,26 +106,26 @@ message DetectedLaneBoundary
76106
// Specific ID of the detected lane boundary as assigned by the sensor
77107
// internally. Need not match with \c #ground_truth_id.
78108
//
79-
optional Identifier tracking_id = 2;
109+
optional Identifier tracking_id = 1;
80110

81111
// The ID of the original \c LaneBoundary in the ground truth.
82112
//
83113
// \note In case of a ghost \c LaneBoundary (no corresponding ground truth),
84114
// this field should be unset.
85115
//
86-
optional Identifier ground_truth_id = 3;
116+
optional Identifier ground_truth_id = 2;
87117

88118
// The lane boundary as detected by the sensor.
89119
//
90-
optional EstimatedLaneBoundary lane_boundary = 4;
120+
optional EstimatedLaneBoundary lane_boundary = 3;
91121

92122
// The estimated probability that this lane boundary really exists, not
93123
// based on history.
94124
//
95125
// \note Use as confidence measure where a low value means less confidence
96126
// and a high value indicates strong confidence.
97127
//
98-
optional double existence_probability = 6;
128+
optional double existence_probability = 4;
99129

100130
// A list of sensors which detected this detected entity.
101131
//
@@ -109,7 +139,7 @@ message DetectedLaneBoundary
109139
//
110140
// \note OSI uses singular instead of plural for repeated field names.
111141
//
112-
repeated Identifier sensor_id = 11;
142+
repeated Identifier sensor_id = 5;
113143

114144
//
115145
// \brief Candidates for a detected lane boundary as estimated by the
@@ -140,7 +170,7 @@ message DetectedLaneBoundary
140170
repeated double boundary_line_confidences = 3;
141171

142172
//
143-
// \brief A candidate for a detected traffic sign as estimated by the
173+
// \brief A candidate for a detected lane boundary as estimated by the
144174
// sensor.
145175
//
146176
message CandidateLaneBoundary

0 commit comments

Comments
 (0)