-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
profile_list = self.pipeline.get_stream_profile_list(OBSensorType.COLOR_SENSOR)
color_profile = profile_list.get_video_stream_profile(self.img_w, self.img_h, OBFormat.RGB, self.fps)
profile_list = self.pipeline.get_stream_profile_list(OBSensorType.DEPTH_SENSOR)
depth_profile = profile_list.get_video_stream_profile(self.img_w, self.img_h, OBFormat.Y16, self.fps)
self.config.enable_stream(color_profile)
self.config.enable_stream(depth_profile)
self.config.set_frame_aggregate_output_mode(OBFrameAggregateOutputMode.FULL_FRAME_REQUIRE)
self.pipeline.enable_frame_sync()
以上是获取rgb和d2c的配置,但是使用imu的话需要设置enable_accel_stream和enable_gyro_stream,跟以上代码是冲突的
Metadata
Metadata
Assignees
Labels
No labels