Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Regarding Traffic Generation

Hello,

With the following lines, the traffic will be generated from East to West:

if random.uniform(0, 1) < pEW:
            #East to South - Left Crossing
                print('    <vehicle id="right_%i" type="typeIDM" route="EW" depart="%i" color="1, 1, 0" />' % (vehNr, i), file=routes)
                vehNr += 1
 My question is, how to generate the traffic at East that can take either West, South or North?
If I use the above code 3 times each for West, South or North the traffic generation is multiple, I dont need that, I need multiple directions from single.  E.g., East to West, South, and North.

Please help me in solving this issue.

Regards
Radha

Back to the top