ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

send a gif in a message

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

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

Comments

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Question Tools

2 followers

Stats

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

Seen: 238 times

Last updated: Jan 24 '17