added script to get an ipython shell with a robot object
This commit is contained in:
parent
a566b2ae69
commit
f34d5ee803
11
examples/get_robot.py
Normal file
11
examples/get_robot.py
Normal 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()
|
Loading…
x
Reference in New Issue
Block a user