pyorbbecsdk icon indicating copy to clipboard operation
pyorbbecsdk copied to clipboard

如何设置pipeline获取imu帧的配置

Open YeWenxuan64 opened this issue 5 months ago • 2 comments

config = Config() pipeline = Pipeline()

config.enable_accel_stream() config.enable_gyro_stream()

config.set_frame_aggregate_output_mode(OBFrameAggregateOutputMode.FULL_FRAME_REQUIRE) pipeline.start(config)

如何设置imu采样速率之类的,手动设置到50hz,200hz之类的

YeWenxuan64 avatar Aug 09 '25 19:08 YeWenxuan64

You could configure it like this. The full-scale range depends on the device type, while the sample rate must be set for both the accelerometer and the gyroscope and they must be the same; otherwise, the configuration may not take effect as expected: config.enable_accel_stream(OBAccelFullScaleRange.ACCEL_FS_4g, OBGyroSampleRate.SAMPLE_RATE_50_HZ) config.enable_gyro_stream(OBGyroFullScaleRange.FS_1000dps, OBGyroSampleRate.SAMPLE_RATE_50_HZ)

gongye2 avatar Aug 28 '25 08:08 gongye2

You could configure it like this. The full-scale range depends on the device type, while the sample rate must be set for both the accelerometer and the gyroscope and they must be the same; otherwise, the configuration may not take effect as expected: config.enable_accel_stream(OBAccelFullScaleRange.ACCEL_FS_4g, OBGyroSampleRate.SAMPLE_RATE_50_HZ) config.enable_gyro_stream(OBGyroFullScaleRange.FS_1000dps, OBGyroSampleRate.SAMPLE_RATE_50_HZ)

great😆

YeWenxuan64 avatar Sep 02 '25 16:09 YeWenxuan64