Bags
ROS BAGS API endpoints
📄️ List Bag Directories
Returns the immediate subdirectories available under BAGS_FS. Use these values as the `path` query param for `GET /api/v1/bags`. `'.'` is included when .bag files exist directly in the root. The `trash` directory is only included for the developer role.
📄️ Get Bags Data
Scan a specific subdirectory of BAGS_FS and return paginated .bag file metadata. The `path` query param is required — use `GET /api/v1/bags/dirs` to discover available directories. The `trash` directory is developer-only.
📄️ Delete Bag Files
Moves one or more .bag files from BAGS_FS to the trash directory. Files already in `trash/` are permanently deleted instead — restricted to the developer role. All files are validated for existence before any deletion begins. Paths must be relative to BAGS_FS root (e.g. `critical_bags/scan_001.bag`).
📄️ Export Bag Files
Download one or more .bag files. A single file is returned as-is (`application/octet-stream`). Multiple files are packaged into a ZIP archive (`application/zip`). Paths must be relative to BAGS_FS root (e.g. `critical_bags/scan_001.bag`). Files under `trash/` are developer-only.
📄️ Stream Bag File for Playback
Stream a single .bag file with HTTP Range support for media players like Lichtblick / Foxglove. Supports seeking and partial content delivery (`206 Partial Content`).