ur3e: planning infinite motions for wrist_3: how?
I'm trying to get UR3e to work with Move it. I want to rotate wrist3 infinitely clockwise like the movement of tightening a screw, but if I define the posture using a quaternion, I can not determine clockwise and counterclockwise rotation. If you have any good ideas, please let me know.
At the moment, 180 degree rotation is defined as follows. pose_goal.orientation is the pose seen from the base coordinate system. '''
#180degree
pose_goal = move_group.get_current_pose().pose
pose_goal.position.y += 0.002
# pose_goal.orientation.w = 0.707106
# pose_goal.orientation.x = 0
# pose_goal.orientation.y = 0
# pose_goal.orientation.z = 0.707106
q = quaternion_from_euler(0, 0, 1.570796327)
pose_goal.orientation.w = q[3]
pose_goal.orientation.x = q[0]
pose_goal.orientation.y = q[1]
pose_goal.orientation.z = q[2]
move_group.set_pose_target(pose_goal)
plan = move_group.go(wait=True)
move_group.stop()
current_pose = move_group.get_current_pose().pose
return all_close(pose_goal, current_pose, 0.01)
'''