Skip to content

Instantly share code, notes, and snippets.

@ethanrublee
Created January 25, 2012 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethanrublee/1674188 to your computer and use it in GitHub Desktop.
Save ethanrublee/1674188 to your computer and use it in GitHub Desktop.
using catkin for workspace dependency introspection.
WORKSPACE=`pwd`
distro_url=https://raw.github.com/willowgarage/rosdistro/master/fuerte.yaml
curl -s $distro_url > distro.yaml
deburls=$(python -c "import yaml; print '\n'.join([x['url'] for x in yaml.load(open('distro.yaml'))])")
cd $WORKSPACE
for x in $deburls
do
dirname=$(basename ${x%.git})
if [ -e $dirname/.git ]
then
(cd $dirname && git checkout master && git pull)
else
git clone $x $dirname
fi
done
cd $WORKSPACE
. /home/erublee/catkin_wet/build/setup.sh
erublee@dri$ catkin-topological-order
catkin
rospkg
rospack
ros
genmsg
roscpp_core
gencpp
genpy
langs
std_msgs
common_msgs
actionlib
ros_comm
swig-wx
rx
erublee@dri$ catkin-topological-order --top langs --action upstream
genpy
genmsg
catkin
gencpp
erublee@dri$ catkin-topological-order --top langs --action downstream
std_msgs
common_msgs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment