A graphical robot programming interactive system and method

Through a graphical robot programming interaction system, tree diagrams and three-dimensional models are used to display robot programming logic, which solves the problems of inconvenient interaction and poor readability in the existing technology, and achieves more intuitive program editing and interaction effects.

CN112698823BActive Publication Date: 2024-09-10FOSHAN GUANWAN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011641014.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-09-10
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

The existing graphical programming interaction method for robots has the problems of inconvenient interaction and poor readability. Especially when the program is long and complex, it is difficult for users to intuitively obtain the program logic, and the interaction effect is not good on a mouse-less platform.

Method used

Provides a graphical robot programming interaction system, including an instruction set module, a program editing module, an instruction attribute setting module and a visualization module, using a tree diagram to display instructions, adding instructions through drag and drop operations, and through three-dimensional models and animations Display the robot's posture and motion trajectory, simplifying node connection and layout operations.

Benefits of technology

It improves the interactive convenience and practicality of robot programming, displays the program logic more intuitively through the structure of the tree diagram, reduces the complexity of node connection lines, and enhances the readability and maintainability of the program.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112698823B
    Figure CN112698823B
Patent Text Reader

Abstract

The present invention relates to the field of robot programming technology, and in particular to a graphical robot programming interactive system and method. The system comprises: an instruction set module, which is used to provide motion control instructions and program logic control instructions for a robot, wherein a plurality of instruction categories are configured in the instruction set module, and each instruction category comprises a plurality of draggable instructions; a program editing module, which is used to edit a robot graphical program, and read instructions dragged into the program editing module, and display a plurality of instructions in the form of a tree diagram; an instruction attribute setting module, which is used to view and modify instruction attributes in the program editing module; an auxiliary editing module, which is used to operate and manage the robot graphical program; and a visualization module, which is used to display the position and posture of the robot in the form of a three-dimensional model, and display the motion trajectory of the robot in the form of a three-dimensional animation. The robot programming interactive system provided by the present invention is convenient to interact and has strong practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robot programming, and in particular to a graphical robot programming interaction system and method. Background Art

[0002] Currently, robot programming has gradually evolved from code and text programming to graphical programming. There are two main interactive modes of robot graphical programming on the market: the first is the puzzle mode, where users drag commands and move them like a puzzle. Figure 1 Generally, program nodes are spliced ​​together; the other is a flowchart type, whose interaction consists of instruction nodes and node connections. Users drag instruction nodes and connect various program nodes through node connection lines.

[0003] Among them, the essence of the puzzle type is a tree structure, but because the indentation of its child and parent instruction nodes is not obvious, when the program is long and there are many loop jumps, the user cannot quickly and intuitively obtain the approximate logic of the program, and it appears to be bloated; the flowchart-type programming interaction method also has the above problems, and because the logic of the program needs to be represented by node connecting lines, this requires the user to have the ability to reasonably layout the program nodes. Otherwise, when writing larger and more complex programs, the node connecting lines may be complicated due to unreasonable node layout, thereby making the readability of the robot graphical program worse. In addition, when using the flowchart-type programming interaction method, it is difficult to obtain good interaction when connecting program nodes on a mouse-free mobile platform or an embedded teach pendant.

[0004] Moreover, in the actual application of current graphical programming, it is found that since the robot graphical program contains a large number of motion control instruction nodes, a large number of motion control instruction nodes will overwhelm the structure and logic of the program, which will make it more difficult for users to quickly obtain the overall structural logic of the program.

[0005] In summary, the existing robot graphical programming still has problems such as inconvenient interaction and poor practicality. Summary of the invention

[0006] The present invention provides a graphical robot programming interaction system and method to solve one or more technical problems existing in the prior art and at least provide a beneficial choice or create conditions.

[0007] In order to achieve the above object, the present invention provides the following technical solutions:

[0008] A graphical robot programming interactive system, the system comprising: an instruction set module, a program editing module, an instruction attribute setting module, an auxiliary editing module and a visualization module;

[0009] The instruction set module is used to provide motion control instructions and program logic control instructions for the robot. The instruction set module is configured with multiple instruction categories, and each of the instruction categories includes multiple draggable instructions;

