Skip to content

Commit

Permalink
mcap-record: Add support for omgidl schemas
Browse files Browse the repository at this point in the history
Recording channels with `omgidl` schema currently yields the following warning:
```
unknown schema encoding omgidl, messages will be recorded without schema
```

This PR adds `omgidl` as a known encoding
  • Loading branch information
achim-k authored Jan 25, 2025
1 parent c7e4176 commit 4ea6604
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions typescript/ws-protocol-examples/src/examples/mcap-record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ async function main(
json: "jsonschema",
protobuf: "protobuf",
flatbuffer: "flatbuffer",
omgidl: "omgidl",
ros1: "ros1msg",
ros2: "ros2msg",
}[channel.encoding];
Expand All @@ -174,6 +175,7 @@ async function main(
let schemaData: Uint8Array | undefined;
switch (schemaEncoding) {
case "jsonschema":
case "omgidl":
case "ros1msg":
case "ros2msg":
schemaData = textEncoder.encode(channel.schema);
Expand Down

0 comments on commit 4ea6604

Please sign in to comment.