rodrigoqueiroz / geoscenarioserver

8 stars 1 forks source link

Dynamic Route Selection for Pedestrians #68

Closed scott-larter closed 3 years ago

scott-larter commented 3 years ago

The main purpose of this PR is to merge the functionality of pedestrian dynamic route selection. This means that the pedestrians plan a route (as a list of crosswalk entrances and exits) from their starting position to their destination. The route selection algorithm is primitive and will have future improvements, but it seems to work well in most cases. This planning step is done by the plan_route() function in sp/SPPlanner.py.

In this PR, the pedestrian planning and behaviour tree tick steps have been moved to a new file, sp/SPPlanner.py, similar to the structure for dynamic vehicles.

Summary of major changes:

To test, run any of the pedestrian scenarios in scenarios/pedestrian_scenarios and note the starting positions, final destinations, and the planned route taken by the agents. You can also move the starting positions and destinations to make the pedestrians choose a different set of crosswalks to cross the intersection.