Robot teaching methods, devices, computer equipment, and storage media based on digital platforms
By updating the virtual model in real time through a digital platform and using a graphical interface, combined with a rule engine to automatically generate robot motion programs, the problems of model deviation and insufficient intelligence in robot teaching are solved, and fast, accurate and safe robot teaching is achieved.
Patent Information
- Application Number
- CN202611256851.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-19
- Publication Date
- 2026-11-17
AI Technical Summary
In existing robot teaching technologies, the virtual model and the real environment lack a real-time synchronization and matching mechanism, resulting in insufficient program accuracy and inability to adapt to environmental changes, as well as insufficient intelligence.
By acquiring robot status data in real time through a digital platform and updating the virtual model synchronously, users can define key path points through a graphical interface, automatically generate motion programs using a rule engine, and perform simulation verification and iterative adjustments to build an automated closed loop from path definition to program issuance.
It enables real-time matching between virtual models and real environments, lowers the technical threshold for teaching, allows non-professionals to quickly complete robot teaching, and improves the intelligence level and operational safety of the teaching process.
Smart Images

Figure CN123103635A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robot teaching technology, and more specifically to robot teaching methods, devices, computer equipment, and storage media based on digital platforms. Background Technology
[0002] Industrial robots are widely used in modern manufacturing for welding, handling, assembly and other fields. However, the robot teaching process is complex, has high barriers to entry and low efficiency, which seriously restricts its rapid deployment and flexible application.
[0003] Traditional robot teaching methods are mainly divided into two categories: online teaching and offline programming.
[0004] Online teaching is currently the most common method used in industrial settings, where operators manually control the robot with a handheld teaching pendant, recording the path point by point and writing the program. This method has several drawbacks: the teaching process consumes production time and is inefficient; teaching accuracy is highly dependent on the operator's experience and proficiency; operators must work at close range, posing safety hazards; and it requires programming knowledge and spatial reasoning skills, resulting in a high technical threshold and a long training period.
[0005] Offline programming involves building a 3D model in a virtual environment for path planning and simulation verification, and then downloading the program to the robot for execution. While this method solves the problem of time commitment in production, it still faces challenges: the virtual model deviates from the real environment, and factors such as workpiece positioning errors and tool wear cause the actual trajectory to differ from the simulation, requiring tedious on-site calibration; it cannot perceive changes in the working environment in real time and lacks dynamic adaptability; and operators still need to master professional knowledge such as modeling and path planning, making the technical threshold still relatively high.
[0006] Among the existing improvement solutions, some require the establishment of large-scale pose tracking scenarios, which are costly to implement; some combine augmented reality for teaching, but still require programming knowledge; some simplify operation through visual control handles, but teaching still requires manual point-by-point programming and cannot be associated with the work scenario; some import the robot after simulating operation through virtual models, but multiple import verifications are required, which is cumbersome.
[0007] In summary, existing robot teaching technologies generally suffer from the following problems: the virtual model lacks a real-time synchronization and matching mechanism with the real environment, resulting in insufficient program accuracy and inability to adapt to environmental changes, as well as insufficient intelligence. Summary of the Invention
[0008] The purpose of this invention is to overcome the shortcomings of the prior art and provide a robot teaching method, device, computer equipment and storage medium based on a digital platform.
[0009] To achieve the above objectives, the present invention adopts the following technical solution: Robot teaching methods based on digital platforms include: The robot's real-time status data is acquired through a digital platform, and the virtual model in the offline programming software is updated synchronously based on the real-time status data. In response to user interaction with the graphical interface of the digital platform, the key path points of the robot operation are defined in the virtual model. Based on the critical path points and the selected process type, a robot motion program is generated through the rule engine built into the digital platform. The robot motion program is imported into the virtual model for simulation verification, and adjustments are made accordingly based on the verification results. After the simulation verification is successful, the robot motion program is sent to the robot controller to execute the task.
[0010] The further technical solution is as follows: The step of acquiring real-time status data of the robot through a digital platform and synchronously updating the virtual model in the offline programming software based on the real-time status data includes: The digital platform obtains real-time status data from the robot controller via the industrial Ethernet communication protocol. The real-time status data includes joint angles, end effector poses, Cartesian coordinates, robot operating modes, and fault information. The digital platform pushes the real-time status data to the offline programming software in real time through the application programming interface, and updates the corresponding joint angles and end poses in the virtual model so that the virtual model matches the real environment.
[0011] Its further technical solution is as follows: The step of responding to user interaction with the graphical interface of the digital platform and defining key path points for robot operation in the virtual model includes: The digital platform provides drag-and-drop functionality for the robot end effector in the virtual model and / or the function of clicking to add path points through a graphical interface. In response to user drag or click operations, grab points, placement points, and intermediate points are defined sequentially in the virtual model to generate critical path points.
[0012] Its further technical solution is as follows: Based on the critical path points and the selected process type, the robot motion program is generated through the rule engine built into the digital platform, including: The rule engine identifies the process type selected by the user and calls the process template corresponding to the process type from the predefined process template library. The process template defines the standard process flow, motion parameters and logical instructions. The rule engine performs path interpolation based on the critical path points and the process template, combined with kinematic constraints, to generate a continuous robot motion trajectory, and generates the robot motion program based on the robot motion trajectory.
[0013] The further technical solution is as follows: importing the robot motion program into the virtual model for simulation verification, and making corresponding adjustments based on the verification results, includes: The robot motion program is imported into the virtual model for simulation to perform collision detection, reachability analysis, singularity check, and trajectory smoothness verification. When the simulation verification detects an anomaly, the anomaly type and corresponding adjustment prompts are displayed in the graphical interface; In response to the user's adjustment operation on the critical path points according to the adjustment prompt, the robot motion program is regenerated and simulation verification is performed until the simulation verification is successful.
[0014] The further technical solution is as follows: after the simulation verification is passed, the robot motion program is sent to the robot controller to execute the task, including: After the simulation verification is passed, the status of the robot controller is queried through the digital platform to confirm that the robot is in a disabled state and has no faults. After confirming that the program download conditions are met, the robot motion program is transmitted to the robot controller for parsing and loading.
[0015] The further technical solution is as follows: after the simulation verification is passed and the robot motion program is sent to the robot controller to execute the task, it also includes: Create new process templates or modify parameters of existing process templates using the template editor provided by the digital platform; The created or modified process template is saved to the process template library for the rule engine to call during subsequent teaching processes.
[0016] The present invention also provides a robot teaching device based on a digital platform, comprising: The acquisition and update unit is used to acquire real-time status data of the robot through a digital platform and synchronously update the virtual model in the offline programming software based on the real-time status data. The response definition unit is used to respond to the user's interactive operation on the graphical interface of the digital platform and to define the critical path points of the robot operation in the virtual model. The generation unit is used to generate a robot motion program based on the critical path points and the selected process type, using the rule engine built into the digital platform. The verification and adjustment unit is used to import the robot motion program into the virtual model for simulation verification, and make corresponding adjustments based on the verification results. The execution unit is used to send the robot motion program to the robot controller to execute the task after the simulation verification is passed.
[0017] The present invention also provides a computer device, the computer device including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the above-described method.
[0018] The present invention also provides a storage medium storing a computer program that, when executed by a processor, implements the above-described method.
[0019] The advantages of this invention compared to existing technologies are as follows: By acquiring robot status data in real time through a digital platform and synchronously updating the virtual model in the offline programming software, the deviation between the virtual model and the real environment in traditional offline programming is eliminated. Program accuracy and adaptability to dynamic environmental changes can be ensured without cumbersome on-site calibration. Simultaneously, users can define critical path points through intuitive interactive operations via a graphical interface, requiring no programming or robot kinematics knowledge, significantly lowering the teaching technology threshold and enabling non-professional programmers to quickly complete robot teaching. Furthermore, based on critical path points and process types, a rule engine automatically generates robot motion programs, and combined with simulation verification and iterative adjustment mechanisms, constructs a complete automated closed loop from path definition, program generation, simulation correction to safe deployment, improving the intelligence level and operational safety of the teaching process. Therefore, this invention solves the core problems of existing robot teaching technologies, such as model deviation, high threshold, and insufficient intelligence, achieving fast, accurate, safe, and easy-to-deploy robot teaching, demonstrating significant technological advancement and broad industrial application value.
[0020] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 A schematic diagram illustrating an application scenario of the robot teaching method based on a digital platform provided in an embodiment of the present invention; Figure 2A flowchart illustrating the robot teaching method based on a digital platform provided in an embodiment of the present invention; Figure 3 A schematic block diagram of a robot teaching device based on a digital platform provided in an embodiment of the present invention; Figure 4 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation
[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0025] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0026] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0027] Please see Figure 1 and Figure 2 , Figure 1 This is a schematic diagram illustrating an application scenario of the robot teaching method based on a digital platform provided in an embodiment of the present invention. Figure 2This is a schematic flowchart illustrating a robot teaching method based on a digital platform provided in an embodiment of the present invention. This robot teaching method, based on a digital platform, is applied to a server that interacts with a terminal. The robot's status data and virtual model are synchronized in real time through the digital platform, eliminating the model deviation problem of traditional offline programming. Accuracy and adaptability to environmental changes can be ensured without on-site calibration. Users can define path points simply through a graphical interface, requiring no programming knowledge, significantly lowering the teaching threshold. Simultaneously, by combining a rule engine to automatically generate programs and simulation iteration verification, an integrated intelligent closed loop is constructed from path definition to program distribution, improving teaching efficiency and operational safety. This fundamentally solves the core problems of model deviation, high threshold, and insufficient intelligence in existing technologies, demonstrating significant technological advancement and industrial application value.
[0028] Figure 2 This is a flowchart illustrating the robot teaching method based on a digital platform provided in an embodiment of the present invention. Figure 2 As shown, the method includes the following steps S110 to S150.
[0029] S110. Obtain the robot's real-time status data through a digital platform, and synchronously update the virtual model in the offline programming software based on the real-time status data; Specifically, the digital platform, as the core interaction and scheduling unit of the entire teaching system, establishes a communication connection with the robot controller via the industrial Ethernet communication protocol. The digital platform continuously acquires real-time status data of the robot from the robot controller at a preset acquisition frequency, such as 100Hz. This real-time status data includes joint angles, end effector pose, Cartesian coordinates, robot operating mode, and fault information. After acquiring the real-time status data, the digital platform pushes it to the offline programming software in real time through a custom application programming interface. The offline programming software pre-creates a virtual model of the robot, which includes the joint structure, kinematic parameters, and geometric dimensions corresponding to the robot. Upon receiving the real-time status data, the offline programming software automatically parses the joint angles and end effector pose information and maps the parsed data to the corresponding joints and end effectors in the virtual model, thereby driving the virtual model to move to a state consistent with the robot's current posture, thus achieving real-time matching between the virtual model and the real environment. Through this continuous data acquisition and synchronous update mechanism, the virtual model always maintains synchronous matching with the real environment, providing an accurate and reliable virtual mapping environment for subsequent teaching operations.
[0030] Therefore, by acquiring robot status data in real time through a digital platform and updating the virtual model synchronously, the virtual model in the offline programming software is kept consistent with the real environment. This eliminates the accuracy problems caused by model deviation in traditional offline programming, and ensures the accuracy of subsequent programs without the need for tedious manual on-site calibration. At the same time, it enables the system to promptly perceive and adapt to dynamic changes in the on-site environment.
[0031] In one embodiment, the step of acquiring real-time status data of the robot through a digital platform and synchronously updating the virtual model in the offline programming software based on the real-time status data includes: The digital platform obtains real-time status data from the robot controller via the industrial Ethernet communication protocol. The real-time status data includes joint angles, end effector poses, Cartesian coordinates, robot operating modes, and fault information. Specifically, the digital platform and the robot controller establish a data interaction channel via the Industrial Ethernet communication protocol. The Industrial Ethernet communication protocol features high real-time performance, high bandwidth, and strong anti-interference capabilities, meeting the requirements for high-frequency acquisition and transmission of robot status data. The digital platform continuously sends data request commands to the robot controller at a preset acquisition frequency, such as 100Hz. The robot controller responds to these data request commands by encapsulating the robot's real-time status data according to an agreed-upon data frame format and sending it back to the digital platform. The real-time status data specifically includes: joint angle values for each joint, such as the J1 to J6 axes of a six-axis industrial robot; the position coordinates (X, Y, Z) and attitude angles (Rx, Ry, Rz) of the end effector in Cartesian space, i.e., the end effector pose; the robot's current operating mode, such as manual mode, automatic mode, or disabled state; and fault diagnosis information for the robot itself, such as overload alarms, communication timeouts, and servo drive failures. After receiving the above real-time status data, the digital platform parses and verifies the data frames, extracting valid status data to provide an accurate data source for subsequent virtual model updates.
[0032] Therefore, acquiring real-time status data, including joint angles, end effector poses, operating modes, and fault information, from the robot controller via the industrial Ethernet communication protocol ensures the real-time nature, completeness, and reliability of data acquisition. Simultaneously, the diverse types of status data provide a comprehensive data foundation for the precise synchronization of the virtual model and subsequent teaching operations.
[0033] The digital platform pushes the real-time status data to the offline programming software in real time through the application programming interface, and updates the corresponding joint angles and end poses in the virtual model so that the virtual model matches the real environment.
[0034] Specifically, the digital platform interacts with the offline programming software through a custom application programming interface (API). This API is based on the gRPC protocol, which offers efficient data serialization and transmission capabilities. The digital platform encapsulates the parsed real-time status data into data packets according to the data format defined by the API and pushes them to the offline programming software in real time. The offline programming software pre-constructs a virtual model of the robot, which has a kinematic model that strictly corresponds to the robot, including parameters such as the degrees of freedom configuration of each joint, link lengths, and link offsets. After receiving the real-time status data pushed by the digital platform, the offline programming software parses the joint angles and end effector pose data, mapping the joint angles to the corresponding joint variables in the virtual model and the end effector poses to the pose variables of the end effector in the virtual model. This ensures that the joint angles and end effector poses of the virtual model are consistent with the robot's real-time state. For example, when the robot's J1 axis rotates by 30 degrees and its J2 axis rotates by -45 degrees, the J1 and J2 axes in the virtual model also rotate synchronously by the corresponding angles, making the virtual model present a posture completely consistent with the robot. Through the aforementioned continuous data collection and synchronization update mechanism, the virtual model always maintains synchronization with the real environment, providing an accurate and reliable virtual mapping environment for subsequent teaching operations.
[0035] Therefore, by pushing real-time status data to offline programming software through the application programming interface and updating the corresponding joint angles and end poses in the virtual model, the real-time and accurate matching between the virtual model and the real environment is achieved, eliminating model deviation. The accuracy of subsequent teaching and simulation can be guaranteed without manual on-site calibration, while enabling the system to promptly perceive and adapt to dynamic changes in the on-site environment.
[0036] Furthermore, the communication protocol between the digital platform and the robot controller is not limited to the Industrial Ethernet protocol. When field devices do not support the Industrial Ethernet protocol, the digital platform can use the Modbus TCP protocol to interact with the robot controller. The Modbus TCP protocol has broader device compatibility and is suitable for various brands and models of robot controllers. While the real-time performance of data acquisition is slightly reduced when using this protocol, it ensures the system's applicability in different hardware environments. Similarly, the application programming interface between the digital platform and the offline programming software is not limited to the gRPC protocol. When the offline programming software does not support the gRPC protocol, the digital platform can use the WebSocket protocol for real-time data push. This protocol maintains bidirectional communication capabilities while offering broader compatibility. Through these alternative protocol solutions, different manufacturers and models of robot controllers and offline programming software can be adapted, effectively improving the system's versatility and applicability.
[0037] S120. In response to the user's interactive operation on the graphical interface of the digital platform, define the critical path points of the robot operation in the virtual model. Specifically, based on the synchronized matching between the virtual model and the real environment, the digital platform receives user interaction through its graphical interface. The graphical interface renders and displays a virtual 3D scene from the offline programming software, which includes elements such as a virtual robot model, a virtual workpiece model, and virtual models of the worktable and peripheral equipment. The graphical interface provides drag-and-drop functionality for the robot's end effector in the virtual model, as well as the function to add path points. Users can drag the virtual end effector to the desired position using a mouse or touchscreen, or record a path point at the current location of the virtual end effector by clicking the "Add Path Point" button on the graphical interface. Users define various path points in the virtual model according to the actual needs of the robot's operation. In a typical material handling operation, the user first drags the virtual end effector above the workpiece's location, adjusts its orientation to align with the workpiece, and clicks "Add Path Point" to record the gripping point. Then, the user drags the virtual end effector above the target location of the workpiece, adjusts its orientation to a suitable placement angle, and clicks "Add Path Point" to record the placement point. Based on this, the user can define one or more intermediate points between the gripping and placement points according to path planning needs. For example, a lifting point to raise the workpiece to a safe height after gripping, or a descent point to lower the workpiece to the target position before placement. These gripping points, placement points, and intermediate points together constitute the user-defined critical path points. After all critical path points are recorded, the digitization platform arranges them into a path point sequence according to the user-defined order and stores them in system memory for subsequent use by the rule engine to generate the robot's motion program. Throughout the interactive operation, the digitization platform calculates and displays the current position coordinates and orientation angle information of the virtual end effector in real time to assist the user in accurately defining path points.
[0038] Therefore, users can define critical path points simply by dragging or clicking through a graphical interface, without needing programming or robot kinematics knowledge, significantly lowering the teaching threshold. Furthermore, the real-time graphical feedback improves the accuracy and efficiency of path point definition, enabling on-site operators without a programming background to quickly define robot paths.
[0039] In one embodiment, the step of responding to user interaction with the graphical interface of the digital platform and defining critical path points for robot operations in the virtual model includes: The digital platform provides drag-and-drop functionality for the robot end effector in the virtual model and / or the function of clicking to add path points through a graphical interface. Specifically, the digital platform provides users with interactive operation functions for robot end effectors in a virtual scene through its graphical interface. The graphical interface renders and displays a virtual 3D scene from the offline programming software, which includes elements such as a virtual robot model, a virtual workpiece model, a worktable, and virtual models of peripheral equipment. Users can directly control the movement of the robot end effector in the virtual model by dragging and dropping the mouse in the graphical interface. Specifically, when a user hovers the mouse pointer over the virtual end effector, presses the left mouse button, and drags, the digital platform responds to this drag operation, calculates the corresponding displacement of the mouse movement in 3D space, and uses this displacement to drive the inverse kinematics calculation of the robot virtual model, so that the virtual end effector moves smoothly to the target position following the mouse movement. In addition, users can also define path points by clicking the "Add Path Point" function button on the graphical interface. After the user moves the virtual end effector to the desired position and posture by dragging and dropping, clicking the "Add Path Point" button, the digital platform records the spatial coordinates and posture angle of the current virtual end effector as path point data. By combining the two interaction methods mentioned above, users can flexibly define the various path positions required for robot operations in a virtual scene.
[0040] Therefore, by providing a graphical interface for dragging and dropping the robot's end effector in the virtual model and adding path points via clicks, users can define the robot's work path in an intuitive and visual way without writing any code or instructions. Furthermore, the combination of these two interaction methods allows users to flexibly choose according to their operating habits and specific needs, improving the convenience and adaptability of the interaction.
[0041] In response to user drag or click operations, grab points, placement points, and intermediate points are defined sequentially in the virtual model to generate critical path points.
[0042] Specifically, users define various path points in the virtual model according to the actual needs of the robot's operation. In a typical material handling operation, the user first drags the virtual end effector above the workpiece's location, adjusts its orientation to align with the workpiece, and clicks "Add Path Point" to record the gripping point. Then, the user drags the virtual end effector above the target location of the workpiece, adjusts its orientation to a suitable placement angle, and clicks "Add Path Point" to record the placement point. Based on this, the user can also define one or more intermediate points between the gripping and placement points according to path planning needs. For example, a lifting point to raise the workpiece to a safe height after gripping, or a descent point to lower the workpiece to the target position before placement, to ensure a smooth robot trajectory and obstacle avoidance. The gripping point, placement point, and intermediate points together constitute the user-defined critical path points. After all critical path points are recorded, the digital platform arranges them into a path point sequence according to the user-defined order and stores them in system memory for subsequent use by the rule engine to generate the robot motion program. Throughout the interactive process, the digital platform calculates and displays the current position coordinates and attitude angle information of the virtual end effector in real time to help users accurately define path points.
[0043] Therefore, it can be seen that users define the gripping point, placement point, and intermediate point sequentially through drag-and-drop and click operations. The operation is simple and intuitive, significantly reducing the technical threshold of teaching operations and enabling on-site operators without programming backgrounds to quickly complete robot path definition. At the same time, the graphical real-time feedback also improves the accuracy and efficiency of path point definition.
[0044] S130. Based on the critical path points and the selected process type, generate a robot motion program using the rule engine built into the digital platform. Specifically, after defining the critical path points, the user selects the process type corresponding to the current task on the graphical interface, such as handling, welding, or assembly. The digital platform has a built-in rule engine, which is the core algorithm module of the digital platform and is responsible for automatically generating robot motion programs based on the critical path points and process type input by the user. After recognizing the process type selected by the user, the rule engine calls the corresponding process template from the predefined process template library. Each process template defines the standard flow of the process, for example, the standard flow of the handling process is "grab → lift → translate → lower → release"; it defines the motion parameters of the process, such as the maximum speed, acceleration, and jerk of each joint of the robot; and it also defines the logical instructions required by the process, such as the gripper closing instruction and gripper opening instruction in the handling process.
[0045] After invoking the corresponding process template, the rule engine, in conjunction with the user-defined critical path points (i.e., gripping points, placement points, and intermediate points), begins path interpolation calculations. Specifically, the rule engine first constructs a path point sequence based on the critical path points and sets the motion speed between each path point based on the motion parameters defined in the process template. Subsequently, the rule engine uses a preset interpolation algorithm to generate continuous position and attitude curves between the path points, such as cubic spline interpolation or fifth-order polynomial interpolation, to ensure smooth trajectory and meet velocity and acceleration constraints. During the interpolation process, the rule engine also verifies and corrects the interpolation results in conjunction with kinematic constraints. Kinematic constraints include: inverse kinematics calculation, which maps the Cartesian space pose of the end effector to the joint angle values of each robot joint at each interpolation point; joint limit checks, which verify whether the joint angle values at each interpolation point are within the physical limit range of the robot joints; and collision detection, which verifies whether the robot collides with obstacles in the surrounding environment at each interpolation point and during its movement. If an interpolation point does not satisfy the above kinematic constraints, the rule engine automatically adjusts the position or orientation of that interpolation point, or adds intermediate points for avoidance, until all interpolation points satisfy the constraints. Through the above interpolation and verification process, the rule engine generates a continuous, smooth, and collision-free robot motion trajectory from the starting point through all critical path points to the ending point. Finally, based on the standard procedures and logical instructions defined in the process template, the rule engine converts the robot motion trajectory into motion instructions recognizable by the robot controller, and combines these with the logical instructions to generate the complete robot motion program.
[0046] Therefore, the rule engine automatically calls the corresponding process template based on the user-selected process type, and automatically completes path interpolation and kinematic verification by combining critical path points, eliminating the need for manual programming by the user and significantly reducing the technical threshold and operational complexity of teaching. Furthermore, the process template predefines standard procedures, motion parameters, and logical instructions, ensuring the standardization and rationality of the generated program. In addition, path interpolation combined with kinematic constraints ensures that the generated trajectory is smooth, continuous, collision-free, and meets the robot's kinematic requirements, guaranteeing the safety and stability of subsequent actual operation.
[0047] In one embodiment, generating a robot motion program based on the critical path points and the selected process type using the rule engine built into the digital platform includes: The rule engine identifies the process type selected by the user and calls the process template corresponding to the process type from the predefined process template library. The process template defines the standard process flow, motion parameters and logical instructions. Specifically, after defining critical path points through the graphical interface, the user selects the process type corresponding to the current operation in the process type selection area on the graphical interface, such as "transportation process," "welding process," or "assembly process." The rule engine identifies the selected process type and retrieves the corresponding process template from the predefined process template library. The process template library is pre-stored in the storage module of the digital platform and contains standard flow templates for various common robotic processes. Each process template defines the standard flow of that process; for example, the standard flow for a transport process is "grab → lift → translate → lower → release." It also defines the motion parameters of the process, such as the maximum speed, acceleration, and jerk of each robot joint, as well as the speed multiplier of the end effector under no-load and load conditions. Furthermore, it defines the logical instructions required for the process, such as gripper closing and opening instructions in a transport process, and welding machine start and stop instructions in a welding process. The process templates provide standardized process specifications for subsequent path interpolation and program generation, ensuring that the generated program meets the operational requirements of the specific process.
[0048] Therefore, the rule engine automatically calls the corresponding process template based on the process type selected by the user, eliminating the need for manual configuration of process parameters and reducing operational complexity. At the same time, the process template predefines standard procedures, motion parameters, and logical instructions, ensuring the standardization and rationality of the generated program, and guaranteeing consistency and repeatability of programs generated by different users for the same process.
[0049] The rule engine performs path interpolation based on the critical path points and the process template, combined with kinematic constraints, to generate a continuous robot motion trajectory, and generates the robot motion program based on the robot motion trajectory.
[0050] Specifically, after the rule engine invokes the process template corresponding to the process type selected by the user, it begins path interpolation calculation by combining the user-defined critical path points, namely gripping points, placement points, and intermediate points. The rule engine first constructs a path point sequence based on the critical path points and sets the motion speed between each path point based on the motion parameters defined in the process template. Subsequently, the rule engine uses a preset interpolation algorithm to generate continuous position and attitude curves between path points, such as cubic spline interpolation or fifth-order polynomial interpolation, to ensure smooth trajectory and meet velocity and acceleration constraints. During the interpolation process, the rule engine also verifies and corrects the interpolation results using kinematic constraints. These kinematic constraints include: inverse kinematics calculation, which maps the Cartesian space pose of the end effector to the joint angle values of each robot joint at each interpolation point; joint limit checks, which verify whether the joint angle values at each interpolation point are within the physical limit range of the robot joints; and collision detection, which verifies whether the robot collides with obstacles in the surrounding environment at each interpolation point and during its movement. If an interpolation point does not satisfy the above kinematic constraints, the rule engine automatically adjusts the position or orientation of that interpolation point, or adds intermediate points for avoidance, until all interpolation points satisfy the constraints. Through the above interpolation and verification process, the rule engine generates a continuous, smooth, and collision-free robot motion trajectory from the starting point through all critical path points to the endpoint. Finally, based on the standard flow and logical instructions defined in the process template, the rule engine converts the robot motion trajectory into motion instructions that the robot controller can recognize, and combines the logical instructions to generate a complete robot motion program. For example, in a material handling process, the generated robot motion program includes: instructions to move above the gripper point, instructions to descend to the gripper point, instructions to close the gripper, instructions to raise to a safe height, instructions to translate above the placement point, instructions to descend to the placement point, instructions to open the gripper, and instructions to raise back to a safe height.
[0051] Therefore, the rule engine automatically completes path interpolation and kinematic verification by combining critical path points and process templates, eliminating the need for manual programming by the user and significantly reducing the technical threshold and operational complexity of teaching. Simultaneously, by incorporating kinematic constraints into path interpolation, it ensures that the generated trajectory is smooth, continuous, collision-free, and meets the robot's kinematic requirements, guaranteeing the safety and stability of subsequent actual operation.
[0052] S140. Import the robot motion program into the virtual model for simulation verification, and make corresponding adjustments based on the verification results; Specifically, after the digital platform generates the robot's motion program through a rules engine, it imports the program into the virtual model of the offline programming software for simulation. The offline programming software has a built-in simulation engine that drives the joints in the virtual model line by line according to the instruction sequence in the robot's motion program, simulating the robot's operation under actual working conditions. During the simulation, the offline programming software performs multiple verification analyses in parallel. Collision detection constructs a hierarchical structure of geometric bounding volumes of the robot virtual model, workpiece virtual model, and surrounding environment virtual model. In each simulation step, the spatial distance between these bounding volumes is calculated. If the distance is less than a preset safety threshold, a collision risk is identified. Reachability analysis traverses the end effector poses corresponding to all critical path points to determine if a feasible inverse kinematic solution exists. If the inverse solution for a pose exceeds joint limits or fails to converge, the path point is deemed unreachable. Singularity checking calculates the determinant of the robot's Jacobian matrix and monitors whether it approaches zero during simulation. If it approaches zero, the robot is considered to have passed through a singularity point. Trajectory smoothness verification calculates the velocity, acceleration, and jerk values of each joint between adjacent interpolation points to determine if any conditions exceed a preset threshold.
[0053] When any anomaly is detected during the simulation verification, the digital platform prominently displays the anomaly type and corresponding adjustment prompts in the graphical interface. For example, if a collision risk is detected, the area where the collision occurred is highlighted in red in the graphical interface, with the prompt "Robot J4 axis has collided with the worktable, please adjust the intermediate point position"; if an unreachable point is detected, it is highlighted in yellow, with the prompt "Placement point is outside the robot's working range, please move the point inward." Based on the adjustment prompts, the user adjusts the position or orientation of the critical path points in the graphical interface, or adds new intermediate points to optimize the path. The digital platform responds to the user's adjustments, regenerates a new robot motion program based on the adjusted critical path points using the rule engine, and imports the new program back into the virtual model for simulation verification. This iterative process is repeated until all verification items pass and the simulation verification is free of any anomalies.
[0054] Therefore, importing the robot motion program into a virtual model for simulation enables multi-dimensional comprehensive verification, including collision detection, reachability analysis, singularity checking, and trajectory smoothness verification. This allows for the comprehensive identification of potential risks before program deployment. Furthermore, the iterative adjustment and re-verification mechanism ensures the safety and reliability of the final deployed program, avoiding risks such as equipment collisions and production accidents caused by program defects, thus improving the safety and reliability of teaching operations.
[0055] In one embodiment, the step of importing the robot motion program into the virtual model for simulation verification and making corresponding adjustments based on the verification results includes: The robot motion program is imported into the virtual model for simulation to perform collision detection, reachability analysis, singularity check, and trajectory smoothness verification. Specifically, after the digital platform generates the robot's motion program through a rules engine, it imports the program into the virtual model of the offline programming software for simulation. The offline programming software has a built-in simulation engine that drives the joints in the virtual model line by line according to the instruction sequence in the robot's motion program, simulating the robot's operation under actual working conditions. During the simulation, the offline programming software performs multiple verification analyses in parallel. Collision detection constructs a hierarchical structure of geometric bounding volumes for the robot, workpiece, and surrounding environment virtual models. In each simulation step, the spatial distance between these bounding volumes is calculated. If the distance is less than a preset safety threshold, a collision risk is identified, and the location and time of the collision are recorded. Reachability analysis iterates through the end effector poses corresponding to all critical path points to determine if a feasible inverse kinematic solution exists. If the inverse solution for a pose exceeds joint limits or fails to converge, the path point is deemed unreachable. Singularity checking calculates the determinant of the robot's Jacobian matrix and monitors whether it approaches zero during simulation. If it approaches zero, the robot is considered to have passed a singularity point, in which case some motion directions will lose control. Trajectory smoothness verification calculates the velocity, acceleration, and jerk values of each joint between adjacent interpolation points to determine if any exceed a preset threshold. If such exceedances occur, the trajectory is deemed unsmooth. Through these multi-dimensional simulation verifications, the digital platform can comprehensively evaluate the safety and feasibility of the robot's motion program in actual operation.
[0056] Therefore, by importing the robot motion program into the virtual model for simulation, a multi-dimensional comprehensive verification of collision detection, reachability analysis, singularity checking, and trajectory smoothness verification is achieved. Potential risks can be fully identified before the program is released, avoiding risks such as equipment collisions and production accidents caused by program defects.
[0057] When the simulation verification detects an anomaly, the anomaly type and corresponding adjustment prompts are displayed in the graphical interface; Specifically, when any anomaly is detected in the simulation verification, the digital platform prominently displays the anomaly type and corresponding adjustment prompts in the graphical interface. When a collision risk is detected, the simulation interface highlights the collision area in red and prompts the user to adjust path points to avoid the collision. When an unreachable point is detected, the simulation interface highlights the unreachable point in yellow and prompts the user to adjust the point's position or orientation to bring it within the robot's working range. When a singularity is detected, the simulation interface highlights the area containing the singularity in orange and prompts the user to adjust the path or add intermediate points to avoid the singular area. When speed, acceleration, or jerk exceeds limits during trajectory smoothness verification, the simulation interface highlights the exceeding trajectory segment in blue and prompts the user to adjust motion parameters or add transition points to optimize trajectory smoothness. Through these color-coded highlights and clear text prompts, users can intuitively and quickly identify various anomalies and their locations, providing clear guidance for subsequent corrective operations.
[0058] Therefore, it can be seen that through the color-coded highlighting display mechanism, users can intuitively and quickly identify various anomalies and their locations detected in the simulation verification. The clear text prompts provide users with specific correction directions, improving the efficiency and accuracy of users correcting paths based on the adjustment prompts.
[0059] In response to the user's adjustment operation on the critical path points according to the adjustment prompt, the robot motion program is regenerated and simulation verification is performed until the simulation verification is successful.
[0060] Specifically, users adjust the position or orientation of critical path points or add new intermediate points to optimize the path in the graphical interface, based on the adjustment prompts. The digital platform responds to the user's adjustments, regenerates a new robot motion program through the rule engine based on the adjusted critical path points, and imports the new program back into the virtual model for simulation verification. This iterative process is repeated until all verification items pass and the simulation verification is error-free. During this process, the graphical interface displays the current simulation verification progress and results in real time, allowing users to clearly understand the pass / fail status of each verification. Through this closed-loop iterative mechanism, the final generated robot motion program is ensured to pass verification completely in the simulation environment, providing a reliable guarantee for actual operation.
[0061] Therefore, it can be seen that by using an iterative adjustment and re-verification mechanism, the final program is ensured to be safe and reliable, avoiding risks such as equipment collisions and production accidents caused by program defects, and significantly improving the safety and reliability of teaching operations.
[0062] S150. After the simulation verification is passed, the robot motion program is sent to the robot controller to execute the task.
[0063] Specifically, once the robot motion program passes simulation verification in the virtual model without any anomalies, the digital platform prepares to send the robot motion program to the robot controller for actual execution. Before executing the sending operation, the digital platform first sends a status query command to the robot controller via the industrial Ethernet communication protocol to obtain the robot's current operating status. After receiving and parsing the status information, the digital platform determines whether the robot meets the safety conditions for program download, i.e., the robot is in a disabled state and without faults. A disabled state means that the robot's servo drives are inactive; at this time, the servo motors of each joint are not powered, and the robot body will not move autonomously, thus avoiding safety accidents caused by the robot suddenly starting during program download. If the digital platform determines that the robot is currently in an enabled state or has a fault, the digital platform prohibits the execution of the program sending operation and displays a prompt message in the graphical interface. The user needs to switch the robot to a disabled state according to the prompt or troubleshoot the fault and try again. Once the digital platform confirms that the robot is in a disabled state and fault-free, thus meeting the program download conditions, it initiates the program distribution process. The platform encapsulates the robot motion program according to the communication protocol and data format supported by the robot controller and transmits the program file to the robot controller via the industrial Ethernet communication protocol. Upon receiving the robot motion program file, the robot controller automatically parses it, verifies the correctness of the file format and the validity of the instructions, and loads the parsed program data into the program storage area in the controller's memory. If the program loading is successful, the robot controller returns a successful loading confirmation message to the digital platform. Subsequently, the user can go to the robot's site and start the program via a physical teach pendant or control cabinet, and the robot will begin executing the robot motion program to perform its tasks.
[0064] Therefore, querying the robot controller status via a digital platform before program delivery confirms that the robot is in a disabled state and without faults, fully ensuring the safety of the program delivery process and avoiding the risk of accidental startup caused by delivering the program when the robot is enabled. Furthermore, through automated status confirmation, program transmission, and loading feedback mechanisms, the program delivery process is made intelligent and reliable, ensuring that the program can be safely and completely transmitted and correctly loaded into the robot controller, providing a reliable guarantee for subsequent actual operations.
[0065] In one embodiment, after the simulation verification is passed, the step of sending the robot motion program to the robot controller to execute the task includes: After the simulation verification is passed, the status of the robot controller is queried through the digital platform to confirm that the robot is in a disabled state and has no faults. Specifically, once the robot motion program passes simulation verification in the virtual model without any anomalies, the digital platform prepares to send the robot motion program to the robot controller for actual execution. Before executing the sending operation, the digital platform first sends a status query command to the robot controller via the industrial Ethernet communication protocol to obtain the robot's current operating status. The robot controller responds to the status query command and returns status information to the digital platform. This status information includes at least the robot's current enabled state and whether there are any fault alarms. After receiving and parsing the status information, the digital platform determines whether the robot meets the safety conditions for program download, i.e., the robot is in an disabled state and without faults. The disabled state means that the robot's servo drives are in an inactive state. At this time, the servo motors of each joint of the robot are not powered, and the robot body will not move autonomously, thus avoiding safety accidents caused by the robot suddenly starting during the program download process. If the digital platform determines that the robot is currently in an enabled state or has a malfunction, the digital platform will prohibit the execution of program-issued operations and display prompts in the graphical interface, such as "The robot is currently in an enabled state, please turn it off and try again" or "The robot has a malfunction alarm, please troubleshoot and try again." Users need to switch the robot to an disabled state or troubleshoot the malfunction and try again according to the prompts.
[0066] Therefore, by querying the robot controller status through the digital platform before the program is issued, and confirming that the robot is in a disabled state and without faults, the safety of the program issuance process is fully guaranteed. This avoids the risk of accidental startup caused by issuing the program when the robot is in an enabled state, and at the same time ensures that the program is issued to a normally functioning controller, avoiding program loading failure due to equipment failure.
[0067] After confirming that the program download conditions are met, the robot motion program is transmitted to the robot controller for parsing and loading.
[0068] Specifically, once the digital platform confirms that the robot is in a disabled state and fault-free, i.e., meets the program download conditions, the digital platform initiates the program distribution process. The digital platform encapsulates the robot motion program according to the communication protocol and data format supported by the robot controller, and transmits the program file to the robot controller via the industrial Ethernet communication protocol. After receiving the robot motion program file, the robot controller automatically parses the program file, verifies the correctness of the file format and the validity of the instructions, and loads the parsed program data into the program storage area in the controller's memory. If an error occurs during program parsing or loading, such as incompatibility between the program format and the controller version or the presence of illegal instructions, the robot controller returns a loading failure message to the digital platform. Upon receiving this message, the digital platform displays the error information in the graphical interface, prompting the user to check the program format or re-distribute it. If the program loads successfully, the robot controller returns a successful loading confirmation message to the digital platform, and the digital platform displays a "Program download complete, successfully loaded" message in the graphical interface, notifying the user that the program is ready. Subsequently, the user can go to the robot site and start the program via a physical teach pendant or control cabinet, and the robot will begin executing the robot motion program to perform its tasks.
[0069] Therefore, the automated program transmission and loading feedback mechanism enables intelligent and reliable program distribution, ensuring the program is safely and completely transmitted and correctly loaded into the robot controller, providing a reliable guarantee for subsequent operations. Simultaneously, the confirmation feedback after successful loading allows users to promptly obtain program status information, facilitating subsequent task scheduling.
[0070] In addition, a review process is included after simulation verification is passed but before the robot motion program is issued. Specifically, the digital platform presents a review submission interface to the user. The user fills in process change remarks on this interface and submits a review application. The digital platform sends the review application, along with the corresponding robot motion program details, simulation verification results, and user remarks, to the production line manager's review terminal. The production line manager reviews the program details, simulation verification results, and user remarks on the review terminal. After confirming that the robot motion program meets process specifications and safety requirements, the manager approves it on the review terminal. Only after receiving the approval confirmation can the digital platform proceed with the subsequent program issuance. If the production line manager's review fails, the digital platform returns the program to the user. The user reviews the review comments in a graphical interface and readjusts the critical path points or motion parameters based on the comments before resubmitting for review. This review process ensures that the issued robot motion program is confirmed by the process manager and meets production line specifications, improving the standardization and security of program management.
[0071] After the robot's motion program is successfully loaded, the digital platform prompts the user in the graphical interface to start the program on-site via a teach pendant or control cabinet, without providing remote start functionality. Although remote start is technically possible, for operational safety reasons, remotely starting the robot's program via the digital platform is prohibited. Users must be physically present at the robot's work site, confirming that the environment is safe and no personnel have entered the robot's workspace, before starting the program via a physical teach pendant or control cabinet. This safety restriction effectively prevents accidents caused by remote start-ups that may result in operators failing to detect abnormalities in time, significantly improving the safety of robot operations.
[0072] In one embodiment, after the simulation verification is passed and the robot motion program is sent to the robot controller to execute the task, the method further includes: Create new process templates or modify parameters of existing process templates using the template editor provided by the digital platform; Specifically, the digital platform also provides a template editor function, which is for users with process planning permissions and is used to expand and maintain process templates in the process template library. After completing the teaching and execution of a robot motion program, users can access the "Template Editor" module through the graphical interface of the digital platform. The template editor provides a graphical process template editing interface, in which users can view a list of all existing process templates in the current process template library and their detailed parameter configurations. If a user needs to create a new process template, such as for a new assembly process, the user clicks the "New Template" button and defines the following parameters of the new template in the editing interface: process name and identifier, standard process flow step sequence, motion parameters corresponding to each step, including speed, acceleration, jerk, etc., and the logical instruction sequence to be executed for each step and their execution order. If a user needs to modify an existing process template, such as optimizing the motion speed parameters in the material handling process to adapt to new material characteristics, the user can select the target template in the template list and click the "Edit" button. After entering the editing interface, the user can adjust the motion parameter values in the template, such as changing the handling speed from 1000mm / s to 800mm / s, or modifying the timing of logic instructions, such as adding a delay instruction after the grippers close to ensure secure clamping. Through the template editor described above, users can flexibly expand and optimize the process template library according to actual production needs.
[0073] Therefore, it can be seen that through the template editor provided by the digital platform, users can flexibly create new process templates or modify the parameters of existing process templates, enabling the system to adapt to the changing needs of different production processes. It has strong scalability and adaptability, and there is no need to repeat low-level programming for each new process.
[0074] The created or modified process template is saved to the process template library for the rule engine to call during subsequent teaching processes.
[0075] Specifically, after a user completes the creation or modification operation, they click the "Save" button. The digital platform then stores the newly created or modified process template in the process template library according to a preset data format. The template data in the process template library is assigned a version number and update timestamp upon saving for subsequent traceability and management. After successful saving, the newly created or modified process template is loaded into the rule engine's list of callable templates. In subsequent teaching processes, when the user again teaches the robot through the digital platform, the rule engine can call the newly created or modified process template from the updated process template library and automatically generate a robot motion program that meets the new process requirements based on the user-defined critical path points and the new template. For example, after a user creates and saves a new "grinding process" template, in subsequent grinding operation teaching, the user will see the "grinding process" option in the process type selection area of the graphical interface. After selecting it, the rule engine will call the new template to generate the corresponding grinding program.
[0076] Therefore, once the created or modified process template is saved to the process template library, the rule engine can call the updated template automatic generation program in subsequent teaching processes, which improves the versatility and reusability of the system in different application scenarios and reduces the workload and complexity of subsequent teaching.
[0077] In one embodiment, the robot teaching method based on a digital platform also supports multi-user collaborative teaching. When a user encounters a complex process scenario during teaching that makes it difficult to independently define a path or generate a program, the user can initiate a collaborative teaching request through the "Help" button in the graphical interface of the digital platform. The digital platform responds to the user's click of the "Help" button by generating an encrypted unique identifier. This identifier has time-sensitive and one-time-use characteristics to ensure the security of the collaborative process. The user sends the encrypted unique identifier offline to the assisting person, such as through instant messaging or telephone. After the assisting person enters the encrypted unique identifier on their digital platform terminal, the digital platform verifies the identifier. Upon successful verification, the assisting person's digital platform terminal establishes a data synchronization connection with the initiating user's digital platform and synchronously loads the initiating user's current virtual scene data. The virtual scene data includes a virtual model, a work scene model, and user-defined critical path point information. In the virtual scene synchronously obtained on their terminal, the assisting person can continue to define critical path points, select process types, and generate robot motion programs, with the operation process consistent with that of the initiating user. After the assistant completes the demonstration, the generated complete solution is sent to the initiating user through the digital platform. The initiating user receives the solution in the digital platform and loads it into their own virtual scene, and then can execute the subsequent simulation verification and program distribution process.
[0078] Therefore, the multi-person collaborative teaching function allows professional technicians to remotely guide or directly assist on-site operators in completing the teaching of complex processes. This effectively solves the problems of insufficient skills among on-site operators or difficulties in teaching complex scenarios. Furthermore, it eliminates the need for professional technicians to be physically present, reducing technical support and time costs. In addition, the encrypted unique identifier mechanism ensures the security and controllability of the collaborative process, preventing unauthorized access. By transmitting the complete solution from the assisting user's end to the initiating user's end, convenient handover of collaborative results is achieved, ensuring the integrity and continuity of the teaching process.
[0079] The aforementioned robot teaching method based on a digital platform acquires robot status data in real time through the digital platform and synchronously updates the virtual model in the offline programming software. This eliminates the deviation between the virtual model and the real environment in traditional offline programming, ensuring program accuracy and adapting to dynamic environmental changes without cumbersome on-site calibration. Simultaneously, users can define critical path points through intuitive interactive operations via a graphical interface, requiring no programming or robot kinematics knowledge, significantly lowering the technical barrier to teaching and enabling non-professional programmers to quickly complete robot teaching. Furthermore, based on critical path points and process type, a rule engine automatically generates robot motion programs, and combined with simulation verification and iterative adjustment mechanisms, constructs a complete automated closed loop from path definition, program generation, simulation correction to safe deployment, improving the intelligence level and operational safety of the teaching process. Therefore, this invention solves the core problems of existing robot teaching technologies, such as model deviation, high barriers to entry, and insufficient intelligence, achieving fast, accurate, safe, and easy-to-deploy robot teaching. It has significant technological advancements and broad industrial application value, belonging to the intelligent manufacturing equipment industry.
[0080] Figure 3 This is a schematic block diagram of a robot teaching device 300 based on a digital platform provided in an embodiment of the present invention. Figure 3 As shown, corresponding to the above-described robot teaching method based on a digital platform, the present invention also provides a robot teaching device 300 based on a digital platform. This robot teaching device 300 includes a unit for executing the above-described robot teaching method based on a digital platform, and the device can be configured in a server. Specifically, please refer to... Figure 3 The robot teaching device 300 based on the digital platform includes an acquisition unit 301, a segmentation and fusion unit 302, a combination and calculation unit 303, a judgment unit 304, and an execution unit 305.
[0081] The acquisition and update unit 301 is used to acquire the robot's real-time status data through the digital platform and synchronously update the virtual model in the offline programming software based on the real-time status data. The response definition unit 302 is used to respond to the user's interactive operation on the graphical interface of the digital platform and define the critical path points of the robot operation in the virtual model. The generation unit 303 is used to generate a robot motion program based on the critical path points and the selected process type, using the rule engine built into the digital platform. The verification and adjustment unit 304 is used to import the robot motion program into the virtual model for simulation verification, and make corresponding adjustments based on the verification results; The execution unit 305 is used to send the robot motion program to the robot controller to execute the task after the simulation verification is passed.
[0082] In one embodiment, the acquisition update unit 301 includes: The acquisition module is used by the digital platform to acquire real-time status data from the robot controller via the industrial Ethernet communication protocol. The real-time status data includes joint angles, end effector poses, Cartesian coordinates, robot operating modes, and fault information. The push update module is used by the digital platform to push the real-time status data to the offline programming software in real time through the application programming interface, and update the corresponding joint angles and end poses in the virtual model so that the virtual model matches the real environment.
[0083] In one embodiment, the response definition unit 302 includes: The operation module is used by the digital platform to provide drag-and-drop operation functions for the robot end effector in the virtual model and / or click-to-add path points function through a graphical interface; The definition module is used to respond to the user's drag or click operation. In the virtual model, grab points, placement points and intermediate points are defined in sequence to generate critical path points.
[0084] In one embodiment, the generation unit 303 includes: The identification and invocation module is used by the rule engine to identify the process type selected by the user and to call the process template corresponding to the process type from the predefined process template library. The process template defines the standard process flow, motion parameters and logical instructions of the process. The generation module is used by the rule engine to perform path interpolation based on the key path points and the process template, combined with kinematic constraints, to generate a continuous robot motion trajectory, and to generate the robot motion program based on the robot motion trajectory.
[0085] In one embodiment, the verification adjustment unit 304 includes: The import verification module is used to import the robot motion program into the virtual model for simulation operation, in order to perform collision detection, reachability analysis, singularity check and trajectory smoothness verification. The display module is used to display the anomaly type and corresponding adjustment prompts in the graphical interface when the simulation verification detects an anomaly. The adjustment module is used to respond to the user's adjustment operation on the key path points according to the adjustment prompt, regenerate the robot motion program and perform simulation verification until the simulation verification is successful.
[0086] In one embodiment, the issuing execution unit 305 includes: The query and confirmation module is used to query the status of the robot controller through the digital platform after the simulation verification is passed, and to confirm that the robot is in a disabled state and has no faults. The transmission module is used to transmit the robot motion program to the robot controller after confirming that the program download conditions are met, so that the robot controller can parse and load it.
[0087] In one embodiment, the device further includes: The creation unit is used to create new process templates or modify the parameters of existing process templates through the template editor provided by the digital platform. The saving unit is used to save the created or modified process template to the process template library for the rule engine to call during subsequent teaching.
[0088] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned robot teaching device 300 based on the digital platform and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.
[0089] The aforementioned robot teaching device 300 based on a digital platform can be implemented as a computer program, which can be used in, for example... Figure 4 It runs on the computer device shown.
[0090] Please see Figure 4 , Figure 4 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 can be a server, wherein the server can be a standalone server or a server cluster composed of multiple servers.
[0091] See Figure 4 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.
[0092] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a robot teaching method based on a digital platform.
[0093] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0094] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a robot teaching method based on a digital platform.
[0095] This network interface 505 is used for network communication with other devices. Those skilled in the art will understand that... Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0096] The processor 502 is used to run a computer program 5032 stored in the memory to perform the following steps: The system acquires real-time status data of the robot through a digital platform and updates the virtual model in the offline programming software synchronously based on the real-time status data. Responding to user interactions via the graphical interface of the digital platform, it defines critical path points for the robot's operation in the virtual model. Based on the critical path points and the selected process type, it generates a robot motion program using the rule engine built into the digital platform. The robot motion program is imported into the virtual model for simulation verification, and adjustments are made based on the verification results. After successful simulation verification, the robot motion program is sent to the robot controller to execute the task.
[0097] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0098] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0099] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein when executed by a processor, the computer program causes the processor to perform the following steps: The system acquires real-time status data of the robot through a digital platform and updates the virtual model in the offline programming software synchronously based on the real-time status data. Responding to user interactions via the graphical interface of the digital platform, it defines critical path points for the robot's operation in the virtual model. Based on the critical path points and the selected process type, it generates a robot motion program using the rule engine built into the digital platform. The robot motion program is imported into the virtual model for simulation verification, and adjustments are made based on the verification results. After successful simulation verification, the robot motion program is sent to the robot controller to execute the task.
[0100] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.
[0101] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0102] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0103] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0104] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0105] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A robot teaching method based on a digital platform, characterized in that, include: The robot's real-time status data is acquired through a digital platform, and the virtual model in the offline programming software is updated synchronously based on the real-time status data. In response to user interaction with the graphical interface of the digital platform, the key path points of the robot operation are defined in the virtual model. Based on the critical path points and the selected process type, a robot motion program is generated through the rule engine built into the digital platform. The robot motion program is imported into the virtual model for simulation verification, and adjustments are made accordingly based on the verification results. After the simulation verification is successful, the robot motion program is sent to the robot controller to execute the task.
2. The robot teaching method based on a digital platform according to claim 1, characterized in that, The step of acquiring real-time status data of the robot through a digital platform and synchronously updating the virtual model in the offline programming software based on the real-time status data includes: The digital platform obtains real-time status data from the robot controller via the industrial Ethernet communication protocol. The real-time status data includes joint angles, end effector poses, Cartesian coordinates, robot operating modes, and fault information. The digital platform pushes the real-time status data to the offline programming software in real time through the application programming interface, and updates the corresponding joint angles and end poses in the virtual model so that the virtual model matches the real environment.
3. The robot teaching method based on a digital platform according to claim 1, characterized in that, The response to user interaction with the graphical interface of the digital platform, defining critical path points for robot operations in the virtual model, includes: The digital platform provides drag-and-drop functionality for the robot end effector in the virtual model and / or the function of clicking to add path points through a graphical interface. In response to user drag or click operations, grab points, placement points, and intermediate points are defined sequentially in the virtual model to generate critical path points.
4. The robot teaching method based on a digital platform according to claim 1, characterized in that, The process of generating a robot motion program based on the critical path points and the selected process type, using the rule engine built into the digital platform, includes: The rule engine identifies the process type selected by the user and calls the process template corresponding to the process type from the predefined process template library. The process template defines the standard process flow, motion parameters and logical instructions. The rule engine performs path interpolation based on the critical path points and the process template, combined with kinematic constraints, to generate a continuous robot motion trajectory, and generates the robot motion program based on the robot motion trajectory.
5. The robot teaching method based on a digital platform according to claim 1, characterized in that, The step of importing the robot motion program into the virtual model for simulation verification and making corresponding adjustments based on the verification results includes: The robot motion program is imported into the virtual model for simulation to perform collision detection, reachability analysis, singularity check, and trajectory smoothness verification. When the simulation verification detects an anomaly, the anomaly type and corresponding adjustment prompts are displayed in the graphical interface; In response to the user's adjustment operation on the critical path points according to the adjustment prompt, the robot motion program is regenerated and simulation verification is performed until the simulation verification is successful.
6. The robot teaching method based on a digital platform according to claim 1, characterized in that, After the simulation verification is passed, the robot motion program is sent to the robot controller to execute the task, including: After the simulation verification is passed, the status of the robot controller is queried through the digital platform to confirm that the robot is in a disabled state and has no faults. After confirming that the program download conditions are met, the robot motion program is transmitted to the robot controller for parsing and loading.
7. The robot teaching method based on a digital platform according to claim 1, characterized in that, After the simulation verification is passed, and the robot motion program is sent to the robot controller to execute the task, the process further includes: Create new process templates or modify parameters of existing process templates using the template editor provided by the digital platform; The created or modified process template is saved to the process template library for the rule engine to call during subsequent teaching processes.
8. A robot teaching device based on a digital platform, characterized in that, include: The acquisition and update unit is used to acquire real-time status data of the robot through a digital platform and synchronously update the virtual model in the offline programming software based on the real-time status data. The response definition unit is used to respond to the user's interactive operation on the graphical interface of the digital platform and to define the critical path points of the robot operation in the virtual model. The generation unit is used to generate a robot motion program based on the critical path points and the selected process type, using the rule engine built into the digital platform. The verification and adjustment unit is used to import the robot motion program into the virtual model for simulation verification, and make corresponding adjustments based on the verification results. The execution unit is used to send the robot motion program to the robot controller to execute the task after the simulation verification is passed.
9. A computer device, characterized in that, The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 7.
