Skip to content

Fixing typo in align-depth2color.py - #4851

Merged
dorodnic merged 1 commit into
realsenseai:masterfrom
BenDavisson:master
Sep 12, 2019
Merged

Fixing typo in align-depth2color.py#4851
dorodnic merged 1 commit into
realsenseai:masterfrom
BenDavisson:master

Conversation

@BenDavisson

Copy link
Copy Markdown
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.

@dorodnic dorodnic left a comment

Copy link
Copy Markdown
Contributor

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 realsenseai:master Sep 12, 2019
@dorodnic

Copy link
Copy Markdown
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.

3 participants