Closed iory closed 4 years ago
Hi @iory, Thank you for your contribution. Can you tell me how this manifested as a problem?
I am taking data with rosbag and analyzing images and save those as the compressed images for data reduction. This PR's change is necessary because I am reading the value of format to detect if the image contained in the rosbag is compressed. Following code is a sample of format parsing function.
def compressed_format(msg):
fmt, compr_type = msg.format.split(';')
# remove white space
fmt = fmt.strip()
return fmt, compr_type
Sorry for the delay on this.
Thank you!
Fixes
Description of the changes:
jpeg
. compressed image published byimage_transport
's format isbgra8; jpeg compressed bgr8
. This PR modified the format to be compatible withimage_transport
.Before submitting a Pull Request:
I tested changes on:
The result of this PR as follows.