Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Shortest path for pedestrians
  • From: "Evans, Barry" <B.Evans@xxxxxxxxxxxx>
  • Date: Mon, 6 Jul 2020 03:07:49 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=exeter.ac.uk; dmarc=pass action=none header.from=exeter.ac.uk; dkim=pass header.d=exeter.ac.uk; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zOK7uZxc4rl4cQLZ8OncIH0K2DbDn2awZU7X/FeXF/0=; b=LsYinStWZI5cPEB7d89Sl1oXxyzB3hilsRnzxVsD9zSAEqlxkwqwycQgmhNrch2FyPMnEDFkLDT3/CtSL/gJ0jgdMikTigaeiMMGuEBb+L/N1aGQrzdgukz77xGYHjxoG9xj57gn184EsN6YFmTY1zTKJ9vL6Yb3YrywzRba40h7dks39OPewm6dTo8x1b74o5TQmrdrhqZ4kXm4ziHJhGoo/J6mMrS1mzZnLgWeTVusfnWD4LuHW8zgH72TO6ZjTTsMK/FnRXK2WEjCPzzMu44oEiM7cbpFaaaf9XPasibQNWV1CUmlBjiDWiAXQwEk7iU7TxKGL7/qviSwAejVdA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fz8+Ns7s6JhHh05SYkQQvalGQjOcJFVTqT+DtYVVmhge5pWmxZUp1DS0Eigl6rOi7xFpTmNtqvZhaq5G1rsqv2BUvT759IQ6MahDPqmT0AGMqnxLEy0ty//jTozPqx1axcMOip5jbUsRe7k5856FxZmAPH0+CAfNqIupUagc+nhugfRMRoXsBcMRNlO2FYIxr7TdRT6mpy8AZTcKf0lEH6VHSA3NRXDXtkagHqxfU7lnY6PkQmNacmVNqGDBmrLAD1lmCY3rdYV/xdsgwaoStrhnynxLOyouGJ2OToJemGm0x8HT4DXobdaHw6VWtzdKTYSfLndnkAkZEE/QnCIpaQ==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdZTQSeSMZIYsQxlTZK8uVgRZbSzsA==
  • Thread-topic: Shortest path for pedestrians

Hi all,

 

I was wondering if anyone has encountered this issue before and/or knows a work around to it. I’m trying to calculate the shortest path for a pedestrian from a list of edges. It seems though that net.getShortestPath references the road directions. To visualise in an example the redline on network below depicts the path net.getShortestPath(startEdge,endEdge,vClass="pedestrian") returns.

 

 

If I manually define the trip however like the following:

 

<vType id="ped_pedestrian" vClass="pedestrian"/>

    <person id="ped1" depart="0.00" type="ped_pedestrian" departPos="5">

        <walk from="startEdgeID" to="endEdgeID "/>

    </person>

</routes>

 

I get the path I would expect the pedestrian to follow.

 

 

Is there another method similar to net.getShortestPath I can use find the shortest path prior to a simulation or would I have to use something like traci.simulation.findRoute(starting_edge,finishing_edge,"ped_pedestrian",-1,0) within a simulation as an alternative.

 

Kind regards,

 

Barry

 

 


Back to the top