-
Notifications
You must be signed in to change notification settings - Fork 1k
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
mavros installation on Raspberry Pi 4 buster OS #1280
Comments
To progress the build, you can slightly adapt the process to this: Adapted from here: https://github.com/mavlink/mavros/blob/master/mavros/README.md#source-installation
However, it then fails compiling one of the dependencies - realtime_tools:
|
@fnoop yes, you can blacklist packages by |
@vooon no matter how I try to blacklist test_mavros, it keeps coming back:
|
Maybe building
|
Hi @vooon thanks for the suggestions, but I couldn't get any of those to work. What eventually worked was:
Crucial bit is the |
@fnoop Thanks for the installation instructions on your platform. I actually just followed them on a Nvidia Jetson Nano and can confirm I could successfully install MAVROS on it. Memory 4 GB |
@TSC21 , could i use mavros with the ros-dashing-ros1-bridge? |
You can but that means you need to recreate the |
@TSC21 , i dont want to recreate the wheel. How are other people running Nvidia Nano/Ros/python3/mavros? Which ros install are they using? |
Using ROS (1) distros, which are the ones that MAVROS was written to. |
@TSC21 , can you post a link please, everything i've seen says use ros2 dashing.... |
You must be mistaken. Where exactly are you seeing MAVROS assotiated with ROS2? Now I am curious. You can start by checking the above comments - they are using |
Our README is quite clear as well: https://github.com/mavlink/mavros/tree/master/mavros#installation |
@TSC21 , I'm just new to this. My research told me python3 only works on ros2. Then the kinetic install failed. However the 'dashing' install worked perfectly.... I noticed mavros is for kinetic, and was wondering if it worked on dashing too? I'm just looking for a working solution to use nano/python3/Ros/Pixhawk. |
@fishworx Even if ROS(1) is compiled using python2 (it's actually quite difficult to get it to build with python3 even if you try), you can still happily use python3 scripts while loading the python2-based mavros modules. (add /opt/ros/melodic/lib/python2.7/dist-packages to PYTHONPATH). There are also various python3 ros packages for building:
You can find some build hints here: TL;DR - you can use python3 scripts just fine with ros/mavros, even though it's based underneath on python2. |
Why do you strictly required Python 3? If you are new to this is I recommend you start by understanding how ROS works and what are the main differences between ROS and ROS2 (it's not only in Python 3). Now, if you want to use MAVROS, you need to check what MAVROS depends on and where it is actually supported. It's not only in Kinetic. You can use latest ROS 1 distro which is Melodic. |
@fishworx btw that build manifest also works perfectly on jetson nano running the latest jetpack. I'm intending to upload a prebuilt OS image at some point with ros/mavros included but haven't had the time as of yet. |
you know python2 is being discontinued??? also we use openCV which is python3.... |
@fnoop , so just copy and paste, no need to change melodic? |
Absolutely. But as someone said already, being EOL doesn't mean it doesn't work ;) Also, please read what me and @fnoop wrote. |
Also note that the whole python3 question isn't so much a mavros (or any other ros module) issue, but a ROS issue. The ros modules just have to support both, which mavros now does. To have a future, MAVROS needs to move to ROS2, but there are no plans for that currently. |
@fnoop , can you confirm your using melodic on a nano/ubuntu 18.04? I cant get melodic to work.... |
Yes, works perfectly :) Note roslaunch is running under python3. |
@fnoop , can you share a link on how to install ros please? |
See above - this is my build manifest that works across all platforms: Also check out jetsonhacks: Edit: looks like there are native ubuntu packages for the nano, have you tried those? |
@fnoop , some unmet dependencies? is this a success? |
@fishworx No, but unrelated to this issue - suggest you raise a new issue for that. |
I am unable to build mavlink packages from source for raspberry pi3 model b running buster and ros-kinetic. I followed the guide
as listed above but I cannot find any support for geographic lib for buster.and all mavlink packages listed above also fail to build Any comments or updates would be appreciated. |
Hi, try installing libgeographic-dev through apt: Also kinetic doesn't support buster - you should be using the latest noetic release, I think. |
Hi all, Exactly the subject I was looking for. In my particular case I've installed Ros-noetic, and the step 4 from the Mavros source installation is the only that actually get's me in trouble. When I run I get the error:
and actually looking in the apt, there's no such package. I did find a couple of packages that could be related like:
and one by one I've installed them, to see if would make a difference. Any ideas on how to get this dependency installed? |
I think the issue is timeout since the many changes are applied for this problem. I'm closing as stale. |
Mavros: Latest
ROS: Kinetic || Melodic
OS: Raspbian Buster
Platform: Raspberry Pi 4
Hello, I'm trying to install MAVROS to RPi 4. However, I couldn't finish it without any error.
Here is the list of what I tried:
1. Followed this guide to install kinetic and getting error by Boost version:
http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Kinetic%20on%20the%20Raspberry%20Pi
I found details which is about this issue are here:
https://answers.ros.org/question/328303/i-cannot-install-ros-kinetic-desktop-following-the-tutorial/
2. Try to install Melodic version of ROS by following source instillation and there is no error with melodic
(I just change command:
rosdep install -y --from-paths src --ignore-src --rosdistro melodic -r --os=debian:buster
)http://wiki.ros.org/melodic/Installation/Source
3. After installed melodic try to install MAVROS by source and getting error:
I want to use Jessie or Ubuntu Mate for RPi 4 to install without error but there is no support for RPi 4 .
Is there any guide or possible way to install MAVROS to RPi 4 or do you plan to support RPi 4 soon?
Thanks.
The text was updated successfully, but these errors were encountered: