Giter Site home page Giter Site logo

Comments (7)

P-yver avatar P-yver commented on June 24, 2024

Hi Eric,
We convert the baseline from millimeter to meter, see this line. So yes the depth values we publish are in meters.

from zed-ros-wrapper.

P-yver avatar P-yver commented on June 24, 2024

It is not an issue, it is due to the conversion from float to short.
We use it in meter for display purpose. If you want you can apply a scale factor during the conversion function.

from zed-ros-wrapper.

eric-wieser avatar eric-wieser commented on June 24, 2024

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?

from zed-ros-wrapper.

eric-wieser avatar eric-wieser commented on June 24, 2024

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

from zed-ros-wrapper.

eric-wieser avatar eric-wieser commented on June 24, 2024

Fixed in #26

from zed-ros-wrapper.

eric-wieser avatar eric-wieser commented on June 24, 2024

@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 0.12. This instruction should no longer apply. Then everything works correctly, and is published to the nearest mm (which is fine).

from zed-ros-wrapper.

syamprasadkr avatar syamprasadkr commented on June 24, 2024

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

/camera/depth/image_rect_color

to OpenCV image using this.

I am interested in knowing what other approach is possible by just using the zed-ros-wrapper. Can you pls elaborate your method if not inconvenient for you? Thank You.

from zed-ros-wrapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.