Robotics StackExchange | Archived questions

Can I install ROS1 and ROS2 on the same computer?

I have Linux installed on my OMEN-HP Laptop with ROS Melodic. I would like to know if it's possible to install ROS2 without it interfering with ROS

Asked by blancoys on 2020-04-24 06:19:19 UTC

Comments

Would these questions be duplicates: #q286978, #q326445 and #q322987?

Asked by gvdhoorn on 2020-04-24 06:43:56 UTC

If they are, and your question has been answered -- as #q350544 seems to suggest -- please close your question as a duplicate.

Asked by gvdhoorn on 2020-04-25 08:11:28 UTC

Yes, you can, if you're using them independently just make sure to source the right version.

Ex:

source /opt/ros/dashing/setup.bash

generally:

source /opt/ros/<ros_distro>/setup.bash

If you'd like to communicate between ROS1 and ROS2 this is the dedicated documentation: Bridge communication between ROS 1 and ROS 2

Asked by SalahSoliman on 2020-12-19 14:27:12 UTC

Answers