Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
davepollard authored Jan 9, 2018
1 parent 137b730 commit a983795
Show file tree
Hide file tree
Showing 4 changed files with 921 additions and 0 deletions.
39 changes: 39 additions & 0 deletions RESET_POSITION.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
'''
Resetting robot position
- Command arguements:
- - 0 Immediate robot reset
- - 1 Reset simulation on 127.0.0.1
[other] Reset robot in 5 seconds
'''
import abb
import time
import sys
from Robot_Config import robot_config

modeSelection = 2
cmdArgs = sys.argv
if len(cmdArgs)==2:
modeSelection = int(cmdArgs[1])



if modeSelection == 1:
R = abb.Robot("127.0.0.1")
print("Robot resetting")
elif modeSelection == 0:
R = abb.Robot("192.168.125.1")
print("Robot resetting now")
else:
R = abb.Robot("192.168.125.1")
print("---- WARNING ----")
print(" Robot will move suddenly in 5 seconds")
print(" Press CTRL+C to cancel move")
print("-----------------")
time.sleep(5)


#R.set_workobject(robot_config.get_wobj())
R.set_tool([[0,0,0],[1,0,0,0]])


R.reset_position(0)
Loading

0 comments on commit a983795

Please sign in to comment.