Hi Giannis,
the new sumo version is much pickier about the exact positioning of the
persons and the vehicles for boarding. The person has to be located at
the exact stop position (well actually between startPos and endPos of
the stop but you can define only the endPos with traci). I opened a
ticket for a more flexible traci API
http://sumo.dlr.de/trac.wsgi/ticket/1717. The person capacity for the
vehicle is useless by the way, it is a vehicle type attribute (the API
is wrong here).
Regards,
Michael
Am 2015-04-01 08:39, schrieb Giannis Bakas:
> Hi Michael,
>
> I defined the person capacity on the vType, you can see the xml
> below:
>
> <vType id="BUS_DEMAND" accel="2.6" decel="4.5" sigma="0" length="12"
> minGap="3" maxSpeed="70" color="0,1,0" guiShape="bus"
> personCapacity="50"/>
>
> also I added it on TraCI code too (I made a mistake previously on
> stop duration, now I defined it in milliseconds)
>
> traci.vehicle.addFull("DEMANDBUS", "BUS_ONDEMAND_ROUTE",
> typeID="BUS_DEMAND", line="2", depart="239", personCapacity=50)
> traci.vehicle.setStop("DEMANDBUS", "116895988#2", pos=200,
> laneIndex=0, duration=20000, flags=0)
> traci.vehicle.setStop("DEMANDBUS", "116895988#4", pos=90, laneIndex=0,
> duration=20000, flags=0)
> also I tried to defined it both in the xml and the TraCI, but with no
> success.
>
> regards,
> Giannis
>
> On 31/3/2015 7:31 μμ, Michael Behrisch wrote:
>
>> Hi Giannis,
>> vehicles now have a person capacity which needs to be defined in the
>> vehicle type, see
>>
> http://www.sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Vehicle_Types
>> [3],
>> so please share your type definition as well. The default should be
>> 4
>> but maybe something is wrong here.
>>
>> Best regards,
>> Michael
>>
>> Am 31.03.2015 um 16:09 schrieb Giannis Bakas:
>>
>>> 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
>>>
>>>
>>
> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming The Go Parallel
>>> Website, sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your
>>> hub for all
>>> things parallel software development, from weekly thought
>>> leadership blogs to
>>> news, videos, case studies, tutorials and more. Take a look and
>>> join the
>>> conversation now. http://goparallel.sourceforge.net/ [1]
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/sumo-user [2]
>
>
>
> Links:
> ------
> [1] http://goparallel.sourceforge.net/
> [2] https://lists.sourceforge.net/lists/listinfo/sumo-user
> [3]
> http://www.sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Vehicle_Types
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user