-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
137b730
commit a983795
Showing
4 changed files
with
921 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.