The Detect-Condition Algorithm for Robotic Inverse Kinematics and Common Root Analysis

Authors

https://doi.org/10.48314/anowa.v2i1.68

Abstract

CThis paper presents the Detect-Condition algorithm, a novel method based on Grobner systems for identifying conditions on the parameters of polynomial systems to determine their common roots. The power of this algrithm is demonstrated through a central application: automating the inverse kinematics (IK) for a planar 3R robotic manipulator. We translate the IK problem, finding the joint angles for a desired end-effector pose, into a system of parametric polynomials. The algorithm then partitions the parameter space (link lengths and target pose) to derive the exact algebraic conditions for solutions to exist. Specifically, it symbolically computes the robot’s workspace boundary and provides closed-form expressions for the joint angles. Implemented in Mapleand validated with a numerical example, this approach offers a complete, symbolic, and automated solution. The results provide significant advantages over iterative numerical methods, including guaranteed precision and deep insight into kinematic constraints, establishing the algorithm as a powerful tool for robotic design and analysis.

Keywords:

Detect-Condition algorithm, Inverse Kinematics, Parametric polynomials, Grobner systems, 3R Robot, Workspace analysis

References

  1. [1] Becker, T., & Weispfenning, V. (1993). Gröbner bases. In gröbner bases: A computational approach to commutative

  2. [2] algebra (pp. 187-242). New York, NY: Springer New York. https://doi.org/10.1007/978-1-4612-0913-3_6

  3. [3] Buchberger, B. (1979). A criterion for detecting unnecessary reductions in the construction of Gröbner-bases.

  4. [4] In international symposium on symbolic and algebraic manipulation (pp. 3-21). Berlin, Heidelberg: Springer Berlin Heidelberg. https://doi.org/10.1007/3-540-09519-5_52

  5. [5] Buchberger, B. (2006). Bruno Buchberger’s PhD thesis 1965: An algorithm for finding the basis elements of the

  6. [6] residue class ring of a zero dimensional polynomial ideal. Journal of symbolic computation, 41(3-4), 475-511. https://doi.org/10.1016/j.jsc.2005.09.007

  7. [7] Cox, D., Little, J., O'shea, D., & Sweedler, M. (1997). Ideals, varieties, and algorithms. An introduction to computational algebraic geometry and commutative algebra. Springer Berlin Heidelberg. https://doi.org/10.1007/978 -3-319-16721-3

  8. [8] Darmian, M. D. (2024). Efficient algorithm for computing inverse of parametric matrices. Scientific annals of

  9. [9] computer science, 34(1), 1-22. https://publications.info.uaic.ro/files/sacs/XXXIV1/XXXIV1_0.pdf

  10. [10] Dehghani Darmian, M. (2024). Improvement of an incremental signature-based comprehensive Gröbner system

  11. [11] algorithm. Mathematics in computer science, 18(2), 12. https://doi.org/10.1007/s11786-024-00587-w

  12. [12] Darmian, M. D., & Hashemi, A. (2017). Parametric FGLM algorithm. Journal of symbolic computation, 82, 38-56.

  13. [13] https://doi.org/10.1016/j.jsc.2016.12.006

  14. [14] Dehghani Darmain, M., & Hashemi, A. (2024). A Parametric $ F_4 $ Algorithm. Iranian journal of mathematical

  15. [15] sciences and informatics, 19(1), 117-133.

  16. [16] Faugere, J. C. (1999). A new efficient algorithm for computing Gröbner bases (F4). Journal of pure and applied

  17. [17] algebra, 139(1-3), 61-88. https://doi.org/10.1016/S0022-4049(99)00005-5

  18. [18] Faugere, J. C. (2002). A new efficient algorithm for computing Gröbner bases without reduction to zero (F 5).

  19. [19] In proceedings of the 2002 international symposium on Symbolic and algebraic computation (pp. 75-83). https://doi.org/10.1145/780506.780516

  20. [20] Gao, S., Guan, Y., & Volny IV, F. (2010). A new incremental algorithm for computing Gröbner bases. In proceedings of the 2010 international symposium on symbolic and algebraic computation (pp. 13-19). https://doi.org/10.1145/1837934.1837944

  21. [21] Gao, S., Volny IV, F., & Wang, M. (2016). A new framework for computing Gröbner bases. Mathematics of

  22. [22] computation, 85(297), 449-465. https://pubs.ams.org/journals/mcom/0000-000-00/S0025-5718-2015-02969-X/S0025

  23. [23] -5718-2015-02969-X.pdf

  24. [24] Amir Hashemi, Mahdi Dehghani Darmian, & Marzieh Barkhordar. (2017). Gröbner systems conversion.

  25. [25] Mathematics in computer science, 11(1), 61–77. https://doi.org/10.1007/s11786-017-0295-3

  26. [26] Hashemi, A., Darmian, M. D., & Barkhordar, M. (2018, July). Universal Gröbner basis for parametric polynomial

  27. [27] ideals. In international congress on mathematical software (pp. 191-199). Cham: Springer International Publishing. https://doi.org/10.1007/978-3-319-96418-8_23

  28. [28] Hashemi, A., Darmian, M. D., & M-Alizadeh, B. (2012). Applying buchberger's criteria on montes's dispgb

  29. [29] algorithm. Bulletin of the Iranian mathematical society, 38(3), 715. https://openurl.ebsco.com/contentitem/gcd:88915848?sid=ebsco:plink:crawler-gcd&id=ebsco:gcd:88915848&crl=c&jrnl=10186301

  30. [30] Hashemi, A., M.-Alizadeh, B., & Darmian, M. D. (2013). Minimal polynomial systems for parametric

  31. [31] matrices. Linear and multilinear algebra, 61(2), 265-272. https://doi.org/10.1080/03081087.2012.670235

  32. [32] Hashemi, A., & Dehghani, D. M. (2017). Computing Comprehensive Gr¨ obner Systems: A Comparison of Two

  33. [33] Methods. Computer science journal of moldova, 75(3), 278-302.

  34. [34] https://ibn.idsi.md/sites/default/files/imag_file/pp278-302_Computing%20Comprehensive%20Gr%20%CC%88obner %20Systems%20A%20Comparison%20of%20Two%20Methods.pdf

  35. [35] Kalkbrener, M. (1999). On the complexity of Gröbner bases conversion. Journal of Symbolic Computation, 28(1–2),

  36. [36] –273. https://doi.org/10.1006/jsco.1998.0276

  37. [37] Kapur, D., Sun, Y., & Wang, D. (2010, July). A new algorithm for computing comprehensive Gröbner systems.

  38. [38] In proceedings of the 2010 international symposium on symbolic and algebraic computation (pp. 29-36). https://doi.org/10.1145/1837934.1837946

  39. [39] Lazard, D. (1983, March). Gröbner bases, Gaussian elimination and resolution of systems of algebraic equations. In european conference on computer algebra (pp. 146-156). Berlin, Heidelberg: Springer Berlin Heidelberg. https://doi.org/10.1007/3-540-12868-9_99

  40. [40] Manubens, M., & Montes, A. (2006). Improving the DISPGB algorithm using the discriminant ideal. Journal of

  41. [41] symbolic computation, 41(11), 1245-1263. https://doi.org/10.1016/j.jsc.2005.09.013

  42. [42] Manubens, M., & Montes, A. (2009). Minimal canonical comprehensive Gröbner systems. Journal of symbolic

  43. [43] computation, 44(5), 463-478. https://doi.org/10.1016/j.jsc.2007.07.022

  44. [44] Montes, A., & Castro, J. (1995). Solving the load flow problem using gröbner basis. ACM SIGSAM Bulletin, 29(1),

  45. [45] -13. https://doi.org/10.1145/216685.216686

  46. [46] Suzuki, A., & Sato, Y. (2006). A simple algorithm to compute comprehensive Gröbner bases using Gröbner bases.

  47. [47] In proceedings of the 2006 international symposium on symbolic and algebraic computation (pp. 326-331). https://doi.org/10.1145/1145768.1145821

  48. [48] Viète, F. (1970). Variorum de rebus mathematicis responsorum liber VIII. https://books.google.com/books

  49. [49] Weispfenning, V. (1992). Comprehensive gröbner bases. Journal of symbolic computation, 14(1), 1-29.

  50. [50] https://doi.org/10.1016/0747-7171(92)90023-W

Published

2026-03-22

How to Cite

Dehghani Darmian, M. . (2026). The Detect-Condition Algorithm for Robotic Inverse Kinematics and Common Root Analysis. Annals of Optimization With Applications, 2(1), 75-90. https://doi.org/10.48314/anowa.v2i1.68

Similar Articles

1-10 of 20

You may also start an advanced similarity search for this article.