RobotStudio event

calcuale midpoint of arc

Does anyone have a routine or function that will calculate midpoint of an arc, given the 2 end points?  One of my paths contain an arc.  I want to break the arc into 2 segments.  The midpoint of the original arc will now be the end of the 1st arc and start of the 2nd arc.  However,  I only want to teach the 3 points of the original arc and calculate the additional midpoints.  Instead of having one MoveC, I will now have 2 MoveC's consecutively.  The 3 points from the original arc is enough information to calculate everything else,  I was hoping someone has already done the code, or something similar.

Comments

  • I have one but it's only good when the orientation of the points are on the same plane (same Z direction).

    Not quite sure how to interpolate quaternion orientations.