Hello everyone,
I hope you're all doing well.
I'm currently developing a touch-sensing routine for computing the rotation or deviation of a part around the z-axis. Specifically, I'm aiming to implement skip conditions to enhance the accuracy of this routine.
Here's what I've done so far: I've created a routine that involves touching the part at two predefined points along the y-axis. After obtaining these touch points, I compare them with previously calibrated points.
From this data, I'm able to calculate the deviation angle of the part. My next step is to utilize a transformation matrix around the z-axis along with this angle to determine the new positions of the previously recorded points.
However, I'm encountering some challenges in implementing this process effectively. I would greatly appreciate your guidance if anyone has experience or insights into similar touch-sensing routines or transformation matrices.
I want to apply this computation to an original point:
But with this approach, I realize that I'll need to modify all the points individually in order to apply the rotation. Is there a way to streamline this process, perhaps by employing a method similar to the one used with offsets to create a rotation offset (pr) that can be applied to all the points I intend to rotate?
Any assistance or insights you can offer would be immensely helpful.
Thank you for your time and consideration.
Have a great day!