Giannis Bakas
2015-03-31 14:09:55 UTC
Dear all,
I want to create a bus on demand simulation using sumo. For this reason
I am using TraCI to add vehicles during simulation. The persons are
created statically from xml files. With sumo 0.22.0 everything worked
fine, but with sumo 0.23.0 persons don't ride on the dynamically created
vehicle, even though the vehicle stops at the station. I am using both
line and vehicle id on the lines attribute of person.
Here is the TraCI code for adding the bus:
traci.vehicle.addFull("DEMANDBUS","BUS_ONDEMAND_ROUTE",typeID="BUS_DEMAND",line="2",depart="239")
traci.vehicle.setStop("DEMANDBUS","116895988#2",pos=200,laneIndex=0,duration=20,flags=0)
traci.vehicle.setStop("DEMANDBUS","116895988#4",pos=90,laneIndex=0,duration=20,flags=0)
and here is the person configuration with line:
<person id="person0" depart="150">
<walk from="116895988#2" to="116895988#2" departPos="125"
arrivalPos="195"/>
<ride from="116895988#2" to="116895988#4" lines="2"/>
<walk from="116895988#4" to="116895988#4" departPos="85"
arrivalPos="125"/>
</person>
P.S. I really loved the TraCI API for persons and the show routes
functionality on the GUI.
best regards,
Giannis
I want to create a bus on demand simulation using sumo. For this reason
I am using TraCI to add vehicles during simulation. The persons are
created statically from xml files. With sumo 0.22.0 everything worked
fine, but with sumo 0.23.0 persons don't ride on the dynamically created
vehicle, even though the vehicle stops at the station. I am using both
line and vehicle id on the lines attribute of person.
Here is the TraCI code for adding the bus:
traci.vehicle.addFull("DEMANDBUS","BUS_ONDEMAND_ROUTE",typeID="BUS_DEMAND",line="2",depart="239")
traci.vehicle.setStop("DEMANDBUS","116895988#2",pos=200,laneIndex=0,duration=20,flags=0)
traci.vehicle.setStop("DEMANDBUS","116895988#4",pos=90,laneIndex=0,duration=20,flags=0)
and here is the person configuration with line:
<person id="person0" depart="150">
<walk from="116895988#2" to="116895988#2" departPos="125"
arrivalPos="195"/>
<ride from="116895988#2" to="116895988#4" lines="2"/>
<walk from="116895988#4" to="116895988#4" departPos="85"
arrivalPos="125"/>
</person>
P.S. I really loved the TraCI API for persons and the show routes
functionality on the GUI.
best regards,
Giannis