[0010] The program editing module is used to edit the robot graphical program and read the instructions dragged into the program editing module, and display multiple instructions in the form of a tree diagram;

[0011] The instruction attribute setting module is used to display and set the attributes of the instructions in the program editing module;

[0012] The auxiliary editing module is used to operate and manage the robot graphical program;

[0013] The visualization module is used to display the position and posture of the robot in the form of a three-dimensional model, and to display the motion trajectory of the robot in the form of a three-dimensional animation.

[0014] Furthermore, the instruction set module, program editing module, instruction attribute setting module and visualization module are all presented in the form of window interfaces and are all in the same display interface.

[0015] Furthermore, the instruction categories include:

[0016] The motion control category includes a variety of motion control instructions for controlling the robot's motion;

[0017] Logic and branch categories, including logic judgment instructions, branch jump instructions, and loop instructions;

[0018] Digital IO control category, including control instructions for obtaining the robot input status and control instructions for controlling the robot output status;

[0019] A subroutine category, including instructions for calling subroutines;

[0020] The motion container category includes a plurality of motion container instructions for aggregate management of the motion control instructions.

[0021] Furthermore, the program editing module is also used to: identify instructions dragged from the instruction set module to the window interface of the program editing module, and add the instructions to corresponding positions in the tree diagram according to the positions of the instructions.

[0022] Furthermore, the program editing module is also used to: divide the instructions into primary instructions and secondary instructions: the primary instructions are leaf nodes in the tree diagram, and the secondary instructions are parent nodes in the tree diagram;

[0023] When it is recognized that an instruction in the instruction set module is dragged to a blank area between two adjacent nodes in the tree diagram, the instruction is added as a node between the two adjacent nodes in the tree diagram;

[0024] When an instruction in an instruction set module is identified and dragged to the area where any node is located in the tree diagram, if the node is a leaf node, the instruction is added as a node adjacent to the node below; if the node is a parent node, the instruction is added as the front or last node in the node.

[0025] Furthermore, the program editing module is also used to fold the motion container instructions in the program editing module with one key, and to separately display all the motion container instructions in the program editing module.

[0026] Furthermore, the instruction also includes an icon, which is used to identify the status of the instruction; the status of the instruction includes: a disabled state, a correct state and an error state; wherein the disabled state indicates that the instruction is disabled, the correct state indicates that the attributes of the instruction have been completely set, and the error state indicates that the attributes of the instruction are not completely set or are set incorrectly.

[0027] Further, the auxiliary editing module includes: a save unit, an undo unit, a redo unit, a delete unit, a copy unit and a paste unit;

[0028] The storage unit is used to store the robot graphical program;

[0029] The undo unit is used to undo the last operation on the robot graphical program;

[0030] The redo unit is used to restore the last operation undone by the undo unit;

[0031] The deleting unit is used to delete the instruction selected by the user in the instruction set module;

[0032] The copying unit is used to copy the instruction selected by the user in the instruction set module;

[0033] The pasting unit is used to paste the instruction copied by the copying unit to the node position selected by the user in the tree diagram.

[0034] Furthermore, the auxiliary editing module further includes: a simulation operation unit and an actual operation unit;

[0035] The simulation operation unit is used to simulate the movement of the robot in the visualization module in the form of a three-dimensional animation by using the robot graphical program, and to perform collision detection during the simulation to detect whether there is a collision during the execution of the robot graphical program. When a collision is detected during the execution of the robot graphical program, a part where the collision occurs is marked in the three-dimensional model of the robot;

[0036] The actual operation unit is used to send the robot graphical program to the robot controller so that the robot controller executes the robot graphical program.

[0037] A graphical robot programming interaction method, based on any of the graphical robot programming interaction systems described above, the method comprises the following steps:

[0038] Step S100, entering the robot programming interactive system and creating a blank robot graphical program;

[0039] Step S200, adding instructions from the instruction set module to the program editing module;

[0040] Step S300, configuring instruction parameters in the instruction attribute setting module;

[0041] Step S400: when the editing of the robot graphical program is completed, the robot graphical program is simulated and run through the auxiliary editing module, and the three-dimensional animation of the robot is displayed through the visualization module;

