Then, compare the new rosinstall file to the old version to see which packages will be updated: $ rosinstall_generator desktop_full -rosdistro hydro -deps -wet-only -tar > hydro-desktop-full-wet.rosinstall $ mv -i hydro-desktop-full-wet.rosinstall
For other variants, update the filenames and rosinstall_generator arguments appropriately. For simplicity, we will cover the *destop-full* variant. To update your workspace, first move your existing rosinstall file so that it doesn't get overwritten, and generate an updated version.
If we want to keep our source checkout up to date, we will have to periodically update our rosinstall file, download the latest sources, and rebuild our workspace.
src/catkin/bin/catkin_make_isolated -install -DCMAKE_BUILD_TYPE=Release
We will use the catkin_make_isolated command because there are both catkin and plain cmake packages in the base install, when developing on your catkin only workspaces you should use catkin/commands/catkin_make. Once it has completed downloading the packages and resolving the dependencies you are ready to build the catkin packages. For example if you installed the bootstrap tools such as rosdep, rospkg, and rosinstall_generator from source add the arguments -skip-keys python-rosdep -skip-keys python-rospkg -skip-keys python-catkin-pkg
If you installed something from source or from pip and don't want rosdep to try to install it for you use the -skip-keys option. Finally, the -y option indicates to rosdep that we don't want to be bothered by too many prompts from the package manager.Īfter a while (and maybe some prompts for your password) rosdep will finish installing system dependencies and you can continue. The -rosdistro option is required because we don't have a ROS environment setup yet, so we have to indicate to rosdep what version of ROS we are building for. The -ignore-src option indicates to rosdep that it shouldn't try to install any ROS packages in the src folder from the package manager, we don't need it to since we are building them ourselves. The -from-paths option indicates we want to install the dependencies for an entire directory of packages, in this case src. Then it will recursively install the dependencies. This will look at all of the packages in the src directory and find all of the dependencies they have.