[ros-users] compressed_image_transport and old bag files

David Feil-Seifer david.feilseifer at gmail.com
Tue Mar 9 09:08:10 UTC 2010


Thanks for the fast response. This fixed the first problem, that the
messages in the bag files were out of date. But now I have a second
problem. My bag files were created using the encoder and decoder nodes
which published as/subscribed to, <topicname>_compressed /
_decompressed. Right now, image_publisher is looking for
<topicname>/compressed, etc. For right now, I am just using a remap
and all is well. However, this is a little clumsy, and it would just
be easier to convert the mesesage names in the bag files to match the
new standard. How would one do this? I checked out the rosbag filter,
but it doesn't seem to be the right tool. Is there one that can easily
be adapted to do this.

Thanks again, for the fast response.
-Dave

On Mon, Mar 8, 2010 at 8:07 PM, Josh Faust <jfaust at willowgarage.com> wrote:
> First run "rosbag check" on the bag file to see if it has migration rules:
> http://www.ros.org/wiki/rosbag#Check
> Then if it says you can migrate it, run "rosbag fix":
> http://www.ros.org/wiki/rosbag#Fix
>
> If there's no migration path you'll have to delve a bit deeper into the bag
> migration tools, which I'm not familiar with.
>
> Josh
>
> On Mon, Mar 8, 2010 at 7:59 PM, David Feil-Seifer
> <david.feilseifer at gmail.com> wrote:
>>
>> OK, so I made some bag files a while back using the encode node from
>> image_publisher package that has since been deprecated. These bag
>> files have these images logged as sensor_msgs/CompressedImage under
>> the topic /overhead_cam/image_color_compressed
>>
>> how would I make the image_subscriber tutorial subscribe to this topic
>> correctly. I currently have the following error messages:
>>
>> /overhead_cam/image_color_compressed to have datatype/md5sum
>> [sensor_msgs/Image/060021388200f6f0f447d0fcd9c64743], but our version
>> has [sensor_msgs/CompressedImage/8f7a12909da2c9d3332d540a0977563f].
>> Dropping connection.
>> [ERROR] 1268106882.939315000: Client [/compressed_listener] wants
>> topic /overhead_cam/image_color_compressed to have datatype/md5sum
>> [sensor_msgs/Image/060021388200f6f0f447d0fcd9c64743], but our version
>> has [sensor_msgs/CompressedImage/8f7a12909da2c9d3332d540a0977563f].
>> Dropping connection.
>> [ERROR] 1268106910.267165000: Client [/compressed_listener] wants
>> topic /overhead_cam/image_color_compressed to have datatype/md5sum
>> [sensor_msgs/Image/060021388200f6f0f447d0fcd9c64743], but our version
>> has [sensor_msgs/CompressedImage/8f7a12909da2c9d3332d540a0977563f].
>> Dropping connection.
>>
>> Do I have to upgrade the bag files in some way?
>>
>> Thanks in advance for your help.
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> ros-users mailing list
>> ros-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ros-users
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>



More information about the ros-users mailing list