Skip to content

Pipeline new API - #13135

Merged
Nir-Az merged 6 commits into
realsenseai:developmentfrom
noacoohen:Pipline_new_API
Jul 11, 2024
Merged

Pipeline new API#13135
Nir-Az merged 6 commits into
realsenseai:developmentfrom
noacoohen:Pipline_new_API

Conversation

@noacoohen

Copy link
Copy Markdown
Contributor

Adding new API to set a device for pipeline, ensuring the pipeline maintains the sensitivity values configured for
this device.

Tracked-by RSDSO-19687

@noacoohen
noacoohen requested review from Nir-Az and OhadMeir July 9, 2024 12:22
Comment thread include/librealsense2/h/rs_pipeline.h Outdated
Comment thread include/librealsense2/hpp/rs_pipeline.hpp Outdated
Comment thread include/librealsense2/h/rs_pipeline.h
Comment thread src/pipeline/pipeline.h Outdated
Comment thread src/pipeline/pipeline.h
gyro_sensitivity_value = 4.0

with test.closure("pipeline - set device"):
cfg = rs.config()

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.

Used?

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.

Oh, now I see, why not declare before usage? it's C++ :)

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.

It's python :)
Same comment but that's OK for now.
In the future, with C++ and python it is better to declare the variable right before usage.
This way if you remove the usage in the future, you will remember to remove the declaration too

Comment thread unit-tests/live/d400/test-pipeline-set-device.py
@Nir-Az

Nir-Az commented Jul 11, 2024

Copy link
Copy Markdown
Collaborator

Great PR, let's verify the shared/weak ptr think and it's approved from my side.

Comment thread unit-tests/live/d400/test-pipeline-set-device.py
Comment thread unit-tests/live/d400/test-pipeline-set-device.py Outdated
@Nir-Az
Nir-Az merged commit 60e02fa into realsenseai:development Jul 11, 2024
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.

3 participants