[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] SUMO traffic model generation
|
Hi,
I used the above method and created flow of vehicles instead of using random trips. But not able to get that how I can set the period to have the desired distance between the vehicles i.e. 100-150m approximately. How I can calculate the distance between the nodes in .tcl file.
PFA, the route file, .net.xml file and mobility.tcl file.
I am using the below command to generate the mobility.tcl file
/usr/local/share/sumo-0.30.0/tools/traceExporter.py --fcd-input map2Trace_final.xml --ns2config-output map2_final.config.tcl --ns2activity-output map2_final.activity.tcl --ns2mobility-output map2_final.mobility.tcl --penetration 1 --begin 0 --end 100
Instead of using randomTrips, define a single flow from the start to the end of the highway and configure the insertion period according to the desired vehicle distance.
See
I am using randomTrips.py
Hi,
Thanks for the reply.
I am working on highway scenario and I guess first option " For a single road, there is the trivial solution of inserting vehicles with a fixed spacing and keeping their speed constant." would work for me. (For the sake of simulation)
Please guide me how to proceed with that.
Hello,
this is somewhat difficult because the vehicle models are tailored to keeping a minimum distance rather than maximum distance.
For a single road, there is the trivial solution of inserting vehicles with a fixed spacing and keeping their speed constant.
For complex urban networks where vehicles interact at intersections and thus vary their speed all the time,
you could enforce the maximum distance limit by dynamically adding new vehicles wherever large gaps appear.
This can be done using TraCI (the 'context subscription' functionality makes it easy to find vehicles that have no other vehicles within a given radius).
regards,
Jakob
Hi
I am trying to generate a traffic model in which I can specify the maximum distance between vehicles. How can I do that in SUMO?
--
Thanks and Regards
Rishu Chhabra
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
--
Thanks and Regards
Rishu Chhabra
--
Thanks and Regards
Rishu Chhabra
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
--
Thanks and Regards
Rishu Chhabra
$node_(0) set X_ 7.09
$node_(0) set Y_ 0.5
$node_(0) set Z_ 0
$ns_ at 0.0 "$node_(0) setdest 7.09 0.5 0.00"
$ns_ at 1.0 "$node_(0) setdest 8.2 1.74 1.66"
$ns_ at 2.0 "$node_(0) setdest 10.6 4.42 3.59"
$ns_ at 3.0 "$node_(0) setdest 14.95 9.28 6.53"
$ns_ at 4.0 "$node_(0) setdest 20.82 15.83 8.79"
$ns_ at 5.0 "$node_(0) setdest 28.09 23.95 10.90"
$ns_ at 6.0 "$node_(0) setdest 37.32 34.26 13.84"
$ns_ at 7.0 "$node_(0) setdest 47.81 45.98 15.72"
$ns_ at 8.0 "$node_(0) setdest 60.05 59.65 18.35"
$ns_ at 9.0 "$node_(0) setdest 73.75 74.95 20.53"
$ns_ at 10.0 "$node_(0) setdest 88.7 91.65 22.42"
$ns_ at 11.0 "$node_(0) setdest 105.65 110.58 25.41"
$ns_ at 12.0 "$node_(0) setdest 123.51 130.53 26.77"
$ns_ at 13.0 "$node_(0) setdest 141.57 150.7 27.08"
$ns_ at 14.0 "$node_(0) setdest 159.65 170.89 27.10"
$ns_ at 15.0 "$node_(0) setdest 177.61 190.96 26.93"
$ns_ at 16.0 "$node_(0) setdest 195.88 211.36 27.38"
$ns_ at 17.0 "$node_(0) setdest 214.35 231.99 27.69"
$ns_ at 18.0 "$node_(0) setdest 232.0 251.71 26.47"
$ns_ at 19.0 "$node_(0) setdest 250.21 272.04 27.30"
$ns_ at 20.0 "$node_(0) setdest 268.05 291.97 26.75"
$ns_ at 21.0 "$node_(0) setdest 286.54 312.62 27.71"
$ns_ at 22.0 "$node_(0) setdest 304.55 332.74 27.01"
$ns_ at 23.0 "$node_(0) setdest 322.78 353.1 27.32"
$ns_ at 24.0 "$node_(0) setdest 340.67 373.09 26.83"
$ns_ at 25.0 "$node_(0) setdest 358.26 392.73 26.37"
$ns_ at 26.0 "$node_(0) setdest 375.97 412.51 26.54"
$ns_ at 27.0 "$node_(0) setdest 393.61 432.21 26.45"
$ns_ at 28.0 "$node_(0) setdest 411.74 452.47 27.19"
$ns_ at 29.0 "$node_(0) setdest 429.73 472.56 26.96"
$ns_ at 30.0 "$node_(0) setdest 448.02 492.99 27.42"
$ns_ at 31.0 "$node_(0) setdest 466.52 513.65 27.73"
$ns_ at 32.0 "$node_(0) setdest 484.75 534.01 27.33"
$ns_ at 33.0 "$node_(0) setdest 502.51 553.85 26.63"
$ns_ at 34.0 "$node_(0) setdest 520.88 574.37 27.54"
$ns_ at 35.0 "$node_(0) setdest 538.46 594.0 26.35"
$ns_ at 36.0 "$node_(0) setdest 554.5 616.87 27.74"
$ns_ at 37.0 "$node_(0) setdest 572.34 636.8 26.75"
$ns_ at 38.0 "$node_(0) setdest 590.54 657.12 27.28"
$ns_ at 39.0 "$node_(0) setdest 608.94 677.68 27.59"
$ns_ at 40.0 "$node_(0) setdest 627.35 698.23 27.59"
$ns_ at 41.0 "$node_(0) setdest 645.47 718.47 27.16"
$ns_ at 42.0 "$node_(0) setdest 663.03 738.09 26.33"
$ns_ at 43.0 "$node_(0) setdest 681.3 758.49 27.38"
$ns_ at 44.0 "$node_(0) setdest 699.6 778.94 27.45"
$ns_ at 45.0 "$node_(0) setdest 717.96 799.45 27.53"
$ns_ at 46.0 "$node_(0) setdest 735.92 819.51 26.92"
$ns_ at 47.0 "$node_(0) setdest 754.21 839.93 27.42"
$ns_ at 48.0 "$node_(0) setdest 771.93 859.72 26.56"
$ns_ at 49.0 "$node_(0) setdest 790.37 880.32 27.65"
$ns_ at 50.0 "$node_(0) setdest 808.23 900.27 26.78"
$ns_ at 51.0 "$node_(0) setdest 826.05 920.17 26.71"
$ns_ at 52.0 "$node_(0) setdest 843.98 940.2 26.89"
$ns_ at 53.0 "$node_(0) setdest 861.82 960.12 26.74"
$ns_ at 54.0 "$node_(0) setdest 879.41 979.78 26.38"
$ns_ at 55.0 "$node_(0) setdest 896.98 999.4 26.34"
$ns_ at 56.0 "$node_(0) setdest 915.2 1019.75 27.32"
$ns_ at 57.0 "$node_(0) setdest 909.57 1018.4 27.04"
$ns_ at 58.0 "$node_(0) setdest 891.62 998.35 26.91"
$ns_ at 59.0 "$node_(0) setdest 873.26 977.84 27.53"
$ns_ at 60.0 "$node_(0) setdest 855.69 958.21 26.35"
$ns_ at 61.0 "$node_(0) setdest 837.34 937.72 27.50"
$ns_ at 62.0 "$node_(0) setdest 819.45 917.74 26.82"
$ns_ at 63.0 "$node_(0) setdest 801.07 897.22 27.55"
$ns_ at 64.0 "$node_(0) setdest 782.57 876.55 27.74"
$ns_ at 65.0 "$node_(0) setdest 764.32 856.16 27.36"
$ns_ at 66.0 "$node_(0) setdest 746.34 836.08 26.96"
$ns_ at 67.0 "$node_(0) setdest 728.74 816.42 26.39"
$ns_ at 68.0 "$node_(0) setdest 710.27 795.8 27.68"
$ns_ at 69.0 "$node_(0) setdest 691.92 775.3 27.51"
$ns_ at 70.0 "$node_(0) setdest 674.38 755.71 26.29"
$ns_ at 71.0 "$node_(0) setdest 656.17 735.37 27.31"
$ns_ at 72.0 "$node_(0) setdest 637.98 715.05 27.27"
$ns_ at 73.0 "$node_(0) setdest 619.53 694.45 27.65"
$ns_ at 74.0 "$node_(0) setdest 601.57 674.38 26.93"
$ns_ at 75.0 "$node_(0) setdest 583.25 653.92 27.47"
$ns_ at 76.0 "$node_(0) setdest 564.9 633.42 27.51"
$ns_ at 77.0 "$node_(0) setdest 543.95 614.98 27.71"
$ns_ at 78.0 "$node_(0) setdest 525.5 594.37 27.66"
$ns_ at 79.0 "$node_(0) setdest 507.7 574.48 26.70"
$ns_ at 80.0 "$node_(0) setdest 489.52 554.18 27.25"
$ns_ at 81.0 "$node_(0) setdest 471.28 533.81 27.34"
$ns_ at 82.0 "$node_(0) setdest 452.96 513.35 27.46"
$ns_ at 83.0 "$node_(0) setdest 435.11 493.41 26.76"
$ns_ at 84.0 "$node_(0) setdest 417.0 473.18 27.15"
$ns_ at 85.0 "$node_(0) setdest 399.09 453.17 26.86"
$ns_ at 86.0 "$node_(0) setdest 380.95 432.91 27.20"
$ns_ at 87.0 "$node_(0) setdest 362.93 412.79 27.01"
$ns_ at 88.0 "$node_(0) setdest 345.23 393.01 26.54"
$ns_ at 89.0 "$node_(0) setdest 327.28 372.97 26.90"
$ns_ at 90.0 "$node_(0) setdest 309.17 352.74 27.15"
$ns_ at 91.0 "$node_(0) setdest 291.0 332.45 27.23"
$ns_ at 92.0 "$node_(0) setdest 273.45 312.85 26.31"
$ns_ at 93.0 "$node_(0) setdest 254.94 292.18 27.74"
$ns_ at 94.0 "$node_(0) setdest 236.72 271.82 27.33"
$ns_ at 95.0 "$node_(0) setdest 218.29 251.24 27.62"
$ns_ at 96.0 "$node_(0) setdest 200.64 231.52 26.47"
$ns_ at 97.0 "$node_(0) setdest 182.73 211.52 26.84"
$ns_ at 98.0 "$node_(0) setdest 165.13 191.86 26.39"
$ns_ at 99.0 "$node_(0) setdest 147.09 171.71 27.04"
<routes>
<vType id="CARA" accel="3.0" decel="6.0" sigma="0.5" length="5.0" maxspeed="70"/>
<flow id="type1" color="1,1,0" begin="0" end= "700" period="500" type="CARA" from="tochitkara" to="tozrkpr" />
</routes>
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated on Friday 14 December 2018 02:17:00 PM IST by Netedit Version 0.30.0
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/netconvertConfiguration.xsd">
<input>
<sumo-net-file value="/home/rishu/map2_final.net.xml"/>
</input>
<output>
<output-file value="/home/rishu/map2_final.net.xml"/>
</output>
<processing>
<no-turnarounds value="true"/>
<offset.disable-normalization value="true"/>
<lefthand value="false"/>
<junctions.corner-detail value="0"/>
<rectangular-lane-cut value="false"/>
</processing>
</configuration>
-->
<net version="0.27" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd">
<location netOffset="-666843.38,-3383779.15" convBoundary="0.00,0.00,4675.12,5307.11" origBoundary="76.739871,30.574887,76.789484,30.622094" projParameter="+proj=utm +zone=43 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"/>
<type id="highway.bridleway" priority="1" numLanes="1" speed="2.78" allow="pedestrian" oneway="1" width="2.00"/>
<type id="highway.bus_guideway" priority="1" numLanes="1" speed="8.33" allow="bus" oneway="1"/>
<type id="highway.cycleway" priority="1" numLanes="1" speed="5.56" allow="bicycle" oneway="0" width="1.00"/>
<type id="highway.footway" priority="1" numLanes="1" speed="2.78" allow="pedestrian" oneway="1" width="2.00"/>
<type id="highway.ford" priority="1" numLanes="1" speed="2.78" allow="army" oneway="0"/>
<type id="highway.living_street" priority="3" numLanes="1" speed="2.78" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.motorway" priority="13" numLanes="2" speed="44.44" allow="private emergency authority army vip passenger hov taxi bus coach delivery truck trailer motorcycle evehicle custom1 custom2" oneway="1"/>
<type id="highway.motorway_link" priority="12" numLanes="1" speed="22.22" allow="private emergency authority army vip passenger hov taxi bus coach delivery truck trailer motorcycle evehicle custom1 custom2" oneway="1"/>
<type id="highway.path" priority="1" numLanes="1" speed="2.78" allow="bicycle pedestrian" oneway="1" width="2.00"/>
<type id="highway.pedestrian" priority="1" numLanes="1" speed="2.78" allow="pedestrian" oneway="1" width="2.00"/>
<type id="highway.primary" priority="9" numLanes="2" speed="27.78" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.primary_link" priority="8" numLanes="1" speed="22.22" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.raceway" priority="14" numLanes="2" speed="83.33" allow="vip" oneway="0"/>
<type id="highway.residential" priority="4" numLanes="1" speed="13.89" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.secondary" priority="7" numLanes="2" speed="27.78" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.secondary_link" priority="6" numLanes="1" speed="22.22" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.service" priority="2" numLanes="1" speed="5.56" allow="delivery bicycle pedestrian" oneway="0"/>
<type id="highway.services" priority="1" numLanes="1" speed="8.33" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.stairs" priority="1" numLanes="1" speed="1.39" allow="pedestrian" oneway="1" width="2.00"/>
<type id="highway.step" priority="1" numLanes="1" speed="1.39" allow="pedestrian" oneway="1" width="2.00"/>
<type id="highway.steps" priority="1" numLanes="1" speed="1.39" allow="pedestrian" oneway="1" width="2.00"/>
<type id="highway.tertiary" priority="6" numLanes="1" speed="22.22" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.tertiary_link" priority="5" numLanes="1" speed="22.22" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.track" priority="1" numLanes="1" speed="5.56" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.trunk" priority="11" numLanes="2" speed="27.78" disallow="tram rail_urban rail rail_electric bicycle pedestrian ship" oneway="0"/>
<type id="highway.trunk_link" priority="10" numLanes="1" speed="22.22" disallow="tram rail_urban rail rail_electric bicycle pedestrian ship" oneway="0"/>
<type id="highway.unclassified" priority="5" numLanes="1" speed="13.89" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="highway.unsurfaced" priority="1" numLanes="1" speed="8.33" disallow="tram rail_urban rail rail_electric ship" oneway="0"/>
<type id="railway.light_rail" priority="15" numLanes="1" speed="27.78" allow="rail_urban" oneway="1"/>
<type id="railway.preserved" priority="15" numLanes="1" speed="27.78" allow="rail" oneway="1"/>
<type id="railway.rail" priority="15" numLanes="1" speed="83.33" allow="rail rail_electric" oneway="1"/>
<type id="railway.subway" priority="15" numLanes="1" speed="27.78" allow="rail_urban" oneway="1"/>
<type id="railway.tram" priority="15" numLanes="1" speed="13.89" allow="tram" oneway="1"/>
<edge id=":2917341670_0" function="internal">
<lane id=":2917341670_0_0" index="0" disallow="tram rail_urban rail rail_electric bicycle pedestrian ship" speed="27.78" length="4.82" shape="-1.23,1.10 -1.44,-0.37 -1.10,-1.23 -0.21,-1.47 1.23,-1.10"/>
</edge>
<edge id=":5990194990_0" function="internal">
<lane id=":5990194990_0_0" index="0" disallow="tram rail_urban rail rail_electric bicycle pedestrian ship" speed="27.78" length="4.82" shape="921.03,1026.26 921.24,1027.73 920.90,1028.58 920.01,1028.83 918.57,1028.45"/>
</edge>
<edge id="tochitkara" from="2917341670" to="5990194990" priority="11" type="highway.trunk" spreadType="center" shape="2.46,-2.20 922.26,1025.15">
<lane id="tochitkara_0" index="0" disallow="tram rail_urban rail rail_electric bicycle pedestrian ship" speed="27.78" length="1378.95" shape="3.69,-3.30 923.49,1024.05"/>
<lane id="tochitkara_1" index="1" disallow="tram rail_urban rail rail_electric bicycle pedestrian ship" speed="27.78" length="1378.95" shape="1.23,-1.10 921.03,1026.26"/>
</edge>
<edge id="tozrkpr" from="5990194990" to="2917341670" priority="11" type="highway.trunk">
<lane id="tozrkpr_0" index="0" disallow="tram rail_urban rail rail_electric bicycle pedestrian ship" speed="27.78" length="1378.94" shape="916.11,1030.65 -3.69,3.30"/>
<lane id="tozrkpr_1" index="1" disallow="tram rail_urban rail rail_electric bicycle pedestrian ship" speed="27.78" length="1378.94" shape="918.57,1028.45 -1.23,1.10"/>
</edge>
<junction id="2917341670" type="priority" x="0.00" y="0.00" incLanes="tozrkpr_0 tozrkpr_1" intLanes=":2917341670_0_0" shape="0.04,-0.03 -4.88,4.37 -0.04,0.03">
<request index="0" response="0" foes="0" cont="0"/>
</junction>
<junction id="4519439306" type="dead_end" x="4675.12" y="5307.11" incLanes="" intLanes="" shape="4675.12,5307.11"/>
<junction id="5990194990" type="priority" x="919.80" y="1027.35" incLanes="tochitkara_0 tochitkara_1" intLanes=":5990194990_0_0" shape="919.76,1027.38 924.68,1022.98 919.84,1027.32">
<request index="0" response="0" foes="0" cont="0"/>
</junction>
<connection from="tochitkara" to="tozrkpr" fromLane="1" toLane="1" via=":5990194990_0_0" dir="t" state="M"/>
<connection from="tozrkpr" to="tochitkara" fromLane="1" toLane="1" via=":2917341670_0_0" dir="t" state="M"/>
<connection from=":2917341670_0" to="tochitkara" fromLane="0" toLane="1" dir="s" state="M"/>
<connection from=":5990194990_0" to="tozrkpr" fromLane="0" toLane="1" dir="s" state="M"/>
</net>