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: 238 times
Last updated: Jan 24 '17
How to subscribe to a topic at will/on demand?
API documentation for ROS2 messages?
How to subscribe to a topic whom type is gazebo_msg/ContactState
Rospy callback attribute error
rosbridge v2 msg format and subscriber callback in csharp
rosserial_arduino: publishing a ROS message corrupts other messages
Append data to vector3[] array - custom message
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.