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

Fixing typo in align-depth2color.py #4851

Merged
merged 1 commit into from Sep 12, 2019

Conversation

BenDavisson
Copy link
Contributor

When I copied the align-depth2color.py example script and ran it, there was a nasty output:

Traceback (most recent call last):
File "RS_align_depth2color.py", line 25, in
profile = pipeline.start(config)
RuntimeError: Couldn't resolve requests

It seems that the resolutions weren't matching on code lines 21 & 22. The depth cam was set to (640, 360) and the color cam was set to (640, 480).

Simply changing resolutions to match fixed it.

Copy link
Contributor

@dorodnic dorodnic left a comment

Choose a reason for hiding this comment

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

Thanks @BenDavisson

@dorodnic dorodnic merged commit ff2a291 into IntelRealSense:master Sep 12, 2019
@dorodnic
Copy link
Contributor

Hi @Marenix
You are right, this was not so much a typo as a common resolution supported by most devices.
I personally would go for:

config.enable_stream(rs.stream.depth, rs.format.z16, 30)
config.enable_stream(rs.stream.color, rs.format.bgr8, 30)

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.

None yet

3 participants