"rospack profile" is a good command to force re-building of the cache.<br>--Eric<br><br><div class="gmail_quote">On Thu, Sep 2, 2010 at 2:45 PM, Cedric Pradalier <span dir="ltr"><<a href="mailto:cedric.pradalier@mavt.ethz.ch">cedric.pradalier@mavt.ethz.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On 09/02/10 23:04, Brian Gerkey wrote:<br>
> On Thu, Sep 2, 2010 at 8:39 AM, Cedric Pradalier<br>
> <<a href="mailto:cedric.pradalier@mavt.ethz.ch">cedric.pradalier@mavt.ethz.ch</a>>  wrote:<br>
><br>
>> That actually raises a question: what is the recommended procedure on a<br>
>> read-only system. Is it better to put the cache on a tmpfs mount or is<br>
>> it possible to generate the cache once and for all, and use it afterward?<br>
>><br>
> Either one should work, though I haven't tried them.  To avoid the<br>
> chance of having stale data in the cache, I would go for the tmpfs<br>
> solution (I know that it's a read-only filesystem, but bad cached<br>
> values are a pain to debug).<br>
><br>
> Note that for the one-time cache to work, you need to set<br>
> ROS_CACHE_TIMEOUT=-1.0 in the environment.  Otherwise, rospack will<br>
> keep trying to rebuild the cache (and won't use the cached values).<br>
><br>
>       brian.<br>
> ____<br>
<br>
</div>Can I understand that I can run the following procedure:<br>
set my system rw,<br>
set my cache_timeout to something small,<br>
run rostopic list (for instance),<br>
set the system ro<br>
set cache_timeout to -1<br>
any subsequent call to ros, will then be able to use the cached data?<br>
<br>
Thanks<br>
<div class="im"><br>
--<br>
<br>
Dr. Cedric Pradalier<br>
<a href="http://www.asl.ethz.ch/people/cedricp" target="_blank">http://www.asl.ethz.ch/people/cedricp</a><br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">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>
</div></div></blockquote></div><br>