Ask Your Question
3

What happened if I install two version of ROS?

asked 2011-07-20 01:41:53 -0500

sam gravatar image

updated 2014-01-28 17:10:04 -0500

ngrennan gravatar image

Because I found that the latest version of ROS is coming(electric).

If I want to try that version,but also use the origin version of ROS.

Is they will conflict?

Or should I just upgrade to the latest version?

I have tried 'sudo apt-get dist-upgrade'. Is this instruction will check any version of ROS could be update? And if not,it just upgrade all the other packages?

Thank you~

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
5

answered 2011-07-20 02:43:55 -0500

AHornung gravatar image

Your ROS installations won't interfere with each other, if using the precompiled .deb packages or installing from source into different directories. E.g. diamondback will install into /opt/ros/diamondback, whereas electric will install into /opt/ros/e-turtle (or "electric", whatever the actual directory will be). Once you source one "setup.bash" you will run (and compile) in that ROS version only.

So, apt-get dist-upgrade will not upgrade your ROS installation into a new distribution as the package prefixes are different.

edit flag offensive delete link more

Comments

If I want to change versions,I just run the correct setup.bash file without other steps,right?
sam gravatar image sam  ( 2011-07-20 03:50:19 -0500 )edit
Yes. Your code might not be compatible to both, though.
dornhege gravatar image dornhege  ( 2011-07-20 04:32:29 -0500 )edit
3

answered 2011-07-20 02:40:04 -0500

In principle you can have multiple versions installed at the same time and this will work, as long as you take care that you only use one version (and packages for that version) at any time. This means the ROS_PACKAGE_PATH, setup.bash and everything else of only the ROS version you want to use might be active. Making a mistake here can lead to all sorts of errors. It's recommended to use only one version (a stable one) though, unless you have special needs.

edit flag offensive delete link more

Comments

What kind of mistake will lead to all sorts of errors? Thank you~
sam gravatar image sam  ( 2011-07-20 03:48:57 -0500 )edit
For example having a PACKAGE_PATH that accidentally contains packages for another distribution than the one you have defined in your setup.bash file.
Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2011-07-20 06:10:09 -0500 )edit
1

answered 2011-07-20 02:22:55 -0500

I recommend you to continue learning with the current diamondback release and don't change until electric is stable.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2011-07-20 01:41:53 -0500

Seen: 3,520 times

Last updated: Jul 20 '11