[0042] Step S500, determine whether the robot movement meets expectations, if yes, execute step S600, if no, execute step S200;

[0043] Step S600: Save the robot graphical program.

[0044] The beneficial effects of the present invention are as follows: the present invention discloses a graphical robot programming interactive system, the present invention provides the robot's motion control instructions and program logic control instructions through the instruction set module, edits the robot's graphical program through the program editing module, and reads the instructions dragged into the program editing module, and displays multiple instructions in the form of a tree diagram; displays and sets the attributes of the instructions in the program editing module through the instruction attribute setting module; operates and manages the robot's graphical program through the auxiliary editing module; displays the robot's posture in the form of a three-dimensional model through the visualization module, and displays the robot's motion trajectory in the form of a three-dimensional animation. The present invention adopts a tree control as a display and editing method for the robot's graphical program, without the user having to connect and layout the nodes, and the structure of the tree diagram is more intuitive, the structure of the tree diagram corresponds to the program logic structure one by one, and the overall logic of the program can be displayed more intuitively. The user only needs to drag the instruction to the desired position in the instruction set module to add the corresponding program instruction to the corresponding position of the robot's graphical program. Thereby improving the interactive convenience and practicality of robot programming. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0046] Figure 1 It is a schematic diagram of the overall layout of a graphical robot programming interaction system according to an embodiment of the present invention;

[0047] Figure 2a is a schematic diagram of the folding effect of the program editing module in an embodiment of the present invention;

[0048] Figure 2b is a schematic diagram of a display mode of a tree diagram in an embodiment of the present invention;

[0049] Figure 3 is a schematic diagram of the effect of the deletion unit in deleting a secondary instruction in an embodiment of the present invention;

[0050] Figure 4 is a schematic diagram of an auxiliary function module in an embodiment of the present invention;

[0051] Figure 5 is a schematic diagram of a three-dimensional scene in an embodiment of the present invention;

[0052] Figure 6 is a schematic diagram of a root node of an instruction set module in an embodiment of the present invention;

[0053] Figure 7 is a schematic diagram of a configuration interface in an embodiment of the present invention;

[0054] Figure 8a is a schematic diagram of the effect of adding secondary instructions to a robot graphical program in an embodiment of the present invention;

[0055] Figure 8b It is a schematic diagram of the effect of adding a first-level instruction to a robot graphical program in an embodiment of the present invention;

[0056] Fig. 9 It is a flowchart of a graphical robot programming interaction method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of this application, so as to fully understand the purpose, scheme and effect of this application. It should be noted that the embodiments and features in the embodiments of this application can be combined with each other without conflict.

[0058] refer to Figure 1 ,like Figure 1 The figure shows a graphical robot programming interactive system provided by an embodiment of the present application, the system comprising: an instruction set module 110, a program editing module 120, an instruction attribute setting module 130, an auxiliary editing module 140 and a visualization module 150;

[0059] The instruction set module 110 is used to provide motion control instructions and program logic control instructions for the robot. The instruction set module 110 is configured with a plurality of instruction categories 111, and each of the instruction categories 111 includes a plurality of draggable instructions;

[0060] The program editing module 120 is used to edit the robot graphical program, read the instructions dragged into the program editing module 120, and display the multiple instructions in the form of a tree diagram;

[0061] The instruction attribute setting module 130 is used to display and set the attributes of the instructions in the program editing module 120;

[0062] The auxiliary editing module 140 is used to operate and manage the robot graphical program;

[0063] The visualization module 150 is used to display the position and posture of the robot in the form of a three-dimensional model, and to display the motion trajectory of the robot in the form of a three-dimensional animation.

[0064] The present invention adopts a tree control as a way to display and edit the robot graphical program. Compared with the flowchart-style graphical programming method, it has an obvious advantage, that is, there is no need for the user to connect and layout the nodes, and the structure of the tree diagram is more intuitive. The structure of the tree diagram corresponds to the program logic structure one by one, which can more intuitively display the overall logic of the program. The user only needs to drag the instruction to the desired position in the instruction set module 110 to add the corresponding program instruction to the corresponding position of the robot graphical program. In one embodiment, the system is developed based on a cross-platform C++ graphical interaction framework.

