ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi. There are 2 ways to solve this issue. You can place your source /opt/ros/melodic/setup.bash
in your bashrc file and delete the build
and devel
folders of your catkin workspace and try rebuilding your workspace with catkin_make
. If for some strange reason this doesnt work (it really should), you can utilize the --extend
parameter of the source command to source more than 1 file. The source
command generally overwrites one another in the sense that if you have 2 separate cakin workspaces A and B, if you perform source devel/setup.bash
in workspace A and then perform source devel/setup.bash
in workspace B, the second command will override the first command and the packages in workspace A will not be available to you.
To overcome this, in workspace A, perform source devel/setup.bash
as usual but after this, going into workspace B ensure to perform source devel/setup.bash --extend
and now packages from both workspaces will be enabled. In a similar light, perhaps you could try source /opt/ros/melodic/setup.bash
and then source devel/setup.bash --extend
in your workspace. But solution 1 should also work for you.
Hope that helps.