Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mcap typescript flatbuffer encoding example #726

Merged
merged 8 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ python/mcap-ros1-support/mcap_ros1/vendor/** linguist-vendored=true
cpp/examples/protobuf/proto/** linguist-vendored=true linguist-generated=true
*.csv linguist-generated=true
testdata/db3/eloquent-twist.db3 filter=lfs diff=lfs merge=lfs -text
typescript/examples/flatbuffer/output/** linguist-generated=true
typescript/examples/flatbuffer/bin/FrameTransform.bfbs filter=lfs diff=lfs merge=lfs -text
typescript/examples/flatbuffer/bin/Grid.bfbs filter=lfs diff=lfs merge=lfs -text
3 changes: 3 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ignorePaths:

words:
- bagfile
- bfbs
- callerid
- cbor
- cmake
Expand All @@ -41,7 +42,9 @@ words:
- datetime
- deserialization
- distro
- elems
- flatbuffer
- flatbuffers
- flatc
- fwrite
- gendeps
Expand Down
21 changes: 1 addition & 20 deletions typescript/examples/basicwriter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,16 @@
},
"devDependencies": {
"@foxglove/eslint-plugin": "0.17.1",
"@foxglove/rosbag": "0.1.2",
"@foxglove/rosmsg": "3.0.0",
"@foxglove/rosmsg-serialization": "1.2.3",
"@foxglove/rosmsg2-serialization": "1.0.4",
"@foxglove/tsconfig": "1.1.0",
"@foxglove/wasm-bz2": "^0.0.4",
"@mcap/core": "*",
"@types/jest": "27.0.3",
"@types/lodash": "4.14.176",
"@types/node": "16.11.9",
"@typescript-eslint/eslint-plugin": "5.4.0",
"@typescript-eslint/parser": "5.4.0",
"commander": "8.3.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-es": "4.1.0",
"eslint-plugin-filenames": "1.3.2",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-jest": "25.2.4",
"eslint-plugin-prettier": "4.0.0",
"jest": "27.3.1",
"lodash": "4.17.21",
"prettier": "2.4.1",
"protobufjs": "6.11.2",
"ts-jest": "27.0.7",
"ts-node": "10.4.0",
"tsconfig-paths": "3.12.0",
"typescript": "4.4.4",
"wasm-lz4": "2.0.0",
"zstd-codec": "^0.1.4"
"typescript": "4.4.4"
}
}
3 changes: 3 additions & 0 deletions typescript/examples/flatbuffer/bin/FrameTransform.bfbs
Git LFS file not shown
3 changes: 3 additions & 0 deletions typescript/examples/flatbuffer/bin/Grid.bfbs
Git LFS file not shown

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions typescript/examples/flatbuffer/output/Grid_generated.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 112 additions & 0 deletions typescript/examples/flatbuffer/output/foxglove/frame-transform.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

198 changes: 198 additions & 0 deletions typescript/examples/flatbuffer/output/foxglove/grid.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading