Send the name of image files
I'm sending image files using image_transport
and my client node likes to receive the file names as well but apparently sensor_msgs::Image
doesn't have a field for it. Nor I haven't been able to find other measure in ROS to send image file and its name together.
What's the most recommended way to achieve my goal? Extend Image
and make my own publisher node (isn't it nicer to have this feature by default if it doesn't exist)?
To save an image as a file btw usually requires file extension but knowing file name solves as well (sensor_msgs/CompressedImage
has a field for it but still not for file name).