About .bag file
Hi
I'm currently researching to extract the depth information of a specific point (x,y) from the bag file.
I want to ask two questions.
1. I used “config.enable_record_to_file(path)” when recording the bag file. I want to know when it started recording. Is it when the program calls "pipeline.start(config)" function, or when “color_frame = aligned_frames.get_color_frame()” is called in the while loop?
2. I use “rs.config.enable_device_from_file(config, path)” to use the recorded bag file, and get the depth image of each frame in the while loop. But the depth image obtained has not been calibrated. I have used “align_to = rs.stream.color” and "align = rs.align(align_to) " to calibrate when recording, but it doesn't seem to work.
-
Hi Shenlingwushi123 When recording to a bag file with config.enable_record_to_file(path) the file is opened by the pipeline start command. This is demonstrated by the RealSense SDK's rs-record-playback example program:
Alignment information is not saved into a bag file though. You need to playback the bag to load the data of the individual streams from the bag file and then perform alignment of them in real-time.
Please sign in to leave a comment.
Comments
1 comment