Skip to content
Open
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
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,25 @@ async function logMessagesFromFooBar() {
logMessagesFromFooBar();
```

If you're using `rosbag` in the web (or importing `rosbag/dist/web/index.js` directly) modify the lines

```js
// open a new bag at a given file location:
const bag = await open('../path/to/ros.bag');
```

to

```js
// get a file blob from the file location:
const blob = await fetch('../path/to/ros.bag').then((r) => r.blob())

// open the file blob:
const bag = await open(blob)
```

The rest remains the same.

## API

### Opening a new rosbag reader
Expand Down