The link between sumo --- The second file trips.xml

  Previous talked about there are three main documents, namely: net.xml, rou.xml, sumocfg (profiles).

But in fact, in addition to these three files, there will be another file --- trips.xml after you enter the command line

Open this file, you will find the xml format main language of this document is:

  

   <trip id="0" depart="0.00" from="462949521#1" to="462340099#3"/>

  It is like this form.

  Open file trips.xml Notepad ++, and opens net.xml road network (below) with a .exe NETEDIT bin under the installation path sumo

  

 

 

   

  Click the magnifying glass circled in red on the map, click on any road, you can see something like the following,

  id: id represent sections; from: starting from the intersection which represents the stretch of road; to: intersections represent sections from which the end

  

 

 

 

  

  Then click on any intersection, you can see something like the following,

  id: represents the road segment id (i.e., from or to the figure above is to use the junction id); pos: indicates that the intersection is located in which the coordinate point (x, y) represents

   

 

 

 

  1, first of all, this is a journey (ie car journey, to say the following are direct journey) random file in the command line input net.xml file generated using randomTrips.py

    [SUMO_HOME] \ tools \ randomTrips.py -n TestSumo.net.xml -l -e 20 -o TestSumo.trips.xml

    1), before the introduction -l introduce "marginal probability."

      --- increasing the marginal probability journey began at the network edge possibility / end. If the given value is 10,

      No successor or predecessor edge will be selected as the start or end of the stroke of the possibility of higher 10 times . Marginal probability may be weighted in the following manner;

      a, side length (option -l)

      b, the number of lanes (option -L)

      C, the peripheral velocity (exponentially, the option --speed-exponent The )

        Therefore, the command line is used to change the side edges of Weighted Probability

    2) introduce -e 20

      Stroke in seconds to start (option -b , the default value is 0) and ending time (option -e , the default is 3600) defined by spaced evenly distributed.

      Repetition rate is defined by the number of strokes (option -p , defaults to 1) (in seconds).

      Therefore -e 20 indicates 0 ~ 19 s with 20 journey time intervals, emerging 1s

 

  2、接着介绍 trips.xml 属性  <trip id="0" depart="0.00" from="462949521#1" to="462340099#3"/>

    1), id = "0": indicates the id value of the journey, a default string starting from 0

    2), depart = "0.00": every time a journey into the road network, the default time interval 1s start to appear, is the beginning of 0s

    3), from = "462949521 # 1" to = "462340099 # 3": randomTrips.py randomly generated by the start and end of the journey lane id,

        I.e. above NET: egde of id

        (Note: At this point is ignored after what specific lane, only every journey lanes that are generated and leave, after which specific lane will be generated in the rou.xml file is)

    Can be obtained from the above, after generating a random file journey too, can be opened to give net.xml according NETEDIT journey have appear to modify the lane departure, to change the path

  Trips.xml file will appear when 3, with the actual map file, use the command line to generate these files, but if he had designed the road network and the formation of their own design net.xml each journey form rou.xml

    You can not generate this file trips.xml

    

    

Guess you like

Origin www.cnblogs.com/dxsboke/p/11892908.html