Dear SUMO community, I am trying to simulate pedestrians crossing a road and I would like to know if there is a way to add pedestrian in the simulator at a given position (x, y) ?
I managed to add pedestrians using information on the roadID and the position on the lane via : ``` traci.person.add(new_person, roadID, pos) traci.person.appendWalkingStage(new_person, edges, -1, speed = v) ``` I tried to map the position (x, y) to roadID and pos using traci.simulation.convertRoad() but it resulted into some inconsistencies. (I do not have the same mapping than if I use getPosition, getRoadID, getLanePosition) 1. Do you know any better way to add a pedestrian at an arbitrary position (something that would do the job of moveToXY for instance)? 2. Why is the simulation.convertRoad function output not matching with the get functions from the class traci.person? Thank you very much for your help, Maxime ------------------------------------------------------------------------------ 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
