Skip to content

Commit

Permalink
Add C++ header files for Zubax DSDL. (#267)
Browse files Browse the repository at this point in the history
* Extend header build script to build Zubax DSDL.

* Add C++ generated header files for Zubax DSDL.
  • Loading branch information
aentinger authored Jan 29, 2024
1 parent dd60be5 commit de3e63c
Show file tree
Hide file tree
Showing 357 changed files with 33,283 additions and 705 deletions.
14 changes: 14 additions & 0 deletions extras/script/update_cpp_header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ cd /tmp
rm -rf public_regulated_data_types
git clone https://github.com/OpenCyphal/public_regulated_data_types

rm -rf zubax_dsdl
git clone https://github.com/Zubax/zubax_dsdl

echo "nnvg version: "
nnvg --version
echo ""
Expand All @@ -31,16 +34,27 @@ nnvg --experimental-languages \
--lookup public_regulated_data_types/uavcan \
--outdir public_regulated_data_types/reg-header \
public_regulated_data_types/reg
nnvg --experimental-languages \
--language-standard=c++17 \
--target-language cpp \
--pp-max-emptylines=1 \
--pp-trim-trailing-whitespace \
--target-endianness=any \
--lookup public_regulated_data_types/uavcan \
--outdir zubax_dsdl/zubax/zubax-header \
zubax_dsdl/zubax

echo "Copying code to destination"
cp -R public_regulated_data_types/uavcan-header/nunavut/* "$NUNAVUT_DIR"
cp -R public_regulated_data_types/uavcan-header/uavcan "$HEADER_DIR"
cp -R public_regulated_data_types/reg-header/reg "$HEADER_DIR"
cp -R zubax_dsdl/zubax/zubax-header/zubax "$HEADER_DIR"

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

Expand Down
554 changes: 334 additions & 220 deletions src/DSDL_Types.h.impl

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/types/reg/udral/physics/acoustics/Note_0_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/acoustics/Note.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.167954 UTC
// Generated at: 2024-01-29 05:34:31.587953 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.acoustics.Note
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/PlanarTs.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.040071 UTC
// Generated at: 2024-01-29 05:34:31.814719 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.dynamics.rotation.PlanarTs
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
4 changes: 2 additions & 2 deletions src/types/reg/udral/physics/dynamics/rotation/Planar_0_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/rotation/Planar.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.036504 UTC
// Generated at: 2024-01-29 05:34:31.811706 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.dynamics.rotation.Planar
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/LinearTs.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.046844 UTC
// Generated at: 2024-01-29 05:34:31.809039 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.dynamics.translation.LinearTs
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/dynamics/translation/Linear.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.043449 UTC
// Generated at: 2024-01-29 05:34:31.806006 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.dynamics.translation.Linear
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
4 changes: 2 additions & 2 deletions src/types/reg/udral/physics/electricity/PowerTs_0_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/PowerTs.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.157676 UTC
// Generated at: 2024-01-29 05:34:31.821468 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.electricity.PowerTs
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
4 changes: 2 additions & 2 deletions src/types/reg/udral/physics/electricity/Power_0_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/Power.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.154412 UTC
// Generated at: 2024-01-29 05:34:31.817854 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.electricity.Power
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
4 changes: 2 additions & 2 deletions src/types/reg/udral/physics/electricity/SourceTs_0_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/SourceTs.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.164852 UTC
// Generated at: 2024-01-29 05:34:31.827802 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.electricity.SourceTs
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
4 changes: 2 additions & 2 deletions src/types/reg/udral/physics/electricity/Source_0_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/electricity/Source.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.160743 UTC
// Generated at: 2024-01-29 05:34:31.824180 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.electricity.Source
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVarTs.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.059578 UTC
// Generated at: 2024-01-29 05:34:31.707683 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.PointStateVarTs
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointStateVar.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.056320 UTC
// Generated at: 2024-01-29 05:34:31.704669 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.PointStateVar
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointState.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.052977 UTC
// Generated at: 2024-01-29 05:34:31.701432 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.PointState
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PointVar.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.062761 UTC
// Generated at: 2024-01-29 05:34:31.710863 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.PointVar
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Point.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.049983 UTC
// Generated at: 2024-01-29 05:34:31.698407 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.Point
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVarTs.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.072804 UTC
// Generated at: 2024-01-29 05:34:31.719935 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.PoseVarTs
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/PoseVar.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.069347 UTC
// Generated at: 2024-01-29 05:34:31.716805 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.PoseVar
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
4 changes: 2 additions & 2 deletions src/types/reg/udral/physics/kinematics/cartesian/Pose_0_1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/Pose.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.065998 UTC
// Generated at: 2024-01-29 05:34:31.713741 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.Pose
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVarTs.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.082586 UTC
// Generated at: 2024-01-29 05:34:31.728620 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.StateVarTs
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/StateVar.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.079312 UTC
// Generated at: 2024-01-29 05:34:31.725717 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.StateVar
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// Generator: nunavut-2.3.1 (serialization was enabled)
// Source file: /tmp/public_regulated_data_types/reg/udral/physics/kinematics/cartesian/State.0.1.dsdl
// Generated at: 2024-01-12 03:09:36.075930 UTC
// Generated at: 2024-01-29 05:34:31.722726 UTC
// Is deprecated: no
// Fixed port-ID: None
// Full name: reg.udral.physics.kinematics.cartesian.State
Expand All @@ -27,7 +27,7 @@
// python_compiler: GCC 11.4.0
// python_revision:
// python_xoptions: {}
// runtime_platform: Linux-5.15.0-91-generic-aarch64-with-glibc2.35
// runtime_platform: Linux-6.5.0-15-generic-x86_64-with-glibc2.35
// Language Options
// target_endianness: any
// omit_float_serialization_support: False
Expand Down
Loading

0 comments on commit de3e63c

Please sign in to comment.