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

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

#include <memory>
#include <string>
#include "./bag_writer.h"
mcap_writer.h 的引用(Include)关系图:

浏览该文件的源代码.

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

命名空间

详细描述

Concrete BagWriter implementation for the MCAP bag file format.

McapWriter records VLink messages to the MCAP format (.vcap / .vcapx extension). It inherits all configuration, compression, and split capabilities from BagWriter.

MCAP files can be opened by the Foxglove Studio visualisation tool and other MCAP-compatible readers. The file is finalised with an index footer on clean shutdown.

Usage
auto writer = vlink::BagWriter::create("/data/recording.vcap");
// or explicitly:
auto writer = std::make_shared<vlink::McapWriter>("/data/recording.vcap");
writer->async_run();
writer->push("dds://my/topic", "demo.proto.PointCloud", vlink::SchemaType::kProtobuf,
参见
BagWriter, DatabaseWriter