Using bag file
I am trying the sample code with bag file
rs2::config cfg;
cfg.enable_device_from_file(<filename>);
pipe.start(cfg);
This is I have included to run my bag file
It failed to run.
The window starts and immediately terminate.
What is the problem?
-
Hi. Getirfanhabeeb The link below provides script resources for ways to playback a bag in C++.
https://github.com/IntelRealSense/librealsense/issues/2749
In particular, this script example is similar to your own code above:
https://github.com/IntelRealSense/librealsense/issues/2749#issuecomment-440887769
You should have an rs2::pipeline pipe; instruction placed directly before pipe.start(cfg); so that the program knows what pipe refers to in the start instruction.
Please sign in to leave a comment.
Comments
1 comment