Simulation/Output/FCDOutput

From Sumo
Revision as of 13:35, 10 June 2012 by Mkrumnow (talk | contribs) (Created page with 'The FCD (floating car data) export contains the information about each vehicle where it is located in the network and the actual velocity. ==Instantiating within the Simulation=…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The FCD (floating car data) export contains the information about each vehicle where it is located in the network and the actual velocity.

Instantiating within the Simulation

The simulation is forced to generate this output using the option --fcd-output <FILE>. <FILE> is hereby the name of the file the output will be written to. Any other file with this name will be overwritten, the destination folder must exist.

Generated Output

The generated XML file look like this:

<fcd-export>
  
  <timestep time="<TIME_STEP>">
     <vehicle id="<VEHICLE_ID>" x="<VEHICLE_POS_X>" y="<VEHICLE_POS_Y>" angle="<VEHICLE_ANGLE>" type="<VEHICLE_TYPE>" 
     speed="<VEHICLE_SPEED>"/>
     
     ... more vehicles ...

 </timestep>

 ... next timestep ...

</fcd-export>
Name Type Description
time_step (simulation) seconds The time step described by the values within this timestep-element
id id The id of the vehicle
type id The name of the vehicle type
speed km/h The speed of the vehicle
angle degree The angle of the vehicle
pos_x --- The absolut X coordinate of the vehicle. The value depends on the given geographic projection
pos_y --- The absolut Y coordinate of the vehicle. The value depends on the given geographic projection


NOTES

In combination with the given geometry of the vehicles (shapes) you can build some nice animations for example with Nasa WorldWind or Google Earth.