How to send Video Stream over network and convert to Image_raw topic.

asked 2017-11-05 21:32:38 -0500

Pushkal Katara gravatar image

I am sending a JSON containing the base64 encoded image over ROS Bridge WebSockets in the Image_compressed format. Reference - t

On the Server side, the client is being connected, but with a warning : Could not process Inbound Connection : topic types does not match - [Sensor_msgs/Image]. What is the correct format to send a video feed to ROS and convert in into Image Topic?

edit retag flag offensive close merge delete


Did you try writing a client for your stream to convert image to cv::Mat and then use cvBridge to publish the images? This sounds very convoluted, but it works

kunaltyagi gravatar image kunaltyagi  ( 2018-06-27 01:51:13 -0500 )edit

Yeah I did, I actually resolved the issue. I had to send base64 through Unity client to the rosbridge server. On the client side I changed the format and it worked, though sending base64 as image still remains an issue. We can send it as a String message too for a quick workout.

Pushkal Katara gravatar image Pushkal Katara  ( 2018-06-27 09:36:40 -0500 )edit