Skip to content

Commit fa69125

Browse files
authored
Merge branch 'master' into Suggestion/StationaryObject-as-Landmark
2 parents 63b1921 + 5a04df2 commit fa69125

24 files changed

+630
-594
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ cache:
1515

1616
# Handle dependencies in separate directory.
1717
before_install:
18+
- TESTINST_DIR="${HOME}/dummy"
19+
- mkdir -p "${TESTINST_DIR}"
1820
- DEPS_DIR="${HOME}/deps"
1921
- mkdir -p "${DEPS_DIR}"
2022
- cd "${DEPS_DIR}"
@@ -40,9 +42,11 @@ before_script:
4042
script:
4143
- mkdir -p build
4244
- cd build
43-
- cmake -D CMAKE_PREFIX_PATH:PATH=${DEPS_DIR}/protobuf/install ..
45+
- cmake -D CMAKE_PREFIX_PATH:PATH=${DEPS_DIR}/protobuf/install -D CMAKE_INSTALL_PREFIX:PATH=${TESTINST_DIR} ..
4446
- cmake --build .
4547
- cd ..
4648
- python test_cases.py
4749
- python setup.py build
4850
- python setup.py sdist
51+
- cd build
52+
- cmake --build . --target install

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ foreach(LINE ${VERSION_CONTENTS})
3939
endforeach()
4040
set(OPEN_SIMULATION_INTERFACE_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
4141

42+
set(INSTALL_LIB_DIR ${INSTALL_LIB_DIR}/osi${VERSION_MAJOR})
43+
set(INSTALL_INCLUDE_DIR ${INSTALL_INCLUDE_DIR}/osi${VERSION_MAJOR})
44+
4245
configure_file(osi_version.proto.in ${CMAKE_CURRENT_SOURCE_DIR}/osi_version.proto)
4346

4447
find_package(Protobuf 2.6.1 REQUIRED)
@@ -105,7 +108,6 @@ install(TARGETS ${PROJECT_NAME}_pic
105108
EXPORT ${PROJECT_NAME}_targets
106109
ARCHIVE DESTINATION "${INSTALL_LIB_DIR}" COMPONENT lib)
107110

108-
109111
add_library(${PROJECT_NAME} SHARED $<TARGET_OBJECTS:${PROJECT_NAME}_obj>)
110112
target_include_directories(${PROJECT_NAME}
111113
PUBLIC
@@ -141,7 +143,7 @@ install(FILES
141143

142144
# Header files
143145
install(FILES ${PROTO_HEADERS}
144-
DESTINATION "${CMAKE_INSTALL_PREFIX}/${INSTALL_INCLUDE_DIR}")
146+
DESTINATION "${INSTALL_INCLUDE_DIR}")
145147

146148
# Install the export set for use with the install-tree
147149
install(EXPORT ${PROJECT_NAME}_targets

VERSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION_MAJOR = 2
2-
VERSION_MINOR = 2
3-
VERSION_PATCH = 0
1+
VERSION_MAJOR = 3
2+
VERSION_MINOR = 0
3+
VERSION_PATCH = 0

osi_common.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto2";
22

33
option optimize_for = SPEED;
44

5-
package osi;
5+
package osi3;
66

77

88
//

osi_datarecording.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ option optimize_for = SPEED;
44

55
import "osi_sensordata.proto";
66

7-
package osi;
7+
package osi3;
88

99
//
1010
// \brief (Time) Series of \c SensorData messages that may be used for data

osi_detectedlandmark.proto

Lines changed: 2 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "osi_common.proto";
66
import "osi_landmark.proto";
77
import "osi_detectedobject.proto";
88

9-
package osi;
9+
package osi3;
1010

1111
//
1212
// \brief A traffic sign in the environment as detected by the sensor.
@@ -42,12 +42,6 @@ message DetectedTrafficSign
4242
//
4343
optional double existence_probability = 7;
4444

45-
// Links to the corresponding lanes.
46-
//
47-
// \note OSI uses singular instead of plural for repeated field names.
48-
//
49-
repeated RelevantLane relevant_lane_id = 10;
50-
5145
// A list of sensors which detected this detected entity.
5246
//
5347
// If \c SensorData has detected entities and all detections are missing,
@@ -60,7 +54,7 @@ message DetectedTrafficSign
6054
//
6155
// \note OSI uses singular instead of plural for repeated field names.
6256
//
63-
repeated Identifier sensor_id = 11;
57+
repeated Identifier sensor_id = 8;
6458

6559
//
6660
// \brief Candidates for a detected sign as estimated by the sensor.
@@ -262,18 +256,6 @@ message DetectedTrafficLight
262256
//
263257
optional EstimatedTrafficLight traffic_light = 4;
264258

265-
// Determines for which directions the traffic light applies.
266-
//
267-
// \note OSI uses singular instead of plural for repeated field names.
268-
//
269-
repeated RelevantDirection relevant_direction = 6;
270-
271-
// Links to the corresponding lanes.
272-
//
273-
// \note OSI uses singular instead of plural for repeated field names.
274-
//
275-
repeated RelevantLane relevant_lane = 7;
276-
277259
// The estimated probability that this traffic light really exists, not
278260
// based on history.
279261
//
@@ -346,62 +328,6 @@ message DetectedTrafficLight
346328
optional MeasurementState measurement_state = 4;
347329
}
348330
}
349-
350-
//
351-
// \brief Further specifies the relevant directions of the traffic light.
352-
//
353-
message RelevantDirection
354-
{
355-
// The direction the traffic light corresponds to.
356-
//
357-
optional Direction direction = 1;
358-
359-
// Relevance probability.
360-
//
361-
// Range: [0,1]
362-
//
363-
optional double relevance_probability = 2;
364-
365-
// Specifies the different directions.
366-
//
367-
enum Direction
368-
{
369-
// Direction is unknown (must not be used in ground truth).
370-
//
371-
DIRECTION_UNKNOWN = 0;
372-
373-
// Other (unspecified but known) direction.
374-
//
375-
DIRECTION_OTHER = 1;
376-
377-
// Direction is straight.
378-
//
379-
DIRECTION_STRAIGHT = 2;
380-
381-
// Direction is left.
382-
//
383-
DIRECTION_LEFT = 3;
384-
385-
// Direction is right.
386-
//
387-
DIRECTION_RIGHT = 4;
388-
}
389-
}
390-
}
391-
392-
//
393-
// \brief Further specifies the relevant lane of a detected object.
394-
//
395-
message RelevantLane
396-
{
397-
// Tracking ID of the lane segment.
398-
//
399-
optional Identifier lane_id = 1;
400-
401-
// Relevance probability.
402-
//
403-
// Range: [0,1]
404-
optional double relevance_probability = 2;
405331
}
406332

407333
//
@@ -432,12 +358,6 @@ message DetectedRoadMarking
432358
//
433359
optional double existence_probability = 5;
434360

435-
// Links to the corresponding lanes.
436-
//
437-
// \note OSI uses singular instead of plural for repeated field names.
438-
//
439-
repeated RelevantLane relevant_lane = 6;
440-
441361
// A list of sensors which detected this detected entity.
442362
//
443363
// If \c SensorData has detected entities and all detections are missing,

osi_detectedlane.proto

Lines changed: 59 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "osi_common.proto";
66
import "osi_lane.proto";
77
import "osi_detectedobject.proto";
88

9-
package osi;
9+
package osi3;
1010

1111
//
1212
// \brief A lane segment as detected by the sensor.
@@ -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

osi_detectedobject.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import "osi_modelinternal.proto";
77
import "osi_object.proto";
88
import "osi_sensorspecific.proto";
99

10-
package osi;
10+
package osi3;
1111

1212
//
1313
// \brief Object in the environment as detected and perceived by the sensor.

osi_detectedoccupant.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "osi_common.proto";
66
import "osi_occupant.proto";
77
import "osi_detectedobject.proto";
88

9-
package osi;
9+
package osi3;
1010

1111
//
1212
// \brief A vehicle occupant as detected and perceived by an interior sensor.

osi_environment.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto2";
22

33
option optimize_for = SPEED;
44

5-
package osi;
5+
package osi3;
66

77
//
88
// \brief The conditions of the environment.

0 commit comments

Comments
 (0)