IAES International Journal of Robotics and Automation (IJRA)
Vol 15, No 4: December 2026

Automatic instruction generation for mobile robot in CoppeliaSim from flowcharts for programming learning

Junior Gomez-Contreras (Universidad Nacional de San Agustín de Arequipa)
Jharold Alonso Alonso Mayorga Villena (Universidad Nacional de San Agustín de Arequipa)
Andrea López Condori (Universidad Nacional de San Agustín de Arequipa)
Yuber Velazco-Paredes (Universidad Nacional de San Agustín de Arequipa)
Roxana Flores-Quispe (Universidad Nacional de San Agustín de Arequipa)



Article Info

Publish Date
01 Dec 2026

Abstract

Flowcharts are widely used in programming and robotics education to represent the logical structure of algorithms, especially for beginners. However, manually translating these diagrams into code is often tedious and error-prone for learners, especially when the task involves instructions to control a mobile robot. While visual tools can support engagement and learning, the complexity of programming-language syntax continues to create barriers to developing algorithmic reasoning. Therefore, this paper presents a system based on computer vision and machine learning techniques to automatically convert hand-drawn linear flowcharts—composed of predefined movement commands, including single-state loops—into executable instructions for the CoppeliaSim simulator to control the Pioneer P3DX mobile robot, representing a significant advancement in programming education. The system was validated through flowchart recognition, kinematic accuracy analysis, and path-efficiency metrics across controlled experimental scenarios with varying environmental complexity. Under these evaluated conditions, the results showed consistent execution performance (CV < 21%) and a high correlation between instruction count and execution time (r > 0.985). The recognition pipeline achieved an accuracy rate of 95.8%, and the ablation study identified adaptive thresholding as the most influential preprocessing component for robustness. In addition, an evaluation with 12 computer science students showed that the system reduced manual coding time by 77% compared with Python programming, while also lowering perceived task difficulty. The mobile robot reached the target in all tested navigation scenarios. These findings support the potential use of the proposed system in introductory robotics education, although its current scope remains limited to the flowchart structures and simulation conditions evaluated in this study.

Copyrights © 2026






Journal Info

Abbrev

IJRA

Publisher

Subject

Automotive Engineering Electrical & Electronics Engineering

Description

Robots are becoming part of people's everyday social lives and will increasingly become so. In future years, robots may become caretaker assistants for the elderly, or academic tutors for our children, or medical assistants, day care assistants, or psychological counselors. Robots may become our ...