Greetings.
I am looking for a way to define a new point with the same pos-data as an old one, but rotated about 15 degrees around a work object’s Z-axis.
That is, change the “ori” of a robtarget to be rotated around the Z-axis.
I still have not gotten the hang of Quaternions, so I was hoping there was a RAPID function to do this for me.
I am, however, unable to find such a function in my reference manual, and was hoping for some help.
This will be used for alligning a held item with two analog distance sensors. The exact position and orientation of the item on the gripper is not known, so these sensors will be used to account for that. I will move linearly using SearchL untill I hit both the sensors, then rotate using another SearchL untill the inputs from both sensors are equal, using an analog interrupt to set the bool to stop the searches.
I will use this routine with lots of different items, tools and tool orientations, so I need a way to calculate the point to rotate toward so that the rotation happens only along one axis of the work object that describes these analog sensors.