Skip to content

Commit

Permalink
Add Mcap typescript flatbuffer encoding example (#726)
Browse files Browse the repository at this point in the history
* - flatbuffer example init

* - mcap flatbuffer typescript example added

* -change folder from flatbuffers to flatbuffer

* - respond to pr feedback

* - make bfbs files use git lfs

* Update typescript/examples/flatbufferswriter/scripts/main.ts

Co-authored-by: Jacob Bandes-Storch <jacob@foxglove.dev>

* - update cspell

* - fix capital

Co-authored-by: Jacob Bandes-Storch <jacob@foxglove.dev>
  • Loading branch information
snosenzo and jtbandes committed Nov 22, 2022
1 parent ce36de5 commit 0903d18
Show file tree
Hide file tree
Showing 23 changed files with 1,293 additions and 20 deletions.
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 @@ -33,6 +33,7 @@ ignorePaths:

words:
- bagfile
- bfbs
- callerid
- cbor
- cmake
Expand All @@ -42,7 +43,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

0 comments on commit 0903d18

Please sign in to comment.