-
Notifications
You must be signed in to change notification settings - Fork 386
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
depth image is very imprecise #25
Comments
Hi Eric, |
It is not an issue, it is due to the conversion from float to short. |
This is an issue, because when converting to short you throw away all the fractional meter information. There's nothing i can do in my code to recover this infomeation. Why not just leave the data as a float, as suggested by REP 118? |
Also, I don't see how that line shows you publish meters. All you're doing there is changing the baseline that's reported to ROS. I don't see how that relates to the calculations done by the zed sdk |
Fixed in #26 |
@P-yver: your comments are wrong, and this patch is incorrect. The zed camera returns distances in the same units as the distance between cameras is measured. By default, this is 120mm. Therefore, the depth measurements are returned in mm. In a previous version of the readme, there were instructions to manually set this baseline to |
I am trying to obtain depth value of each pixel from the zed camera. I am trying to convert the ros image published in the topic
to OpenCV image using this. I am interested in knowing what other approach is possible by just using the |
In my testing, I only ever get integers in [0, 10] for the pixels of the depth image. Is this measured in meters?
Is the issue that this is being incorrectly rounded in this line?
The text was updated successfully, but these errors were encountered: