4.7. Merge Rosbags

The Rosbag Merger is an utility to merge topics from one rosbag into another. This is useful to e.g. merging image topics from a source rosbag into a rosbag of an simulation which lost the source images.

4.7.1. rosbag_merger

rosbag_merger [OPTIONS] MAIN_INPUT_ROSBAG MERGE_INPUT_ROSBAG

Options

-o, --output-rosbag-suffix <output_rosbag_suffix>

suffix to append to main input rosbag name for the output rosbag

-t, --topics <topics>

ros topics to merge from second rosbag in to main rosbag.

Arguments

MAIN_INPUT_ROSBAG

Required argument

MERGE_INPUT_ROSBAG

Required argument

4.7.2. Prerequisites

  1. You have to place rosbags which should be merged inside the as_ros/rosbags directory.

4.7.3. Usage

  1. Execute the rosbag merger utility (within the docker container, see Start a console session inside the docker container), see explanation below and options below:

    analyzer [MAIN_INPUT_ROSBAG] [MERGE_INPUT_ROSBAG]
    
    1. You may want to specify which topics to merge from the MERGE_INPUT_ROSBAG into the MAIN_INPUT_ROSBAG (-t).

    2. You may want to specify which suffix should be used for the merged rosbag (-o).