# \[ROS2 Wrapper\] 4 ZED2i cameras same device in docker container

**URL:** <https://community.stereolabs.com/t/ros2-wrapper-4-zed2i-cameras-same-device-in-docker-container/2246>\
**Category:** ROS2\
**Tags:** multi-camera, ros, docker, jetson\
**Created:** [March 14, 2023, 12:58pm UTC](https://community.stereolabs.com/t/ros2-wrapper-4-zed2i-cameras-same-device-in-docker-container/2246 "2023-03-14T12:58:22Z")\
**Posts on this page:** 3\
**Page:** 2

<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 16, 2023, 2:31pm UTC](https://community.stereolabs.com/t/ros2-wrapper-4-zed2i-cameras-same-device-in-docker-container/2246/21 "2023-03-16T14:31:46Z")

</div>

You can make a Python script that calls the `reboot` command for all the cameras before starting all the nodes.

Regarding the `delay` you can use this launch file as an example of how to use ROS2 `TimerAction` in a launch file:

> <https://github.com/stereolabs/zed-ros2-examples/blob/example_costmap2d/examples/zed_costmap2d_example/launch/start_example.launch.py#L177-L181>

---

<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 17, 2023, 12:10pm UTC](https://community.stereolabs.com/t/ros2-wrapper-4-zed2i-cameras-same-device-in-docker-container/2246/22 "2023-03-17T12:10:33Z")

</div>

For those who have the same problem

In the end before launch several cams i reboot all of them to fix missing ones, аfter that all cams recognized by nodes  
it’s worth paying attention to make reboot command work properly in docker container after installing ros and all nodes, be sure you have /usr/local/nvidia/bin at the beginning of PATH

---

<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 17, 2023, 1:53pm UTC](https://community.stereolabs.com/t/ros2-wrapper-4-zed2i-cameras-same-device-in-docker-container/2246/23 "2023-03-17T13:53:54Z")

</div>

Hi @otstanteplz  
thank you for the update 👍

[Previous page](https://community.stereolabs.com/t/ros2-wrapper-4-zed2i-cameras-same-device-in-docker-container/2246.md?page=1)
