How to source multiple workspaces from the same terminal?
I am trying to launch two different nodes from two different workspaces from the same terminal. But once I source my terminal with one of the workspaces, I am not able to use the other packages since the other workspace directory is not sourced anymore.
Even though I saw this answer, it doesn't work for me, maybe since I am using catkin build. Also, I don't want to keep deleting my build
, devel
spaces.
I have noticed that it may be possible to assign priority of search to ros as two setup.zsh
are already sourced source /opt/ros/kinetic/setup.zsh
and one of my workspaces. ROS
seems to be assigning priority to these while searching for packages.
Can anyone please explain me how sourcing of setup.zsh
files work? And how can I find a workaround to my problem or preferably use the method used by ROS itself