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

Can I install ROS1 kinetic and ROS2 crystal on same pc?

asked 2019-05-12 05:15:24 -0600

askkvn gravatar image

I have projects on ROS Kinetic and I want to run ROS2 side by side. Is it possible to add ROS2?

I am using Ubuntu 18.04 LTS, 64-bit.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-05-12 06:03:24 -0600

gvdhoorn gravatar image

updated 2019-05-12 06:04:20 -0600

Can I install ROS1 kinetic and ROS2 crystal on same pc? I am using Ubuntu 18.04 LTS, 64-bit.

The short answer would be (for your stated configuration): no, as Kinetic is not supported on Ubuntu Bionic (only on Xenial (16.04), see REP-3). The ROS buildfarm does not build any Kinetic packages for Bionic because of that.

The longer answer would be: maybe.

It might be possible to build Kinetic from source, but there will probably be significant incompatibilities to overcome, such as those with Qt (4 vs 5), Ogre and potentially Boost.


An alternative to building Kinetic from source could be to use a Docker (or Singularity) image of Kinetic (such as ros:kinetic or osrf/ros:kinetic-desktop(-full)).

Technically, that would not be an answer to your question, as it wouldn't be exactly running on the same PC / OS, so depending on your requirements / use-cases it wouldn't actually help you.


A second alternative could be to install ROS Kinetic on Ubuntu Xenial and build ROS Crystal from source next to that. REP-2000 lists Xenial as a Tier 2 platform (here) and apart from some of the RQT plugins, Crystal should still compile on Xenial last I heard.

I have projects on ROS Kinetic [..] and I am using Ubuntu 18.04 LTS, 64-bit.

Btw: this confuses me, as Kinetic cannot be installed on Bionic. Are you already using containers?

edit flag offensive delete link more

Comments

Actually, I have singularity image on my pc, but i can't install anything to it. So that's why I was looking for other options. And as you mentioned singularity image is not my answer. Btw Thanks for your clear justification.

askkvn gravatar image askkvn  ( 2019-05-12 13:19:29 -0600 )edit
1

If you run the Singularity image as --writable or convert it into a --sandbox you could install anything you like.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-12 15:13:46 -0600 )edit

When installing Crystal on Xenial, the RQT plugins that fail can be compiled with an gcc 5

pavel92 gravatar image pavel92  ( 2019-05-13 01:27:22 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-05-12 05:15:24 -0600

Seen: 1,314 times

Last updated: May 12 '19