ucla-mobility / OpenCDA

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

add listener and change single_2lanefree_carla #185

Closed swsamleo closed 1 year ago

swsamleo commented 1 year ago

Create a keyboard listener under path opencda/scenario_testing/utils/keyboard_listener.py. In the file opencda/scenario_testing/single_2lanefree_carla.py, we incorporated pause and exit functions for testing. User can press p to pause and resume the demonstration and press esc to end the program.