Skip to content

Refactor BagExporter to make it more readable #18

@hect95

Description

@hect95

There are a few functions that can be broken down into smaller functions to improve readability.

For instance, BagExporter::extract_data(const fs::path & rosbag):

void BagExporter::extract_data(const fs::path & rosbag)
{
// Initialize reader
rosbag2_cpp::readers::SequentialReader reader;
rosbag2_storage::StorageOptions storage_options;
storage_options.uri = rosbag.string();
storage_options.storage_id = storage_id_;
rosbag2_cpp::ConverterOptions converter_options;
converter_options.input_serialization_format = "cdr";
converter_options.output_serialization_format = "cdr";

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions