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

Is it possible to use both diamondback and electric in same OS?

asked 2012-08-22 01:28:01 -0500

Sudhan gravatar image

updated 2012-08-22 01:29:11 -0500

I am in a situation such that to use both diamondback and electric. Is it possible to use both the versions of ros in a same operating system?

If possible, how?

Thanks in advance for your suggestions.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-08-22 06:16:37 -0500

Thomas D gravatar image

updated 2012-08-22 06:20:06 -0500

I answered this previously here. Hopefully that will also make it clear how to treat the contents of your .bashrc file. Note that if you have your own source code then you will need to rebuild it after switching which version of ROS you are using.

As @joq says you will find it very difficult (at best) to use two versions of ROS at the same time. You may find more success in using the newer version of ROS as a system install, then any packages (or stacks) that you want to use from older versions of ROS you can install and build from source in one of your user directories. That approach has its own downsides (find fixes to make package work with newer version of ROS) but will be much easier than using two versions of ROS.

edit flag offensive delete link more
3

answered 2012-08-22 02:10:09 -0500

michikarg gravatar image

updated 2012-08-22 02:10:48 -0500

Yes, this is possible. If you have both ROS versions installed, you can use e.g. use Diamondback in one Terminal by sourcing the setup.bash of Diamondback:

source /opt/ros/diamondback/setup.bash

and use Electric by sourcing the setup.bash of Electric in another terminal:

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

Comments

I have some questions regarding that

  1. In 'bashrc', Should I write source for diamondback or electric or both

  2. If both what will be the result for 'echo $ROS_PACKAGE_PATH'

  3. What will be the result about trying to find a common package for both version. EX. rospack find openni_kinect.

Sudhan gravatar image Sudhan  ( 2012-08-22 03:29:09 -0500 )edit

What do you mean by "write source for diamondback or electric"? Why do you actually want to use both? If possible you should better use only Fuerte...

michikarg gravatar image michikarg  ( 2012-08-22 03:35:12 -0500 )edit

In 'bashrc' file, Should I write 'source /opt/ros/electric/setup.bash' and 'source /opt/ros/diamondback/setup.bash'?

I am trying to use package RGBDSLAM and 3d_navigation. So, I need both versions

Sudhan gravatar image Sudhan  ( 2012-08-22 03:41:48 -0500 )edit
1

Your bashrc will be loaded every time you start a new terminal. So you source the ROS version that should be loaded by default in your .bashrc ... if you want to use the other ROS version, you will have to source it manually in another terminal

michikarg gravatar image michikarg  ( 2012-08-22 04:25:06 -0500 )edit
2

Donot try to run them both at once.

joq gravatar image joq  ( 2012-08-22 04:55:14 -0500 )edit

Question Tools

Stats

Asked: 2012-08-22 01:28:01 -0500

Seen: 241 times

Last updated: Aug 22 '12