Main Page
Namespaces
Classes
Files
File List
scripts
scripts/rtmlaunch.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
from
openrtm_tools
import
rtmlaunch
4
5
import
signal, sys
6
def
signal_handler
(signum, frame):
7
sigdict = dict((k, v)
for
v, k
in
signal.__dict__.iteritems()
if
v.startswith(
'SIG'
))
8
print
>>sys.stderr,
"\033[33m[rtmlaunch] Catch signal %r, exitting...\033[0m"
%(sigdict[signum])
9
sys.exit(0)
10
11
if
__name__ ==
'__main__'
:
12
signal.signal(signal.SIGINT, signal_handler)
13
rtmlaunch.main()
14
15
16
17
rtmlaunch.signal_handler
def signal_handler(signum, frame)
Definition:
scripts/rtmlaunch.py:6
openrtm_tools
Author(s): Kei Okada
autogenerated on Mon May 10 2021 02:30:55