Sensors & Effectors/Camera

[Active IR Stereo Camera][Intel Realsense][pyrealsense2] Save bag file using python

jstar0525 2021. 7. 14. 18:09
반응형
import pyrealsense2 as rs

pipeline = rs.pipeline()
config = rs.config()
config.enable_device('xxxxxxxxxxxx')
config.enable_all_streams()
config.enable_record_to_file('./test.bag')

profile = pipeline.start(config)

for _ in range(100):
    frames = pipeline.wait_for_frames()

pipeline.stop()

 

* 여기서 만들어진 bag파일은 ROS의 bag파일과 연동되지 않는다.

반응형