{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,23]],"date-time":"2026-10-23T23:54:14Z","timestamp":1792799654962,"version":"4.5.0"},"reference-count":40,"publisher":"MDPI AG","issue":"9","license":[{"start":{"date-parts":[[2024,9,11]],"date-time":"2024-09-11T00:00:00Z","timestamp":1726012800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"ELKARTEK Research Program of the Basque Government","award":["#KK-2024\/00050"],"award-info":[{"award-number":["#KK-2024\/00050"]}]},{"name":"Fundaci\u00f3n TECNALIA Research and Innovation","award":["#KK-2024\/00050"],"award-info":[{"award-number":["#KK-2024\/00050"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Robotics"],"abstract":"<jats:p>The cost landscape in advanced technology systems is shifting dramatically. Traditionally, hardware costs took the spotlight, but now, programming and debugging complexities are gaining prominence. This paper explores this shift and its implications, focusing on reducing the cost of programming complex robot behaviors, using the latest innovations from the Generative AI field, such as large language models (LLMs). We leverage finite state machines (FSMs) and LLMs to streamline robot programming while ensuring functionality. The paper addresses LLM challenges related to content quality, emphasizing a two-fold approach using predefined software blocks and a Supervisory LLM.<\/jats:p>","DOI":"10.3390\/robotics13090137","type":"journal-article","created":{"date-parts":[[2024,9,11]],"date-time":"2024-09-11T05:45:12Z","timestamp":1726033512000},"page":"137","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":13,"title":["Harnessing the Power of Large Language Models for Automated Code Generation and Verification"],"prefix":"10.3390","volume":"13","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-1203-6759","authenticated-orcid":false,"given":"Unai","family":"Antero","sequence":"first","affiliation":[{"name":"Industry and Transport Division, TECNALIA, Basque Research and Technology Alliance (BRTA), 20009 Donostia-San Sebastian, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2483-9946","authenticated-orcid":false,"given":"Francisco","family":"Blanco","sequence":"additional","affiliation":[{"name":"Industry and Transport Division, TECNALIA, Basque Research and Technology Alliance (BRTA), 20009 Donostia-San Sebastian, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8363-1355","authenticated-orcid":false,"given":"Jon","family":"O\u00f1ativia","sequence":"additional","affiliation":[{"name":"Industry and Transport Division, TECNALIA, Basque Research and Technology Alliance (BRTA), 20009 Donostia-San Sebastian, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5933-2419","authenticated-orcid":false,"given":"Damien","family":"Sall\u00e9","sequence":"additional","affiliation":[{"name":"Industry and Transport Division, TECNALIA, Basque Research and Technology Alliance (BRTA), 20009 Donostia-San Sebastian, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8062-9332","authenticated-orcid":false,"given":"Basilio","family":"Sierra","sequence":"additional","affiliation":[{"name":"Department of Computer Sciences and Artificial Intelligence, University of the Basque Country (UPV\/EHU), 20018 Donostia, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2024,9,11]]},"reference":[{"key":"ref_1","unstructured":"(2024, September 04). IFR Secretariat Blog\u2014AI in Robotics. Available online: https:\/\/ifr.org\/post\/ai-in-robotics-blog."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"51631","DOI":"10.4236\/jcc.2014.214001","article-title":"On the Relationship between Software Complexity and Maintenance Costs","volume":"2","author":"Ogheneovo","year":"2014","journal-title":"J. Comput. Commun."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Ben-Ari, M. (2018). Finite state machines. Elements of Robotics, Springer.","DOI":"10.1007\/978-3-319-62533-1"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Balogh, R., and Obdr\u017e\u00e1lek, D. (2019). Using Finite State Machines in Introductory Robotics: Methods and Applications for Teaching and Learning. Using Finite State Machines in Introductory Robotics: Methods and Applications for Teaching and Learning, Springer.","DOI":"10.1007\/978-3-319-97085-1_9"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Zhou, H., Min, H., Lin, Y., and Zhang, S. (2017). A Robot Architecture of Hierarchical Finite State Machine for Autonomous Mobile Manipulator. A Robot Architecture of Hierarchical Finite State Machine for Autonomous Mobile Manipulator, Springer.","DOI":"10.1007\/978-3-319-65298-6_39"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Foukarakis, M., Leonidis, A., Antona, M., and Stephanidis, C. (2014, January 22\u201327). Combining Finite State Machine and Decision-Making Tools for Adaptable Robot Behavior. Proceedings of the Universal Access in Human-Computer Interaction\u2014Aging and Assistive Environments: 8th International Conference, UAHCI 2014, Heraklion, Crete, Greece.","DOI":"10.1007\/978-3-319-07446-7_60"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Herrero, H., Out\u00f3n, J.L., Puerto, M., Sall\u00e9, D., and L\u00f3pez de Ipi\u00f1a, K. (2017). Enhanced Flexibility and Reusability through State Machine-Based Architectures for Multisensor Intelligent Robotics. Sensors, 17.","DOI":"10.20944\/preprints201704.0130.v1"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Herrero, H., Out\u00f3n, J.L., Esnaola, U., Sall\u00e9, D., and L\u00f3pez de Ipi\u00f1a, K. (2015, January 10\u201312). Development and evaluation of a Skill Based Architecture for applied industrial robotics. Proceedings of the 2015 4th International Work Conference on Bioinspired Intelligence (IWOBI), San Sebastian, Spain.","DOI":"10.1109\/IWOBI.2015.7160165"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"103653","DOI":"10.1016\/j.robot.2020.103653","article-title":"SkillMaN\u2014A skill-based robotic manipulation framework based on perception and reasoning","volume":"134","author":"Diab","year":"2020","journal-title":"Robot. Auton. Syst."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Quigley, M., Conley, K., Gerkey, B., Faust, J., Foote, T., Leibs, J., Wheeler, R., and Ng, A. (2009, January 12\u201317). ROS: An Open-Source Robot Operating System. Proceedings of the ICRA Workshop on Open Source Software, Kobe, Japan.","DOI":"10.1109\/MRA.2010.936956"},{"key":"ref_11","unstructured":"Zhao, W.X., Zhou, K., Li, J., Tang, T., Wang, X., Hou, Y., Min, Y., Zhang, B., Zhang, J., and Dong, Z. (2023). A Survey of Large Language Models. arXiv."},{"key":"ref_12","unstructured":"META (2024, September 04). Meta-LLama-3-70B-Instruct. Available online: https:\/\/huggingface.co\/meta-llama\/Meta-Llama-3-70B."},{"key":"ref_13","unstructured":"DEEPINFRA (2024, September 04). Meta-LLama-3-70B-Instruct. Available online: https:\/\/deepinfra.com\/meta-llama\/Meta-Llama-3-70B-Instruct."},{"key":"ref_14","unstructured":"Naveed, H., Khan, A.U., Qiu, S., Saqib, M., Anwar, S., Usman, M., Akhtar, N., Barnes, N., and Mian, A. (2024). A Comprehensive Overview of Large Language Models. arXiv."},{"key":"ref_15","unstructured":"Will Henshall (2024, September 04). TIME: 4 Charts That Show Why AI Progress Is Unlikely to Slow Down. Available online: https:\/\/time.com\/6300942\/ai-progress-charts\/."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Sch\u00e4fer, M., Nadi, S., Eghbali, A., and Tip, F. (2023). An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generation. arXiv.","DOI":"10.1109\/TSE.2023.3334955"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"1165","DOI":"10.1109\/TCAD.2008.923410","article-title":"A Survey of Automated Techniques for Formal Software Verification","volume":"27","author":"Kroening","year":"2008","journal-title":"Trans. Comp.-Aided Des. Integ. Cir. Sys."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"681","DOI":"10.1007\/s11023-020-09548-1","article-title":"GPT-3: Its Nature, Scope, Limits, and Consequences","volume":"30","author":"Floridi","year":"2020","journal-title":"Minds Mach."},{"key":"ref_19","unstructured":"Ye, W., Ou, M., Li, T., Chen, Y., Ma, X., Yanggong, Y., Wu, S., Fu, J., Chen, G., and Wang, H. (2023). Assessing Hidden Risks of LLMs: An Empirical Study on Robustness, Consistency, and Credibility. arXiv."},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Bisk, Y., Zellers, R., Bras, R.L., Gao, J., and Choi, Y. (2019). PIQA: Reasoning about Physical Commonsense in Natural Language. arXiv.","DOI":"10.1609\/aaai.v34i05.6239"},{"key":"ref_21","unstructured":"Brown, T.B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., and Askell, A. (2020). Language Models are Few-Shot Learners. arXiv."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"101861","DOI":"10.1016\/j.inffus.2023.101861","article-title":"ChatGPT: Jack of all trades, master of none","volume":"99","author":"Cichecki","year":"2023","journal-title":"Inf. Fusion"},{"key":"ref_23","unstructured":"Yang, X., Li, Y., Zhang, X., Chen, H., and Cheng, W. (2023). Exploring the Limits ChatGPT for Query or Aspect-based Text Summarization. arXiv."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"100024","DOI":"10.1016\/j.nlp.2023.100024","article-title":"An evaluation on large language model outputs: Discourse and memorization","volume":"4","author":"Wang","year":"2023","journal-title":"Nat. Lang. Process. J."},{"key":"ref_25","unstructured":"Carpuat, M., de Marneffe, M.C., and Meza Ruiz, I.V. (2022, January 15). Measuring Fairness with Biased Rulers: A Comparative Study on Bias Metrics for Pre-trained Language Models. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Seattle, WA, USA."},{"key":"ref_26","unstructured":"Domnich, A., and Anbarjafari, G. (2021). Responsible AI: Gender bias assessment in emotion recognition. arXiv."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"ESA (1995). Guide to Software Verification and Validation, ESA. ESA PSS-05-10 Issue 1, Revision 1, March 1995.","DOI":"10.1016\/S1350-4789(00)80014-8"},{"key":"ref_28","unstructured":"Peleska, J., Haxthausen, A., Schnieder, E., and Tarnai, G. (2007, January 25\u201326). Object Code Verification for Safety-Critical Railway Control Systems. Proceedings of the Formal Methods for Automation and Safety in Railway and Automotive Systems (FORMS\/FORMAT 2007), Braunschweig, Germany."},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Iyyer, M., Wieting, J., Gimpel, K., and Zettlemoyer, L. (2018). Adversarial Example Generation with Syntactically Controlled Paraphrase Networks. arXiv.","DOI":"10.18653\/v1\/N18-1170"},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Alzantot, M., Sharma, Y., Elgohary, A., Ho, B.J., Srivastava, M., and Chang, K.W. (2018). Generating Natural Language Adversarial Examples. arXiv.","DOI":"10.18653\/v1\/D18-1316"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Gao, J., Lanchantin, J., Soffa, M.L., and Qi, Y. (2018). Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifiers. arXiv.","DOI":"10.1109\/SPW.2018.00016"},{"key":"ref_32","unstructured":"Zhao, Z., Dua, D., and Singh, S. (2018). Generating Natural Adversarial Examples. arXiv."},{"key":"ref_33","unstructured":"Kolve, E., Mottaghi, R., Han, W., VanderBilt, E., Weihs, L., Herrasti, A., Deitke, M., Ehsani, K., Gordon, D., and Zhu, Y. (2022). AI2-THOR: An Interactive 3D Environment for Visual AI. arXiv."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Zhang, H., Li, L.H., Meng, T., Chang, K.W., and den Broeck, G.V. (2022). On the Paradox of Learning to Reason from Data. arXiv.","DOI":"10.24963\/ijcai.2023\/375"},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Wu, Z., Qiu, L., Ross, A., Aky\u00fcrek, E., Chen, B., Wang, B., Kim, N., Andreas, J., and Kim, Y. (2024). Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Tasks. arXiv.","DOI":"10.18653\/v1\/2024.naacl-long.102"},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Wu, Z., Bai, H., Zhang, A., Gu, J., Vydiswaran, V.V., Jaitly, N., and Zhang, Y. (2024). Divide-or-Conquer? Which Part Should You Distill Your LLM?. arXiv.","DOI":"10.18653\/v1\/2024.findings-emnlp.145"},{"key":"ref_37","unstructured":"Plaat, A., Wong, A., Verberne, S., Broekens, J., van Stein, N., and Back, T. (2024). Reasoning with Large Language Models, a Survey. arXiv."},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Huang, J., and Chang, K.C.C. (2023). Towards Reasoning in Large Language Models: A Survey. arXiv.","DOI":"10.18653\/v1\/2023.findings-acl.67"},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Qiao, S., Ou, Y., Zhang, N., Chen, X., Yao, Y., Deng, S., Tan, C., Huang, F., and Chen, H. (2023). Reasoning with Language Model Prompting: A Survey. arXiv.","DOI":"10.18653\/v1\/2023.acl-long.294"},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Levy, M., Jacoby, A., and Goldberg, Y. (2024). Same Task, More Tokens: The Impact of Input Length on the Reasoning Performance of Large Language Models. arXiv.","DOI":"10.18653\/v1\/2024.acl-long.818"}],"container-title":["Robotics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2218-6581\/13\/9\/137\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T15:53:46Z","timestamp":1760111626000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2218-6581\/13\/9\/137"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,9,11]]},"references-count":40,"journal-issue":{"issue":"9","published-online":{"date-parts":[[2024,9]]}},"alternative-id":["robotics13090137"],"URL":"https:\/\/doi.org\/10.3390\/robotics13090137","relation":{},"ISSN":["2218-6581"],"issn-type":[{"value":"2218-6581","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,9,11]]}}}