VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
mcap_writer.h File Reference

Concrete BagWriter implementation for the MCAP bag file format. More...

#include <memory>
#include <string>
#include "./bag_writer.h"
Include dependency graph for mcap_writer.h:

Go to the source code of this file.

Classes

 Concrete MCAP-format bag file recorder. More...

Namespaces

Detailed Description

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,
See also
BagWriter, DatabaseWriter