ArduPilotMega / Flightgear simulation on Linux

 

Just documenting steps to get this set up, so as I don't forget.  Sorry but couldn't find a concise summary to fit my specific desire: do it on linux.      I'll clear this up in the wiki if I could have access to it.

 

Flightgear works, have that running.  Available in synaptic in ubuntu, easiest way to get it.

 

Now, need interface program, receive APM serial data outputs (servo commands), and send Flightgear simulation states (fake IMU signals),  both over ftdi serial cable between pc and APM.    It sounds like that Micheal Oborne's neato ArduPilotMegaPlanner program will run on linux, if I have mono. (reading the wiki page http://code.google.com/p/ardupilot-mega/wiki/FlightGear,  and blog http://diydrones.com/profiles/blog/show?id=705844%3ABlogPost%3A186272&commentId=705844%3AComment%3A186412&xg_source=activity)  latest APMPlanner is posted here:   http://code.google.com/p/ardupilot-mega/downloads/detail?name=ArduPilotMegaPlanner.zip&can=2&q=

 

But I've never heard of mono except in high school.   Oh,  this mono,  http://en.wikipedia.org/wiki/Mono_%28software%29        which runs .net programs on linux.     

 

So, ubuntu 10.10 already has mono.   ok, no highschool kissing jokes now.

 

download the APMP .zip file, unpack it, and open a cmd window in that directory, and type

$ mono ArdupilotMegaPlanner.exe

error message to the effect 'assembly mscorlib.dll was not found or could not be loaded.

need something called 'Nant' which includes some required files.  install that:   sudo apt-get install nant

 

And now it works!  APMPlanner launches.   I'll see now if can get it working together.  Thanks Michael for making it cross platform/OS compatible!

 

 

so, short answer, at least for Ubuntu 10.10: 

-unzip it, put it where you want  

-use mono to launch it,   $ mono ArdupilotMegaPlanner.exe

-you might need to install nant,    $ sudo apt-get install nant

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • great!

    but how can I know which one is my serial port?

  • Hi all,

    A few months have gone by since the last post, so I'd like to ask if anyone has succeeded in getting later versions of APM-Planner and FlightGear working together ?

    Thanks,

    Nick

  • Well, so I have APMPlanner launched and it appears to run (as the common binary, not recompiled on linux).  Poking around in it, it has locked up / crashed a couple times, not sure why.   So, I still have to get it set up and working with the APM and Flightgear all together.  I'll post once I have that.  But it appears so far it should or may work.  I haven't used APMPlanner for it's other functionality, I'm trying it first just for connecting APM & Flightgear.

     

    Also clarify my original post:  I have Flightgear 1.9 installed.  I forget if I got it from synaptic, or installed sort of manually in order to get the older version, instead of newer version which is alleged to have some issue for this use.

     

    Some people must be doing this on Linux?  Right?  How have you done it?   Is see there is another small connection program source code in the SVN, maybe that is used to connect APM serial port with Flightgear?  Or are you using APMPlanner.

  • Awesome!  I was having a horrible time trying to run APMPlanner in a VM on Kubuntu 10.10.  Thank you!
This reply was deleted.

Activity

DIY Robocars via Twitter
RT @chr1sa: Just a week to go before our next @DIYRobocars race at @circuitlaunch, complete with famous Brazilian BBQ. It's free, fun for k…
7 hours ago
DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Monday
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Nov 26
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Nov 25
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
More…