added script to get an ipython shell with a robot object

This commit is contained in:
Olivier R-D 2013-09-18 10:55:33 +02:00
parent a566b2ae69
commit f34d5ee803

11
examples/get_robot.py Normal file
View File

@ -0,0 +1,11 @@
import urx
from IPython import embed
if __name__ == "__main__":
try:
robot = urx.Robot("192.168.1.6")
r = robot
print("Robot object is available as robot or r")
embed()
finally:
robot.shutdown()