5 from moveit_commander
import MoveGroupCommander
7 if __name__ ==
'__main__':
10 group = MoveGroupCommander(
"botharms")
16 group.set_max_velocity_scaling_factor(exec_vel*0.2)
17 group.set_joint_value_target([-0.78, 0.78, 0.14, 0.0, 0.78, -0.78, 0.14, 0.0])
19 rospy.sleep(sleep_time)
21 group.set_max_velocity_scaling_factor(exec_vel)
22 group.set_joint_value_target([-1.5, 1.5, 0.14, 0.0, 1.5, -1.5, 0.14, 0.0])
24 rospy.sleep(sleep_time)
28 group.set_max_velocity_scaling_factor(exec_vel*0.2)
29 group.set_joint_value_target([-1.5, 1.5, 0.06, 0.0, 1.5, -1.5, 0.06, 0.0])
31 group.set_max_velocity_scaling_factor(exec_vel*0.2)
32 group.set_joint_value_target([-1.5, 1.5, 0.14, 0.0, 1.5, -1.5, 0.14, 0.0])
41 group.set_max_velocity_scaling_factor(exec_vel)
42 group.set_joint_value_target([-0.6, 0.78, 0.06, 0.0, 1.5, -1.5, 0.06, 0.0])
44 group.set_max_velocity_scaling_factor(exec_vel)
45 group.set_joint_value_target([-0.6, 0.78, 0.06, 0.0, 0.6, -0.78, 0.06, 0.0])
47 rospy.sleep(sleep_time)
49 group.set_max_velocity_scaling_factor(exec_vel)
50 group.set_joint_value_target([-0.78, 0.78, 0.06, 0.0, 0.78, -0.78, 0.06, 0.0])
52 rospy.sleep(sleep_time)