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

is there a way to handle all ros distributions with ubuntu 20.04LT

asked 2020-11-02 19:19:13 -0500

venkatesh gravatar image

It is very frustrating to switching between OS to handle Ros packages of different versions. Is there any way to handle all Ros distributions with my Ubuntu 20.04LTS.

edit retag flag offensive close merge delete

Comments

Short answer: No

Long answer: you could always build from source (the respective package version you need, or even the full distro. The first might work, the latter will give you a lot of headaches). Or you could fire up a VM with the appropriate distro.

Could you clarify what exactly you want to do and why?

mgruhler gravatar image mgruhler  ( 2020-11-03 01:03:37 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-03 02:17:27 -0500

gvdhoorn gravatar image

updated 2020-11-03 02:20:27 -0500

The typical way people address this need is to use docker.

@mgruhler wrote:

you could always build from source (the respective package version you need, or even the full distro. The first might work, the latter will give you a lot of headaches)

For future readers: please do not try to build older ROS distributions from source on newer OS than they were released for initially. It can be done, but try to use other approaches first (ie: Docker, LXD, VMs, multi-boot, etc). Building ROS from source is not very difficult, but if you haven't already done it, trying to get older software to build with newer dependencies is not trivial.

edit flag offensive delete link more

Comments

For future readers: please do not try to build older ROS distributions from source on newer OS

I totally agree here with @gvdhoorn and should probably have highlighted that more.

mgruhler gravatar image mgruhler  ( 2020-11-03 02:24:12 -0500 )edit
1

This wasn't directed at you of course. I just wanted to make sure we avoid (new) users with similar needs finding this Q&A, reading "you could try building it from source" and then spending hours (or days) trying to get things to work. That would not be nice for them.

If you know what you are doing (and have experience with this sort of thing) building older ROS versions on newer OS is actually possible. I've done it myself.

There can be quite a few hoops to jump through though, so don't do this if you don't absolutely need to.

gvdhoorn gravatar image gvdhoorn  ( 2020-11-03 02:30:56 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-11-02 19:19:13 -0500

Seen: 143 times

Last updated: Nov 03 '20