AI Traffic: Difference between revisions

Jump to navigation Jump to search
110 bytes removed ,  11 November 2006
Line 464: Line 464:


In addition, each parking has a number of additional parameters:
In addition, each parking has a number of additional parameters:
type: specifies what type of aircraft can use this parking bay: Valid values  
* '''type:''' specifies what type of aircraft can use this parking bay: Valid values for this parameter are: ''cargo, gate'' (=usually intermediate to heavy airline traffic), ''ramp'' (=usually smaller regional jets and commuter aircraft), ''ga'' (=general aviation), and ''mil'' (=military). See the description of the '''<flighttype>''' parameter in the traffic pattern description above for a comparison.
for this parameter are: cargo, gate (=usually intermediate to heavy airline  
* '''number:''' Currently unused, and likely to be removed.
traffic), ramp (=usually smaller regional jets and commuter aircraft), ga  
* '''heading:''' the heading the aircraft parked in this bay.
(=general aviation), and mil (=military). See the description of the  
*'''radius:''' a value used to determine whether the aircaft will fit in this bay: see also the description of the '''<radius>''' parameter in the traffic pattern description above.  
<flighttype> parameter in
http://www.xs4all.nl/~dtalsma/FlightGear/fgtraffic-doc-2006-08-20.pdf
for a comparison.
number: Currently unused, and likely to be removed
heading: the heading the aircraft parked in this bay.
radius: a value used to determine whether the aircaft will fit in this bay:  
see also the description of the <radius> parameter in  
http://www.xs4all.nl/~dtalsma/FlightGear/fgtraffic-doc-2006-08-20.pdf


Finally, the taxiway segments contain three parameters.  
Finally, the taxiway segments contain three parameters.  
- begin (= the id of the parking or AINode this segment starts)
* '''begin''' (= the id of the parking or AINode this segment starts)
- end (= the id of the parking or AINode this segment ends)
* '''end''' (= the id of the parking or AINode this segment ends)
- Name (= name of the taxiway. Currently still unused)
* '''name''' (= name of the taxiway. Currently still unused)


2. Creating a ground network, a practical approach.
== Creating a ground network, a practical approach ==


Okay that finishes the technical description of the parking file format. The  
Okay that finishes the technical description of the parking file format. The  
good news is, you probably don't need to know too much about the technical  
good news is that one probably doesn't need to know too much about the technical  
side of the file structure to create a ground network.  
side of the file structure to create a ground network.  


2.1 TaxiDraw
== TaxiDraw ==


