Hello,

I'm developing a pretty complex pedestrian simulation with SUMO, which may
require some advanced expertise from SUMO experts who understand the
internals of SUMO to figure out.

Namely, I want to make a junction only accessible by pedestrians, make an
edge to and from that junction to the nearest existing
pedestrian-accessible junction, such that I can make the pedestrian stop (
http://www.sumo.dlr.de/userdoc/Specification.html#Stops) during his/her
route. I'm very close.


To do this, I do the following:

1. Make the junction(s) in a node xml file via:
<nodes>
    <node id="b140338939" type="unregulated" x="...." y="..."/>
    ....
</nodes>

2. Make to-and-from edges in an edge file with the following types of
attributes:

<edges>
    <edge id="e1" from="*4602990274*" to="b140338939" priority="1">
        <lane index="0" allow="pedestrian" speed="2.78" length="0.1"
width="2" shape="177.234348181769,662.965714548112 141.07,658.32"/>
    </edge>
    <edge id="-e1" from="b140338939" to="*4602990274*" priority="1">
        <lane index="0" allow="pedestrian" speed="2.78" length="0.1"
width="2" shape="177.234348181769,662.965714548112 141.07,658.32"/>
    </edge>
    ...
</edges>

Assume that I was able to find the existing junction with id="4602990274"
by searching for all of the "to" and "from" ids of edges that met the
following XPATH requirement: "edge/lane[@allow='pedestrian']"

I am not opposed to using Python for the solution, however there is a
reason I am not using python; I would like to understand how the XML is
supposed to be configured, if possible.

3. Patch an imported OSM network with these nodes and edges, via
netconvert and the appropriate node and edge input file command following
the patching documentation given here: http://sumo.dlr.de/wiki/
Tutorials/ScenarioGuide#Example:_Patching_the_type_of_a_node

4. I then generate random pedestrians trips/routes of the form: (route
file)

<person id="1" depart="1.00">
        <walk edges="-373547235 21420516#6 *4602990274* 483570697#8
162932528#1"/>
 </person>

Which is valid, and works perfectly fine for all pedestrians in the
simulation. Now I want to augment it, like as follows (which I gathered
from the documentation, http://sumo.dlr.de/wiki/Specification/Persons#Stops
):

<person id="1" depart="1.00">
        <walk edges="-373547235 21420516#6 *4602990274* e1"/>
        <stop lane="e1_0" duration="20"/>
        <walk edges="e1 483570697#8 162932528#1"/>
</person>

This actually worked for some of the routes. However, upon running the
simulation, there were many routes that had this *seemingly valid syntax *but,
would return errors like:

"Warning: No connection between edge ': b140338939_w0-1.00' and edge '<some
random number>#0_arrival_connector' found."
or
"Pedestrian '1' could not find route across junction 'b140338939'"
or
"Disconnected plan for person '0' "

Would anyone happen to know what I did wrong in the configuration? I'm
working on a paper that requires validation, to which I would like to use
SUMO for (and cite the  2012 paper of course @ http://sumo.dlr.de/wiki/
Publications).

-- 
Matt Piekenbrock
Graduate Research Assistant - WSU / Kno.e.sis WaCS lab
Email: [email protected], [email protected]
Cell: (937) 269-8582
Web Page: mattpiekenbrock.com
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to