[0065] In an improved embodiment, the instruction set module 110, the program editing module 120, the instruction attribute setting module 130 and the visualization module 150 are all presented in the form of a window interface and are all in the same display interface.

[0066] It can be seen that the user can be in a state of being observable and usable at the same time without switching pages, which reduces the operation of switching pages during the programming process.

[0067] In an improved embodiment, the instruction category 111 includes:

[0068] The motion control category includes a variety of motion control instructions for controlling the robot's motion;

[0069] Logic and branch categories, including logic judgment instructions, branch jump instructions, and loop instructions;

[0070] Digital IO control category, including control instructions for obtaining the robot input status and control instructions for controlling the robot output status;

[0071] Subroutine category, including call instructions for calling subroutines; calling a subroutine through a call instruction can control the executing program to jump to the specified subroutine to continue execution;

[0072] The motion container category includes a plurality of motion container instructions for aggregate management of the motion control instructions.

[0073] It should be noted that the motion container category can contain zero, one or more motion control instructions. In a specific embodiment, the robot's motion control instructions include: MOVEJ (joint motion), MOVEL (linear motion); the logic and branch instructions include: WHILE statement, FOR loop statement, IF statement, GOTO statement; the digital IO (input and output) instructions include: DI (digital input) instructions and DO (digital output) instructions; the subroutine instructions include: CALL (call) command; the motion container instructions include: PATH (path) command.

[0074] The present invention also provides motion container instructions. When the user performs actual robot application programming, the user can divide the robot's motion control instructions into several motion container instructions in advance, and insert the motion container instructions into the robot graphical program, but not add specific motion control instructions for the time being. After the main logic editing of the robot graphical program is completed, specific motion control instructions are added to each motion container instruction one by one.

[0075] In an improved embodiment, the program editing module 120 is further used to: identify instructions dragged from the instruction set module 110 to the window interface of the program editing module 120, and add the instructions to the corresponding positions in the tree diagram according to the positions of the instructions.

[0076] In an improved embodiment, the program editing module 120 is further used to: divide the instructions into primary instructions and secondary instructions: the primary instructions are leaf nodes in the tree diagram, and the secondary instructions are parent nodes in the tree diagram.

[0077] Specifically, a first-level instruction refers to an instruction that cannot have sub-instructions, such as the above-mentioned digital IO control instructions and motion control instructions; a second-level instruction refers to an instruction that can have sub-instructions, and second-level instructions can be nested, that is, a second-level instruction can become a sub-instruction of another second-level instruction, such as the above-mentioned loop instructions and logic instructions; the second-level instruction can have zero, one or more sub-instructions.

[0078] In this embodiment, even if the user drags the instruction to a position overlapping with the first-level instruction, the program editing module 120 automatically adds the dragged instruction below the first-level instruction.

[0079] In an improved embodiment, the program editing module 120 is further specifically used for:

[0080] When it is recognized that an instruction in the instruction set module 110 is dragged to a blank area between two adjacent nodes in the tree diagram, the instruction is added as a node between the two adjacent nodes in the tree diagram;

[0081] When it is recognized that an instruction in the instruction set module 110 is dragged to the area where any node is located in the tree diagram, if the node is a leaf node, the instruction is added as a node adjacent to the node below; if the node is a parent node, the instruction is added as the front or last node in the node.

[0082] Specifically, when the user drags an instruction in the instruction set module 110 to a blank area between two adjacent nodes in the tree diagram, the program editing module 120 adds the instruction as a new node between the two adjacent nodes in the tree diagram;

[0083] When the user drags an instruction in the instruction set module 110 to a designated node in the tree diagram (i.e., overlaps), if the designated node is a leaf node (first-level instruction), the instruction is added as a node adjacent to and below the leaf node; if the designated node is a parent node (second-level instruction), the instruction is added as the frontmost or last node in the parent node; during the process of dragging and adding instructions, the instruction attributes in the instruction set module 110 will not change, that is, if the instruction is a first-level instruction, then after adding the instruction to the tree diagram, it will still be a first-level instruction (leaf node); if the instruction is a second-level instruction, then after adding the instruction to the tree diagram, it will still be a second-level instruction (parent node); thereby achieving the purpose of adding the instruction to the appropriate position according to the user's actions.

