-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented support for force exposure.
- Loading branch information
Showing
8 changed files
with
44 additions
and
11 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
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 |
---|---|---|
@@ -1,16 +1,26 @@ | ||
from pyromocc import Robot | ||
import time | ||
import numpy as np | ||
from time import sleep | ||
import argparse | ||
|
||
from pyromocc import Robot | ||
|
||
np.set_printoptions(precision=3) | ||
|
||
robot = Robot(ip="192.168.153.131", port=30003, manipulator="UR10") | ||
robot.connect() | ||
parser = argparse.ArgumentParser(description='UR robot listener example') | ||
parser.add_argument('--ip', type=str, default="192.168.199.129", help='Robot IP address') | ||
parser.add_argument('--port', type=int, default=30003, help='Robot port number') | ||
parser.add_argument('--manipulator', type=str, default="UR5", help='Manipulator type') | ||
parser.add_argument('--sw_version', type=str, default="3.15", help='Controller software version') | ||
|
||
sleep(1.0) | ||
print(robot.joint_config) | ||
args = parser.parse_args() | ||
|
||
robot.movej([0.0, -np.pi/2, -np.pi/2, -np.pi/2, 0, 0], 50, 100) | ||
robot = Robot(ip=args.ip, port=args.port, manipulator=args.manipulator, sw_version=args.sw_version) | ||
robot.connect() | ||
|
||
sleep(1.0) | ||
print(robot.joint_config) | ||
print(robot.pose) | ||
t0 = time.time() | ||
while time.time()-t0 < 5: | ||
print(f"Joint config: {robot.joint_config}") | ||
print(f"Joint velocity: {robot.joint_velocity}") | ||
print(f"Operational config {robot.operational_config}") | ||
print(f"Operational velocity {robot.operational_velocity}") | ||
print(f"Operational force {robot.operational_force} \n") |
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
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
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
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
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
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