-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ROS 2 + UbuntuAsahi 22.04 #90
Comments
Hi @peterdavidfagan o/ There was another recent mention abut ROS on Ubuntu Asahi. Would this work for your use case: #87 (comment) ? |
Thanks @eslerm, I need access to the GPU for rendering with OpenGL and in some cases ML related debugging (when the library supports Apple's metal). Right now Docker only seems to have support for the Nvidia drivers (based on my current understanding) and as a result I have been looking to run ROS software on host with UbuntuAsahi. It seems possible to use 23.10, it just requires building all software dependencies from source which is a bit non-trivial in the case of large ROS repositories as there are a lot of ROS package and system dependencies. I think I found a tool which helps though (rosinstall_generators). I can probably build everything from source for now and when ROS moves to the next LTS I can hopefully test binary installs for arm architectures. Would be super cool if this works well off the shelf. So far UbuntuAsahi has honestly been awesome. |
I wonder if schroots [0][1] would help if LXD does not? It's what I use to build binaries for different Ubuntu releases on my Mantic machine. Each shroot can use their own apt repos. Please let me know if schoots and LXDs are a possibility. [0] http://logan.tw/posts/2018/02/24/manage-chroot-environments-with-schroot/ |
Thanks @eslerm 🙏, I haven't used shroot before I'm going to check it out. |
Please let us know if that worked for you @peterdavidfagan We're getting a few requests for ROS 2 support (#95) and I'd like to help find a solution :) @cskn95 would you be able to test a jammy schroot on Ubuntu Asahi 23.10 for your use case? |
I have been able to successfully build ROS 2 packages from source on Ubuntu Asahi, rather than using |
I had to delete @cskn95's comment from two days ago, since the message contained strings which GitHub thought were references to other issues. (edit, this did not resolve the cross-references) Below is the deleted comment with minor reformatting: Unfortunately I got errors on both ROS2 and Gazebo. This is for ROS2:
And this is for Gazebo:
|
22.04 is now part of the installer, but you need to set Ubuntu Asahi is not supporting 22.04 beyond this. |
hello, I am trying to run ROS2 humble + Gazebo Harmonic on Asahi 24.04. I am doing this inside docker which is ubuntu22.04, but I install when trying to run Gazebo I see the following errors:
and then it runs at 5fps, so OpenGL is not working. but glxgears give me this inside same docker:
outside of the docker i can run gazebo with OpenGL support at 60fps. what may be the issue with docker setup? |
Please try adding https://launchpad.net/~ubuntu-asahi/+archive/ubuntu/mesa in your docker container, that has a newer mesa version that should work with the noble kernel. |
that worked! on ubuntu22 inside docker I can run Gazebo Harmonic at 60fps. the host is Ubuntu Asahi 24. question - can I possibly use this docker image in an Ubuntu24 VM on Macos (like Parallels or VM fusion)? |
You don't need Asahi for VMs, Asahi is all about native support. You can install a regular Ubuntu arm64 iso in your VM and run docker in that. The VM only interacts with a virtual GPU so the mesa part in the container would not be needed in such a setup. |
Yes, I know. But it would be cool to use Asahi's OpenGL inside VMs on Macos. will allow saving time not booting into different systems. |
No, because the VM does have real access to the physical Apple GPU which the Asahi driver needs. In the VM you get a paravirtualized GPU using a different driver. It might still support OpenGL though. |
Thanks for all the work that goes into UbuntuAsahi, it's an awesome project.
I was trying to get a Linux distribution on my MacBook Air (M2 chip) to run with ROS 2. I saw that 22.04 support was recently removed, I wished to ask if there exists an older install script that could be used to install 22.04. I don't have as much of a requirement for most device components like speakers, microphones etc. I only need to be able to compile code + use GPU drivers for rendering with OpenGL. Unfortunately ROS support isn't available on 23.10 so I wished to test 22.04 if it's possible to install the last stable release.
The text was updated successfully, but these errors were encountered: