Delta-Kinematics-Library
https://tinkersprojects.com/ Forward and Inverse Kinematics Library for Delta robot.
Thank you to:
Functions
SETUP
DeltaKinematics(double ArmLength,double RodLength,double BassTri,double PlatformTri)
This Fuction is set up the class to calulate the forward and inverse kinematics for the delta. ArmLength, RodLength, BassTri and PlatformTri are the set values from the Delta robot. See image above to see how to take the measurement. Millimetre, meters, inches or any other lenth measurement can be used for ArmLength, RodLength, BassTri and PlatformTri. The measurement will need to be the same for x, y and z.
It is recommended to use Millimetre for ArmLength, RodLength, BassTri and PlatformTriSETUP
int forward()
int forward(double thetaA, double thetaB, double thetaC)
This functions is to calulate the forward kinematics of for the delta. The calulations can be set using the variables a, b and c or in the function with ThetaA, thetaB and thetaC. ThetaA, thetaB and thetaC valuse are in degrees. a, b and c valuse are in degrees (see Variables below). See image above.
int inverse()
int inverse(double x0, double y0, double z0)
This function is to calculate the inverse kinematics of the delta. The calculations can be set using the variables x, y and z or in the function with x0, y0 and z0.
It is recommended to use Millimetre for x, y and zVariables
double x, double y, double z
These variables (x, y and z) and be read and written. They are used to set the position of the Delta robot's platform for Kinematics. If forward kinematics are calculated, the return values are placed in x, y and z.
It is recommended to use Millimetre for x, y and zdouble a, double b, double c
These variables (a, b and c) and be read and written. They are used to set the angle of the Delta robot's motors for Kinematics. If inverse kinematics are calculated, the return values are placed in a, b and c. a, b and c values are in degrees. See the image above.