# What is the principle of obtaining point cloud information in the zed\_ROS package?

**URL:** <https://community.stereolabs.com/t/what-is-the-principle-of-obtaining-point-cloud-information-in-the-zed-ros-package/7401>\
**Category:** ROS1\
**Tags:** python\
**Created:** [November 11, 2024, 1:01pm UTC](https://community.stereolabs.com/t/what-is-the-principle-of-obtaining-point-cloud-information-in-the-zed-ros-package/7401 "2024-11-11T13:01:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangYQHBAU](https://community.stereolabs.com/user_avatar/community.stereolabs.com/zhangyqhbau/32/2097_2.png) [@zhangYQHBAU](https://community.stereolabs.com/u/zhangYQHBAU)\
**Post date:** [November 11, 2024, 1:01pm UTC](https://community.stereolabs.com/t/what-is-the-principle-of-obtaining-point-cloud-information-in-the-zed-ros-package/7401/1 "2024-11-11T13:01:23Z")

</div>

What is the principle of obtaining point cloud information in zed\_ROS? I just know that there is a point cloud topic in the zed\_ROS package, and subscribing to this topic allows for a series of point cloud operations. So, how does the principle of obtaining binocular point clouds come about? Please help me introduce it. thank you!

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [November 11, 2024, 7:29pm UTC](https://community.stereolabs.com/t/what-is-the-principle-of-obtaining-point-cloud-information-in-the-zed-ros-package/7401/2 "2024-11-11T19:29:27Z")

</div>

Hi @zhangYQHBAU  
the point cloud is generated by the ZED SDK and published by the ZED Wrapper.  
The ZED nodes do not generate the point cloud they only copy the ZED SDK data into ROS topics.

The mathematics behind point cloud generation is available [on this support page](https://support.stereolabs.com/hc/en-us/articles/4554115218711-How-can-I-convert-3D-world-coordinates-to-2D-image-coordinates-and-viceversa).

---

<div class="post-metadata">

**Author:** ![zhangYQHBAU](https://community.stereolabs.com/user_avatar/community.stereolabs.com/zhangyqhbau/32/2097_2.png) [@zhangYQHBAU](https://community.stereolabs.com/u/zhangYQHBAU)\
**Post date:** [November 20, 2024, 9:43am UTC](https://community.stereolabs.com/t/what-is-the-principle-of-obtaining-point-cloud-information-in-the-zed-ros-package/7401/3 "2024-11-20T09:43:55Z")

</div>

Next, I would like to further inquire about the formula below,  
Z = depth value of the pixel (u,v) from the depth map  
What formula is used to obtain the corresponding depth value from pixel coordinates? Or what principle is it?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [November 20, 2024, 12:04pm UTC](https://community.stereolabs.com/t/what-is-the-principle-of-obtaining-point-cloud-information-in-the-zed-ros-package/7401/4 "2024-11-20T12:04:57Z")

</div>

It’s not a formula. You must retrieve the pixel value

---

<div class="post-metadata">

**Author:** ![zhangYQHBAU](https://community.stereolabs.com/user_avatar/community.stereolabs.com/zhangyqhbau/32/2097_2.png) [@zhangYQHBAU](https://community.stereolabs.com/u/zhangYQHBAU)\
**Post date:** [November 20, 2024, 1:02pm UTC](https://community.stereolabs.com/t/what-is-the-principle-of-obtaining-point-cloud-information-in-the-zed-ros-package/7401/6 "2024-11-20T13:02:47Z")

</div>

What’s the meaning of this? Can you explain it specifically? I am very curious about how to obtain depth values and also want to understand this principle

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [November 20, 2024, 2:26pm UTC](https://community.stereolabs.com/t/what-is-the-principle-of-obtaining-point-cloud-information-in-the-zed-ros-package/7401/7 "2024-11-20T14:26:00Z")

</div>

Each pixel of the depth map contains a value that corresponds to the depth measure of that pixel.  
How to obtain that value depends on what you are using.  
Are you getting the depth map from ROS or from the ZED SDK?
