Board index FlightGear Development AI Traffic

wed2fg

Intelligent, computer controlled vehicles that drive/fly over the planet!

wed2fg

Postby portreekid » Sat Apr 16, 2016 8:30 am

Since TaxiDraw is only used for groundnets and WED now offers that functionality I've started on a proof of concept to convert from WED to fg groundnet. As a starting point I used https://github.com/nikopoler/wed2fg.
Current to do list
    Read frequencies from apt.dat
    Sense hold points from airport line markings.
    Read Radio fequencies from apt.dat

Don't expect too much yet but it produces decent results already.

https://github.com/Portree-Kid/wed2fg
Last edited by portreekid on Sat Apr 16, 2016 9:47 pm, edited 1 time in total.
portreekid
 
Posts: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10

Re: wed2fg

Postby gooneybird » Sat Apr 16, 2016 10:28 am

Not working for me on win 7, window appears then immediately closes with no output. The original version works fine.
My Github repository (mostly AI stuff) https://github.com/gooneybird47
User avatar
gooneybird
 
Posts: 3046
Joined: Sat May 31, 2008 2:57 pm

Re: wed2fg

Postby portreekid » Sat Apr 16, 2016 6:41 pm

Since I added near queries and the like it needs

from scipy.spatial import KDTree
import numpy
import math

same as osm2city basically.
portreekid
 
Posts: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10

Re: wed2fg

Postby wkitty42 » Sat Apr 16, 2016 6:41 pm

IIRC, at some point in the future groundnets will be read from the apt.dat... i don't know if this is already available or not... i just remember some discussion about it and how to tie it all together with reading the separate XXXX_groundnet.xml files and which would override the other...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: wed2fg

Postby gooneybird » Sat Apr 16, 2016 7:07 pm

wkitty42 wrote in Sat Apr 16, 2016 6:41 pm:IIRC, at some point in the future groundnets will be read from the apt.dat... i don't know if this is already available or not... i just remember some discussion about it and how to tie it all together with reading the separate XXXX_groundnet.xml files and which would override the other...


I've seen a lot of talk about this but nothing definite from the people involved with the AI system about if and when this is happening!
My Github repository (mostly AI stuff) https://github.com/gooneybird47
User avatar
gooneybird
 
Posts: 3046
Joined: Sat May 31, 2008 2:57 pm

Re: wed2fg

Postby portreekid » Sat Apr 16, 2016 7:11 pm

wed2fg is just meant as a workaround until this is done. Maybe even a reason to try and get fg to compile again
portreekid
 
Posts: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10

Re: wed2fg

Postby pommesschranke » Sat Apr 16, 2016 10:09 pm

That's interesting.
A while ago I made a tool for the same job:

aptdat2sqlite.py && sqlite2xml.py
https://github.com/mherweg/d-laser-fgtools

let's see which script runs faster, and compare the groundnets that they produce. ;-)
pommesschranke
 
Posts: 1117
Joined: Sat Apr 27, 2013 8:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Kubuntu 22.04

Re: wed2fg

Postby wkitty42 » Sat Apr 16, 2016 10:32 pm

gooneybird wrote in Sat Apr 16, 2016 7:07 pm:
wkitty42 wrote in Sat Apr 16, 2016 6:41 pm:IIRC, at some point in the future groundnets will be read from the apt.dat... i don't know if this is already available or not... i just remember some discussion about it and how to tie it all together with reading the separate XXXX_groundnet.xml files and which would override the other...


I've seen a lot of talk about this but nothing definite from the people involved with the AI system about if and when this is happening!

i think you're reading the same list as i, gooney :wink: :wink: :mrgreen:
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: wed2fg

Postby gooneybird » Sun Apr 17, 2016 11:21 am

Yep, due to the lack of definitive answers to various questions I'm slowly coming to the conclusion that this is more wishful thinking than actual fact :cry: :?
My Github repository (mostly AI stuff) https://github.com/gooneybird47
User avatar
gooneybird
 
Posts: 3046
Joined: Sat May 31, 2008 2:57 pm

Re: wed2fg

Postby wkitty42 » Sun Apr 17, 2016 11:30 am

from what i see, it just takes time and right now those working on this stuff are working in other areas.. there's only a few folks and a lot of stuff to be done... right now the launcher and terrasync stuff is more important and then whatever else comes up...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: wed2fg

Postby portreekid » Sun Apr 17, 2016 12:54 pm

pommesschranke wrote in Sat Apr 16, 2016 10:09 pm:That's interesting.
A while ago I made a tool for the same job:

aptdat2sqlite.py && sqlite2xml.py
https://github.com/mherweg/d-laser-fgtools

let's see which script runs faster, and compare the groundnets that they produce. ;-)

You win. I forgot about project 3000. So I'll sit down and improve groundnets in WED and improve yours if there are things missing. No sense in building two tools. Can you deal with Airports having a taxi down the runway?
portreekid
 
Posts: 651
Joined: Tue Jan 14, 2014 4:36 pm
Location: Leipzig
Callsign: PORTREE
Version: 2020.2.1
OS: Windows 10


Return to AI Traffic

Who is online

Users browsing this forum: No registered users and 3 guests