siemens / ros-sharp

ROS# is a set of open source software libraries and tools in C# for communicating with ROS from .NET applications, in particular Unity3D
Apache License 2.0
961 stars 365 forks source link

Image Publisher doesn't work with ROS Image View #422

Closed jntlblv1 closed 8 months ago

jntlblv1 commented 2 years ago

I have a question!

Here is my question: I'm using Image Publisher and it works partially. This is my case: first of all I'm using Image Subscriber in order to get a CompressedImage from ROS and it works. I publish the image on a Plane object and I add a simple cube. Then I want to see this scene in ROS (e.g. with rqt Image View). In order to do that I'm using Image Publisher. In ROS I can see the topic but when I try to see my scene with ImageView I can only see a grey screen.

I also tried to subscribe to the topic which i created with another Image Subcriber and I published the image on another plane and it works, so I think that the problem is in ROS.

Can you give me some advice? Thank you very much!

MartinBischoff commented 2 years ago

Hi @jntlblv1 Have you checked the hints suggested in closed issues related to image publishers & subscribers, eg. https://github.com/siemens/ros-sharp/issues/352 and referenced? The problem could be related to codecs used by Unity not available on your ROS system or image data de/-serialization in general. Save the message byte[] in a file, check in in Hex Editors, and image viewers, also on the machine running Unity.

MartinBischoff commented 8 months ago

outdated / closing due to inactivity