Ask Your Question
1

How to switch between ROS Hydro and ROS Indigo Version on Ubuntu 12.04?

asked 2014-11-03 06:48:39 -0600

ish45 gravatar image

I have installed both ROS Hydro and ROS Indigo on Ubuntu 12.04. I want to know how to switch between these versions when I am compiling a catkin workspace in Ubuntu. I have two catkin workspaces, one of them works with ROS Hydro and the other works with ROS Indigo. So, if I want to do a catkin build of the catkin workspace based on ROS Indigo, then what should I do?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2014-11-03 08:10:57 -0600

Thomas D gravatar image

In a new terminal you need to run

source /opt/ros/indigo/setup.bash

That will set your current terminal to use Indigo. Be careful that you don't source any other Hydro setup.bash files in your ~/.bashrc file or you might start overlaying packages, which is probably not what you want to do.

To switch back to Hydro, you need to open a new terminal and run

source /opt/ros/hydro/setup.bash
edit flag offensive delete link more

Comments

Sourcing a different setup file does not affect previously configured workspaces. You need to wipe the build/devel folder and rebuild the workspace with the different environment.

Dirk Thomas gravatar imageDirk Thomas ( 2014-11-04 13:19:21 -0600 )edit

@ish45 says that he has two separate workspaces, one for each distro. Should he still need to wipe the build/devel folders?

Thomas D gravatar imageThomas D ( 2014-11-04 13:41:53 -0600 )edit

Sorry, I missed that part. No, then it is not necessary.

Dirk Thomas gravatar imageDirk Thomas ( 2014-11-04 13:59:26 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-11-03 06:48:39 -0600

Seen: 806 times

Last updated: Nov 03 '14