Robotics StackExchange | Archived questions

Can ROS1 and ROS2 be installed in one system?

Currently I am using ROS1 and Melodic Version, I would like to know if I can install ROS2 in my system.

System features Ubuntu 18.04 Melodic CUDA-10.1 ROS1

Asked by AM97 on 2019-06-20 12:41:00 UTC

Comments

This is a duplicate of #q286978 and (somewhat of) #q322987.

Seeing as there is already an answer I'm not closing this, but we should actually do that.

Asked by gvdhoorn on 2019-06-20 14:02:15 UTC

@gvdhoorn So that means I can install ROS2 in my Ubuntu 18.04 (ROS1), but I would like to know how to shift from ROS1 to ROS2 and again back to ROS1. And I will close this issue. Thanks for your help.

Asked by AM97 on 2019-06-20 14:14:09 UTC

@gvdhoorn Yup, I should have checked before answering

Asked by jayess on 2019-06-20 14:29:36 UTC

Answers

I have both installed. So, yes. I just source the one that I want to use when I want to use it.

Asked by jayess on 2019-06-20 13:13:12 UTC

Comments

@jayess I didn't get you. Do you mean I need to source every time in the terminal when I wanted to use another one?. If I am wrong can you say a little bit more?

Asked by AM97 on 2019-06-20 13:26:53 UTC

That's how I do it

Asked by jayess on 2019-06-20 14:29:58 UTC