-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add scripts to generate c headers and python from DSDL and worfklow t…
…o test them
- Loading branch information
1 parent
50fd637
commit b403138
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: dsdl_generation | ||
on: [push] | ||
|
||
jobs: | ||
generate_dsdl: | ||
strategy: | ||
matrix: | ||
language: [cpp, python] | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install requirements | ||
run: pip install yakut | ||
|
||
- name: Catkin build | ||
run: ./scripts/generate_${{ matrix.language }}_from_dsdl.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
# This software is distributed under the terms of the GPL v3 License. | ||
# Copyright (c) 2022-2023 Dmitry Ponomarev. | ||
# Author: Dmitry Ponomarev <[email protected]> | ||
|
||
CRNT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
REPO_DIR="$(dirname "$CRNT_DIR")" | ||
OUTPUT_DIR=${REPO_DIR}/src/nunavut_out | ||
|
||
$REPO_DIR/Libs/cyphal_application/scripts/nnvg_generate_c_headers.sh ${OUTPUT_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# This software is distributed under the terms of the GPL v3 License. | ||
# Copyright (c) 2022-2023 Dmitry Ponomarev. | ||
# Author: Dmitry Ponomarev <[email protected]> | ||
|
||
CRNT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
REPO_DIR="$(dirname "$CRNT_DIR")" | ||
YAKUT_COMPILE_OUTPUT=$REPO_DIR/compile_output | ||
|
||
cd $REPO_DIR | ||
|
||
DSDL_PATH=$REPO_DIR/Libs/cyphal_application/Libs/public_regulated_data_types | ||
yakut compile $DSDL_PATH/uavcan $DSDL_PATH/reg -O $YAKUT_COMPILE_OUTPUT | ||
|
||
ZUBAX_DSDL_PATH=$REPO_DIR/Libs/cyphal_application/Libs/zubax_dsdl | ||
git clone https://github.com/Zubax/zubax_dsdl.git ${ZUBAX_DSDL_PATH} | ||
cd ${ZUBAX_DSDL_PATH} && git checkout b14f6c8 && cd ${REPO_DIR} | ||
yakut compile $DSDL_PATH/uavcan $ZUBAX_DSDL_PATH/zubax -O $YAKUT_COMPILE_OUTPUT |