diff --git a/examples/convert_osi2mcap.cpp b/examples/convert_osi2mcap.cpp index 3fe2cde..724b640 100644 --- a/examples/convert_osi2mcap.cpp +++ b/examples/convert_osi2mcap.cpp @@ -168,13 +168,13 @@ int main(const int argc, const char** argv) { } auto trace_file_writer = osi3::MCAPTraceFileWriter(); - mcap::McapWriterOptions options("osi2mcap"); + mcap::McapWriterOptions mcap_options("osi2mcap"); // Adapt chunk size according to data and usecase: // Example: ros2 is using 4 * 1024 * 1024) - options.chunkSize = 4 * 1024 * 1024; - options.compression = mcap::Compression::Zstd; + mcap_options.chunkSize = 4 * 1024 * 1024; + mcap_options.compression = mcap::Compression::Zstd; - if (!trace_file_writer.Open(options->output_file_path, options)) { + if (!trace_file_writer.Open(options->output_file_path, mcap_options)) { std::cerr << "ERROR: Could not open output file " << options->output_file_path << std::endl; return 1; } diff --git a/examples/example_mcap_writer.cpp b/examples/example_mcap_writer.cpp index 948f262..4407ae0 100644 --- a/examples/example_mcap_writer.cpp +++ b/examples/example_mcap_writer.cpp @@ -22,14 +22,14 @@ int main(int argc, const char** argv) { const auto trace_file_path = GenerateTempFilePath(); std::cout << "Creating trace_file at " << trace_file_path << std::endl; - mcap::McapWriterOptions options("osi"); + mcap::McapWriterOptions mcap_options("osi"); // Adapt chunk size according to data and usecase: // Example: ros2 is using 4 * 1024 * 1024) - options.chunkSize = 4 * 1024 * 1024; + mcap_options.chunkSize = 4 * 1024 * 1024; // Default: zstd - options.compression = mcap::Compression::Lz4; + mcap_options.compression = mcap::Compression::Lz4; - trace_file_writer.Open(trace_file_path, options); + trace_file_writer.Open(trace_file_path, mcap_options); // add required and optional metadata to the net.asam.osi.trace metadata record auto net_asam_osi_trace_metadata = osi3::MCAPTraceFileWriter::PrepareRequiredFileMetadata();