Skip to content

Enable IMU STREAMING for RS-capture example - #13991

Merged
Nir-Az merged 5 commits into
realsenseai:developmentfrom
gilpazintel:rs_capture_RSDSO-20167
May 19, 2025
Merged

Nir-Az merged 5 commits into
realsenseai:developmentfrom
gilpazintel:rs_capture_RSDSO-20167

Conversation

@gilpazintel

@gilpazintel gilpazintel commented May 8, 2025 •

Copy link
Copy Markdown
Contributor

tracked by RSDSO-20167

add gyro and accel as default for D457 and D430

@gilpazintel
gilpazintel requested a review from Nir-Az May 8, 2025 10:56
@Nir-Az Nir-Az changed the title Rs capture rsdso 20167 Enable IMU STREAMING for RS-capture example May 8, 2025
@Nir-Az

Nir-Az commented May 8, 2025

Copy link
Copy Markdown
Collaborator

Need to think about this change a bit as it's not only add the IMU to the example but for users and all of out testings too.
Meaning each flow that did
p = rs.pipeline()
p.start()
Will now start IMU too.

This was done in purpose for MIPI devices.
@remibettan / @ev-mp any idea why?

@Nir-Az

Nir-Az commented May 8, 2025

Copy link
Copy Markdown
Collaborator

Need to think about this change a bit as it's not only add the IMU to the example but for users and all of out testings too. Meaning each flow that did p = rs.pipeline() p.start() Will now start IMU too.

This was done in purpose for MIPI devices. @remibettan / @ev-mp any idea why?

1 thing we can do in the example alone w/o changing the SDK behavior is to add

config.enable_all_streams()

    rs2::pipeline pipe;
    rs2::config cfg;
     
    // Enable all camera streams
    cfg.enable_all_streams();

    // Start streaming with default recommended configuration
    // The default video configuration contains Depth and Color streams
    // If a device is capable to stream IMU data, both Gyro and Accelerometer are enabled by default
    pipe.start();

Try it

@gilpazintel

Copy link
Copy Markdown
Contributor Author

Need to think about this change a bit as it's not only add the IMU to the example but for users and all of out testings too. Meaning each flow that did p = rs.pipeline() p.start() Will now start IMU too.
This was done in purpose for MIPI devices. @remibettan / @ev-mp any idea why?

1 thing we can do in the example alone w/o changing the SDK behavior is to add

config.enable_all_streams()

    rs2::pipeline pipe;
    rs2::config cfg;
     
    // Enable all camera streams
    cfg.enable_all_streams();

    // Start streaming with default recommended configuration
    // The default video configuration contains Depth and Color streams
    // If a device is capable to stream IMU data, both Gyro and Accelerometer are enabled by default
    pipe.start();

Try it

i have tried it , it does not work with the change you suggested

@Nir-Az

Nir-Az commented May 11, 2025

Copy link
Copy Markdown
Collaborator

Need to think about this change a bit as it's not only add the IMU to the example but for users and all of out testings too. Meaning each flow that did p = rs.pipeline() p.start() Will now start IMU too.
This was done in purpose for MIPI devices. @remibettan / @ev-mp any idea why?

1 thing we can do in the example alone w/o changing the SDK behavior is to add
config.enable_all_streams()

    rs2::pipeline pipe;
    rs2::config cfg;
     
    // Enable all camera streams
    cfg.enable_all_streams();

    // Start streaming with default recommended configuration
    // The default video configuration contains Depth and Color streams
    // If a device is capable to stream IMU data, both Gyro and Accelerometer are enabled by default
    pipe.start();

Try it

i have tried it , it does not work with the change you suggested

You need to add β€œSUPER_SET” (w/o default) where you changed and try again

…e active only if the user directed 'enable_all_streams')

that way default behavior wont change.
Comment thread src/ds/d400/d400-factory.cpp Resolved

tags.push_back({ RS2_STREAM_DEPTH, -1, 640, 480, RS2_FORMAT_Z16, 30, profile_tag::PROFILE_TAG_SUPERSET | profile_tag::PROFILE_TAG_DEFAULT });
tags.push_back({ RS2_STREAM_GYRO, -1, 0, 0, RS2_FORMAT_MOTION_XYZ32F, (int)odr::IMU_FPS_100, profile_tag::PROFILE_TAG_SUPERSET });
tags.push_back({ RS2_STREAM_ACCEL, -1, 0, 0, RS2_FORMAT_MOTION_XYZ32F, (int)odr::IMU_FPS_100, profile_tag::PROFILE_TAG_SUPERSET });

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

63?

@Nir-Az
Nir-Az merged commit f9aa4a8 into realsenseai:development May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants