Hi,<br><br>When I run our camera data, and record the /cameraBumblebee2/left/Image_raw topic in the bag file. When I run the rxbag to see the image, I received this exception:
<br>-------------------------------------------------------error--------------------------------------------------------------------------<br>$rxbag _2010-11-05-21-59-40.bag <br>Error loading image on topic /cameraBumblebee2/left/image_raw: buffer is not long enough<br>
Exception in thread Thread-1:<br>Traceback (most recent call last):<br>  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner<br>    self.run()<br>  File "/opt/ros/cturtle/ros/tools/rxbag/src/rxbag/timeline_cache.py", line 95, in run<br>
    msg_stamp, item = self.loader(topic, stamp, item_details)<br>  File "/opt/ros/cturtle/stacks/visualization/rxbag_plugins/src/rxbag_plugins/image_timeline_renderer.py", line 177, in _load_thumbnail<br>    thumbnail_bitmap = image_helper.pil_to_cairo(thumbnail)<br>
  File "/opt/ros/cturtle/stacks/visualization/rxbag_plugins/src/rxbag_plugins/image_helper.py", line 117, in pil_to_cairo<br>    return cairo.ImageSurface.create_for_data(data, cairo.FORMAT_ARGB32, w, h)<br>TypeError: buffer is not long enough<br>
--------------------------------------------------------------------------------------------------------------------------------------------<br>My system:
<br>Guest Ubuntu Lucid Lynx 10.04 and CTurtle binary install 1.2.x.<br><br>Steps to reproduce:
<br>1. rosrun our camera package<br>2. rosbag record /cameraBumblebee2/left/Image_raw<br>3. rxbag *.bag
<br>4. View the "Image" of an Image topic
<br>5. The images will not appear and the exception will be in the terminal
<br>where rxbag was launched from.<br><br>And the image type is as following:<br>height: 240<br>width: 320<br>encoding: rgb8<br>is_bigendian: 0<br>step: 960<br><br>PS: When I use the another type of the image as follwing:<br>
height: 480<br>
width: 640<br>
encoding: bayer_bggr8<br>
is_bigendian: 0<br>
step: 640<br>This kind of image can show in the rxbag tool.<br><br>Why this happened? What's matter with it? And I found that somebody had this problem, an advised way is that 
        <tt>"rgb8</tt> format isn't being converted to RGBA format (needed by Cairo) when <tt>rgba</tt> argument is <tt>True</tt>.
Removing lines 58-59 enables the image to display, but red and blue channels in example bag appear swapped." But this way is useless to me! Any help will be appreciated! Thanks in advanced!<br><div class="comment searchable">


      </div><br><br>