Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-dev] Freely control pedestrians through TraCi

Hello,
thank you for your offer to contribute!
Yes. I still intended for traci.person.moveToXY to work in a similar way as for vehicles and thereby allow easy coupling with pedestrian simulators.
As you can see from the ticket, lots of functionality for moving persons around is already working. What is missing is mapping pedestrians to edges that are not on their current route.
Take a look at https://github.com/eclipse/sumo/blob/93173e87bf9b8d741a026616779e166466025037/src/microsim/pedestrians/MSPModel_Striping.cpp#L1856-L1900
Line 1891 in particular.
What is needed here is the following
- add a method to the MSPersonStage that allows changing the route  (stage->setRouteEdges())
- lots of testing (see https://sumo.dlr.de/docs/Developer/Tests.html)
The existing tests are here: https://github.com/eclipse/sumo/tree/master/tests/complex/traci/pythonApi/moveToXY/person

A further moveToXY issue that applies to vehicles as well as persons: https://github.com/eclipse/sumo/issues/6284

For contribution, please look carefully at https://sumo.dlr.de/docs/FAQ.html#how_do_code_contributions_work

best regards,
Jakob

Am Mo., 18. Nov. 2019 um 16:56 Uhr schrieb up201403060 <up201403060@xxxxxxxx>:
Good afternoon,

I'm a first year PhD student at FEUP ingressed in a simulation class.

This class project will be about simulation of pedestrians in the urban
environment. Currently we are using SUMO as a simulation base for a
traffic simulator using TraCI, but need better control of pedestrians to
implement our existing model. For this we need a way to control the
pedestrians freely.

As such my project is to implement this feature in SUMO and help the
community with this contribution. From my understanding and research,
this is yet not possible, but github issue #2872 shows you have plans to
implement a system similar to the one used by the vehicles to allow free
movement through TraCI. Is this still the way you intend to develop
this? Can you give me some tips to solve this problem?

Thank you very much for your attention and time!

Daniel Garrido

_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-dev

Back to the top