Hi Barry, most of the routing options are still tailored to vehicles. I opened a ticket https://github.com/eclipse/sumo/issues/7297. Currently you would need to use traci.simulation.findIntermodalRoute
Best regards, Michael Am 06.07.20 um 05:07 schrieb Evans, Barry: > 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 > > > > > > > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
