Hi! I’m a student (so I’m kind of new to RAPID) and I’ve been asked to write a module so the robot can measure the diameter of different cylinders and spot their closest point to the laser.
Robot will have those cylinders attached to the tool but of course that tool is not perfect and thus there might be some variations between the orientation of the cylinders and the TCP’s orientation.
So here comes my question, is there some kind of instruction to help me adjust those orientation variations?
I have been working with RAPID the past two months, and I think i can give you an answer. I am not 100% sure it’s the correct one though, so if i’m wrong don’t bother to correct me. Here we go:
Within the tooldata of the tool you’re using you can find the orientation of the tool coordinate system. It’s located within the tframe (which is the tool frame, or tool coordinate system centerpoint).
The orientation is expressed in quaternions. If you wish to know what these quaternions are, i cannot answer that since I barely know.
What I do know is that you can find the rotation along the X, Y and Z axis with these quaternions.