UnityRos2 icon indicating copy to clipboard operation
UnityRos2 copied to clipboard

Unable to render image topics in HMI after restarting standalone application

Open sandman opened this issue 3 years ago • 4 comments

Hi, I am using a standalone Unity build (v2019.4.23f1) with ROS2 dashing on Ubuntu 18.04, as an HMI application. After a fresh reboot I am able to see the image topics nicely in the HMI. However, when I stop the HMI and restart it, only one of the image topics is seen in the HMI.

However all the other image topics are seen without any issues on rqt. This seems to be an issue with the Unity - ROS2 integration (possible environment vars or paths). Any tips on how to debug this issue are much appreciated.

Thanks, Sandip

sandman avatar Jun 29 '21 10:06 sandman

Hmm, this is not something I have run into before.

Are you using cyclone DDS on the ROS2 side or something else? If not I would start by changing to cyclone and seeing if that makes any difference.

Is it always the same image topic that stops working or different ones every time?

samiamlabs avatar Jun 29 '21 10:06 samiamlabs

Appreciate your swift response.

I am using FastRTPS. It is always the same image topics that stop working. One specific topic works always. All image topics are equivalent (i.e. nothing special/different about them)

sandman avatar Jun 29 '21 10:06 sandman

I am using eProsima Fast DDS to be specific.

sandman avatar Jun 29 '21 11:06 sandman

Have you tried logging or something in the image callbacks in Unity for the topics that stop showing up?

samiamlabs avatar Jun 29 '21 11:06 samiamlabs