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 @breadcentric: The handy bit about racing with self-driving cars is that one can type while the car is racing. Report from #AWSDeepRacer…
5 hours ago
DIY Robocars via Twitter
RT @chr1sa: Our Bay Area @DIYRobocars meetup is now at 2,700 members. Next in-person events (in Oakland) are training day on July 17 and…
5 hours ago
DIY Robocars via Twitter
Videos from the ICRA autonomous racing workshop are now available: https://linklab-uva.github.io/icra-autonomous-racing/
Jun 10
DIY Robocars via Twitter
RT @SmallpixelCar: Prepared race track for Warm Spring Raceways @wsraceways and looking forward to test my new car at RAMS RC @ramsaicar fa…
Jun 6
DIY Robocars via Twitter
RT @f1tenth: Trying out some nasty blocking maneuvers 🏎️🤖 #f1tenth #autonomousracing https://t.co/nMTstsaogM
Jun 5
DIY Robocars via Twitter
May 27
DIY Robocars via Twitter
RT @araffin2: I will talk this Saturday from 18:00 to 19:00 Paris time for the @diyrobocars community about learning to race in hours using…
May 27
DIY Robocars via Twitter
RT @a1k0n: Luckily the infeasible hairpin problem was easily reproducible in simulation and I could test the fix before bringing the car ba…
May 26
DIY Robocars via Twitter
RT @a1k0n: Another problem was that I was over-constraining the car's allowed accelerations, so it didn't think it could turn as tight as i…
May 26
DIY Robocars via Twitter
RT @a1k0n: Breaking the map up into two halves worked, but I had to be more careful about separating the inner track from outer. There's se…
May 26
DIY Robocars via Twitter
RT @a1k0n: Here's a datalog for my fastest lap of the day. Lap timer is tiny window lower-left. https://t.co/myrlWWrKUY
May 26
DIY Robocars via Twitter
May 26
DIY Robocars via Twitter
RT @a1k0n: Here was my car's POV. Man this track is confusing in first-person! After the incident my camera was all scuffed up and I was af…
May 23
DIY Robocars via Twitter
RT @circuitlaunch: Loved seeing so many familiar (masked) faces at Circuit Launch today for our first in person @diyrobocars in over a year…
May 22
DIY Robocars via Twitter
RT @circuitlaunch: Last but not least, mystery guest @BostonDynamics Spot took to the track @diyrobocars He enjoyed the #brazilianbbq too 😂…
May 22
DIY Robocars via Twitter
RT @SmallpixelCar: Today’s race @circuitlaunch for @diyrobocars with @a1k0n Was busy in the morning and did not get a chance to tune camera…
May 22
More…