send a gif in a message
I need to know if I can send a gif in ros message. I know that I can send an image, but I do not know if a gif I can send. If I can send a git, how do you send it?
I need to know if I can send a gif in ros message. I know that I can send an image, but I do not know if a gif I can send. If I can send a git, how do you send it?
There are lots of ways to do this, all of varying complexity and difficult; which one you choose depends largely on the end goal that you're trying to achieve.
If you just want to transfer gifs between your nodes, you could just make a custom message type and stuff the gif data into it. (or, if your nodes will always run on the same computer, just send the absolute path)
If you want compatibility with existing tools like image_transport , image_view or rviz, you'll need to do a bit more work to make it possible to encode and decode gifs into a format that the existing tools can use. You might need to write a custom image_transport that uses gif compression, or you might need to write or adapt one of the existing rviz plugins.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2017-01-24 07:56:42 -0600
Seen: 96 times
Last updated: Jan 24 '17
How to check size of a topic on multi device ROS Communication
How to publish a dictionary with other dictionary inside in a topic?
cv_bridge give me darker images [closed]
error when I try to read a ros msg composite by another msg file into a node subscriber calback
Are ROS2 messages guaranteed to be received by a Subscriber in the same order they were published?
How to read and writing ROS message efficient into files c++
Loaned messages for permanent (re)use and continous publishing
Its possible to send images and videos, so I see no reason why you wouldn't be able to send gifs. However it would require not only a custom message type, but also I imagine you would have to modify image_transport in order to support gifs. I don't think this would be a minor task.