-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
Installing PX4-Autopilot for M1 Mac Users Running Parallels Ubuntu 20.04 Virtual Machine #21117
Comments
Hello, Thanks for the tuto. I followed it on my M1 64GB with parallels pro 18 on a fresh ubuntu 18.04 32GB but I had some trouble. which version did you checkout ? on current version (25/03/2023), gazebo targets seem not work anymore and jmavsim targets crash jpdumont@macuntu2004:~/PX4-Autopilot$make px4_sitl gazebo_rover Thanks in advance |
Hello, Ok I solved my problem, I was using the v1.11.3.
the good way is :
Regards, |
Hi @Flyingtux, thanks for posting your solution! Answering your initial question anyway, I am using My experience of setting up the PX4 SITL environment didn't require me to checkout any specific version (I think the version I have was the default). One thing I did note was that you are using Ubuntu 18.04 whereas I was using 20.04. PX4 documentation says both should be fine but just wanted to highlight this difference. Another noteworthy thing is that you might need to turn of 3D/ Graphics/ GPU Acceleration while using Gazebo. Some users experience a 'black screen' if not. Generally this slows down the SITL environment but, as you are using an M1 Pro, I am sure it will be fine regardless. See setting option below (click on Can you confirm that the Gazebo and JMavSim simulators are working as you expect now? I will keep this issue open to allow others to post if they had any other issues following these steps. |
Hello Oliver,
Nice to meet you,
Thanks for your answers/advises
Actually I tested the 3 last versions of ubuntu LTS (18, 20 and 22) to see
which was better.
The only one really working from v1.11.3 to the last current version of PX4
is the 20.04,
My goal was to find the best/easiest solution to develop on my MacM1 (macos
native/parallels Ubuntu/macos dockers...)
For now, I'm thinking to invest in VOXL2 platforms from Modalai based on
Qualcomm RB5. But their docker tool-chains are only build available for
amd64 platform.
Fortunately, they seem to work with Docker under Macos/Rosetta, but not
under parallels Ubuntu. so I will have to jump from Parallels-Ubuntu and
MacOs-Docker-Rosetta but it should be simple with the shared folder
Not easy to work with the Apple ARM architecture. The superb silence of the
M1 has its price ;-).
I did test a lot Gazebo yet, I just noticed that it didn't like big screen
like 3440x1440
Regards,
Jean-Pierre
Le dim. 26 mars 2023 à 15:50, Oliver ***@***.***> a écrit :
… Hi @Flyingtux <https://github.com/Flyingtux>, thanks for posting your
solution! Answering your initial question anyway, I am using v1.11.3 as
per the screenshot shown below.
[image: Screenshot 2023-03-26 at 14 36 55]
<https://user-images.githubusercontent.com/49697817/227779626-2cfc79b8-d576-471a-8d4c-b55b3344a565.png>
My experience of setting up the PX4 SITL environment didn't require me to
checkout any specific version (I think the version I have was the default).
One thing I did note was that you are using Ubuntu 18.04 whereas I was
using 20.04. PX4 documentation says both should be fine but just wanted to
highlight this difference.
Another noteworthy thing is that you might need to turn of 3D/ Graphics/
GPU Acceleration while using Gazebo. Some users experience a 'black screen'
if not. Generally this slows down the SITL environment but, as you are
using an M1 Pro, I am sure it will be fine regardless. See setting option
below (click on Advanced and ensure that this is disabled).
[image: Screenshot 2023-03-26 at 14 45 47]
<https://user-images.githubusercontent.com/49697817/227780016-35c31189-66c1-405a-8b5c-4e7f23fef42c.png>
Can you confirm that the Gazebo and JMavSim simulators are working as you
expect now?
I will keep this issue open to allow others to post if they had any other
issues following these steps.
—
Reply to this email directly, view it on GitHub
<#21117 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLJISX2REEBAUAX4VZUOB3W6BJTDANCNFSM6AAAAAAUZIAGVQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Re Hello,
I didn't test jmavsim, I don't like java at all. I already found this
techno slow and sluggish, so not good for real-time applications like sitl
simulations.
And we have already a virtual machine with parallels that slows us down !
Regards,
Jean-Pierre
Le lun. 27 mars 2023 à 11:25, Jean-Pierre Dumont ***@***.***> a
écrit :
… Hello Oliver,
Nice to meet you,
Thanks for your answers/advises
Actually I tested the 3 last versions of ubuntu LTS (18, 20 and 22) to see
which was better.
The only one really working from v1.11.3 to the last current version of
PX4 is the 20.04,
My goal was to find the best/easiest solution to develop on my MacM1
(macos native/parallels Ubuntu/macos dockers...)
For now, I'm thinking to invest in VOXL2 platforms from Modalai based on
Qualcomm RB5. But their docker tool-chains are only build available for
amd64 platform.
Fortunately, they seem to work with Docker under Macos/Rosetta, but not
under parallels Ubuntu. so I will have to jump from Parallels-Ubuntu and
MacOs-Docker-Rosetta but it should be simple with the shared folder
Not easy to work with the Apple ARM architecture. The superb silence of
the M1 has its price ;-).
I did test a lot Gazebo yet, I just noticed that it didn't like big screen
like 3440x1440
Regards,
Jean-Pierre
Le dim. 26 mars 2023 à 15:50, Oliver ***@***.***> a écrit :
> Hi @Flyingtux <https://github.com/Flyingtux>, thanks for posting your
> solution! Answering your initial question anyway, I am using v1.11.3 as
> per the screenshot shown below.
>
> [image: Screenshot 2023-03-26 at 14 36 55]
> <https://user-images.githubusercontent.com/49697817/227779626-2cfc79b8-d576-471a-8d4c-b55b3344a565.png>
>
> My experience of setting up the PX4 SITL environment didn't require me to
> checkout any specific version (I think the version I have was the default).
> One thing I did note was that you are using Ubuntu 18.04 whereas I was
> using 20.04. PX4 documentation says both should be fine but just wanted to
> highlight this difference.
>
> Another noteworthy thing is that you might need to turn of 3D/ Graphics/
> GPU Acceleration while using Gazebo. Some users experience a 'black screen'
> if not. Generally this slows down the SITL environment but, as you are
> using an M1 Pro, I am sure it will be fine regardless. See setting option
> below (click on Advanced and ensure that this is disabled).
>
> [image: Screenshot 2023-03-26 at 14 45 47]
> <https://user-images.githubusercontent.com/49697817/227780016-35c31189-66c1-405a-8b5c-4e7f23fef42c.png>
>
> Can you confirm that the Gazebo and JMavSim simulators are working as you
> expect now?
>
> I will keep this issue open to allow others to post if they had any other
> issues following these steps.
>
> —
> Reply to this email directly, view it on GitHub
> <#21117 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADLJISX2REEBAUAX4VZUOB3W6BJTDANCNFSM6AAAAAAUZIAGVQ>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Hi @Flyingtux, if you're looking into simulators and concerned about performance, I'd have a look at WeBots. I've used it with good success and it uses much less compute power than other simulators such as Gazebo. I think the UI is quite intuitive, as is the nodal structure of all the in-world assets (docs are good too). Look at this comparison between Gazebo, CoppeliaSim, MORSE and WeBots paper for some further insight. |
Hi Oliver, Thanks, interesting for robotics application ;-) |
thank you for your sharing! It worked for me! |
Description
As per the title, I have been trying to install PX4-Autopilot so that I can use the Gazebo Rover SITL environment with MavSDK. I am using a Macbook Pro with Apple Silicon (M1 chip) and have a Parallels VM instance running Ubuntu 20.04.
Linux ubuntu 5.15.0-53-generic #59~20.04.1-Ubuntu SMP Thu Oct 20 15:10:27 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
I have managed to get the setup working, following issues including #19210 and #21014, but it was not as straight forward I was hoping.
I am opening up a Feature Request as a means to capture the steps I went through and link the associated resources I used, as well as to ask the PX4 developer community if we can have some clearer documentation for others in my situation. Hopefully, this post will help other developers experiencing the same issue in the meantime.
Installation
Note that this post assumes that readers already have a working Parallels (or similar) VM installed.
Clone the repository as normal into the desired location.
Next, you need to delete two lines in the
ubuntu.sh
file located in thesetup
folder.Install the ARM-Linux gcc and g++ multilib versions.
The rest of the instructions shown below are as normal and described in the standard instructions here.
bash ./PX4-Autopilot/Tools/setup/ubuntu.sh sudo reboot # in PX4-Autpilot directory make px4_sitl gazebo_rover
Resources Used
The text was updated successfully, but these errors were encountered: