You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Reference to a related issue in the repository
1
+
#### Reference to a related issue in the repository
2
2
Add a reference to a related issue in the repository.
3
3
4
4
#### Add a description
@@ -10,14 +10,13 @@ What does it fix?
10
10
Is this a bug fix or a feature? Does it break any existing functionality or force me to update to a new version?
11
11
How has it been tested?
12
12
13
-
#### Mention a member
14
-
Add @mentions of the person or team responsible for reviewing proposed changes.
13
+
#### Take this checklist as orientation for yourself, if this PR is ready for the Change Control Board:
14
+
-[ ] My suggestion follows the [style and contributors guidelines](https://opensimulationinterface.github.io/osi-documentation/open-simulation-interface/doc/howtocontribute.html).
15
+
-[ ] I have taken care about the [documentation](https://opensimulationinterface.github.io/osi-documentation/open-simulation-interface/doc/commenting.html).
16
+
-[ ] I have done the [DCO signoff](https://opensimulationinterface.github.io/osi-documentation/open-simulation-interface/doc/howtocontribute.html#developer-certification-of-origin-dco).
17
+
-[ ] My changes generate no errors when passing CI tests.
18
+
-[ ] I have successfully implemented and tested my fix/feature locally.
19
+
-[ ] Appropriate reviewer(s) are assigned.
15
20
16
-
#### Check the checklist
17
-
18
-
-[ ] My code and comments follow the [style guidelines](https://opensimulationinterface.github.io/osi-documentation/osi/commenting.html) and [contributors guidelines](https://opensimulationinterface.github.io/osi-documentation/osi/howtocontribute.html) of this project.
19
-
-[ ] I have performed a self-review of my own code.
20
-
-[ ] I have made corresponding changes to the [documentation](https://github.com/OpenSimulationInterface/osi-documentation).
21
-
-[ ] My changes generate no new warnings.
22
-
-[ ] I have added tests that prove my fix is effective or that my feature works.
23
-
-[ ] New and existing unit tests / travis ci pass locally with my changes.
21
+
If you can’t check all of them, please explain why.
22
+
If all boxes are checked or commented and you have achieved at least one positive review, you can assign the label ReadyForCCBReview!
Copy file name to clipboardExpand all lines: README.md
+55-48Lines changed: 55 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,67 +15,74 @@ For more information on OSI see the [official documentation](https://opensimulat
15
15
[1] Hanke, T., Hirsenkorn, N., van-Driesten, C., Garcia-Ramos, P., Schiementz, M., Schneider, S. & Biebl, E. (2017, February 03). *A generic interface for the environment perception of automated driving functions in virtual scenarios.* Retrieved January 25, 2020, from https://www.hot.ei.tum.de/forschung/automotive-veroeffentlichungen/
16
16
17
17
## Usage
18
-
##### Example of writing and reading an OSI message in `Python`
18
+
##### Example of generating OSI messages in `Python`
19
19
```python
20
+
# generate_osi_messages.py
20
21
from osi3.osi_sensorview_pb2 import SensorView
21
-
from osi3.osi_sensordata_pb2 import SensorData
22
+
import struct
23
+
24
+
NANO_INCREMENT=10000000
25
+
MOVING_OBJECT_LENGTH=5
26
+
MOVING_OBJECT_WIDTH=2
27
+
MOVING_OBJECT_HEIGHT=1
22
28
23
29
defmain():
24
-
"""Initialize SensorView and SensorData"""
30
+
"""Initialize SensorView"""
31
+
f =open("sv_330_361_1000_movingobject.osi", "ab")
25
32
sensorview = SensorView()
26
-
sensordata = SensorData()
27
-
28
-
"""Clear SensorData"""
29
-
sensordata.Clear()
30
33
31
-
"""Get boundary line attributes from SensorView"""
To run the script execute the following command in the terminal:
66
80
```bash
67
-
lane_boundary {
68
-
boundary_line {
69
-
position {
70
-
x: 1699.2
71
-
y: 100.16
72
-
z: 0.0
73
-
}
74
-
width: 0.13
75
-
height: 0.0
76
-
}
77
-
}
81
+
python3 generate_osi_messages.py
78
82
```
83
+
84
+
This will output an osi file (`sv_330_361_1000_movingobject.osi`) which can be visualized and played back by the [osi-visualizer](https://github.com/OpenSimulationInterface/osi-visualizer).
85
+
79
86
See Google's documentation for more tutorials on how to use protocol buffers with [Python](https://developers.google.com/protocol-buffers/docs/pythontutorial) or [C++](https://developers.google.com/protocol-buffers/docs/cpptutorial).
Copy file name to clipboardExpand all lines: osi_detectedobject.proto
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -159,6 +159,8 @@ message DetectedMovingObject
159
159
//
160
160
// \note The bounding box does NOT includes mirrors for vehicles.
161
161
// \note The parent frame of \c base is the sensor's vehicle frame.
162
+
// \note The height includes the ground_clearance. It always goes from the
163
+
// top to the ground.
162
164
//
163
165
optionalBaseMovingbase=2;
164
166
@@ -188,6 +190,9 @@ message DetectedMovingObject
188
190
//
189
191
// Percentage value of the object width in the corresponding lane.
190
192
//
193
+
// \note DEPRECATED: Use assigned_lane_percentage in MovingObjectClassification
194
+
// instead.
195
+
//
191
196
// \rules
192
197
// is_greater_than_or_equal_to: 0
193
198
// is_less_than_or_equal_to: 100
@@ -199,6 +204,9 @@ message DetectedMovingObject
199
204
//
200
205
// Percentage value of the object width in the corresponding lane.
201
206
//
207
+
// \note DEPRECATED: Use assigned_lane_percentage in MovingObjectClassification
208
+
// instead.
209
+
//
202
210
// \rules
203
211
// is_greater_than_or_equal_to: 0
204
212
// is_less_than_or_equal_to: 100
@@ -307,6 +315,10 @@ message DetectedMovingObject
307
315
// [1] Patton, K. T. & Thibodeau, G. A. (2015). <em>Anatomy & Physiology</em>. 9th Edition. Elsevier. Missouri, U.S.A. ISBN 978-0-323-34139-4. p. 1229.
308
316
//
309
317
optionalOrientation3dupper_body_pose=5;
318
+
319
+
// Specific information about the classification of a moving object.
0 commit comments