ucla-mobility / OpenCDA

A generalized framework for prototyping full-stack cooperative driving automation applications under CARLA+SUMO.
Other
988 stars 197 forks source link

Davis #186

Open swsamleo opened 1 year ago

swsamleo commented 1 year ago

This pull request adds a new feature that enables users to pause, resume, and stop the running scenario using a set of keyboard shortcuts. The keyboard_listener.py file provides a general functionality for recording keyboard shortcuts. The file single_2lanefree_carla.py is an example of how to use these shortcuts. To pause and resume the program, the user can use the 'p' key, and to exit the program, the 'ESC' key can be used.