Skip to content

Commit f0ae527

Browse files
authored
Merge branch 'master' into feature/sensordata-system-time
Signed-off-by: Pierre R. Mai <pmai@pmsf.de>
2 parents d420291 + c9053e5 commit f0ae527

20 files changed

+414
-263
lines changed

.github/spelling_custom_words_en_US.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ abc
22
absteigen
33
adas
44
ADR
5+
affine
56
agbl
67
al
78
Allgemeine
@@ -244,6 +245,7 @@ openscenario
244245
optischen
245246
Ordnung
246247
osi
248+
OSI's
247249
osmp
248250
Ouml
249251
ouml

.github/workflows/protobuf.yml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ jobs:
4545
- name: Install Python Dependencies
4646
run: |
4747
python -m pip install --upgrade pip
48-
python -m pip install -r requirements_develop.txt
48+
python -m pip install build
49+
python -m pip install -r requirements_tests.txt
4950
5051
- name: Check black format
51-
run: black --check --diff .
52+
run: |
53+
black --check --diff .
5254
5355
- name: Install Doxygen
5456
run: sudo apt-get install doxygen graphviz
@@ -88,10 +90,14 @@ jobs:
8890
- name: Prepare C++ Build
8991
run: mkdir build
9092

91-
# Versioning
92-
- name: Get versioning
93+
- name: Add Development Version Suffix
94+
if: ${{ !startsWith(github.ref, 'refs/tags') }}
95+
run: |
96+
echo "VERSION_SUFFIX = .dev`date -u '+%Y%m%d%H%M%S'`" >> VERSION
97+
98+
- name: Get git Version
9399
id: get_version
94-
run: echo "VERSION=$(git describe --always)" >> $GITHUB_OUTPUT
100+
run: echo "VERSION=$(git describe --tags --always)" >> $GITHUB_OUTPUT
95101

96102
- name: Prepare Documentation Build
97103
run: |
@@ -108,7 +114,7 @@ jobs:
108114
run: cmake --build . --config Release -j 4
109115

110116
- name: Build Python
111-
run: python setup.py build && python setup.py sdist
117+
run: python -m build
112118

113119
- name: Install Python
114120
run: python -m pip install .
@@ -124,7 +130,14 @@ jobs:
124130
path: doc/html
125131
if-no-files-found: error
126132

127-
- name: deploy to gh-pages if push to master branch
133+
- name: Upload Python Distribution
134+
if: ${{ github.event_name == 'pull_request' }}
135+
uses: actions/upload-artifact@v4
136+
with:
137+
name: python-dist
138+
path: dist/
139+
140+
- name: Deploy to gh-pages if push to master branch
128141
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
129142
uses: peaceiris/actions-gh-pages@v3
130143
with:
@@ -148,7 +161,10 @@ jobs:
148161
python-version: '3.8'
149162

150163
- name: Install Python Dependencies
151-
run: python -m pip install --upgrade pip setuptools wheel pyyaml
164+
run: |
165+
python -m pip install --upgrade pip
166+
python -m pip install build
167+
python -m pip install -r requirements_tests.txt
152168
153169
- name: Cache Dependencies
154170
id: cache-depends
@@ -187,6 +203,11 @@ jobs:
187203
bash convert-to-proto3.sh
188204
rm *.pb2
189205
206+
- name: Add Development Version Suffix
207+
if: ${{ !startsWith(github.ref, 'refs/tags') }}
208+
run: |
209+
echo "VERSION_SUFFIX = .dev`date -u '+%Y%m%d%H%M%S'`" >> VERSION
210+
190211
- name: Configure C++ Build
191212
working-directory: build
192213
run: cmake ${{ env.PROTOBUF_VARIANT =='' && '-DCMAKE_CXX_STANDARD=17' }} ..
@@ -196,7 +217,7 @@ jobs:
196217
run: cmake --build . --config Release -j 4
197218

198219
- name: Build Python
199-
run: python setup.py build && python setup.py sdist
220+
run: python -m build
200221

201222
- name: Install Python
202223
run: python -m pip install .

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ build
2020
cmake_install.cmake
2121
install_manifest.txt
2222
osi_version.proto
23-
version.py
24-
pyproject.toml
2523

2624
compile_commands.json
2725

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include VERSION

doc/architecture/architecture_overview.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ endif::[]
77
OSI contains an object-based environment description that uses the message format of the https://github.com/protocolbuffers/protobuf/wiki[Protocol Buffer] library.
88
Google developed and maintains the Protocol Buffer library.
99
OSI defines top-level messages that are used to exchange data between separate models.
10-
Top-level messages define the `GroundTruth` interface, the `SensorData` interface, and – since OSI version 3.0.0 – the interfaces `SensorView`, `SensorViewConfiguration`, and `FeatureData`.
10+
Top-level messages define the `GroundTruth` interface, the `SensorData` interface, and – since OSI version 3.0.0 – the interfaces `SensorView` and `SensorViewConfiguration`.
11+
Further top-level messages that were added in later versions of OSI are `TrafficCommand`, `TrafficUpdate`, `MotionRequest`, and `StreamingUpdate`.
1112

1213
The following figure shows the interfaces and models involved in modeling a sensor.
1314

doc/architecture/feature_data.adoc

Lines changed: 0 additions & 9 deletions
This file was deleted.

doc/architecture/reference_points_coordinate_systems.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The global coordinate system is an inertial x/y/z-coordinate system.
1313
The origin is the global reference point that is determined by the environment simulation.
1414
This reference point may be derived from map data or other considerations.
1515
Global coordinates can be mapped to a geographic coordinate system via `osi3::GroundTruth::proj_string`.
16+
Note that before applying any PROJ transformations to global coordinates, the `osi3::GroundTruth::proj_frame_offset` must be applied.
1617

1718
Host vehicle coordinate system::
1819
The host vehicle coordinate system's origin is defined to be at the center of the rear axle of the host vehicle.

doc/architecture/sensor_data.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ They can be generated from `GroundTruth` messages, `SensorView` messages, `Featu
99
With the exception of feature data, all information regarding the environment is given with respect to the virtual sensor coordinate system.
1010
Feature data is given with respect to the physical sensor coordinate system.
1111
Sensor data can be used as input for an automated driving function, a sensor model simulating limited perception, or a sensor fusion model.
12+
13+
`SensorData` messages include `FeatureData` messages which contain detected features in the reference frame of a sensor.
14+
`FeatureData` messages are generated from `GroundTruth` messages.
15+
They serve, for example, as an input to sensor models simulating object detection or feature fusion models.

doc/open-simulation-interface_user_guide.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ include::./architecture/architecture_overview.adoc[leveloffset=+2]
1515

1616
include::./architecture/ground_truth.adoc[leveloffset=+3]
1717

18-
include::./architecture/feature_data.adoc[leveloffset=+3]
19-
2018
include::./architecture/sensor_view.adoc[leveloffset=+3]
2119

2220
include::./architecture/sensor_view_configuration.adoc[leveloffset=+3]

format/OSITrace.py

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)