[0084] In an improved embodiment, the program editing module 120 is also used to separate the robot's motion control instructions and program logic control instructions.

[0085] In an improved embodiment, the program editing module 120 is also used to fold all motion control instructions in the program editing module 120 with one key, and to display all motion container instructions in the program editing module 120 separately.

[0086] In this embodiment, since the motion container instruction is a secondary instruction, when the user only cares about the program logic, by folding all the motion container instructions with one click, the length of the tree diagram is reduced, which helps the user to quickly understand the overall structure and logic of the robot graphical program; when all the motion container instructions in the program editing module 120 are displayed separately, the program editing module 120 hides all non-motion container instructions in the robot graphical program and only displays the motion container instructions, which helps the user to quickly view the motion control part in the robot graphical program. By separating the robot motion control part and the program logic part and using an independent display method, the readability and maintainability of the robot graphical program are effectively improved.

[0087] refer to Figure 2a and Figure 2b , the user can collapse all motion control instructions in the program by clicking the collapse path 230 button; click the expand path 240 button to expand all motion control instructions in the program, so that the user can view the details of each path;

[0088] When the user wants to ignore the program logic information and only focus on the motion control information, the user can switch the display mode of the tree diagram by clicking on the Table (workbench) in the interface of the program editing module 120; when the user clicks on the path workbench 220, the program editing module 120 will enter the path display mode 260, at which time the program editing module 120 only displays the path instructions in the program; when the user clicks on the program workbench 210, the program editing module 120 will enter the program complete display mode 250, at which time the program editing module 120 displays all instructions in the program; by providing the function of folding path instructions with one click and displaying path instructions separately, the robot motion part and the program logic can be effectively separated, effectively improving the readability and maintainability of the program.

[0089] In an improved embodiment, the instruction attribute setting module 130 includes an instruction general parameter configuration unit 131 and an instruction specific parameter configuration unit 132; the instruction general parameter configuration unit 131 includes an instruction type, an instruction status and an instruction comment; the instruction specific parameter configuration unit 132 is used to configure the specific attributes of each instruction;

[0090] In an improved embodiment, the instruction also includes an icon 121, which is used to identify the status of the instruction; the status of the instruction includes: a disabled state, a correct state and an error state; wherein the disabled state indicates that the instruction is disabled, the correct state indicates that the attributes of the instruction have been completely set, and the error state indicates that the attributes of the instruction are not completely set or are set incorrectly.

[0091] In an improved embodiment, the auxiliary editing module 140 includes: a save unit, an undo unit, a redo unit, a delete unit, a copy unit and a paste unit;

[0092] The storage unit is used to store the robot graphical program;

[0093] The undo unit is used to undo the last operation on the robot graphical program;

[0094] The redo unit is used to restore the last operation undone by the undo unit;

[0095] The deleting unit is used to delete the instruction selected by the user in the instruction set module 110;

[0096] like Figure 3 As shown, if the selected instruction is a secondary instruction (the WHILE statement shown in the figure), all its sub-instructions will be deleted together;

[0097] The copying unit is used to copy the instruction selected by the user in the instruction set module 110; if the selected instruction is a secondary instruction, the instruction itself and all its sub-instructions are copied;

[0098] The pasting unit is used to paste the instruction copied by the copying unit to the node position selected by the user in the tree diagram.

[0099] In an improved embodiment, the auxiliary editing module 140 further includes: a simulation operation unit and an actual operation unit;

[0100] The simulation operation unit is used to simulate the movement of the robot in the visualization module 150 in the form of a three-dimensional animation by using the robot graphical program, and to perform collision detection during the simulation to detect whether there is a collision during the execution of the robot graphical program. When a collision is detected during the execution of the robot graphical program, a part where the collision occurs is marked in the three-dimensional model of the robot;

[0101] The actual operation unit is used to send the robot graphical program to the robot controller so that the robot controller executes the robot graphical program.

