Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPATEM/MAPEM Support #28

Merged
merged 126 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from 122 commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
4ab9f3d
add submodule for mapem and spatem
lreiher Nov 5, 2023
7354309
add external dependency dsrc module for spatem, mapem
lreiher Nov 9, 2023
3488933
enable spatem coding generation
lreiher Nov 9, 2023
4412d52
add launch configs for all spatem generation steps based on raw asn
lreiher Nov 9, 2023
ed66c28
fix code generation to successfully generate spatem msgs and conversion
lreiher Nov 9, 2023
d15464e
add empty coding, msgs, conversion packages for spatem
lreiher Nov 9, 2023
920e14e
add first compilable spatem msgs
lreiher Nov 9, 2023
54068d0
restore unmodified dsrc asn module and add patched version along with…
lreiher Nov 9, 2023
97d9108
add script for applying patches to raw asn1 files
lreiher Nov 9, 2023
ee685c5
Merge branch 'main' into feature/spatem-mapem
lreiher Nov 9, 2023
4afe79b
add patching script to github workflow
lreiher Nov 9, 2023
a75b7d4
use fillabs asn1c fork
jpbusch Nov 10, 2023
36b48f7
temporary change path of image in asn1ToC.py
jpbusch Nov 10, 2023
c98deca
add spatem support to etsi_its_conversion node
lreiher Nov 10, 2023
b796790
add temporary hack to reduce spatem asn1 files
lreiher Nov 10, 2023
651891c
generate etsi_its_spatem_coding on reduced defs
lreiher Nov 10, 2023
3f9e2f5
regenerate etsi_its_spatem_msgs on reduced defs
lreiher Nov 10, 2023
29763f3
generate etsi_its_spatem_conversion to get first compilable etsi_its_…
lreiher Nov 10, 2023
07ad9a3
manually handle dependencies of object-sets when reducing asn1
lreiher Nov 16, 2023
d12849b
fix field naming and raw parsing in ros msg
lreiher Nov 16, 2023
6087959
generate mapem
lreiher Nov 16, 2023
b4efe88
add spatem/mapem to gitlab ci
lreiher Nov 16, 2023
bf08158
commit missing update of spatem conversion functions
lreiher Nov 21, 2023
0e770cc
fix misplaced CMakeLists for mapem msgs
lreiher Nov 21, 2023
2e18cc6
add mapem support to converter
lreiher Nov 22, 2023
2a12458
fix message files in etsi_its_mapem_msgs
lreiher Nov 22, 2023
ad8e40e
make mapem conversion functions compile somehow lol
lreiher Dec 1, 2023
4ebc0c9
fix typo in converter
lreiher Dec 1, 2023
523290f
regenerate mapem msgs and conversion headers
lreiher Dec 1, 2023
fe7d881
revert unwanted change in converter
lreiher Dec 1, 2023
5f8b7ab
fix yet another typo in converter
lreiher Dec 1, 2023
98bac08
refactor converter.cpp
lreiher Dec 3, 2023
c4b5c52
add param to choose which types to convert in converter node
lreiher Dec 4, 2023
c50145c
refactor ros converter callbacks into single templated function
lreiher Dec 4, 2023
03e5d9b
refactor converter.cpp udp2ros
lreiher Dec 4, 2023
ba35f14
fix ros1 implementation of converter
lreiher Dec 4, 2023
9a7586e
regenerate spatem msgs and conversions
lreiher Dec 4, 2023
2b7fad9
Merge remote-tracking branch 'gitlab/improvement/asn1c-update' into f…
lreiher Dec 5, 2023
fb5f2c7
fix bug in init of vector of known types
lreiher Dec 7, 2023
0e777e6
fix compilation erros for for ros1
lreiher Dec 14, 2023
076588e
Merge branch 'main' into feature/spatem-mapem
lreiher Dec 14, 2023
f6e263c
satisfy package conventions after main merge
lreiher Dec 14, 2023
43cf44f
stop reducing spatem/mapem and download external modules
lreiher Dec 14, 2023
b0799f9
regenerate cam/denm_coding after switch to fillabs/asn1c
lreiher Dec 14, 2023
8724b5c
fix encoding (latin1 to utf8) of one external file
lreiher Dec 14, 2023
5c5df12
regenerate spatem/mapem with non-reduced defs
lreiher Dec 14, 2023
9cc2abf
ignore rosbags
lreiher Dec 20, 2023
be4bdaa
Merge branch 'main' into feature/spatem-mapem
lreiher Mar 14, 2024
490ac6d
try to fix ci after main merge
lreiher Mar 14, 2024
49ea823
test ci
lreiher Mar 14, 2024
d747945
upgrade asn1c docker image to ghcr
lreiher Apr 19, 2024
b5a855b
fix all ci coding jobs
lreiher Apr 19, 2024
a947ec0
regenerate spatem/mapem coding
lreiher Apr 19, 2024
c074b04
regenerate spatem/mapem msgs
lreiher Apr 19, 2024
32da622
update todo list
lreiher Apr 19, 2024
0bf4bc8
remove existing files in ci before codegen to catch leftover files
lreiher Apr 19, 2024
d1ea67f
regenerate spatem/mapem conversion without regionalextension suffix
lreiher Apr 19, 2024
bbb4add
restore conversion node from 9cc2abff
lreiher Apr 19, 2024
1ce5c3c
fix typo codegen ci for conversion functions
lreiher Apr 26, 2024
3ff4b5f
add is_ts103301 submodule
lreiher Jul 10, 2024
5393547
add spatem/mapem coding launch job
lreiher Jul 10, 2024
60462c5
add spatem/mapem to readme
lreiher Jul 10, 2024
80a6e16
add launch configs for spatem/mapem msgs and conversion
lreiher Jul 10, 2024
c13a88a
tmp to readme
lreiher Jul 10, 2024
75767d7
generate etsi_its_mapem_ts_coding
lreiher Jul 10, 2024
a3deabb
generate etsi_its_spatem_ts_coding
lreiher Jul 10, 2024
06a9e90
Merge branch 'feature/spatem-mapem' into spatem/mapem
lreiher Jul 10, 2024
30f64b8
Merge branch 'spatem/mapem' into feature/spatem-mapem
lreiher Jul 10, 2024
c98324c
Merge branch 'main' into feature/spatem-mapem
lreiher Aug 22, 2024
282b629
add task to auto-download external dependencies for is_ts103301
lreiher Sep 2, 2024
6fe8b83
patch invalid characters in external is dependency
lreiher Sep 16, 2024
a3f24e7
test bit string handling in rust generation to fix spatem/mapem gener…
lreiher Sep 16, 2024
f3f68b9
regenerate spatem msgs and conversion
lreiher Sep 16, 2024
0035141
regenerate mapem msgs and conversion
lreiher Sep 16, 2024
c3e2a77
set up mapem/spatem packages with xml and cmakelists
lreiher Sep 17, 2024
1855468
add mapem/spatem to readme
lreiher Sep 17, 2024
8633eb7
generate separate .msg files for inner types in choice and sequence
lreiher Sep 18, 2024
917c37c
fix handling of asn-types with dashes like "XYZ-addGrpC"
lreiher Sep 18, 2024
4029a8d
filtered out Reg .msg / commented out Regional Extension Types
Sep 26, 2024
5835ea4
changed guard/include positions
Sep 27, 2024
480f211
Added Mapem/Spatem to pipeline
Sep 30, 2024
6d82257
Converter.cpp / Converter.hpp Support for spatem_ts / mapem_ts
Sep 30, 2024
d791a11
added full spatem / mapem pipeline support
Sep 30, 2024
9100789
test if pipeline for coding works
Sep 30, 2024
9b83153
includes and guards are still "switched"
Sep 30, 2024
b9eca3a
added manual changes to guards in includes and added some messages th…
Sep 30, 2024
43aa0de
some more changes
Sep 30, 2024
1fc9119
combine download and patch vscode task
jpbusch Nov 19, 2024
94b587c
Merge branch 'main' into feature/spatem-mapem
jpbusch Nov 19, 2024
39febfb
post-reduce MAPEM and SPATEM
jpbusch Nov 19, 2024
bc1548c
remove unecessary MAPEM coding files (regenerate)
jpbusch Nov 19, 2024
09b4832
temporary remove generated MAPEM / SPATEM files for better git diff
jpbusch Nov 20, 2024
62c6984
update and align codegen-py to current rust implementation
jpbusch Nov 21, 2024
bf19860
bring back codegen-py in vscode launch file
jpbusch Nov 21, 2024
004298a
currently not handle regional extension members
jpbusch Nov 22, 2024
abceeba
fix prefix in conversion template
jpbusch Nov 22, 2024
8616ead
add comments from asn file to msg files
jpbusch Nov 22, 2024
040b3c3
bring back codegen-py in CI (except CPM)
jpbusch Nov 22, 2024
781fa31
regenerate CAM msgs and conversion with codegen-py
jpbusch Nov 22, 2024
820b1bf
regenerate CAM TS msgs and conversion with codegen-py
jpbusch Nov 22, 2024
d7f6be9
regenerate DENM msgs and conversion with codegen-py
jpbusch Nov 22, 2024
883ad81
regenerate VAM TS msgs and conversion with codegen-py
jpbusch Nov 22, 2024
18681e0
generate MAPEM files with codegen-py
jpbusch Nov 22, 2024
bbcc37e
generate SPATEM files with codegen-py
jpbusch Nov 22, 2024
6ff22b2
add manual patch for SPATEM/MAPEM coding
jpbusch Nov 22, 2024
392f525
bring back SPATEM / MAPEM support to conversion node
jpbusch Nov 22, 2024
e24a81d
fix typo in conversion node for ROS 1
jpbusch Nov 23, 2024
58ac1b3
add SPATEM / MAPEM to github ci
jpbusch Nov 23, 2024
6332d95
fix gitlab ci
jpbusch Nov 23, 2024
fe5b6aa
add missing download script to github ci
jpbusch Nov 23, 2024
68dfcd3
improve comments and license in msgs / conversion files
jpbusch Nov 25, 2024
b5451eb
get VamParameters comments
jpbusch Nov 25, 2024
84709ca
fix constants (SIZEs, DEFAULTs) in msgs
jpbusch Nov 25, 2024
ba13158
add compounds to vscode launch.json
jpbusch Nov 25, 2024
841ab7f
remove IVIM and rust generation from vscode launch.json
jpbusch Nov 26, 2024
a2157a6
improve readme by suggestions from PR
jpbusch Nov 26, 2024
8bb44ce
add small adjustments in codegen-py from PR
jpbusch Nov 26, 2024
8a0745d
add RegionalExtension limitation to readme
lreiher Nov 26, 2024
6cb47b2
remove non-working regional ectension handling from jinja templates
jpbusch Nov 26, 2024
2b240f5
move asn1c codegen into own folder
jpbusch Nov 26, 2024
dce5948
add patches for spatem and mapem coding generation
jpbusch Nov 26, 2024
c375b4e
use multiprocessing for coding generation
jpbusch Nov 26, 2024
787e941
use tempfile for asn1c_cmd
jpbusch Nov 26, 2024
ba157f0
add very simple mapem sample script
jpbusch Nov 26, 2024
d44a8a2
add simple spatem sample script
jpbusch Nov 26, 2024
f054453
small changes in asn1ToC script
jpbusch Nov 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 36 additions & 15 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Build asn1c docker image
uses: docker/build-push-action@v6
with:
context: utils/codegen/docker
file: utils/codegen/docker/asn1c.Dockerfile
context: utils/codegen/asn1ToC/docker
file: utils/codegen/asn1ToC/docker/asn1c.Dockerfile
tags: asn1c:ci
outputs: type=docker,dest=/tmp/asn1c-image.tar
- name: Upload asn1c-image (artifact)
Expand Down Expand Up @@ -65,15 +65,19 @@ jobs:
matrix:
include:
- message: cam
script: ./utils/codegen/asn1ToC.py asn1/raw/cam_en302637_2/CAM-PDU-Descriptions.asn asn1/raw/cam_en302637_2/cdd/ITS-Container.asn -t cam -o etsi_its_coding/etsi_its_cam_coding -di asn1c:ci
script: ./utils/codegen/asn1ToC/asn1ToC.py asn1/raw/cam_en302637_2/CAM-PDU-Descriptions.asn asn1/raw/cam_en302637_2/cdd/ITS-Container.asn -t cam -o etsi_its_coding/etsi_its_cam_coding -di asn1c:ci
- message: cam_ts
script: ./utils/codegen/asn1ToC.py asn1/raw/cam_ts103900/CAM-PDU-Descriptions.asn asn1/patched/cam_ts103900/cdd/ETSI-ITS-CDD.asn -t cam_ts -o etsi_its_coding/etsi_its_cam_ts_coding -di asn1c:ci
script: ./utils/codegen/asn1ToC/asn1ToC.py asn1/raw/cam_ts103900/CAM-PDU-Descriptions.asn asn1/patched/cam_ts103900/cdd/ETSI-ITS-CDD.asn -t cam_ts -o etsi_its_coding/etsi_its_cam_ts_coding -di asn1c:ci
- message: denm
script: ./utils/codegen/asn1ToC.py asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn asn1/raw/denm_en302637_3/cdd/ITS-Container.asn -t denm -o etsi_its_coding/etsi_its_denm_coding -di asn1c:ci
script: ./utils/codegen/asn1ToC/asn1ToC.py asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn asn1/raw/denm_en302637_3/cdd/ITS-Container.asn -t denm -o etsi_its_coding/etsi_its_denm_coding -di asn1c:ci
- message: cpm_ts
script: ./utils/codegen/asn1ToC.py asn1/raw/cpm_ts103324/asn/CPM-PDU-Descriptions.asn asn1/raw/cpm_ts103324/asn/CPM-OriginatingStationContainers.asn asn1/raw/cpm_ts103324/asn/CPM-PerceivedObjectContainer.asn asn1/raw/cpm_ts103324/asn/CPM-PerceptionRegionContainer.asn asn1/raw/cpm_ts103324/asn/CPM-SensorInformationContainer.asn asn1/patched/cpm_ts103324/asn/cdd/ETSI-ITS-CDD.asn -t cpm_ts -o etsi_its_coding/etsi_its_cpm_ts_coding -di asn1c:ci
script: ./utils/codegen/asn1ToC/asn1ToC.py asn1/raw/cpm_ts103324/asn/CPM-PDU-Descriptions.asn asn1/raw/cpm_ts103324/asn/CPM-OriginatingStationContainers.asn asn1/raw/cpm_ts103324/asn/CPM-PerceivedObjectContainer.asn asn1/raw/cpm_ts103324/asn/CPM-PerceptionRegionContainer.asn asn1/raw/cpm_ts103324/asn/CPM-SensorInformationContainer.asn asn1/patched/cpm_ts103324/asn/cdd/ETSI-ITS-CDD.asn -t cpm_ts -o etsi_its_coding/etsi_its_cpm_ts_coding -di asn1c:ci
- message: mapem_ts
script: ./utils/codegen/asn1ToC/asn1ToC.py asn1/raw/is_ts103301/MAPEM-PDU-Descriptions.asn asn1/raw/is_ts103301/cdd/ITS-Container.asn asn1/raw/is_ts103301/iso-patched/ISO24534-3_ElectronicRegistrationIdentificationVehicleDataModule-patched.asn asn1/raw/is_ts103301/build/asn1/ISO-TS-19091-addgrp-C-2018-patched.asn asn1/patched/is_ts103301/build/asn1/ISO14816_AVIAEINumberingAndDataStructures.asn -t mapem_ts -o etsi_its_coding/etsi_its_mapem_ts_coding -di asn1c:ci
- message: spatem_ts
script: ./utils/codegen/asn1ToC/asn1ToC.py asn1/raw/is_ts103301/SPATEM-PDU-Descriptions.asn asn1/raw/is_ts103301/cdd/ITS-Container.asn asn1/raw/is_ts103301/iso-patched/ISO24534-3_ElectronicRegistrationIdentificationVehicleDataModule-patched.asn asn1/raw/is_ts103301/build/asn1/ISO-TS-19091-addgrp-C-2018-patched.asn asn1/patched/is_ts103301/build/asn1/ISO14816_AVIAEINumberingAndDataStructures.asn -t spatem_ts -o etsi_its_coding/etsi_its_spatem_ts_coding -di asn1c:ci
- message: vam_ts
script: ./utils/codegen/asn1ToC.py asn1/raw/vam-ts103300_3/VAM-PDU-Descriptions.asn asn1/patched/vam-ts103300_3/cdd/ETSI-ITS-CDD.asn -t vam_ts -o etsi_its_coding/etsi_its_vam_ts_coding -di asn1c:ci
script: ./utils/codegen/asn1ToC/asn1ToC.py asn1/raw/vam-ts103300_3/VAM-PDU-Descriptions.asn asn1/patched/vam-ts103300_3/cdd/ETSI-ITS-CDD.asn -t vam_ts -o etsi_its_coding/etsi_its_vam_ts_coding -di asn1c:ci
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -92,6 +96,7 @@ jobs:
run: docker load --input /tmp/asn1c-image.tar
- name: etsi_its_${{ matrix.message }}_coding
run: |
./asn1/external/download.sh
./asn1/patches/patch.sh
${{ matrix.script }}
rm -rf ${{ github.workspace }}/tmp
Expand All @@ -110,15 +115,19 @@ jobs:
matrix:
include:
- message: cam
script: ./utils/codegen/codegen-rust/asn1ToRosMsg.py asn1/raw/cam_en302637_2/CAM-PDU-Descriptions.asn asn1/raw/cam_en302637_2/cdd/ITS-Container.asn -t cam -o etsi_its_msgs/etsi_its_cam_msgs/msg -di rgen:ci
script: ./utils/codegen/codegen-py/asn1ToRosMsg.py asn1/raw/cam_en302637_2/CAM-PDU-Descriptions.asn asn1/raw/cam_en302637_2/cdd/ITS-Container.asn -t cam -o etsi_its_msgs/etsi_its_cam_msgs/msg
- message: cam_ts
script: ./utils/codegen/codegen-rust/asn1ToRosMsg.py asn1/raw/cam_ts103900/CAM-PDU-Descriptions.asn asn1/patched/cam_ts103900/cdd/ETSI-ITS-CDD.asn -t cam_ts -o etsi_its_msgs/etsi_its_cam_ts_msgs/msg -di rgen:ci
script: ./utils/codegen/codegen-py/asn1ToRosMsg.py asn1/raw/cam_ts103900/CAM-PDU-Descriptions.asn asn1/patched/cam_ts103900/cdd/ETSI-ITS-CDD.asn -t cam_ts -o etsi_its_msgs/etsi_its_cam_ts_msgs/msg
- message: denm
script: ./utils/codegen/codegen-rust/asn1ToRosMsg.py asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn asn1/raw/denm_en302637_3/cdd/ITS-Container.asn -t denm -o etsi_its_msgs/etsi_its_denm_msgs/msg -di rgen:ci
script: ./utils/codegen/codegen-py/asn1ToRosMsg.py asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn asn1/raw/denm_en302637_3/cdd/ITS-Container.asn -t denm -o etsi_its_msgs/etsi_its_denm_msgs/msg
- message: cpm_ts
script: ./utils/codegen/codegen-rust/asn1ToRosMsg.py asn1/raw/cpm_ts103324/asn/CPM-PDU-Descriptions.asn asn1/raw/cpm_ts103324/asn/CPM-OriginatingStationContainers.asn asn1/raw/cpm_ts103324/asn/CPM-PerceivedObjectContainer.asn asn1/raw/cpm_ts103324/asn/CPM-PerceptionRegionContainer.asn asn1/raw/cpm_ts103324/asn/CPM-SensorInformationContainer.asn asn1/patched/cpm_ts103324/asn/cdd/ETSI-ITS-CDD.asn -t cpm_ts -o etsi_its_msgs/etsi_its_cpm_ts_msgs/msg -di rgen:ci
- message: mapem_ts
script: ./utils/codegen/codegen-py/asn1ToRosMsg.py asn1/raw/is_ts103301/MAPEM-PDU-Descriptions.asn asn1/raw/is_ts103301/cdd/ITS-Container.asn asn1/raw/is_ts103301/iso-patched/ISO24534-3_ElectronicRegistrationIdentificationVehicleDataModule-patched.asn asn1/raw/is_ts103301/build/asn1/ISO-TS-19091-addgrp-C-2018-patched.asn asn1/patched/is_ts103301/build/asn1/ISO14816_AVIAEINumberingAndDataStructures.asn -t mapem_ts -o etsi_its_msgs/etsi_its_mapem_ts_msgs/msg
- message: spatem_ts
script: ./utils/codegen/codegen-py/asn1ToRosMsg.py asn1/raw/is_ts103301/SPATEM-PDU-Descriptions.asn asn1/raw/is_ts103301/cdd/ITS-Container.asn asn1/raw/is_ts103301/iso-patched/ISO24534-3_ElectronicRegistrationIdentificationVehicleDataModule-patched.asn asn1/raw/is_ts103301/build/asn1/ISO-TS-19091-addgrp-C-2018-patched.asn asn1/patched/is_ts103301/build/asn1/ISO14816_AVIAEINumberingAndDataStructures.asn -t spatem_ts -o etsi_its_msgs/etsi_its_spatem_ts_msgs/msg
- message: vam_ts
script: ./utils/codegen/codegen-rust/asn1ToRosMsg.py asn1/raw/vam-ts103300_3/VAM-PDU-Descriptions.asn asn1/patched/vam-ts103300_3/cdd/ETSI-ITS-CDD.asn -t vam_ts -o etsi_its_msgs/etsi_its_vam_ts_msgs/msg -di rgen:ci
script: ./utils/codegen/codegen-py/asn1ToRosMsg.py asn1/raw/vam-ts103300_3/VAM-PDU-Descriptions.asn asn1/patched/vam-ts103300_3/cdd/ETSI-ITS-CDD.asn -t vam_ts -o etsi_its_msgs/etsi_its_vam_ts_msgs/msg
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -128,6 +137,9 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: pip
- name: Install dependencies
run: pip install -r ./utils/codegen/codegen-py/requirements.txt
- name: Download rgen-image (artifact)
uses: actions/download-artifact@v4
with:
Expand All @@ -137,6 +149,7 @@ jobs:
run: docker load --input /tmp/rgen-image.tar
- name: etsi_its_${{ matrix.message }}_msgs
run: |
./asn1/external/download.sh
./asn1/patches/patch.sh
${{ matrix.script }}
if [[ ! -z "$(git status --porcelain)" ]]; then
Expand All @@ -154,15 +167,19 @@ jobs:
matrix:
include:
- message: cam
script: ./utils/codegen/codegen-rust/asn1ToConversionHeader.py asn1/raw/cam_en302637_2/CAM-PDU-Descriptions.asn asn1/raw/cam_en302637_2/cdd/ITS-Container.asn -t cam -o etsi_its_conversion/etsi_its_cam_conversion/include/etsi_its_cam_conversion -di rgen:ci
script: ./utils/codegen/codegen-py/asn1ToConversionHeader.py asn1/raw/cam_en302637_2/CAM-PDU-Descriptions.asn asn1/raw/cam_en302637_2/cdd/ITS-Container.asn -t cam -o etsi_its_conversion/etsi_its_cam_conversion/include/etsi_its_cam_conversion
- message: cam_ts
script: ./utils/codegen/codegen-rust/asn1ToConversionHeader.py asn1/raw/cam_ts103900/CAM-PDU-Descriptions.asn asn1/patched/cam_ts103900/cdd/ETSI-ITS-CDD.asn -t cam_ts -o etsi_its_conversion/etsi_its_cam_ts_conversion/include/etsi_its_cam_ts_conversion -di rgen:ci
script: ./utils/codegen/codegen-py/asn1ToConversionHeader.py asn1/raw/cam_ts103900/CAM-PDU-Descriptions.asn asn1/patched/cam_ts103900/cdd/ETSI-ITS-CDD.asn -t cam_ts -o etsi_its_conversion/etsi_its_cam_ts_conversion/include/etsi_its_cam_ts_conversion
- message: denm
script: ./utils/codegen/codegen-rust/asn1ToConversionHeader.py asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn asn1/raw/denm_en302637_3/cdd/ITS-Container.asn -t denm -o etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion -di rgen:ci
script: ./utils/codegen/codegen-py/asn1ToConversionHeader.py asn1/raw/denm_en302637_3/DENM-PDU-Descriptions.asn asn1/raw/denm_en302637_3/cdd/ITS-Container.asn -t denm -o etsi_its_conversion/etsi_its_denm_conversion/include/etsi_its_denm_conversion
- message: cpm_ts
script: ./utils/codegen/codegen-rust/asn1ToConversionHeader.py asn1/raw/cpm_ts103324/asn/CPM-PDU-Descriptions.asn asn1/raw/cpm_ts103324/asn/CPM-OriginatingStationContainers.asn asn1/raw/cpm_ts103324/asn/CPM-PerceivedObjectContainer.asn asn1/raw/cpm_ts103324/asn/CPM-PerceptionRegionContainer.asn asn1/raw/cpm_ts103324/asn/CPM-SensorInformationContainer.asn asn1/patched/cpm_ts103324/asn/cdd/ETSI-ITS-CDD.asn -t cpm_ts -o etsi_its_conversion/etsi_its_cpm_ts_conversion/include/etsi_its_cpm_ts_conversion -di rgen:ci
- message: mapem_ts
script: ./utils/codegen/codegen-py/asn1ToConversionHeader.py asn1/raw/is_ts103301/MAPEM-PDU-Descriptions.asn asn1/raw/is_ts103301/cdd/ITS-Container.asn asn1/raw/is_ts103301/iso-patched/ISO24534-3_ElectronicRegistrationIdentificationVehicleDataModule-patched.asn asn1/raw/is_ts103301/build/asn1/ISO-TS-19091-addgrp-C-2018-patched.asn asn1/patched/is_ts103301/build/asn1/ISO14816_AVIAEINumberingAndDataStructures.asn -t mapem_ts -o etsi_its_conversion/etsi_its_mapem_ts_conversion/include/etsi_its_mapem_ts_conversion
- message: spatem_ts
script: ./utils/codegen/codegen-py/asn1ToConversionHeader.py asn1/raw/is_ts103301/SPATEM-PDU-Descriptions.asn asn1/raw/is_ts103301/cdd/ITS-Container.asn asn1/raw/is_ts103301/iso-patched/ISO24534-3_ElectronicRegistrationIdentificationVehicleDataModule-patched.asn asn1/raw/is_ts103301/build/asn1/ISO-TS-19091-addgrp-C-2018-patched.asn asn1/patched/is_ts103301/build/asn1/ISO14816_AVIAEINumberingAndDataStructures.asn -t spatem_ts -o etsi_its_conversion/etsi_its_spatem_ts_conversion/include/etsi_its_spatem_ts_conversion
- message: vam_ts
script: ./utils/codegen/codegen-rust/asn1ToConversionHeader.py asn1/raw/vam-ts103300_3/VAM-PDU-Descriptions.asn asn1/patched/vam-ts103300_3/cdd/ETSI-ITS-CDD.asn -t vam_ts -o etsi_its_conversion/etsi_its_vam_ts_conversion/include/etsi_its_vam_ts_conversion -di rgen:ci
script: ./utils/codegen/codegen-py/asn1ToConversionHeader.py asn1/raw/vam-ts103300_3/VAM-PDU-Descriptions.asn asn1/patched/vam-ts103300_3/cdd/ETSI-ITS-CDD.asn -t vam_ts -o etsi_its_conversion/etsi_its_vam_ts_conversion/include/etsi_its_vam_ts_conversion
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -172,6 +189,9 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: pip
- name: Install dependencies
run: pip install -r ./utils/codegen/codegen-py/requirements.txt
- name: Download rgen-image (artifact)
uses: actions/download-artifact@v4
with:
Expand All @@ -181,6 +201,7 @@ jobs:
run: docker load --input /tmp/rgen-image.tar
- name: etsi_its_${{ matrix.message }}_conversion
run: |
./asn1/external/download.sh
./asn1/patches/patch.sh
${{ matrix.script }}
if [[ ! -z "$(git status --porcelain)" ]]; then
Expand Down
Loading