-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using a.bag frames #6811
Comments
To arothenberg: I am using python API, The method "config.enable_stream_from_file("filename")" didn't worked well with the loaded .bag filename named with prefix like "test....", "2020....". Try another file name with prefix like "sun...". |
Hi @arothenberg If you are working in the C++ language, the RealSense ROS-bag parser sample program created by a RealSense community member may be a useful reference. It also requires OpenCV as a dependency though. The finished code for the project is at the bottom of the opening comment, in a file called RealSenseHelper.zip. |
Thanks Marty. Thanks. I'll open another issue or comment on the marcovs thread if(when!) I have a problem. Thanks. |
@arothenberg Thanks very much for the update. Good luck! |
Thanks. One other thing. Realsense should consider adding the parser or similar to the sdk examples because testing with prerecorded data is necessary for most projects. |
The rosbag parser program is at the base of the SDK examples page, filed under the Community Projects section of example programs contributed by RealSense community members. https://github.com/IntelRealSense/librealsense/tree/master/examples#community-projects |
I got it thanks. I'll set it up today. I never thought of checking the community projects. I'll be more aware of that now. It probably makes things easier. |
Issue Description
I am trying to analyze depth frames on prerecorded data.
To test it I'm using the rs-align-advanced code and changing the source to the "a.bag" file created using rs-record-playback .
I tried to port this code:
cfg.enable_device_from_file("a.bag");
into rs-align-advanced like this
rs2::pipeline pipe;
rs2::config cfg;
cfg.enable_device_from_file("a.bag");
rs2::pipeline_profile profile = pipe.start(cfg);
get an error saying failed to create a ros reader.
The difference i see is that rs-record-playback uses a shared pointer
pipe = std::make_sharedrs2::pipeline();
...
pipe->start(cfg);
I'm probably missing something obvious.
Thanks in advance. Also, is the bag file degraded or does it store the same frames that the camera sends?
The text was updated successfully, but these errors were encountered: