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

switch between two catkin workspace

asked 2020-01-06 03:13:54 -0500

mingcheng gravatar image

Hi, I have create two catkin workspace, A&B, I am currently work under catkin workspace B, but how do I go back to catkin workspace A. Meaning, every time I open a new terminal and do a "roscd", which will leads me to the directory of workspace A. (Now is directory of workspace B.) Thank you for reading this post.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-07 05:42:15 -0500

mgruhler gravatar image

You simply need to source the devel/setup.bash of the respective workspace. You can do this manually or you need to adapt the .bashrc every time you want to change the workspace you are working on (btw: last source setup.bash wins, there is no need/benefit in having multiple in your .bashrc, it rather leads to confusion).

Note that this is only true if you haven't set up chained workspaces.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-01-06 03:13:54 -0500

Seen: 922 times

Last updated: Jan 07 '20