Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for device URI in OpenNI2Grabber constructor #3238

Merged
merged 1 commit into from
Jul 17, 2019
Merged

Add support for device URI in OpenNI2Grabber constructor #3238

merged 1 commit into from
Jul 17, 2019

Conversation

Morwenn
Copy link
Contributor

@Morwenn Morwenn commented Jul 16, 2019

It additionally introduces a breaking change: when it fails to
recognize a pattern in the device_id string and if the string is not
empty, it now throws a pcl::IOException instead of calling getAnyDevice.

Closes #3227.

It additionally introduces a breaking change: when it fails to
recognize a pattern in the device_id string and if the string is not
empty, it now throws a pcl::IOException instead of calling getAnyDevice.
@Morwenn
Copy link
Contributor Author

Morwenn commented Jul 16, 2019

Isn't the "bus@address" pattern in the constructor description the same thing as the URI?

Also there's no test for the feature, but I've no idea how to write one anyway. Is this ok?

@SergioRAgostinho SergioRAgostinho added changelog: behavior change Meta-information for changelog generation module: io labels Jul 16, 2019
@SergioRAgostinho
Copy link
Member

Also there's no test for the feature, but I've no idea how to write one anyway. Is this ok?

Testing this functionality relies on the existence of external hardware which is not available for our CI. We also have no mocking mechanisms in place for grabbers (or for anything else) so don't worry about it.

@taketwo taketwo merged commit 569e11c into PointCloudLibrary:master Jul 17, 2019
@Morwenn Morwenn deleted the issue-3227 branch July 17, 2019 11:26
@taketwo taketwo changed the title Make OpenNI2Grabber constructor work when given a device URI (#3227) Add support for device URI in OpenNI2Grabber constructor Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: behavior change Meta-information for changelog generation module: io
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opening a device with OpenNI2Grabber
3 participants