Signal Conversation
Note
Convert UTDF signal to GMNS and then to SUMO and other simulators.
The original signal conversation from the paper: Integration Traffic Signal Control From Synchro to SUMO
This package combined the original signal conversation method (fixed bugs for larger and complex network) with the GMNS format to support more traffic simulation platforms, such as SUMO, etc.
The overall signal conversation process in the utdf2gmns package involves the following framework (source):
In orger to view the extracted signal from UTDF data, you can use the create_signal_control method in the UTDF2GMNS class. This will generate signals from each intersection.
1import utdf2gmns as ug
2
3if __name__ == "__main__":
4
5 region_name = " Bullhead City, AZ"
6 path_utdf = r"datasets\data_bullhead_seg4\UTDF.csv"
7
8 net = ug.UTDF2GMNS(utdf_filename=path_utdf, region_name=region_name, verbose=False)
9 net.create_signal_control()
10
11 # you can view the singal info
12 net.netowrk_signal_control