Skip to content

怎么同时获取rgb,D2C的点云和imu #186

@mcmingchang

Description

@mcmingchang

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions