Skip to content

Instantly share code, notes, and snippets.

#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);