ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rosdep init and rosdep update ?

asked 2017-02-20 23:08:50 -0600

sam26 gravatar image

updated 2017-02-21 01:33:45 -0600

I would like to know if rosdep init and rosdep update that we perform during ROS installation make any changes outside the ROS environment? like does it update or modify the debian packages or any other non-ROS components? Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-21 01:37:31 -0600

mgruhler gravatar image

updated 2017-02-21 01:38:03 -0600

Well, rosdep init puts a file in /etc/ros/rosdep/, if this is "outside of the ROS environment" for you. rosdep update fetches the new rosdep definition files and stores them somewhere too.

Other than that, rosdep does nothing as long as you don't do a rosdep install <PKG>. This will then install the required dependencies that are specified in the package. This can be other released ROS packages or third party packages as debian pkgs or from any other package manager, e.g. pip.

edit flag offensive delete link more


Thank you. But does rosdep update updates the package list of other package managers too or does it just update the available ROS package list?

sam26 gravatar image sam26  ( 2017-02-21 01:47:16 -0600 )edit

@sam26: it does not install any package or change anything besides the files that @mig already mentioned (ie: /etc/ros/rosdep) and a cache in your $HOME.

gvdhoorn gravatar image gvdhoorn  ( 2017-02-21 02:17:19 -0600 )edit

Just the rosdep definitions. Those are "remappings" pointing to specific, distro dependent version. They are defined, e.g. here. Thus, the rosdep key ace points to ace for arch and libace-dev for debian...

mgruhler gravatar image mgruhler  ( 2017-02-21 02:25:34 -0600 )edit

Thank you!

sam26 gravatar image sam26  ( 2017-02-21 04:05:19 -0600 )edit

@mig@gvdhoorn But when I look at the sources that rosdep sources.listcontains, it points to packages that are present in universe and multiverse as well ( non-ROS packages ). So rosdep update would update these non-ROS packages right (just like apt-get update) ?

sam26 gravatar image sam26  ( 2017-02-22 00:13:38 -0600 )edit

rosdep only uses a 20-default.list in /etc/ros/rosdep/sources.list.d, and that does not contain any mention of universe or multiverse.

But in any case: rosdep itself will never install or upgrade anything, that is the pkg mgrs job, only after you accept what it wants to do.

gvdhoorn gravatar image gvdhoorn  ( 2017-02-22 00:33:43 -0600 )edit

Question Tools

1 follower


Asked: 2017-02-20 23:08:50 -0600

Seen: 3,852 times

Last updated: Feb 21 '17