Hope these kinds of questions are allowed here. On this occasion I’m just looking for a straight answer.

For a university course I need to install ROS - software for doing robotics stuff. Specifically, I need ROS 1 - which is no longer being updated, as ROS 2 is now the focus. The installation instructions are here: https://wiki.ros.org/Installation/Ubuntu

The instructions from the course material say that only Ubuntu 18 would work, though the ROS wiki says Ubuntu 20.04 is the target. Either way, it doesn’t seem to be available for Ubuntu 22.04 and therefore Linux Mint 21, which is what I’m running.

The course instructions generally gives 3 options:

  1. Install ROS on a VirtualBox virtual machine
  2. Install on Windows using WSL
  3. Install on a real Ubuntu 18 system

Right now I’m going to use VirtualBox to get started, but I’d really prefer to run it natively and I’m worried about performance. Is there a simple way to download and run software intended for Ubuntu 20.04 on Linux Mint 21.3?

Edit: thank you all for the great suggestions! I got stuck on an unrelated problem (ran out of storage space) but I’m sure your suggestions will work once I fix that. Forgive me for not replying individually, you’re all awesome and I don’t have anything to add other than “thank you” :)

20 points
*

Sounds like distrobox/ toolbx would be the easiest here. There’s an ubuntu 18.04 image here https://github.com/toolbx-images/images it’s like a vm without all the overhead

permalink
report
reply
3 points

Since they already mentioned WSL, you can also describe distrobox like WSL for Linux.

but yeah, agree this would be the simplest.

permalink
report
parent
reply
8 points

I’d say distrobox is the easiest and safest way to do that.

permalink
report
reply
8 points
*

Ubuntu themselves package ROS, it’s a little out of date from the latest (1.16 vs 1.18) https://packages.ubuntu.com/jammy/ros-desktop

Try apt update && apt install ros-desktop

permalink
report
reply
7 points

I don’t have much to comment on native installs that hasn’t already been said, but if you go with a VM, please don’t use VirtualBox. It’s a pile of hot garbage that pales in comparison to the already existing, kernel-level virtualization offered by KVM/QEMU. Use a package like virt-manager for KVM/QEMU based VMs and your experience and performance will be infinitely better. The Linux kernel has KVM built in for a reason, so take advantage of that.

Otherwise, Distrobox is a great recommendation, as are many of the other install methods listed in these comments.

permalink
report
reply
1 point

For maximum performance you probably want to skip virt-manager, virt-viewer has a hardcoded FPS cap.

If you use QEMU directly and use virtio-gpu paired with the sdl or gtk display, and OpenGL enabled, you can run Ubuntu at 4K144Hz no problem. The VM is near imperceptible, and it works out of the box, that’s not even touching the crazy VFIO stuff.

permalink
report
parent
reply
2 points
*

Perhaps I was a bit vague with the word “performance”, but given that this user only seems to be interested in running ROS, there is absolutely no reason they need anything above the FPS cap (hence my recommendation of virt-manager, as it is quite user friendly). The “performance” aspect of it boils down to CPU utilization and efficiency more than anything.

permalink
report
parent
reply
7 points

Install from source is fairly likely to work: https://wiki.ros.org/noetic/Installation/Source

It doesn’t seem to have any outrageously complicated dependencies to work, just C++, Boost and a few other recognizable names, at least at a glance. They also seemingly have an ArchLinux package, which means it’s likely to at least be buildable on latest everything. Mint will fall in between, so the odds it’ll compile are pretty good.

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8.4K

    Monthly active users

  • 6.3K

    Posts

  • 174K

    Comments