Cannot roslaunch file after source workspaces
Hi,
There's something wrong with my roslaunch. I have created 2 catkin workspaces (denoted by A_ws and B_ws), and sourced them in ~/.bashrc
. However, when ~/.bashrc
file looks like:
source ~/A_ws/devel/setup.bash
source ~/B_ws/devel/setup.bash
only packages in B can be launched but packages in A can not:
[.launch] is neither a launch file in package [] nor is [] a launch file name
When I switch these lines,
source ~/B_ws/devel/setup.bash
source ~/A_ws/devel/setup.bash
only packages in A can be launched. So the question is, how can I launch files in the two workspaces simultaneously?
Thanks for help!
maybe this can help you: https://answers.ros.org/question/3728...
Thanks, but it doesn't help with the source problem.
You cannot
source
multiple "sibling workspaces" (*). You can only use workspace overlaying, in whichA_ws
underlaysB_ws
(or the other way around).To put it in other words: when you
source ~/B_ws/devel/setup.bash
, you essentially overwrite the environment configured bysource ~/A_ws/devel/setup.bash
.(* technically this isn't completely true, but if you're just starting out, I would follow this rule)
Thanks for explanation, I'll try.