Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Movement to Simulate polishing quarter round corner

#1
Hello Robo DK community. I am new to Python and learning RoboDK and am trying to write a program to simulate polishing a quarter rounded edge with 3 points. I am able to control the robot programmatically in X Y & Z but am stuck trying to rotate the TCP relative to the X axis. 

I am using MoveC right now, but I think I need to be using targets with a follow path?

Program is attached showing the movement, but not able to rotate.

Any help pointing me in the right direction would be appreciated or example code snippet.

Thank you!


Attached Files
.rdk   INPROGRESS.rdk (Size: 3.25 MB / Downloads: 132)
#2
You can apply relative rotations by multiplying your pose by rotation matrices. 

This example shows how to add a relative rotation around the X axis:
Code:
new_pose = pose_reference * rotx(rotation_deg * pi / 180)
  




Users browsing this thread:
1 Guest(s)