Source code for autonomy_toolkit
# SPDX-License-Identifier: MIT
import signal
from autonomy_toolkit._version import version as __version__ # type: ignore # noqa: F401
import autonomy_toolkit._atk_base # type: ignore # noqa: F401
"""Simulation Based Engineering Laboratory (negrut@wisc.edu)"""
"""BSD3"""
def _signal_handler(sig, frame):
"""Signal handler that will exit if ctrl+c is recorded in the terminal window.
Allows easier exiting of a matplotlib plot
Args:
sig (int): Signal number
frame (int): ?
"""
import sys
sys.exit(0)
# setup the signal listener to listen for the interrupt signal (ctrl+c)
signal.signal(signal.SIGINT, _signal_handler)
del signal