# \[ROS2 Wrapper\] Taking too long to get Images in 720p from 4 cameras

**URL:** <https://community.stereolabs.com/t/ros2-wrapper-taking-too-long-to-get-images-in-720p-from-4-cameras/2296>\
**Category:** ROS2\
**Tags:** multi-camera, python, docker\
**Created:** [March 21, 2023, 3:15pm UTC](https://community.stereolabs.com/t/ros2-wrapper-taking-too-long-to-get-images-in-720p-from-4-cameras/2296 "2023-03-21T15:15:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![otstanteplz](https://community.stereolabs.com/user_avatar/community.stereolabs.com/otstanteplz/32/1080_2.png) [@otstanteplz](https://community.stereolabs.com/u/otstanteplz)\
**Post date:** [March 21, 2023, 3:15pm UTC](https://community.stereolabs.com/t/ros2-wrapper-taking-too-long-to-get-images-in-720p-from-4-cameras/2296/1 "2023-03-21T15:15:58Z")

</div>

Hi, I have 4 ZED2i connected on the device via USB3.0 separate controllers  
ros2 foxy build  
In my node im subscribing to 4 left\_raw\_color uncompressed topics and 4 depth\_registered topics,  
and i want to save data from all of them when reciving trigger call, i can achive this by runnig all 4 with vga resolution or if i connect only 3 with 720p resolution. I tried to use compressed topics, but callbacks never executed  
Somehow in foxglove studio, i can subscribe to compressed topics and the image updates with desired speed, even if subscribed to raw i get slower but still acceptable update speed  
Any advice on how i can get data from 4 cams with 720p left raw image and depth?

---

<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 21, 2023, 9:48pm UTC](https://community.stereolabs.com/t/ros2-wrapper-taking-too-long-to-get-images-in-720p-from-4-cameras/2296/2 "2023-03-21T21:48:24Z")

</div>

Hi @otstanteplz  
can you provide detailed information regarding the PC that you are using?  
CPU, GPU, RAM, disc type, etc.

---

<div class="post-metadata">

**Author:** ![otstanteplz](https://community.stereolabs.com/user_avatar/community.stereolabs.com/otstanteplz/32/1080_2.png) [@otstanteplz](https://community.stereolabs.com/u/otstanteplz)\
**Post date:** [March 22, 2023, 6:30am UTC](https://community.stereolabs.com/t/ros2-wrapper-taking-too-long-to-get-images-in-720p-from-4-cameras/2296/3 "2023-03-22T06:30:55Z")

</div>

CPU Intel(R) Core™ i3-4160  
GPU TU116 [GeForce GTX 1660 SUPER]  
RAM DIMM DDR3 Synchronous 1600 MHz 4gb х 2  
DISK KINGSTON SA400S3 240gb  
Can`t attach file, so here link [https://drive.google.com/file/d/1SaMjENWiCfiaW8hnBNT-fbjrv5obrodR/view?usp=sharing](https://drive.google.com/file/d/1SaMjENWiCfiaW8hnBNT-fbjrv5obrodR/view?usp=sharing) , if you need more specific info

---

<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 22, 2023, 8:16am UTC](https://community.stereolabs.com/t/ros2-wrapper-taking-too-long-to-get-images-in-720p-from-4-cameras/2296/4 "2023-03-22T08:16:13Z")

</div>

@otstanteplz the configuration of your PC is not sufficient to handle 4 cameras simultaneously, it is barely enough to handle two cameras.  
The CPU processor is an old generation and not performant, it cannot handle ROS and 4 instances of the ZED ROS Wrapper. If you try using compressed topics the performance is even more reduced because the compression process takes a lot of resources.  
The amount of RAM (8 GB) is too limited for 4 cameras.  
The disk space to record data from 4 cameras will be quickly filled.  
The GPU is a good model, but the amount of VRAM (6 GB) is not enough for 4 cameras.

---

<div class="post-metadata">

**Author:** ![otstanteplz](https://community.stereolabs.com/user_avatar/community.stereolabs.com/otstanteplz/32/1080_2.png) [@otstanteplz](https://community.stereolabs.com/u/otstanteplz)\
**Post date:** [March 22, 2023, 12:09pm UTC](https://community.stereolabs.com/t/ros2-wrapper-taking-too-long-to-get-images-in-720p-from-4-cameras/2296/5 "2023-03-22T12:09:29Z")

</div>

It is a bit odd, because i cant see any crtical load in htop and gpustat

---

<div class="post-metadata">

**Author:** ![pixml](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/p/bbce88/32.png) [@pixml](https://community.stereolabs.com/u/pixml)\
**Post date:** [March 22, 2023, 2:01pm UTC](https://community.stereolabs.com/t/ros2-wrapper-taking-too-long-to-get-images-in-720p-from-4-cameras/2296/6 "2023-03-22T14:01:23Z")

</div>

BTW, what to do you think, will it be possible to use **two** Zed2i Cameras with **one** Jetson Orin Nano?

---

<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 23, 2023, 5:06pm UTC](https://community.stereolabs.com/t/ros2-wrapper-taking-too-long-to-get-images-in-720p-from-4-cameras/2296/7 "2023-03-23T17:06:03Z")

</div>

I’m not sure of that. I have a Jetson Orin Nano devkit and I will perform a few tests in the next few days.  
Can you trigger me if I’m not back to you in a week?

---

<div class="post-metadata">

**Author:** ![otstanteplz](https://community.stereolabs.com/user_avatar/community.stereolabs.com/otstanteplz/32/1080_2.png) [@otstanteplz](https://community.stereolabs.com/u/otstanteplz)\
**Post date:** [April 4, 2023, 12:39pm UTC](https://community.stereolabs.com/t/ros2-wrapper-taking-too-long-to-get-images-in-720p-from-4-cameras/2296/8 "2023-04-04T12:39:02Z")

</div>

@Myzhar Any good news about _using **two** Zed2i Cameras with **one** Jetson Orin Nano_?
