# Numpy version problem for ROS2 based ZED SDK API usage

**URL:** <https://community.stereolabs.com/t/numpy-version-problem-for-ros2-based-zed-sdk-api-usage/10188>\
**Category:** ROS2\
**Tags:** zed-sdk, jetson, depth, ros2\
**Created:** [October 20, 2025, 12:34pm UTC](https://community.stereolabs.com/t/numpy-version-problem-for-ros2-based-zed-sdk-api-usage/10188 "2025-10-20T12:34:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timingisnow](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/t/e0b2c6/32.png) [@timingisnow](https://community.stereolabs.com/u/timingisnow)\
**Post date:** [October 20, 2025, 12:34pm UTC](https://community.stereolabs.com/t/numpy-version-problem-for-ros2-based-zed-sdk-api-usage/10188/1 "2025-10-20T12:34:38Z")

</div>

Hi there,

I below is what I did and what I want to do.  
Two ZED X One were stereo-composed and calibrated.  
And the bag file was saved by recording based on ROS2 using zed\_multi\_camera.launch.py .  
What I’m trying to do is

1. play collected bag files
2. I want to develop a pipeline to publish depthmap in real time by applying natural mode as in ZED Depth viewer using topic subsribe and zed sdk api.

Currently, Ubuntu 22.04, ROS2 humble, and Jetson AGX Orin-based ZED SDK have 5.0.7.  
ROS2-based cv\_bridge requires the version numpy\<2.0 and numpy\>=2.0 to use ZED SDK 5.07 based api. the Python file code is written and executed in the same environment, causing a numpy version conflict.

How can we solve it in this situation?

---

<div class="post-metadata">

**Author:** ![pavolk](https://community.stereolabs.com/user_avatar/community.stereolabs.com/pavolk/32/5215_2.png) [@pavolk](https://community.stereolabs.com/u/pavolk)\
**Post date:** [October 22, 2025, 7:41am UTC](https://community.stereolabs.com/t/numpy-version-problem-for-ros2-based-zed-sdk-api-usage/10188/2 "2025-10-22T07:41:49Z")

</div>

Hi,

this is best done with two separate (python) processes running in two different environments, in each installed the correct set of dependencies. You can consider the two components as separate python packages. At the core of ROS(2), there is a inter-process communication (IPC) middleware…

There are ways to get along with one environment. If you really want it, ask copilot about it. It will explain all options in detail…

BR
