VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
mcap_reader.h 文件参考

Concrete BagReader implementation for the MCAP bag file format. 更多...

#include <future>
#include <memory>
#include <string>
#include <vector>
#include "./bag_reader.h"
mcap_reader.h 的引用(Include)关系图:

浏览该文件的源代码.

 Concrete MCAP-format bag file player. 更多...

命名空间

详细描述

Concrete BagReader implementation for the MCAP bag file format.

McapReader reads bag files in the MCAP format (.vcap / .vcapx extension) and inherits all playback, seeking, and integrity-check capabilities from BagReader.

MCAP (Message Capture Archive Protocol) is a modular, indexed binary format designed for efficient random-access playback. It supports channel-level schemas, checksums, and multiple compression codecs.

Usage
auto reader = vlink::BagReader::create("/data/recording.vcap");
// or explicitly:
auto reader = std::make_shared<vlink::McapReader>("/data/recording.vcap");
reader->register_output_callback([](int64_t ts, const std::string& url,
vlink::ActionType action, const vlink::Bytes& data) {
// process message
});
reader->async_run();
reader->play({});
参见
BagReader, DatabaseReader