This interface couples the framework for motion planning of automated vehicles based on [CommonRoad_io](https://pypi.org/project/commonroad-io/) and the traffic simulator [SUMO](https://sumo.dlr.de).
This package implements the interface between the framework for motion planning of automated vehicles [CommonRoad_io](https://pypi.org/project/commonroad-io/) and the traffic simulator [SUMO](https://sumo.dlr.de). The interface is presented in detail in our [paper](https://mediatum.ub.tum.de/doc/1486856/344641.pdf)[1] and a documentation of the API can be found [here](https://commonroad.in.tum.de/static/docs/commonroad-sumo-interface/index.html).
# Prerequisites
The package is written in Python 3.6 and tested on Linux.
@@ -17,6 +17,7 @@ And add the absolute path of `commonroad-sumo-interface` to your Python interpre
Clone a customized version of SUMO for smooth lane changes from https://github.com/octavdragoi/sumo and check out branch `smooth-lane-change`.
Check the lanelet changes of the ego vehicle in the future time_window
Checks the lanelet changes of the ego vehicle in the future time_window.
:param lanelet_network: object of the lanelet network
:param time_window: the time of the window to check the lanelet change
:param traj_index: index of the planner planner output corresponds to the current time
:return: lc_status: status of the lanelet change in the next time_window
:return: lc_duration: lc_duration in time steps (using sumo dt)
:param traj_index: index of the planner output corresponding to the current time step
:return: lc_status, lc_duration: lc_status is the status of the lanelet change in the next time_window; lc_duration is the unit of time steps (using sumo dt)