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

Revision history [back]

click to hide/show revision 1
initial version

Now that I've done that, I wonder if there is anything special I need to do to migrate my catkin workspace (which was created initially with Hydro) to Indigo.

tl;dr: remove the devel/ and build/ directories from your catkin_ws/. Then source /opt/ros/DISTRO/setup.bash, cd catkin_ws/ and catkin_make.


Anytime you move a catkin_ws/ directory, it is recommended to remove the devel/ and build/ directories. Files in these (may) contain references to the old location(s) of build artefacts, which, after moving your workspace, has just changed.

Changing between ROS distributions is similar, in that the build/ and devel/ directories contain references to the location(s) of several key binaries, paths and environment variables that (may) have changed.

Now that I've done that, I wonder if there is anything special I need to do to migrate my catkin workspace (which was created initially with Hydro) to Indigo.

tl;dr: remove the devel/ and build/ directories from your catkin_ws/. Then Remove src/CMakeLists.txt. Then:

source /opt/ros/DISTRO/setup.bash, /opt/ros/DISTRO/setup.bash
cd catkin_ws/ and catkin_make.

catkin_ws/src catkin_init_workspace cd catkin_ws/ catkin_make

Anytime you move a catkin_ws/ directory, it is recommended to remove the devel/ and build/ directories. Files in these (may) contain references to the old location(s) of build artefacts, which, after moving your workspace, has just changed.

Changing between ROS distributions is similar, in that the build/ and devel/ directories contain references to the location(s) of several key binaries, paths and environment variables that (may) have changed.

changed. Additionally, the src/ directory should contain a CMakeLists.txt symlink, which points (in your case) to the Hydro version. This should be updated as well, catkin_init_workspace (in your src/ directory) should be able to do this for you.

Now that I've done that, I wonder if there is anything special I need to do to migrate my catkin workspace (which was created initially with Hydro) to Indigo.

tl;dr: remove the devel/ and build/ directories from your catkin_ws/. Remove src/CMakeLists.txt. Then:

source /opt/ros/DISTRO/setup.bash
cd catkin_ws/src
catkin_init_workspace
cd catkin_ws/
catkin_make

Anytime you move a catkin_ws/ directory, it is recommended to remove the devel/ and build/ directories. Files in these (may) contain references to the old location(s) of build artefacts, which, after moving your workspace, has just changed.

Changing between ROS distributions is similar, in that the build/ and devel/ directories contain references to the location(s) of several key binaries, paths and environment variables that (may) have changed. Additionally, the src/ directory should contain a CMakeLists.txt symlink, which points (in your case) to the Hydro version. This should be updated as well, catkin_init_workspacewell. Invoking catkin_make (in your src/ directory) should be able to do catkin_ws/) does this automatically for you.

Now that I've done that, I wonder if there is anything special I need to do to migrate my catkin workspace (which was created initially with Hydro) to Indigo.

tl;dr: remove the devel/ and build/ directories from your catkin_ws/. Remove src/CMakeLists.txt. Then:

source /opt/ros/DISTRO/setup.bash
cd catkin_ws/
catkin_make

Anytime you move a catkin_ws/ directory, it is recommended to remove the devel/ and build/ directories. Files in these those dirs (may) contain references to the old location(s) of build artefacts, which, after moving your workspace, has just changed.

Changing between ROS distributions is similar, in that the build/ and devel/ directories contain references to the location(s) of several key binaries, paths and environment variables that (may) have changed. Additionally, the src/ directory should contain a CMakeLists.txt symlink, which points (in your case) to the Hydro version. This should be updated as well. Invoking catkin_make (in your catkin_ws/) does this automatically for you.

Now that I've done that, I wonder if there is anything special I need to do to migrate my catkin workspace (which was created initially with Hydro) to Indigo.

tl;dr: remove the devel/ and build/ directories from your catkin_ws/. Remove src/CMakeLists.txt. Then:

source /opt/ros/DISTRO/setup.bash
cd catkin_ws/
catkin_make

Anytime you move a catkin_ws/ directory, it is recommended to remove the devel/ and build/ directories. Files in those dirs (may) contain references to the old location(s) of build artefacts, which, after moving your workspace, has just changed.

Changing between ROS distributions is similar, in that the build/ and devel/ directories contain references to the location(s) of several key binaries, paths and environment variables that (may) have changed. Additionally, the src/ directory should contain a CMakeLists.txt symlink, which points (in your case) to the Hydro version. This should be updated as well. Invoking Remove it and invoke catkin_make (in in your catkin_ws/) does this automatically for you.

: the link will be recreated automatically.