Skip to content

Commit 6500808

Browse files
mklompArendJan
authored andcommitted
Using new linetrace setup
1 parent 9d939d1 commit 6500808

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

mirte_robot/linetrace.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#TODO: for debugging purposes we could *also* listen to keyboard events
33

44
import sys
5+
import os
56
import logging
67
from importlib.machinery import SourceFileLoader
78
import time
@@ -37,6 +38,11 @@ def traceit(frame, event, arg):
3738
return
3839
return trace_lines
3940

41+
# Send the PID to the web interface and give it some time to call strace on this process
42+
# to see the output of this script
43+
server.send_message_to_all("pid:" + str(os.getpid()))
44+
time.sleep(0.1)
45+
4046
sys.settrace(traceit)
4147
# rospy.init_node() for some reason needs to be called from __main__ when importing in the regular way.
4248
# We thereofe need to load teh module from source instead of importing it.

0 commit comments

Comments
 (0)