Skip to content

Instantly share code, notes, and snippets.

@MatsumotoJ
MatsumotoJ / multicam_bagfile_playback_example.cpp
Created June 4, 2018 07:37
Synchronized playback of rosbag files recorded with multiple cameras (https://github.com/IntelRealSense/librealsense/issues/1810)
#include <iostream>
#include <vector>
#include <librealsense2\rs.hpp>
// loadbagfile: load a bag file to a pipeline
void loadbagfile(rs2::pipeline & pipe, std::string filename)
{
rs2::config cfg;
cfg.enable_device_from_file(filename);