ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

send a gif in a message

asked 2017-01-24 07:56:42 -0600

ines gravatar image

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?

edit retag flag offensive close merge delete


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.

shoemakerlevy9 gravatar image shoemakerlevy9  ( 2017-01-24 12:05:56 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-24 14:31:33 -0600

ahendrix gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-01-24 07:56:42 -0600

Seen: 181 times

Last updated: Jan 24 '17