Thanks for the advice, I believe with that page I'm getting closer.
But following the page, I can't seem to replicate the proper syntax.
Consider the following:
"A sidewalk is a lane which only permits the vClass *pedestrian*."
So I made a sidewalk in an edge file:
<edges>
<edge id="e1" from="4602990274" to="b140338939" function="walkingarea"
type="highway.footway">
<lane index="0" allow="pedestrian" speed="2.78" length="0.1"
width="2" shape="..."/>
</edge>
<edge id="-e1" from="b140338939" to="4602990274" function="walkingarea"
type="highway.footway">
<lane index="0" allow="pedestrian" speed="2.78" length="0.1"
width="2" shape="..."/>
</edge>
</edges>
I made sure to use the appropriate type files with netconvert to avoid the
type not found errors. But say I make a 'crossing'
as follows:
<connections>
<crossing node="b140338939" edges="e1 -e1" priority="true"/>
</connections>
I'm bombarded with warnings of the form:
Warning: Discarding invalid crossing ':b140338939_c0' at junction
'b140338939' with edges '-e1 e1'.
But I looked at the source code, this warning should only appear if the
edges do have defined walking areas, but they do!
So upon further inspection, it seems that netconvert doesn't transfer the
"function" attribute values for the edges when patching/overwriting the
preexisting OSM-imported SUMO network. Why would the netconvert patching
API not include other attributes in the import?
On Fri, May 5, 2017 at 3:08 PM, Jakob Erdmann <[email protected]>
wrote:
> Hello,
> The error indicates that the pedestrian did not find a place to cross the
> street.
> Take a look at this guide: http://sumo.dlr.de/wiki/Simulation/Pedestrians#
> Building_a_network_for_pedestrian_simulation
> You need to either guess the crossings or define them manually.
>
> regards,
> Jakob
>
> 2017-05-05 17:07 GMT+02:00 Matt Piekenbrock <[email protected]>:
>
>> 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/Specif
>> ication/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
>>
>
>
--
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