Hello,
1) There is currently no better way. One of the limitations of this
approach is, that you cannot control lateral position of pedestrians and
they will alway be entered on the right side of the sidewalk in walking
direction. moveToXY for pedestrians is in the works (
http://sumo.dlr.de/trac.wsgi/ticket/2872].
2) Position mismatch could be due to lateral positioning. However, I would
not expect a discrepancy in getRoadID and getLanePosition. If you provide
an example network and the traci commands to reproduce this issue, I will
take a look.
regards,
Jakob

2017-03-27 22:03 GMT+02:00 Maxime Bouton <[email protected]>:

> 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
>
------------------------------------------------------------------------------
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