-
Notifications
You must be signed in to change notification settings - Fork 675
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
Modules on Raspberry Pi #50
Comments
Unphased, |
I know that sitl requires the map, maybe there are some additional packages listed here? |
Yes I have followed the instructions. Everything listed in that tutorial works fine, but it does not touch upon the GUI related stuff. I don't need any of the GUI stuff, but I want to test it. So, it is not helpful that all I get is |
@unphased I believe the modules are programmed for Desktop Linux (@rmackay9 correct me if i'm mistaken please). I also tried it in the BeagleBone (running a Ubuntu FS) and in OS X.The modules are not loadable. If you wish to get something specific you probably need to implement a module for the Rpi. |
I'm not using mavlink anymore, but thanks for the clarification. |
I have a similar problem with a module I developed. It works perfectly in Ubuntu desktop, but it will not load on a raspberry pi. I have confirmed that the module is in the correct directory and that all the dependencies are installed, but I cannot get even a simple script that prints "hi" whenever telemetry data is received to load. I receive the following error: module list module load rabbit I have confirmed that the command above works on my Ubuntu desktop. I am unable to find any differences between the imported libraries and code structure of my code vs the code of modules that do load on the pi, i.e. "mavlink_battery.py". I actually copied the code from "mavlink_battery.py" and just modified it for my purposes. Is there any known reason why it would be unable to find/load a module specifically on a Raspberry Pi? Any suggestions as to how I should go about fixing it? Thanks! |
I have an update: There's something different about the python environment, more specifically the libraries, on the pi's vs desktop. Any non-standard library that is installed, even when installed using easy_install or pip, doesn't seem to show in the eyes of the module manager. Commenting out all non-standard libraries results in the module loading correctly on the pi's. The ubuntu installs do not seem to be effected by this problem at all. I'll keep trying to isolate the problem. |
Hi @asuhler , Did you find that solution ? I got the same problem. I can't load my module, even when I try another module like mavproxy_antenna.py. |
It is almost certainly because of missing base python modules. |
@gitkosala @tridge |
Closing as original issue is resolved. |
I found a better solution that doesn't require manual checking and re-installation of python modules. Just install this: Found it here http://dev.ardupilot.com/wiki/simulation-2/sitl-simulator-software-in-the-loop/setting-up-sitl-on-linux/ Hope it helps |
it's true, it works ([thelastpolaris] |
I have tried installing MAVProxy with
pip
and with thepython setup.py build && python setup.py install
and I only get this list:It's like this whether i call the one in the build directory, the one in the source directory, or the one in the install directory
/usr/local/bin
.Is this expected? I was sort of hoping I can get the modules like map and console and whatever else to work when x is running on the raspberry pi. Also, it's not very clear at all how modules work, how they're loaded, and how I can make a new module.
The text was updated successfully, but these errors were encountered: