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?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
Asked: 2017-01-24 07:56:42 -0500
Seen: 249 times
Last updated: Jan 24 '17
publish arrays to a topic on the command line
How to create a global listener for any ROS topic and extract all data from any message?
How to deserialize a ros message without knowing its type or content
What's the best way to convert a ros message to a string or xml?
How to add the node name in warning or fatal message?
How do I publish exactly one message?
Sending a message to turtlesim
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.