# Zed-ros2-wrapper max\_depth problem (ZEDX)

**URL:** <https://community.stereolabs.com/t/zed-ros2-wrapper-max-depth-problem-zedx/10998>\
**Category:** Software\
**Tags:** depth\
**Created:** [March 9, 2026, 7:54pm UTC](https://community.stereolabs.com/t/zed-ros2-wrapper-max-depth-problem-zedx/10998 "2026-03-09T19:54:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergii](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@sergii](https://community.stereolabs.com/u/sergii)\
**Post date:** [March 9, 2026, 7:54pm UTC](https://community.stereolabs.com/t/zed-ros2-wrapper-max-depth-problem-zedx/10998/1 "2026-03-09T19:54:58Z")

</div>

Hello,

I’m trying to get depth information for the objects far then 10m.  
/zed/zed\_node/depth/depth\_registered/compressedDepth - does not contain information about any object between 10 and 19m

```auto
zedx.yaml
    depth:
      min_depth: 1.0 
      max_depth: 19.0 

```

Setup:  
zed-ros2-wrapper - latest,  
SDK 5.2.1

Also tried(started from) SDK 5.1 and older version of zed-ros2-wrapper

My topics in sample:

```auto
/zed/zed_node/depth/depth_registered/compressedDepth
/zed/zed_node/left/color/rect/image/compressed
/zed/zed_node/left/color/rect/image/camera_info

```

ZED\_Depth\_Viewer can show the data I’m interested in  
Sample based on SDK API - can show.  
zed-ros2-wrapper with **/zed/zed\_node/depth/depth\_registered** - also can!  
but not for /zed/zed\_node/depth/depth\_registered\*\*/compressedDepth\*\*

Is it expected behavior?  
Do you have any recommandation how to get it working with \*\*compressedDepth?  
\*\*  
Thank you for any helpful information

---

<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:** [March 10, 2026, 10:14am UTC](https://community.stereolabs.com/t/zed-ros2-wrapper-max-depth-problem-zedx/10998/2 "2026-03-10T10:14:06Z")

</div>

Hi @sergii  
have you checked if the point cloud contains depth information in the expected range?

Please share the full node log to check that all the parameters are correctly set.

---

<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:** [March 10, 2026, 10:29am UTC](https://community.stereolabs.com/t/zed-ros2-wrapper-max-depth-problem-zedx/10998/3 "2026-03-10T10:29:10Z")

</div>

Please also check the parameters of the `compressedDepth` topic.

It looks like the code of the compressed depth transport has a parameter to set the maximum depth value that is hard coded to 10 meters:

- [image\_transport\_plugins/compressed\_depth\_image\_transport/src/compressed\_depth\_publisher.cpp at humble · ros-perception/image\_transport\_plugins · GitHub](https://github.com/ros-perception/image_transport_plugins/blob/humble/compressed_depth_image_transport/src/compressed_depth_publisher.cpp#L49)
- [image\_transport\_plugins/compressed\_depth\_image\_transport/src/compressed\_depth\_publisher.cpp at humble · ros-perception/image\_transport\_plugins · GitHub](https://github.com/ros-perception/image_transport_plugins/blob/humble/compressed_depth_image_transport/src/compressed_depth_publisher.cpp#L69)
- [image\_transport\_plugins/compressed\_depth\_image\_transport/src/compressed\_depth\_publisher.cpp at humble · ros-perception/image\_transport\_plugins · GitHub](https://github.com/ros-perception/image_transport_plugins/blob/humble/compressed_depth_image_transport/src/compressed_depth_publisher.cpp#L78-L81)
- [image\_transport\_plugins/compressed\_depth\_image\_transport/src/codec.cpp at rolling · ros-perception/image\_transport\_plugins · GitHub](https://github.com/ros-perception/image_transport_plugins/blob/rolling/compressed_depth_image_transport/src/codec.cpp#L162-L167)

I tested and I cannot see this parameter exposed…

---

<div class="post-metadata">

**Author:** ![sergii](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@sergii](https://community.stereolabs.com/u/sergii)\
**Post date:** [March 10, 2026, 6:10pm UTC](https://community.stereolabs.com/t/zed-ros2-wrapper-max-depth-problem-zedx/10998/4 "2026-03-10T18:10:26Z")

</div>

Hi, Myzhar

Thank you for your tests. Now I see that compressed\_depth\_image\_transport it is not reliably exposed/configured in a ROS 2-friendly way.

Can you show how you are setting max\_depth in from wrapper to compressed\_depth\_image\_transport?  
I’m going to prepare a patch for compressed\_depth\_image\_transport.

Now I have  
ros2 param get /zed/zed\_node depth.max\_depth  
Double value is: 19.0  
But it’s not visible in compressed\_depth\_image\_transport

---

<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:** [March 11, 2026, 9:23am UTC](https://community.stereolabs.com/t/zed-ros2-wrapper-max-depth-problem-zedx/10998/5 "2026-03-11T09:23:16Z")

</div>

> [@sergii](#):
>
> Can you show how you are setting max\_depth in from wrapper to compressed\_depth\_image\_transport?

There’s no code for this because this parameter is not correctly exposed by the `compressed_depth_image_transport` package.

You are the first user to notice and report this problem that is only affecting the `compressedDepth` topic for the reasons exposed above.

---

<div class="post-metadata">

**Author:** ![sergii](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@sergii](https://community.stereolabs.com/u/sergii)\
**Post date:** [March 11, 2026, 11:23am UTC](https://community.stereolabs.com/t/zed-ros2-wrapper-max-depth-problem-zedx/10998/6 "2026-03-11T11:23:01Z")

</div>

Ok, let me summarize.

[Stereolabs](https://www.stereolabs.com/) recommends using compressed depth to improve the performance (`reduce the bandwidth`) But the configuration does not work due to the third-party issue (compressed\_depth\_image\_transport).

I realized the support in compressed\_depth\_image\_transport is like a ROS2 param.  
command-line: ros2 param set node parameter value - works on my end.

I can rebuild compressed\_depth\_image\_transport with hardcoded depth\_max.  
But we need to use two cameras, ZEDX and ZEDX mini, and I can’t use a hardcoded 12m for ZEDX mini because I also have to limit it to a lower range.(I don’t need 12 and even 10m for mini)

Can you share some binaries (SDK part) that use the ROS2 params approach for any of the ZEDX cameras for compressedDepth?

---

<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:** [March 11, 2026, 11:32am UTC](https://community.stereolabs.com/t/zed-ros2-wrapper-max-depth-problem-zedx/10998/7 "2026-03-11T11:32:39Z")

</div>

> [@sergii](#):
>
> But we need to use two cameras, ZEDX and ZEDX mini, and I can’t use a hardcoded 12m for ZEDX mini because I also have to limit it to a lower range.(I don’t need 12 and even 10m for mini)

You can use the same code for both. If the maximum depth in the Wrapper is set to a value lower than the maximum depth value that you set in `compressed_depth_image_transport`, the compressed depth map will use the value of the Wrapper.
