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

Question about how to get the accurate distance to object? #637

Closed
QiuYilin opened this issue Feb 28, 2019 · 3 comments
Closed

Question about how to get the accurate distance to object? #637

QiuYilin opened this issue Feb 28, 2019 · 3 comments
Labels
wait_to_close wait to see if problem is solved.

Comments

@QiuYilin
Copy link

QiuYilin commented Feb 28, 2019

I know there is a function to get distance in librealsense2 api. But how to get distance by ros package if I know the x and y coordinate in camera/color/image_raw. It seems that I need to subscribe /camera/depth/color/points. But I know little about how to transform rgbxyz to distance. Can anyone give some suggestions?

@QiuYilin QiuYilin changed the title Duestion about how to get the accurate distance to object? Question about how to get the accurate distance to object? Feb 28, 2019
@doronhi
Copy link
Contributor

doronhi commented Feb 28, 2019

you should subscribe to aligned_depth_to_color and check the value of the color pixel on that image.

@doronhi doronhi added the wait_to_close wait to see if problem is solved. label Mar 4, 2019
@RealSenseCustomerSupport
Copy link
Collaborator

[Please Ignore - RealSense system comment]

@Ageneinair
Copy link

Can I ask you how to get distance in librealsense2 api (python wrapper)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wait_to_close wait to see if problem is solved.
Projects
None yet
Development

No branches or pull requests

4 participants