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
945 stars 364 forks source link

image_publisher #410

Closed fanke1213812138 closed 2 years ago

fanke1213812138 commented 2 years ago

When I used imagePublisher.cs to publish camera image to ROS, I got this error. Any help would be highly appreciated.

2021-11-04 21:54:07+0100 [-] [WARN] [1636059247.213620]: Could not process inbound connection: topic types do not match: [sensor_msgs/Image] vs. [sensor_msgs/CompressedImage]{'topic': '/unity', 'tcp_nodelay': '0', 'md5sum': '060021388200f6f0f447d0fcd9c64743', 'type': 'sensor_msgs/Image', 'callerid': '/image_view'} 2021-11-04 21:54:34+0100 [-] [INFO] [1636059274.840175]: Client disconnected. 0 clients total.

MartinBischoff commented 2 years ago

Hi @fanke1213812138 reading the error message it seems like you are publishing a CompressedImage whereas ROS / rosbridge suite expects an Image message.