diff --git a/.github/workflows/embedded-build.yml b/.github/workflows/embedded-build.yml index 8523ead..028b4ea 100644 --- a/.github/workflows/embedded-build.yml +++ b/.github/workflows/embedded-build.yml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: 'recursive' + submodules: "recursive" - uses: actions/cache@v3 with: path: | @@ -34,13 +34,11 @@ jobs: - name: Install PlatformIO Core run: pip install --upgrade platformio - - name: Install Python dependencies for nanopb run: pip install protobuf grpcio-tools - name: Build Protocol Buffers (nanopb) - run: python ./submodules/nanopb/generator/nanopb_generator.py -I "./platform_shared/" -D esp32/src/platform_shared ./platform_shared/websocket_message.proto ./platform_shared/rest_message.proto - + run: python ./submodules/nanopb/generator/nanopb_generator.py -I "./platform_shared/" -D esp32/src/platform_shared ./platform_shared/message.proto - name: Build PlatformIO Project run: pio run diff --git a/.github/workflows/proto-build.yml b/.github/workflows/proto-build.yml index e0bf988..7c6f4a0 100644 --- a/.github/workflows/proto-build.yml +++ b/.github/workflows/proto-build.yml @@ -2,10 +2,9 @@ name: Proto Build on: push: - branches: [ master, protobuf-playground ] + branches: [master, protobuf-playground] pull_request: - branches: [ master, protobuf-playground ] - + branches: [master, protobuf-playground] jobs: build: @@ -20,7 +19,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - submodules: 'recursive' + submodules: "recursive" - name: Setup Python uses: actions/setup-python@v4 @@ -31,7 +30,7 @@ jobs: run: pip install protobuf grpcio-tools - name: Build Protocol Buffers (nanopb) - run: python ./submodules/nanopb/generator/nanopb_generator.py -I "./platform_shared/" -D esp32/src/platform_shared ./platform_shared/websocket_message.proto ./platform_shared/rest_message.proto + run: python ./submodules/nanopb/generator/nanopb_generator.py -I "./platform_shared/" -D esp32/src/platform_shared ./platform_shared/message.proto - name: Setup Protocol Buffers compiler uses: arduino/setup-protoc@v3 @@ -57,4 +56,4 @@ jobs: - name: Build Protocol Buffers (Typescript) run: pnpm proto - working-directory: ./app \ No newline at end of file + working-directory: ./app diff --git a/app/scripts/compile_protos.js b/app/scripts/compile_protos.js index bea17a9..500458e 100644 --- a/app/scripts/compile_protos.js +++ b/app/scripts/compile_protos.js @@ -17,7 +17,7 @@ const pluginPath = path.join(projectRoot, 'node_modules', '.bin', 'protoc-gen-ts_proto.cmd') : path.join(projectRoot, 'node_modules', '.bin', 'protoc-gen-ts_proto') -const protoFiles = ['websocket_message.proto', 'rest_message.proto'] +const protoFiles = ['message.proto'] const tsProtoOpts = ['useExactTypes=false', 'outputExtensions=true', 'outputSchema=true'].join(',') diff --git a/app/src/lib/components/Visualization.svelte b/app/src/lib/components/Visualization.svelte index c9a6ca4..950f1bd 100644 --- a/app/src/lib/components/Visualization.svelte +++ b/app/src/lib/components/Visualization.svelte @@ -37,7 +37,7 @@ import { radToDeg } from 'three/src/math/MathUtils.js' import type { URDFRobot } from 'urdf-loader' import { get } from 'svelte/store' - import { AnglesData, KinematicData, ModesEnum } from '$lib/platform_shared/websocket_message' + import { AnglesData, KinematicData, ModesEnum } from '$lib/platform_shared/message' interface Props { defaultColor?: string | null diff --git a/app/src/lib/components/statusbar/StopButton.svelte b/app/src/lib/components/statusbar/StopButton.svelte index 04f7e94..32e8e4c 100644 --- a/app/src/lib/components/statusbar/StopButton.svelte +++ b/app/src/lib/components/statusbar/StopButton.svelte @@ -1,5 +1,5 @@