[0102] In an improved embodiment, the visualization module 150 is also used to, when it is detected that a user has selected a motion control unit in the instruction set module 110, display the target posture (the posture of the robot's target point) represented by the motion control instructions in the motion control unit in the form of a three-dimensional model; when it is detected that a user has selected a motion container category 111 in the instruction set module 110, display the robot motion trajectory composed of all motion control instructions in the motion container category in the form of a three-dimensional animation.

[0103] refer to Figure 4 , and combined with Figure 1 The visualization module 150 in the embodiment of the present invention, in an improved embodiment, the visualization module 150 further includes: an auxiliary function module 151, the auxiliary function module 151 is used to control the three-dimensional scene of the visualization module 150, the auxiliary function module 151 includes: a zoom-in model unit 410, a zoom-out model unit 420, and a viewing angle adjustment unit 430; the viewing angle adjustment unit 430 includes a moving viewing angle unit and a rotating viewing angle unit;

[0104] The model enlargement unit 410 is used to enlarge the three-dimensional model in the visualization module 150, which is equivalent to shortening the distance between the three-dimensional scene observation angle and the robot model;

[0105] The model reduction unit 420 is used to reduce the three-dimensional model in the visualization module 150, which is equivalent to increasing the distance of the three-dimensional scene observation angle relative to the robot model;

[0106] The mobile viewing angle unit is used to translate the viewing angle of the three-dimensional scene in the visualization module 150;

[0107] The rotating viewing angle unit is used to rotate the viewing angle of the three-dimensional scene in the visualization module 150;

[0108] In this example, the moving perspective unit and the rotating perspective unit reuse the same selectable button, namely, the perspective adjustment unit 430. When the selectable button is in a selected state, the three-dimensional visualization scene is in a moving perspective mode. The perspective can be moved by sliding a mouse or a finger in the three-dimensional visualization scene area, and the perspective can be rotated by rotating a mouse or a finger in the three-dimensional visualization scene area.

[0109] refer to Figure 5 , the three-dimensional scene in this example includes: a current pose model 510 and a target pose model 520;

[0110] The current posture model 510 is used to display the current actual posture or simulated posture of the robot;

[0111] The target posture model 520 is used to display the target posture of the motion control instruction selected by the user in the instruction set module 110;

[0112] In the instruction set module 110, when a motion control instruction is selected in the instruction set module 110, the target posture robot model in the visualization module 150 will be displayed as the target posture of the motion control instruction selected in the current instruction set module 110;

[0113] The following will combine the above embodiments and use a specific example to further illustrate how to use the system to perform graphical programming of robot graphical programs;

[0114] refer to Fig. 9 The embodiment of the present application further provides a graphical robot programming interaction method, based on any of the graphical robot programming interaction systems described above, the method comprises the following steps:

[0115] Step S100, entering the robot programming interactive system and creating a blank robot graphical program;

[0116] Step S200, adding instructions from the instruction set module to the program editing module;

[0117] Step S300, configuring instruction parameters in the instruction attribute setting module;

[0118] Step S400: when the editing of the robot graphical program is completed, the robot graphical program is simulated and run through the auxiliary editing module, and the three-dimensional animation of the robot is displayed through the visualization module;

[0119] Step S500, determine whether the robot movement meets expectations, if yes, execute step S600, if no, execute step S200;

[0120] Step S600: Save the robot graphical program.

[0121] In a specific embodiment, when a user performs programming through the robot programming interactive system, the user performs the following operations:

[0122] S1, triggering to enter the robot programming interactive system, creating and opening a blank robot graphical program, and the instruction set module 110 of the robot graphical program only displays the root node;

[0123] Wherein, the root node is as follows Figure 6 Program in

[0124] S2. Drag an instruction MOVEJ from the instruction set module 110 to the program editing module 120. The instruction MOVEJ will be added as the first child node of the root node Program in the tree diagram, and is also the first instruction of the program. The instruction attribute setting module 130 automatically switches to the configuration interface of the MOVEJ instruction, such as Figure 7 As shown;

[0125] S3, set the target point for the MOVEJ instruction; that is, modify the parameters of the instruction;

[0126] S4, continue to add instructions: drag a loop instruction WHILE from the instruction set module 110 to the first instruction in the instruction set module 110, and the instruction WHILE will be added below the instruction MOVEJ just added;

[0127] like Figure 8a As shown, in this embodiment, when a secondary instruction (WHILE instruction) is added to the robot graphical program, a closing instruction (END WHILE instruction) is automatically added;

[0128] S5. After the WHILE instruction is successfully added, the instruction attribute setting module 130 will automatically switch to the configuration interface of the WHILE instruction, in which the configuration of the loop condition of the WHILE instruction can be completed;

[0129] S6, continue to drag another instruction MOVEJ from the instruction set module 110 to the position overlapping with the instruction WHILE that has just been successfully added, and the program editing module 120 adds the MOVEJ instruction as a sub-instruction of the WHILE instruction; Figure 8b As shown;

[0130] S7, continue to add instructions and set parameters until the program logic meets the user's expectations, and click the save unit in the auxiliary editing module 140 to save the robot graphical program;

[0131] S8. If there is an incorrect instruction or an instruction with incomplete parameters, the system will prohibit the user from saving and pop up a window to prompt;

[0132] S9, by clicking the simulation operation unit in the auxiliary editing module 140, so that the visualization module 150 displays the three-dimensional animation of the robot according to the robot graphical program;

[0133] S10, when the robot motion is observed to meet expectations through simulation operation, by clicking the actual operation unit in the auxiliary editing module 140, the system downloads the robot visualization program to the actual robot control system and performs real machine debugging;

[0134] S11, if a problem is found in the program during the simulation debugging process or the actual debugging process, the problematic instruction is selected in the instruction set module 110 and edited;

[0135] S12, complete debugging, save the robot graphical program, and exit the system.

[0136] The contents of the above system embodiments are all applicable to the present method embodiments. The functions specifically implemented by the present method embodiments are the same as those of the above system embodiments, and the beneficial effects achieved are also the same as those achieved by the above system embodiments.

[0137] Although the description of the present application has been quite detailed and specifically describes several described embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be regarded as providing a broad possible interpretation of these claims by reference to the attached claims, taking into account the prior art, so as to effectively cover the intended scope of the present application. In addition, the above description of the present application is based on the embodiments foreseeable by the inventor, and its purpose is to provide a useful description, and those non-substantial changes to the present application that have not yet been foreseen may still represent equivalent changes to the present application.

Claims

1. A graphical robot programming interactive system, characterized in that: The system includes: an instruction set module, a program editing module, an instruction attribute setting module, an auxiliary editing module and a visualization module; The instruction set module is used to provide motion control instructions and program logic control instructions for the robot. The instruction set module is configured with multiple instruction categories, and each of the instruction categories includes multiple draggable instructions; The program editing module is used to edit the robot graphical program and read the instructions dragged into the program editing module, and display multiple instructions in the form of a tree diagram; The instruction attribute setting module is used to display and set the attributes of the instructions in the program editing module; The auxiliary editing module is used to operate and manage the robot graphical program; The visualization module is used to display the position and posture of the robot in the form of a three-dimensional model, and to display the motion trajectory of the robot in the form of a three-dimensional animation; The instruction categories include: The motion control category includes a variety of motion control instructions for controlling the robot's motion; Logic and branch categories, including logic judgment instructions, branch jump instructions, and loop instructions; Digital IO control category, including control instructions for obtaining the robot input status and control instructions for controlling the robot output status; A subroutine category, including instructions for calling subroutines; A motion container category, including a plurality of motion container instructions for aggregate management of the motion control instructions; wherein the motion container category contains zero, one or more motion control instructions; the motion control instructions of the robot include: joint motion and linear motion; the logic and branch instructions include: WHILE statement, FOR loop statement, IF statement, GOTO statement; the control instructions of the digital IO control category include: digital input instructions and digital output instructions; the subroutine instructions include: call command; the motion container instructions include: path command; The program editing module is also used to: divide the instructions into primary instructions and secondary instructions: the primary instructions are leaf nodes in the tree diagram, and the secondary instructions are parent nodes in the tree diagram; When it is recognized that an instruction in the instruction set module is dragged to a blank area between two adjacent nodes in the tree diagram, the instruction is added as a node between the two adjacent nodes in the tree diagram; When it is recognized that an instruction in the instruction set module is dragged to the area where any node in the tree diagram is located, if the node is a leaf node, the instruction is added as a node adjacent to the node below; if the node is a parent node, the instruction is added as the first or last node in the node; The auxiliary editing module also includes: a simulation operation unit and an actual operation unit; The simulation operation unit is used to simulate the movement of the robot in the visualization module in the form of a three-dimensional animation by using the robot graphical program, and to perform collision detection during the simulation to detect whether there is a collision during the execution of the robot graphical program. When a collision is detected during the execution of the robot graphical program, a part where the collision occurs is marked in the three-dimensional model of the robot; The actual operation unit is used to send the robot graphical program to the robot controller so that the robot controller executes the robot graphical program; The visualization module is also used to, when it is detected that the user has selected the motion control unit in the instruction set module, display the target posture represented by the motion control instruction in the motion control unit in the form of a three-dimensional model; when it is detected that the user has selected the motion container category in the instruction set module, display the robot motion trajectory composed of all the motion control instructions in the motion container category in the form of a three-dimensional animation; The visualization module further includes: an auxiliary function module, the auxiliary function module is used to control the three-dimensional scene of the visualization module, the auxiliary function module includes: a zoom-in model unit, a zoom-out model unit, and a viewing angle adjustment unit; the viewing angle adjustment unit includes a moving viewing angle unit and a rotating viewing angle unit; The model enlargement unit is used to enlarge the three-dimensional model in the visualization module, which is equivalent to shortening the distance between the three-dimensional scene observation angle and the robot model. The model reduction unit is used to reduce the three-dimensional model in the visualization module, which is equivalent to increasing the distance of the three-dimensional scene observation angle relative to the robot model; The mobile viewing angle unit is used to translate the viewing angle of the three-dimensional scene in the visualization module; The rotating viewing angle unit is used to rotate the viewing angle of the three-dimensional scene in the visualization module; The instruction set module, program editing module, instruction attribute setting module and visualization module are all presented in the form of window interfaces and are all in the same display interface; The program editing module is also used to: identify the instruction dragged from the instruction set module to the window interface of the program editing module, and add the instruction to the corresponding position in the tree diagram according to the position of the instruction; The program editing module is also used to fold the motion container instructions in the program editing module with one key, and to separately display all the motion container instructions in the program editing module.

2. A graphical robot programming interactive system according to claim 1, characterized in that: The instruction also includes an icon, which is used to identify the status of the instruction; the status of the instruction includes: a disabled state, a correct state and an error state; wherein the disabled state indicates that the instruction is disabled, the correct state indicates that the attributes of the instruction have been completely set, and the error state indicates that the attributes of the instruction are not completely set or are set incorrectly.

3. A graphical robot programming interactive system according to claim 1, characterized in that: The auxiliary editing module includes: a save unit, an undo unit, a redo unit, a delete unit, a copy unit and a paste unit; The storage unit is used to store the robot graphical program; The undo unit is used to undo the last operation on the robot graphical program; The redo unit is used to restore the last operation undone by the undo unit; The deleting unit is used to delete the instruction selected by the user in the instruction set module; The copying unit is used to copy the instruction selected by the user in the instruction set module; The pasting unit is used to paste the instruction copied by the copying unit to the node position selected by the user in the tree diagram.

4. A graphical robot programming interaction method, based on the graphical robot programming interaction system according to any one of claims 1 to 3, characterized in that: The method comprises the following steps: Step S100, entering the robot programming interactive system and creating a blank robot graphical program; Step S200, adding instructions from the instruction set module to the program editing module; Step S300, configuring instruction parameters in the instruction attribute setting module; Step S400: when the editing of the robot graphical program is completed, the robot graphical program is simulated and run through the auxiliary editing module, and the three-dimensional animation of the robot is displayed through the visualization module; Step S500, determine whether the robot movement meets expectations, if yes, execute step S600, if no, execute step S200; Step S600: Save the robot graphical program.