Within this repository, the Bat Algorithm for solving IK (Inverse Kinematics) was implemented. The algorithm cannot scale with the speed of analytical or numerical methods of IK. The advantage of this implementation, that it is a very general approach, that does not need specific knowledge about the robot. Needed is only the number of joints represented by the dimension and D-H table (non-modified version) for calculation of FK (Forward Kinematics).
The algorithm as you can expect is not very efficient for solving the translational and rotational part of IK. In script is example of translational part IK calculation (demo), and translational + rotational example of calculation.
Software
------------------------------------
| Python version 3.10
| - Poetry version 1.2.1
Install libraries from pyproject.toml/requirements.txt.
-
Set up Bat Algorithm: params.py.
-
Change D-H table depanding on your robot: FK.py.
-
Run computation: main.py