We encode in C ++, we have half the circle, starting from a certain point (for example, (0,-310) ) and ending at a certain point (0,310) . We have a radius, and we have the equation X^2 + Y^2 = r^2 . Now we are trying to calculate some (for example, 10+) points on the line of this circle.
Therefore, we are trying to create an increment that will calculate the Y / X values ββbetween these points using the equation above to make sure that all the counted points are on the circle line.
Once we have these points, we try to put them in several complex equations to calculate the angles of the robot arm, which should draw this shape. This is not a priority, but I thought I should include our common goal in the matter.
How to create an increment to calculate all the coordinates on the semicircle line between our two starting points?
Then put these values ββin the equations in the code above to calculate the angles of the robot arm. looking for a way to do this without calculating each point separately, i.e. create an increment that does this in one go.
This is what we are aiming for in bold.
source share