Can I install ROS1 and ROS2 on the same computer? [closed]

asked 2020-04-24 06:19:19 -0500

updated 2021-04-23 08:52:34 -0500

miura gravatar image

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

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Andromeda
close date 2023-05-12 04:08:55.709075

Comments

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

gvdhoorn gravatar image gvdhoorn  ( 2020-04-24 06:43:56 -0500 )edit

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

gvdhoorn gravatar image gvdhoorn  ( 2020-04-25 08:11:28 -0500 )edit
4

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

SalahSoliman gravatar image SalahSoliman  ( 2020-12-19 13:27:12 -0500 )edit