add prototype fake robot, more debug logging
This commit is contained in:
17
tools/get_rob.py
Normal file
17
tools/get_rob.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
from urx import Robot
|
||||
import math3d
|
||||
from math import pi
|
||||
import logging
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
robot = Robot( 'localhost')#, logLevel=logging.DEBUG, parserLogLevel=logging.DEBUG)
|
||||
r = robot
|
||||
from IPython.frontend.terminal.embed import InteractiveShellEmbed
|
||||
ipshell = InteractiveShellEmbed( banner1="\nStarting IPython shell, robot object is available\n")
|
||||
ipshell(local_ns=locals())
|
||||
finally:
|
||||
if "robot" in dir():
|
||||
robot.cleanup()
|
||||
|
||||
Reference in New Issue
Block a user