-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctionTesting.py
More file actions
38 lines (30 loc) · 1.24 KB
/
functionTesting.py
File metadata and controls
38 lines (30 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from motionFunctions import *
def main():
controller = MoveGroupPythonInterface()
# controller.go_to_joint_state()
# controller.go_to_home_state()
controller.go_to_pose_goal(pose_goal_position_x=0.6, pose_goal_position_y= 0, pose_goal_position_z= 0.5, pose_goal_orientation_x = -0.924, pose_goal_orientation_y = 3/8, pose_goal_orientation_z = 0, pose_goal_orientation_w = 0)
# controller.print_current_state()
# controller.print_current_state()
#NOTE: Testing itterative grasping here
# joint_goal0 = 0
# joint_goal1 = 0
# joint_goal2 = 0
# joint_goal3 = -tau/4
# joint_goal4 = 0
# joint_goal5 = tau/4
# joint_goal6 = tau/8
# for i in range(4):
# joint_goal0 += 0.05
# joint_goal1 += 0.05
# joint_goal2 += 0.05
# joint_goal3 += 0.05
# joint_goal4 += 0.05
# joint_goal5 += 0.05
# joint_goal6 += 0.05
# controller.go_to_joint_state(joint_goal0 = joint_goal0, joint_goal1 = joint_goal1,
# joint_goal2 = joint_goal2, joint_goal3 = joint_goal3, joint_goal4 = joint_goal4,
# joint_goal5 = joint_goal5, joint_goal6 = joint_goal6)
controller.go_to_joint_state()
if __name__ == "__main__":
main()