Skip to content

Commit

Permalink
Add image_example.py, use foxglove-schemas-protobuf package (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhurliman committed Feb 16, 2023
1 parent 393b228 commit ae2cad0
Show file tree
Hide file tree
Showing 25 changed files with 521 additions and 637 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ jobs:
with:
path: ~/.conan/data
key: ${{ runner.os }}-${{ hashFiles('cpp/**/conanfile.py') }}
- uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
- run: cd cpp && make ci
- run: yarn install --frozen-lockfile
- run: yarn test:conformance:generate-inputs --verify
Expand Down Expand Up @@ -260,9 +258,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.7
- uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
- run: pip install pipenv==2022.7.24
- run: pip install pipenv==2023.2.4
- run: make lint
- run: make test
- run: make examples
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
python-version: 3.7
- name: Install pipenv
run: pip install pipenv==2022.7.24
run: pip install pipenv==2023.2.4

- name: Install dependencies
run: pipenv install --deploy
Expand All @@ -39,8 +39,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true

- run: mkdir __docs__
- name: Generate C++ documentation
Expand Down
8 changes: 2 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,12 @@
],
"python.analysis.extraPaths": [
"./python/mcap",
"./python/mcap-protobuf-support",
"./python/mcap-ros1-support",
"./python/mcap-ros2-support"
],

"gopls": {
"build.experimentalWorkspaceModule": true
},

// https://github.com/microsoft/vscode-cpptools/issues/722
"C_Cpp.autoAddFileAssociations": false,
"C_Cpp.default.cppStandard": "c++17",
"lldb.library": "/Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework"
"C_Cpp.default.cppStandard": "c++17"
}
1 change: 1 addition & 0 deletions python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ examples: pipenv
pipenv run python examples/raw/writer.py example_mcaps/raw.mcap
pipenv run python examples/raw/reader.py example_mcaps/raw.mcap
cd examples/protobuf && pipenv run python writer.py $(CURDIR)/example_mcaps/protobuf.mcap
cd examples/protobuf && pipenv run python image_example.py $(CURDIR)/example_mcaps/image.mcap
cd examples/protobuf && pipenv run python point_cloud_example.py $(CURDIR)/example_mcaps/point_cloud.mcap
cd examples/protobuf && pipenv run python reader.py $(CURDIR)/example_mcaps/protobuf.mcap
cd examples/protobuf && pipenv run python reader.py $(CURDIR)/example_mcaps/point_cloud.mcap
Expand Down
1 change: 1 addition & 0 deletions python/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ name = "ros"
lz4 = "*"
zstandard = "*"
protobuf = "*"
foxglove-schemas-protobuf = "*"
mcap = { editable = true, path = "mcap" }
mcap-protobuf-support = { editable = true, path = "mcap-protobuf-support" }
mcap-ros1-support = { editable = true, path = "mcap-ros1-support" }
Expand Down
647 changes: 384 additions & 263 deletions python/Pipfile.lock

Large diffs are not rendered by default.

37 changes: 0 additions & 37 deletions python/examples/protobuf/foxglove/PackedElementField_pb2.py

This file was deleted.

37 changes: 0 additions & 37 deletions python/examples/protobuf/foxglove/PointCloud_pb2.py

This file was deleted.

36 changes: 0 additions & 36 deletions python/examples/protobuf/foxglove/Pose_pb2.py

This file was deleted.

34 changes: 0 additions & 34 deletions python/examples/protobuf/foxglove/Quaternion_pb2.py

This file was deleted.

34 changes: 0 additions & 34 deletions python/examples/protobuf/foxglove/Vector2_pb2.py

This file was deleted.

34 changes: 0 additions & 34 deletions python/examples/protobuf/foxglove/Vector3_pb2.py

This file was deleted.

Empty file.

0 comments on commit ae2cad0

Please sign in to comment.