swri-robotics / bag-database

A server that catalogs bag files and provides a web-based UI for accessing them.
Other
345 stars 71 forks source link

Support integrating with external applications #155

Closed pjreed closed 3 years ago

pjreed commented 3 years ago

This adds CORS and Range support to the /bags/download API call, which means it is now possible for web applications hosted on a different domain to download ranges of bytes from bag files. This makes it possible to visualized bags stored in the Bag Database directly in applications like Webviz or Foxglove Studio.

Additionally, it is possible to provide a list of such external applications in the Bag Database's configuration, and it will present them as options in the context-menu that appears when right-clicking on a bag file, making it easy to open bags in an application of your choice.

Fixes #151

pjreed commented 3 years ago

This should be ready to test. You can easily test it by grabbing Webviz's demo bag file at https://open-source-webviz-ui.s3.amazonaws.com/demo.bag , right-clicking on it, and then use the "Send to Webviz" menu item.