I recently located a memory leak in the usb_cam package and gave a patch to the authors.  It doesn't look like it has been released yet.  You might try applying this patch to usb_cam and see if helps with problem #3<br>
<br>Index: src/libusb_cam/usb_cam.cpp<br>===================================================================<br>--- src/libusb_cam/usb_cam.cpp    (revision 108)<br>+++ src/libusb_cam/usb_cam.cpp    (working copy)<br>@@ -334,6 +334,7 @@<br>
 <br>   video_sws = sws_getContext( xsize, ysize, avcodec_context->pix_fmt, xsize, ysize, PIX_FMT_RGB24, SWS_BILINEAR, NULL, NULL, NULL);<br>   sws_scale(video_sws, avframe_camera->data, avframe_camera->linesize, 0, ysize, avframe_rgb->data, avframe_rgb->linesize );<br>
+  sws_freeContext(video_sws);<br> //  img_convert((AVPicture *) avframe_rgb, PIX_FMT_RGB24, (AVPicture *) avframe_camera, avcodec_context->pix_fmt, xsize, ysize);<br> <br>   int size = avpicture_layout((AVPicture *) avframe_rgb, PIX_FMT_RGB24, xsize, ysize, (uint8_t *)RGB, avframe_rgb_size);<br>
<br><div class="gmail_quote">On Fri, Jul 2, 2010 at 10:54 AM, Josh Faust <span dir="ltr"><<a href="mailto:jfaust@willowgarage.com">jfaust@willowgarage.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
rviz's Camera display is meant for a camera running on a robot that's set up properly (with TF, calibrated cameras, etc.).  It lets you see the 3D data with the camera image overlaid.  If you just want to view an image, image_view is the correct option.<div>


<br></div><div>As for #3, does rviz's memory usage start going up during that time?  If it was killed, either it (or something else) was consuming a lot of memory, or someone else killed it.</div><div><br></div><div>
<font color="#888888">
Josh<br>
<br></font><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Jul 2, 2010 at 4:27 AM, Benoit Larochelle <span dir="ltr"><<a href="mailto:Benoit.Larochelle@dfki.de" target="_blank">Benoit.Larochelle@dfki.de</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">





<div style="padding-left: 10px; padding-right: 10px; padding-top: 15px;" name="Compose message area">
<div><font face="Arial" size="2">Hello,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I'm trying to set-up RVIZ so that I can view the 
feed from my USB camera. I am using the usb_cam package to produce the feed, but 
RVIZ seems to have a few problems reading it. </font><font face="Arial" size="2">I 
set-up the Fixed Frame to /head_camera, and Image Topic to 
/usb_cam/image_raw.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">1) I get a global warning: No tf data. Actual 
error: Fixed Frame [/head_camera does not exist]. I don't know exactly what 
transforms and frames are, I just want to see my camera image (in 
RVIZ).</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">2) In the Camera section, I get a Status Error, 
under CameraInfo: CameraInfo/P resulted in an invalid position calculation (nans 
or infs)</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">3) After 15 minutes or so, RVIZ crashes with the 
error message: /opt/ros/boxturtle/ros/bin/rosrun: line 35: 304 Killed $exepath 
"$@" (before lunch, I started RVIZ and image_view and when I came back RVIZ had 
crashed and image_view was still going)</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">4) The image is much darker than with the 
package image_view</font></div>
<div><font face="Arial" size="2"></font> </div><font color="#888888">
<div><font face="Arial" size="2">Benoit</font></div></font></div>
<br></div></div><div class="im">_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br>