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

How to run ROS not on Ubuntu?

asked 2021-09-04 07:58:28 -0500

ROS_user gravatar image

updated 2021-09-07 06:32:46 -0500

Hi, I would like to run (note: run, not install) ROS on a Linux distribution different from Ubuntu. Is that possible?

I read I can run ROS inside a container, using LXD or docker, but I don't know if it is the correct way to do that. Is there a standard "solution" to this kind of problem, or am I obliged to install Ubuntu?

Edit: I am excluding the creation of a full virtual machine or the installation directly on my main OS.

edit retag flag offensive close merge delete

Comments

Hint: Don’t run ROS in docker on Windows, as the —net=host does not work there and you won’t be able to pass messages between your containerised nodes and any other node.

mintybim gravatar image mintybim  ( 2021-09-12 13:01:28 -0500 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2021-09-05 11:50:42 -0500

Jaron gravatar image

Two routes:

  1. Official docker images: https://hub.docker.com/_/ros

  2. You can always build from source. In fact, there's already a tutorial that would need to be slightly modified depending on the distribution you're talking about.

edit flag offensive delete link more

Comments

If you build ROS2 from source, how do you add other packages? Can you apt-install those or do they need to be built from source as well? Do you add them to your personal workspace or the place where you build ros?

Koen gravatar image Koen  ( 2021-09-06 07:27:58 -0500 )edit

A question regarding route 1 (never used docker before).

Given that ROS docker image, can I run inside it multiple nodes and some graphical tools (like rviz) in a way that they are accessible/visible from my main OS? Could there be incompatibility problems?

ROS_user gravatar image ROS_user  ( 2021-09-07 06:16:22 -0500 )edit
1

@Koen, if you have apt, the you can probably just follow the Ubuntu instructions anyways to install the binaries. But yes, generally, if you have apt, you can install all the apt binaries.

Jaron gravatar image Jaron  ( 2021-09-07 08:31:59 -0500 )edit

@ROS_user this really depends on what the host OS is but generally you need an X11 client on the host and forward GUIs through it. If you Google GUI in docker I'm sure you'll find stuff as this is not a ROS specific setup.

Jaron gravatar image Jaron  ( 2021-09-07 08:35:21 -0500 )edit
0

answered 2021-09-05 18:31:43 -0500

miura gravatar image

ROS can be installed on distributions other than Ubuntu by using a distribution that can use apt, or by installing apt, since it is available as a deb.

There may be some minor differences and tips needed, but largely it is the same as Ubuntu, editing the sources.list to include ROS packages in the installation.

In fact, I've installed ROS on a Raspberry Pi. ( Although I was referring to a tutorial that was published somewhere. )

I think Ubuntu is preferable unless there is a special reason.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-09-04 07:58:28 -0500

Seen: 622 times

Last updated: Sep 07 '21