ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This stuff can get very confusing and cause serious errors.
The general recommendation when switching workspaces is always to open a new shell, and source the relevant setup.bash
. For catkin, that is normally in devel/
subdirectory.
2 | update |
This stuff can get very confusing and cause serious errors.
The general recommendation when switching workspaces is always to open a new shell, and source the relevant setup.bash
. For catkin, that is normally in devel/
subdirectory.
UPDATE: If you are sourcing the correct setup.bash
in your ~/.bashrc
and creating a new shell (or rebooting) does not work, there must have been something wrong when you originally created your workspace. The usual error is having forgetten to source the appropriate lower-level setup.bash
before running catkin_make
.
That is an easy mistake to make. When I find myself in that situation, I do one of these recovery procedures:
src/
subdirectory, source the correct dependency, then re-run catkin_make
or catkin_init_workspace
.3 | No.3 Revision |
This stuff can get very confusing and cause serious errors.
The general recommendation when switching workspaces is always to open a new shell, and source the relevant setup.bash
. For catkin, that is normally in devel/
subdirectory.
UPDATE: If you are sourcing the correct setup.bash
in your ~/.bashrc
and creating a new shell (or rebooting) does not work, there must have been something wrong when you originally created your workspace. The usual error is having forgetten to source the appropriate lower-level setup.bash
before running catkin_make
.
That is an easy mistake to make. When I find myself in that situation, I do one of these recovery procedures:
src/
subdirectory, source the correct dependency, then re-run catkin_make
or catkin_init_workspace
.There may be other solutions, but I find that hacking around in the various generated files just creates frustration and wastes time.