Skip to content

Commit de3e63c

Browse files
authored
Add C++ header files for Zubax DSDL. (#267)
* Extend header build script to build Zubax DSDL. * Add C++ generated header files for Zubax DSDL.
1 parent dd60be5 commit de3e63c

File tree

357 files changed

+33283
-705
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+33283
-705
lines changed

extras/script/update_cpp_header.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ cd /tmp
99
rm -rf public_regulated_data_types
1010
git clone https://github.com/OpenCyphal/public_regulated_data_types
1111

12+
rm -rf zubax_dsdl
13+
git clone https://github.com/Zubax/zubax_dsdl
14+
1215
echo "nnvg version: "
1316
nnvg --version
1417
echo ""
@@ -31,16 +34,27 @@ nnvg --experimental-languages \
3134
--lookup public_regulated_data_types/uavcan \
3235
--outdir public_regulated_data_types/reg-header \
3336
public_regulated_data_types/reg
37+
nnvg --experimental-languages \
38+
--language-standard=c++17 \
39+
--target-language cpp \
40+
--pp-max-emptylines=1 \
41+
--pp-trim-trailing-whitespace \
42+
--target-endianness=any \
43+
--lookup public_regulated_data_types/uavcan \
44+
--outdir zubax_dsdl/zubax/zubax-header \
45+
zubax_dsdl/zubax
3446

3547
echo "Copying code to destination"
3648
cp -R public_regulated_data_types/uavcan-header/nunavut/* "$NUNAVUT_DIR"
3749
cp -R public_regulated_data_types/uavcan-header/uavcan "$HEADER_DIR"
3850
cp -R public_regulated_data_types/reg-header/reg "$HEADER_DIR"
51+
cp -R zubax_dsdl/zubax/zubax-header/zubax "$HEADER_DIR"
3952

4053
echo "Fixing include paths"
4154
cd $HEADER_DIR
4255
find . -type f -exec sed -i 's/"reg\//<types\/reg\//g' {} +
4356
find . -type f -exec sed -i 's/"uavcan\//<types\/uavcan\//g' {} +
57+
find . -type f -exec sed -i 's/"zubax\//<types\/zubax\//g' {} +
4458
find . -type f -exec sed -i 's/"nunavut/<nunavut/g' {} +
4559
find . -type f -exec sed -i 's/.hpp"/.hpp>/g' {} +
4660

src/DSDL_Types.h.impl

Lines changed: 334 additions & 220 deletions
Large diffs are not rendered by default.

src/types/reg/udral/physics/acoustics/Note_0_1.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
// Generator: nunavut-2.3.1 (serialization was enabled)
99
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl
10-
// Generated at: 2024-01-12 03:09:36.167954 UTC
10+
// Generated at: 2024-01-29 05:34:31.587953 UTC
1111
// Is deprecated: no
1212
// Fixed port-ID: None
1313
// Full name: reg.udral.physics.acoustics.Note
@@ -27,7 +27,7 @@
2727
// python_compiler: GCC 11.4.0
2828
// python_revision:
2929
// python_xoptions: {}
30-
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
30+
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
3131
// Language Options
3232
// target_endianness: any
3333
// omit_float_serialization_support: False

src/types/reg/udral/physics/dynamics/rotation/PlanarTs_0_1.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
// Generator: nunavut-2.3.1 (serialization was enabled)
99
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl
10-
// Generated at: 2024-01-12 03:09:36.040071 UTC
10+
// Generated at: 2024-01-29 05:34:31.814719 UTC
1111
// Is deprecated: no
1212
// Fixed port-ID: None
1313
// Full name: reg.udral.physics.dynamics.rotation.PlanarTs
@@ -27,7 +27,7 @@
2727
// python_compiler: GCC 11.4.0
2828
// python_revision:
2929
// python_xoptions: {}
30-
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
30+
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
3131
// Language Options
3232
// target_endianness: any
3333
// omit_float_serialization_support: False

src/types/reg/udral/physics/dynamics/rotation/Planar_0_1.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
// Generator: nunavut-2.3.1 (serialization was enabled)
99
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl
10-
// Generated at: 2024-01-12 03:09:36.036504 UTC
10+
// Generated at: 2024-01-29 05:34:31.811706 UTC
1111
// Is deprecated: no
1212
// Fixed port-ID: None
1313
// Full name: reg.udral.physics.dynamics.rotation.Planar
@@ -27,7 +27,7 @@
2727
// python_compiler: GCC 11.4.0
2828
// python_revision:
2929
// python_xoptions: {}
30-
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
30+
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
3131
// Language Options
3232
// target_endianness: any
3333
// omit_float_serialization_support: False

src/types/reg/udral/physics/dynamics/translation/LinearTs_0_1.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
// Generator: nunavut-2.3.1 (serialization was enabled)
99
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl
10-
// Generated at: 2024-01-12 03:09:36.046844 UTC
10+
// Generated at: 2024-01-29 05:34:31.809039 UTC
1111
// Is deprecated: no
1212
// Fixed port-ID: None
1313
// Full name: reg.udral.physics.dynamics.translation.LinearTs
@@ -27,7 +27,7 @@
2727
// python_compiler: GCC 11.4.0
2828
// python_revision:
2929
// python_xoptions: {}
30-
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
30+
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
3131
// Language Options
3232
// target_endianness: any
3333
// omit_float_serialization_support: False

src/types/reg/udral/physics/dynamics/translation/Linear_0_1.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
// Generator: nunavut-2.3.1 (serialization was enabled)
99
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl
10-
// Generated at: 2024-01-12 03:09:36.043449 UTC
10+
// Generated at: 2024-01-29 05:34:31.806006 UTC
1111
// Is deprecated: no
1212
// Fixed port-ID: None
1313
// Full name: reg.udral.physics.dynamics.translation.Linear
@@ -27,7 +27,7 @@
2727
// python_compiler: GCC 11.4.0
2828
// python_revision:
2929
// python_xoptions: {}
30-
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
30+
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
3131
// Language Options
3232
// target_endianness: any
3333
// omit_float_serialization_support: False

src/types/reg/udral/physics/electricity/PowerTs_0_1.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
// Generator: nunavut-2.3.1 (serialization was enabled)
99
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl
10-
// Generated at: 2024-01-12 03:09:36.157676 UTC
10+
// Generated at: 2024-01-29 05:34:31.821468 UTC
1111
// Is deprecated: no
1212
// Fixed port-ID: None
1313
// Full name: reg.udral.physics.electricity.PowerTs
@@ -27,7 +27,7 @@
2727
// python_compiler: GCC 11.4.0
2828
// python_revision:
2929
// python_xoptions: {}
30-
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
30+
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
3131
// Language Options
3232
// target_endianness: any
3333
// omit_float_serialization_support: False

src/types/reg/udral/physics/electricity/Power_0_1.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
// Generator: nunavut-2.3.1 (serialization was enabled)
99
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl
10-
// Generated at: 2024-01-12 03:09:36.154412 UTC
10+
// Generated at: 2024-01-29 05:34:31.817854 UTC
1111
// Is deprecated: no
1212
// Fixed port-ID: None
1313
// Full name: reg.udral.physics.electricity.Power
@@ -27,7 +27,7 @@
2727
// python_compiler: GCC 11.4.0
2828
// python_revision:
2929
// python_xoptions: {}
30-
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
30+
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
3131
// Language Options
3232
// target_endianness: any
3333
// omit_float_serialization_support: False

src/types/reg/udral/physics/electricity/SourceTs_0_1.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
// Generator: nunavut-2.3.1 (serialization was enabled)
99
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl
10-
// Generated at: 2024-01-12 03:09:36.164852 UTC
10+
// Generated at: 2024-01-29 05:34:31.827802 UTC
1111
// Is deprecated: no
1212
// Fixed port-ID: None
1313
// Full name: reg.udral.physics.electricity.SourceTs
@@ -27,7 +27,7 @@
2727
// python_compiler: GCC 11.4.0
2828
// python_revision:
2929
// python_xoptions: {}
30-
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
30+
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
3131
// Language Options
3232
// target_endianness: any
3333
// omit_float_serialization_support: False

0 commit comments

Comments
 (0)