<div dir="ltr">Tully,<div><br></div><div>Awesome.  You just made our lives a lot easier.</div><div><br></div><div>-- Bill</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 1, 2014 at 5:03 PM, Tully Foote <span dir="ltr"><<a href="mailto:tfoote@osrfoundation.org" target="_blank">tfoote@osrfoundation.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Bill, <div><br></div><div>The yaml files on <a href="http://docs.ros.org" target="_blank">docs.ros.org</a> is a legacy thing which is generated by rosdoc for content on the wiki. They are slated for removal are not complete and should not be used. </div>


<div><br></div><div>We have developed the rosdistro library which should give you a python API to access everything you want from all released packages. [1] It's available as python-rosdistro debian package.  It looks like the online documentation for it is not generating correctly, now ticketed [2]  but you should be able to introspect the python API to find what you need.  This is the tool which we use for dependency operations on the buildfarm. And I think the DependencyWalker modlule will do a lot of what you want. </div>


<div><br></div><div>Note, on the buildfarm we build the rosdistro cache every 5 minutes so that your tool will not need to crawl all the repositories. It contains all the package.xml content for every indexed package. So make sure to use the cache loading functionality, otherwise you may find yourself waiting a long time for network communications. Also python-catkin-pkg will also help you with parsing the cached xml if you want more info than is parameterized in the API. </div>


<div><br></div><div>Tully</div><div><br></div><div><br></div><div>[1] <a href="https://github.com/ros-infrastructure/rosdistro" target="_blank">https://github.com/ros-infrastructure/rosdistro</a></div><div>[2] <a href="https://github.com/ros-infrastructure/rosdistro/issues/43" target="_blank">https://github.com/ros-infrastructure/rosdistro/issues/43</a></div>


<div><br></div><div>Here are a few example's of where we use it: </div><div><br></div><div><a href="https://github.com/ros-infrastructure/buildfarm/blob/master/buildfarm/ros_distro.py" target="_blank">https://github.com/ros-infrastructure/buildfarm/blob/master/buildfarm/ros_distro.py</a></div>


<div><a href="https://github.com/ros-infrastructure/rosinstall_generator/blob/master/src/rosinstall_generator/distro.py" target="_blank">https://github.com/ros-infrastructure/rosinstall_generator/blob/master/src/rosinstall_generator/distro.py</a><br>


</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Aug 1, 2014 at 4:25 PM, Bill Smart <span dir="ltr"><<a href="mailto:bill.smart@oregonstate.edu" target="_blank">bill.smart@oregonstate.edu</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi all,<div><br></div><div>We're currently scraping dependency information from <a href="http://docs.ros.org/hydro/api" target="_blank">http://docs.ros.org/hydro/api</a>, but this information seems somewhat different from that in the package.xml files in the source.  For example, it doesn't have all of the dependency categories that the xml files have.</div>



<div><br></div><div>Where is <a href="http://docs.ros.org/hydro/api" target="_blank">http://docs.ros.org/hydro/api</a> generated from?  If we want to scrape package information, is there a better way to do it?  Right now, is seems that there's different information in the yaml and xml files, and that  we're going to have to combine both of them to get everything that we need.</div>



<div><br></div><div>thanks</div><span><font color="#888888"><div><br></div><div>-- Bill</div><div><br></div></font></span></div>
<br></div></div>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@lists.ros.org" target="_blank">ros-users@lists.ros.org</a><br>
<a href="http://lists.ros.org/mailman/listinfo/ros-users" target="_blank">http://lists.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@lists.ros.org">ros-users@lists.ros.org</a><br>
<a href="http://lists.ros.org/mailman/listinfo/ros-users" target="_blank">http://lists.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br></div>