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: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23
DIY Robocars via Twitter
Oct 23
DIY Robocars via Twitter
Oct 19
DIY Robocars via Twitter
Oct 18
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13
More…