The CVS version of taxidraw (http://taxidraw.sourceforge.net/) has ground  
The CVS version of taxidraw (http://taxidraw.sourceforge.net/) has ground  
network editing capabilities, and will in the short to intermediate term  
network editing capabilities, and will in the short to intermediate term  
probably be the best option to create a ground network for FlightGear.   
probably be the best option to create a ground network for FlightGear.   
Before I proceed, let me add a word of caution. Although I've fixed quite a
Notice that the ground editing facilities in TaxiDRaw are still rather new, and although the stability of this feature has increased dramatically over the last few weeks, there are still a few issues related to the undo function, so be prepared for a bit of frustration, and make regular backups.  
number of taxiway editing bugs in taxidraw recently, I'm still experiencing
occasional program crashes while using the undo function, so be prepared for  
a bit of frustration, and make regular backups (I'm working on fixes).  


2.2.1 Obtaining taxidraw
== Obtaining TaxiDraw ==


I'm hoping that we can do a release of taxidraw fairly soon, so that the  
I'm hoping that we can do a release of taxidraw fairly soon, so that the  
Line 508: Line 497:
using the free cygwin environment.  
using the free cygwin environment.  


2.2 Getting good reference material.
== Getting good reference material ==


The first step in preparation of creating a ground network consists of getting  
The first step in preparation of creating a ground network consists of getting  
some reference material, which relates to the question asked by Milijana
some reference material. Ideally, You'd like to find a good satellite or arial image. If you can't find that, using a schematic diagram might also work. In most cases, using http://maps.google.com, and selecting the satellite imagery will work pretty well as reference. You can't save the google images, so importing them as a background image in taxidraw won't work. However, using these images as a reference and placing the parking notes at the approximate location indicated by the map will (at least for an initial version) give reasonable results.
Babovic. Ideally, You'd like to find a good satellite or arial image. If you  
can't find that, using a schematic diagram might also work. In most cases,  
using http://maps.google.com, and selecting the satellite imagery will work  
pretty well as reference. You can't save the google images, so importing them  
as a background image in taxidraw won't work. However, using these images as  
a reference and placing the parking notes at the approximate location  
indicated by the map will (at least for an initial version) give reasonable  
results.


2.3 Creating the network
== Creating the network ==


2.3.1 Startup locations
== Startup locations ==


Once you have the reference material, it's time to start building the ground  
Once you have the reference material, it's time to start building the ground  
Line 533: Line 514:
This places the startup location directly where the mouse is located.  
This places the startup location directly where the mouse is located.  


2.3.2 AI Network Nodes
== AI Network Nodes ==


Next you want to insert the AINodes, without connecting them yet. The  
Next you want to insert the AINodes, without connecting them yet. The  
Line 541: Line 522:
the node.  
the node.  


2.3.3 Connecting the nodes: Drawing the network
== Connecting the nodes: Drawing the network ==


Once you are finished adding all the nodes, and startup locations, it's time  
Once you are finished adding all the nodes, and startup locations, it's time  
Line 552: Line 533:
need to switch back to the standard edit mode press 'm' again.  
need to switch back to the standard edit mode press 'm' again.  


Okay, making sure we are still in "ARC" mode, select the first node or parking   
Making sure we are still in "ARC" mode, select the first node or parking   
you want to connect to the network by clicking on it. The node you have  
you want to connect to the network by clicking on it. The node you have  
clicked will be selected, and a red line with an arrow symbol will be drawn  
clicked will be selected, and a red line with an arrow symbol will be drawn  
Line 569: Line 550:
the next taxiway.
the next taxiway.


2.3.4 Editing the startup location parameters.
== Editing the startup location parameters ==


Once you have created a ground network, you'll find that it probably won't  
Once you have created a ground network, you'll find that it probably won't  
Line 583: Line 564:
Editing the starup location radius, type, airlineCodes, and pushBack  
Editing the starup location radius, type, airlineCodes, and pushBack  
parameters is not yet possible in taxidraw. So changing these requires saving  
parameters is not yet possible in taxidraw. So changing these requires saving  
the project and editing these using a texteditor. (It'll be in a taxidraw
the project and editing these using a texteditor. Once you save the project, this will be done in a file [filename].tpj (taxidraw project). The groundnetwork will be saved in a file named [filename]-groundnet.xml, which will be in the same folder as where you saved the project.
near you soon. :-))
 
Once you save the project, this will be done in a file [filename].tpj.
(taxidraw project). The groundnetwork will be saved in a file named  
[filename]-groundnet.xml, which will be in the same folder as where you saved  
the project.


You can edit the remaining parameters by loading this groundnet.xml file into  
You can edit the remaining parameters by loading this groundnet.xml file into  
Line 598: Line 573:
existing ground network data and confirm this  by clicking on "yes".
existing ground network data and confirm this  by clicking on "yes".


2.3.5 Copying the ground network into FlightGear's data directory
== Copying the ground network into FlightGear's data directory ==


Finally, once you have finished creating a groundnet work you can test it in  
Finally, once you have finished creating a groundnet work you can test it in  
FlightGear. Create a directory in FlightGear's data/Airports/AI directory,  
FlightGear. Create a directory in FlightGear's data/Airports/AI directory,  
with the name of the ICAO code of your airport. For example  
with the name of the ICAO code of your airport. For example  
data/Airports/AI/EHAM
data/Airports/AI/EHAM. Next. locate the file [filename]-groundnetwork.xml and copy this to the directory you just created. Finally, rename the file you just copied to "parking.xml".
 
Next. locate the file [filename]-groundnetwork.xml and copy this to the  
directory you just created. Finally, rename the file you just copied to  
"parking.xml
 


== Testing the network ==
== Testing the network ==
117

edits

Navigation menu