# ROS2 wrapper no picture when subscribing with rviz

**URL:** <https://community.stereolabs.com/t/ros2-wrapper-no-picture-when-subscribing-with-rviz/1093>\
**Category:** Uncategorized\
**Created:** [April 28, 2022, 3:40pm UTC](https://community.stereolabs.com/t/ros2-wrapper-no-picture-when-subscribing-with-rviz/1093 "2022-04-28T15:40:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![floriankittelmann](https://community.stereolabs.com/user_avatar/community.stereolabs.com/floriankittelmann/32/404_2.png) [@floriankittelmann](https://community.stereolabs.com/u/floriankittelmann)\
**Post date:** [April 28, 2022, 3:40pm UTC](https://community.stereolabs.com/t/ros2-wrapper-no-picture-when-subscribing-with-rviz/1093/1 "2022-04-28T15:40:51Z")

</div>

Dear community,

I started the ros2-wrapper in foxy by using the command:

```auto
ros2 launch zed_wrapper zed2i.launch.py

```

By using rviz2 I check if I get the data, which I need. But unfortunatley the image is not available, but when I am using the ZED\_Explorer I retrieve an image:

 ![image](https://community.stereolabs.com/uploads/default/original/1X/4204fffb175b01dd36ce6ab9d3ce9b651c0236c9.png)

I somehow got the feeling that it is related to this issue: [[BUG] Unable to subscribe and display /zed/zed\_node/left/image\_rect\_color Images · Issue #40 · stereolabs/zed-ros2-wrapper · GitHub](https://github.com/stereolabs/zed-ros2-wrapper/issues/40).

So I checked if I subscribed in rviz2 like the it is written in the QoS description here: [ROS 2 - ZED Node | Stereolabs](https://www.stereolabs.com/docs/ros2/zed-node/#qos-profiles)

When I start the ros wrapper for ros1 in noetic it works out-of-the-box.

Can somebody help what I am doing wrong in the moment when I subscribe the ros topic in ros2 - foxy?

Thanks in advance

---

<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:** [April 28, 2022, 4:17pm UTC](https://community.stereolabs.com/t/ros2-wrapper-no-picture-when-subscribing-with-rviz/1093/2 "2022-04-28T16:17:26Z")

</div>

Have you applied the fix as suggested in the README?  
[GitHub - stereolabs/zed-ros2-wrapper: ROS 2 wrapper beta for the ZED SDK](https://github.com/stereolabs/zed-ros2-wrapper#image-transport-and-topic-subscriptions)

---

<div class="post-metadata">

**Author:** ![floriankittelmann](https://community.stereolabs.com/user_avatar/community.stereolabs.com/floriankittelmann/32/404_2.png) [@floriankittelmann](https://community.stereolabs.com/u/floriankittelmann)\
**Post date:** [April 28, 2022, 5:18pm UTC](https://community.stereolabs.com/t/ros2-wrapper-no-picture-when-subscribing-with-rviz/1093/3 "2022-04-28T17:18:39Z")

</div>

Thanks very much for your prompt reply. I saw the the known issue when I installed it. But I might installed the image\_common package via sudo apt, which installed me v2.3.0. Unfortunately the given commands by checking out the repository didnt work for me. I need to download the given release under the link [Release 3.0.0 · ros-perception/image\_common · GitHub](https://github.com/ros-perception/image_common/releases/tag/3.0.0) in my colcon workspace, which I was able to build and the image gets displayed now

---

<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:** [April 29, 2022, 8:35am UTC](https://community.stereolabs.com/t/ros2-wrapper-no-picture-when-subscribing-with-rviz/1093/4 "2022-04-29T08:35:40Z")

</div>

Yes, the `image_common` issue is really boring. Unfortunately the only way to make it work is by using the correct supported version.  
I hope it will be fixed in the oncoming Humble LTS.
