z-logo
open-access-imgOpen Access
Design and implementation of an efficient program interpreter for industrial robot
Author(s) -
Ming-You Xie,
Di Li,
Minghao Cheng,
Shipeng Li,
Yongchao Luo
Publication year - 2021
Publication title -
journal of physics. conference series
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.21
H-Index - 85
eISSN - 1742-6596
pISSN - 1742-6588
DOI - 10.1088/1742-6596/1884/1/012018
Subject(s) - computer science , interpreter , programming language , robot , abstract syntax tree , syntax , construct (python library) , sentence , process (computing) , industrial robot , artificial intelligence , natural language processing
Robot program interpreter is an important tool for robot to realize real-time control and fast feedback. In order to simplify the process of robot programming and improve the interpretation efficiency of robot program, an easy-to-use and efficient industrial robot program interpreter is designed and implemented in this paper. The interpreter divides the robot program into two parts: variable definition and instruction call. The process of interpretation includes lexical analysis, syntactic analysis, semantic analysis and instruction interpretation modules. Using flex and bison tools to assist in the generation of lexical and syntactic analysis programs, this paper proposes child-sibling notation (CSN) to construct a syntax tree. In semantic analysis, the red-black tree structure of the map container is used to create a symbol table and record variable information. By the way of presetting type checking codes, errors in the program can be reported and handled. Finally, the interpreter traverses the syntax tree with depth-first algorithm, and calls the corresponding control function while interpreting the instruction sentence to execute the motion of robot. The experimental results show that the designed interpreter has high efficiency and stability in interpreting the robot program and meets the operational requirements of industrial robots.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here