Robot, control method thereof, control device and computer readable storage medium

By setting a preset driving trajectory for the robot in factory automation operations and judging the return-to-zero trajectory based on the position, the problem of the robot colliding with other robots when returning to the zero position is solved, improving safety and ease of operation.

CN115922686BActive Publication Date: 2024-10-01KUKA ROBOTICS MFG CHINA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111114579.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-23
Publication Date
2024-10-01
Estimated Expiration
2041-09-23

AI Technical Summary

Technical Problem

In factory automation operations, the robot is prone to collide with the robot on the previous workbench when returning to the zero position. The existing technology can only return along the original path and lacks collision avoidance measures.

Method used

By setting a preset driving trajectory, including the starting point, end point and separation point, the return to zero trajectory is determined based on the robot's position to avoid collision with the robot working on the workbench, and multiple return paths are provided to improve safety and maneuverability.

Benefits of technology

It effectively avoids collisions between the robot and other robots on the workbench, improves user experience and simplicity of operation, and ensures the safety of the robot's return to zero position.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115922686B_ABST
    Figure CN115922686B_ABST
Patent Text Reader

Abstract

The present invention provides a robot and a control method, a control device and a computer-readable storage medium. The robot can travel along a preset driving track, and the preset driving track is provided with a starting point, an end point and a separation point between the starting point and the end point. The control method of the robot includes: after obtaining a return-to-zero position instruction, judging the position of the robot; when the robot is between the starting point and the separation point, controlling the robot to travel from the current position to the direction of the starting point to the first return-to-zero point, and when the robot is at the separation point or between the separation point and the end point, controlling the robot to travel from the current position to the direction of the end point to the second return-to-zero point. The method provides the robot with two return-to-zero position routes in opposite directions according to the positional relationship between the robot and the separation point, so that the system can control the robot to return to the zero position according to one of the return-to-zero position routes according to the position of the robot, thereby avoiding the risk of collision with other robots working on the workbench.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of robotics technology, and in particular, relates to a robot and a control method, a control device and a computer-readable storage medium thereof. Background Art

[0002] At present, in the automated operations in factories, a robot may need to complete several processes and needs to enter different workstations to work. In this way, multiple robots will work on the same workbench in sequence. However, when a robot enters the next workstation after working on a certain workstation, some emergencies may occur, causing the robot to return to the zero position and wait. In the prior art, the robot is usually controlled to return along the original route, which makes it easy for the robot to collide with the robot on the previous workstation.

[0003] Therefore, inventing a robot control method so that the robot can select different return-to-zero trajectories according to different positions after obtaining the return-to-zero instruction to avoid collision with other robots in working state has become an urgent problem to be solved. Summary of the invention

[0004] The present invention aims to solve or improve at least one of the above-mentioned technical problems.

[0005] A first aspect of the present invention is to provide a method for controlling a robot.

[0006] A second aspect of the present invention is to provide a control device for a robot.

[0007] A third aspect of the present invention is to provide a robot.

[0008] A fourth aspect of the present invention is to provide a computer-readable storage medium.

[0009] The technical solution of the first aspect of the present invention provides a robot control method, wherein the robot can travel along a preset driving trajectory, wherein a starting point, an end point and a dividing point between the starting point and the end point are provided on the preset driving trajectory, and the robot control method comprises: after obtaining a return-to-zero position instruction, judging the position of the robot; when the robot is between the starting point and the dividing point, controlling the robot to travel from the current position toward the starting point to a first return-to-zero point; and when the robot is at the dividing point or between the dividing point and the end point, controlling the robot to travel from the current position toward the end point to a second return-to-zero point.

[0010] According to the robot control method provided by the present invention, firstly, a preset driving track can be set for the robot by a specific program or teaching method, so that the robot can travel on the preset driving track, the preset driving track includes a starting point and an end point, and a separation point is provided between the starting point and the end point. Further, the separation point is a workbench on the driving track, so that when the robot obtains the return to zero position instruction, the robot can determine the robot's return to zero position trajectory according to the robot's position. Specifically, when the robot is located between the starting point and the separation point, it means that the robot has not yet reached the position of the workbench. After receiving the return to zero position instruction, the robot is controlled to return from the current position to the direction of the starting point to the first return to zero point, so as to avoid collision with the robot working on the workbench. In the return process, the robot can return to the starting point along the original path of the preset driving track, or return to the first return to zero point along the programmed track. Among them, the first return to zero point can be the starting point or not; when the robot is located between the separation point and the end point, it means that the robot has passed the position of the workbench. After receiving the return to zero position instruction, the robot is controlled to travel from the current position to the direction of the end point to the second return to zero point, so as to avoid collision with the robot working on the workbench. Of course, in the process of driving to the second return to zero point, it is also possible to drive to the end point along the preset driving trajectory, or to drive to the second return to zero point along the programmed trajectory. Among them, the second return to zero point may be the end point or not; in the actual working process, this method uses the workbench as the dividing point, and at the same time, according to the positional relationship between the robot and the dividing point, provides the robot with two return to zero routes in opposite directions, so that the system can control the robot to return to the zero position according to one of the return to zero routes according to the position of the robot, avoiding the risk of the prior art that the robot can only be controlled to return along the original route of the driving trajectory and collide with the other robots working on the workbench. In addition, in the process of the robot returning to zero, different return paths can be programmed for the robot according to actual conditions, so that a variety of different driving trajectories are provided for the robot to return to zero, which improves the user experience and provides the robot with more controllability.

[0011] In the above technical solution, the step of controlling the robot to travel from the current position to the starting point to the first return to zero point specifically includes: controlling the robot to travel from the current position to the starting point along a preset driving trajectory to the starting point.

[0012] In this technical solution, the robot can be controlled to return to the starting point along the preset driving trajectory to return to the first zero point. Specifically, the preset driving trajectory for the robot can be generated by teaching and other methods. During the teaching process of the robot, the point sequence of multiple driving points on the preset trajectory is recorded, so that when the instruction to return to zero is received, the device can automatically sort the multiple driving points on the preset trajectory, and the robot can return to the starting point along the preset driving trajectory according to the point sequence on the preset driving trajectory. This solution only needs to control the robot to return to the starting point along the preset driving trajectory, without the need to set up expensive GPS positioning devices. The robot is controlled to return to the starting point along the preset driving trajectory to return to the first zero point, which ensures the safety of the robot's operation process and is also very simple for users to operate.

[0013] In the above technical solution, the step of controlling the robot to travel from the current position to the end point to the second return to zero point specifically includes: controlling the robot to travel from the current position to the end point along a preset travel trajectory to the end point.

[0014] In this technical solution, the robot can be controlled to advance along the preset driving track to the end point to return to the second return to zero point. Similarly, the point sequence of multiple driving points on the preset track can also be recorded during the teaching process of the robot, so that when the instruction to return to zero is received, the device can automatically sort the multiple driving points on the preset track, and the robot can advance to the second return to zero point according to the point sequence of multiple driving points on the preset driving track. This solution only needs to control the robot to advance along the preset driving track to the end point and return to the second return to zero point, without the need to set up expensive GPS positioning devices. The robot is controlled to advance along the preset driving track to the end point and return to the second return to zero point, which ensures the safety of the robot's operation process and is also very simple for users to operate.

[0015] In the above technical solution, the preset driving trajectory includes multiple first-class driving points located between the starting point and the dividing point and multiple second-class driving points located between the end point and the dividing point. The step of determining the position of the robot specifically includes: obtaining driving points close to the robot and determining the type of the adjacent driving points. When the adjacent driving points are determined to be first-class driving points, the robot is determined to be between the starting point and the dividing point. When the adjacent driving points are determined to be second-class driving points, the robot is determined to be between the end point and the dividing point.

[0016] In this technical solution, multiple first-class driving points can be set between the starting point and the dividing point, and multiple second-class driving points can be set between the end point and the dividing point by manual programming. In this way, after obtaining the return-to-zero position instruction, the control device can obtain the driving point adjacent to the robot according to the position of the robot, and judge the type of the adjacent driving point. When the adjacent driving point is a first-class driving point, it can be determined that the robot is between the starting point and the dividing point at this time, and the robot is controlled to drive to the first return-to-zero point in the direction of the starting point. When the adjacent driving point is a second-class driving point, it can be determined that the robot is between the dividing point and the end point at this time, and the robot is controlled to drive to the second return-to-zero point in the direction of the end point. Of course, in this solution, when teaching the robot, the point information of multiple driving points between the starting point and the end point can also be recorded. Specifically, the driving point between the starting point and the dividing point is recorded as the first-class driving point, and the driving point between the end point and the dividing point is recorded as the second-class driving point. In this way, after obtaining the return-to-zero position instruction, the robot's current position can also be determined. The present application marks the points on the preset driving trajectory with two different types of marks. In this way, when determining the position of the robot at a later stage, it is only necessary to determine the type of driving points close to the robot to determine the position of the robot. There is no need for expensive position sensors and positioning devices such as GPS, and the operation is very simple.

[0017] In the above technical solution, teaching information is obtained, and a preset driving trajectory is generated based on the teaching information.

[0018] In this technical solution, the robot can first be taught manually so that the device can obtain the teaching information, and then the teaching information is saved to determine the robot's preset driving route. The robot's preset driving trajectory is generated by teaching. Different preset driving trajectories can be generated for the robot according to the actual working conditions of the workshop, so that the robot can flexibly cope with various complex working environments.

[0019] In the above technical solution, the steps of obtaining teaching information and generating a preset driving trajectory based on the teaching information include: in the process of teaching the robot, determining the preset driving trajectory, as well as the starting point, end point and separation point of the preset driving trajectory based on the teaching information, setting multiple driving points on the preset driving trajectory, and recording the driving information of the robot at the driving points and separation points; wherein, when controlling the robot to drive along the preset driving trajectory, the robot is controlled to drive according to the multiple driving points and the driving information corresponding to the multiple driving points.

[0020] In this technical solution, a preset driving trajectory for the robot is generated through the process of teaching the robot, and multiple driving points on the driving trajectory are determined according to the preset driving trajectory and the starting point, end point and separation point on the preset driving trajectory. In this way, the driving information of multiple driving points on the driving trajectory can be recorded during the teaching process, so that the robot can be controlled to drive to the zero point according to the multiple driving points and the corresponding driving information during the later control of the robot to return to the zero position. Since this method records multiple driving points on the preset driving trajectory during the teaching process, the robot can return to the zero point position according to the driving information corresponding to the multiple driving points, ensuring the safety of the robot during the return process.

[0021] In the above technical solution, the preset driving trajectory includes multiple driving points, and the robot control method also includes: sorting all the driving points on the preset driving trajectory in order, and when controlling the robot to travel along the preset driving trajectory, controlling the robot to travel in sequence along all the driving points.

[0022] In this technical solution, after obtaining the instruction to return to zero position, the device can sort the multiple driving points on the preset driving track according to the order in the teaching process, so that when the robot is controlled to travel along the preset driving track, the robot can be controlled to travel to the first return to zero point or the second return to zero point in sequence along all the driving points. In this method, after the device obtains the instruction to return to zero position, the device can automatically sort the multiple driving points on the preset driving track, so that the robot can be controlled to return to zero point in sequence along the multiple driving points. The operation is simple and there is no need to use expensive position sensors and GPS positioning devices.

[0023] In the above technical solution, the control method of the robot also includes: obtaining increase and decrease information of driving points, updating the preset driving trajectory based on the increase and decrease information, and reordering the driving points on the updated preset driving trajectory; wherein, when controlling the robot along the preset driving trajectory, the robot is controlled to drive in sequence according to the reordered driving points.

[0024] In this technical solution, workers can add driving points or reduce existing driving points between any two adjacent driving points as needed. In this way, after the device obtains the increase and decrease information, the device can re-form a new preset track for the robot according to the increase and decrease information, and re-order all driving points on the new preset track. In this way, when the robot is controlled to return to the zero point along the preset track, the robot can be controlled to return to the zero point in sequence along multiple driving points on the new preset track. Since this method can arbitrarily increase or decrease driving points according to needs in the later stage, the robot can arbitrarily cope with complex working environments. That is, in the process of the robot returning to the zero position, when it is necessary to increase or decrease the robot's action at a certain position, it only needs to increase or decrease the corresponding driving points at this position, and then the device can re-order all the driving points that have been increased or decreased, so that when the robot drives to this position, the robot can be controlled to perform the corresponding action. This method will not cause the control device to be out of order due to the increase or decrease of driving points, and solves the robot's single route to return to the zero position, so that the robot can safely return to the zero position in various complex and changing working environments.

[0025] In the above technical solution, the process of controlling the robot to drive in sequence according to the re-ordered driving points includes: obtaining the point information of the current driving point, and controlling the robot to move to the next driving point based on the point information; wherein the point information includes one or more of the driving point name, Cartesian coordinate data, posture data, movement mode, speed during movement, and acceleration.

[0026] In this technical solution, when the robot is controlled to travel according to the re-ordered multiple driving points, the position information of each driving point is obtained, and then the robot moves to the next driving point in sequence according to the position information of each driving point, and then returns to the zero point. The position information includes the robot's movement speed, movement acceleration, movement mode, movement posture, and movement name and Cartesian coordinates of the point. Since the solution controls the robot to travel according to the driving information of each driving point, it is equivalent to controlling not only the robot's walking route, but also the walking posture, walking speed and other information of each driving point during the robot's walking process, avoiding collisions with other objects during the process of returning to the zero position. Of course, the position information of each driving point can also be saved during the teaching process, so that when the robot is controlled to return to the zero position, it can be ensured that the position information of each driving point passed by the robot during the return to zero process is consistent with the position information of each point during the robot teaching process, thereby improving the safety of the robot during the return to zero process.

[0027] In the above technical solution, the robot control method also includes: when the robot is traveling along the first return to zero point or the second return to zero point, after obtaining an interrupt instruction, controlling the robot to return along the return to zero trajectory to the position where the robot is when the robot obtains the return to zero position instruction.

[0028] In this technical solution, the control method of the robot also includes that when the robot returns to the first return to zero point or the second return to zero point, an interrupt command can be manually input, so that when the device receives the interrupt command, the robot can be interrupted from continuing to move to the first return to zero point or the second return to zero point, and at the same time, the robot is controlled to return to the position where the robot was when the robot obtained the return to zero position command. In this way, according to the actual working situation, when the robot does not need to return to the zero position but needs to continue working, the process of the robot returning to the zero position can be interrupted in time to avoid the robot being unable to interrupt after receiving the return to zero position command and affecting the next step of work.

[0029] In the above technical solution, the robot control method further includes: after the robot returns to the first zero point or the second zero point, controlling the robot to reset to an initial in-position state and generating an in-position signal.

[0030] In this technical solution, the robot control method also includes: when the robot returns to the first return-to-zero point or the second return-to-zero point, the device can control the robot to automatically reset to the initial position, and at the same time control the robot to send a position signal, so that the main program in the workshop will receive the corresponding position signal and understand the status of the robot, so as to assign new tasks to the robot at any time.

[0031] In the above technical solution, the starting point and the end point are the same position or the starting point and the end point are two different positions.

[0032] In this technical solution, the starting point and the end point are different positions. Of course, the starting point and the end point can also be the same position. When the starting point and the end point are the same position, the preset driving trajectory of the robot is a closed circular trajectory. At this time, when the robot is controlled to return to the starting point, the robot can be controlled to drive in the reverse direction along the preset driving trajectory to the starting point. When the robot is controlled to return to the end point, the robot can be controlled to drive forward along the preset driving trajectory to the end point.

[0033] In the above technical solution, the robot can travel along a plurality of preset driving trajectories, and the plurality of preset driving trajectories are connected end to end.

[0034] In this technical solution, the robot can travel along multiple preset driving tracks, and the multiple preset driving tracks are connected end to end, that is, the end point of the previous preset track is the starting point of the next preset track, so that no matter which preset driving track the robot moves to, after obtaining the return to zero instruction, the robot can determine the nearest starting point and end point according to the robot's location, and at the same time, according to the backward order of the nearest separation point on the preset driving track, select different driving tracks to return to zero position. This method is more suitable for production lines, usually each robot corresponds to multiple different workbenches, so no matter which workbench the robot moves to, it can select different driving tracks to return to zero position according to the positional relationship between the robot and the nearby workbenches.

[0035] The technical solution of the second aspect of the present invention provides a robot control device, including: a processor, including a memory and a processing unit, the memory stores executable instructions, and when the processor executes the executable instructions stored in the memory, it implements the steps of the robot control method of any one of the first aspects of the present application.

[0036] According to the control device provided by the present invention, by storing a computer program that can execute the control method of the robot of any technical solution of the first aspect in a memory, when the processor executes the computer program, the control method is implemented, and the robot's return-to-zero trajectory can be controlled. Since the control device provided by the present invention can execute the control method provided by any technical solution of the first aspect, the control device provided by this application has all the beneficial effects of the control method of any technical solution of the first aspect of the present invention, which will not be repeated here.

[0037] The technical solution of the third aspect of the present invention provides a robot, including the robot control device provided by the second aspect of the present application.

[0038] The technical solution of the fourth aspect of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the robot control method provided by any technical solution of the first aspect of the present application is implemented.

[0039] According to the computer-readable storage medium provided by the present invention, the processor needs to implement the control method of the robot according to any one of the technical solutions in the first aspect above through a computer program. This computer program needs to be stored in a computer-readable medium. This computer-readable storage medium ensures that the computer program can be executed by the processor, so as to realize the above-mentioned control method and quickly control the return-to-zero position trajectory of the robot. Since the computer-readable storage medium provided by the present application can store the computer program for implementing the control method of the robot according to any one of the technical solutions in the first aspect, the computer-readable storage medium provided by the present invention has all the beneficial effects of the control method of the robot according to any one of the technical solutions in the first aspect of the present invention, which will not be repeated here.

[0040] Additional aspects and advantages of the present invention will become apparent in the following description or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The above and / or additional aspects and advantages of the embodiments of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0042] Figure 1 A schematic flow chart of a robot control method provided by the present invention is shown;

[0043] Figure 2 A flow chart showing the judgment steps for the stop return instruction of the robot control method provided by the present invention is shown;

[0044] Figure 3 A control program flow chart of the robot control method provided by the present invention is shown;

[0045] Figure 4 A schematic diagram of the motion trajectory of a robot in a scenario of the robot control method provided by the present invention is shown;

[0046] Figure 5 A schematic diagram of the motion trajectory of a robot in another scenario of the robot control method provided by the present invention is shown;

[0047] Figure 6 A schematic diagram of the motion trajectory of a robot in another scenario of the robot control method provided by the present invention is shown;

[0048] Figure 7 A technical module diagram of the robot control device provided by the present invention is shown.

[0049] in, Figure 7 The corresponding relationship between the component names and numbers in is as follows:

[0050] 1. Program template, 2. Command module, 3. Background program module and display unit, 4. Encryption module, 5. Interrupt module, 6. PLC control module. DETAILED DESCRIPTION

[0051] In order to more clearly understand the above aspects, features and advantages of the embodiments of the present invention, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0052] In the following description, many specific details are set forth to facilitate a full understanding of the embodiments according to the present invention. However, the embodiments according to the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the embodiments according to the present invention is not limited to the specific embodiments disclosed below.

[0053] Embodiment 1

[0054] like Figure 1 As shown, this embodiment provides a control method for a robot, wherein the robot can travel along a preset travel trajectory, wherein a starting point and an end point and a separation point between the starting point and the end point are provided on the preset travel trajectory, and the control method for the robot specifically comprises the following steps:

[0055] S102: Get the zero return instruction;

[0056] S104: Determine the position of the robot; when the robot is between the starting point and the dividing point, execute S106; when the robot is at the dividing point or between the dividing point and the end point, execute S108;

[0057] S106: Control the robot to move from the current position to the starting point to the first return zero point;

[0058] S108: Control the robot to travel from the current position to the end point to the second return zero point.

[0059] According to the robot control method provided in this embodiment, first, a preset driving track can be set for the robot by a specific program or teaching method, so that the robot can travel on the preset driving track, the preset driving track includes a starting point and an end point, and a separation point is provided between the starting point and the end point. Further, the separation point is a workbench on the driving track, so that when the robot obtains the return to zero position instruction, the robot can determine the trajectory of the robot returning to zero position according to the position of the robot. Specifically, when the robot is located between the starting point and the separation point, it means that the robot has not yet reached the position of the workbench. After receiving the return to zero position instruction, the robot is controlled to return from the current position to the direction of the starting point to the first return to zero point, so as to avoid collision with the robot working on the workbench. In the return process, the robot can return to the starting point along the original path of the preset driving track, or return to the first return to zero point along the programmed track. Among them, the first return to zero point can be the starting point or not; when the robot is located between the separation point and the end point, it means that the robot has passed the position of the workbench. After receiving the return to zero position instruction, the robot is controlled to travel from the current position to the direction of the end point to the second return to zero point, so as to avoid collision with the robot working on the workbench. Of course, in the process of driving to the second return to zero point, it is also possible to drive to the end point along the preset driving trajectory, or to drive to the second return to zero point along the programmed trajectory. Among them, the second return to zero point may be the end point or not; in the actual working process, this method uses the workbench as the dividing point, and at the same time, according to the positional relationship between the robot and the dividing point, provides the robot with two return to zero routes in opposite directions, so that the system can control the robot to return to the zero position according to one of the return to zero routes according to the position of the robot, avoiding the risk of the prior art that the robot can only be controlled to return along the original route of the driving trajectory and collide with the other robots working on the workbench. In addition, in the process of the robot returning to zero, different return paths can be programmed for the robot according to actual conditions, so that a variety of different driving trajectories are provided for the robot to return to zero, which improves the user experience and provides the robot with more controllability.

[0060] In the above embodiment, the robot can be controlled to return to the starting point along the preset driving trajectory to return to the first zero point. Specifically, the preset driving trajectory for the robot can be generated by teaching and other methods. During the teaching process of the robot, the point sequence of multiple driving points on the preset trajectory is recorded, so that when the instruction to return to zero is received, the device can automatically sort the multiple driving points on the preset trajectory, and the robot can return to the starting point along the preset driving trajectory according to the point sequence on the preset driving trajectory. This solution only needs to control the robot to return to the starting point along the preset driving trajectory, without the need to set up expensive GPS positioning devices. The robot is controlled to return to the starting point along the preset driving trajectory to return to the first zero point, which ensures the safety of the robot's operation process and is also very simple for the user to operate.

[0061] In the above embodiment, the robot can be controlled to advance along the preset driving track to the end point to return to the second return to zero point. Similarly, the point sequence of multiple driving points on the preset track can also be recorded during the teaching process of the robot, so that when the instruction to return to zero is received, the device can automatically sort the multiple driving points on the preset track, and the robot can advance to the second return to zero point according to the point sequence of multiple driving points on the preset driving track. This solution only needs to control the robot to advance along the preset driving track to the end point and return to the second return to zero point, without the need to set up expensive GPS positioning devices. The robot is controlled to advance along the preset driving track to the end point to return to the second return to zero point, which ensures the safety of the robot's operation process and is also very simple for the user to operate.

[0062] In the above embodiment, multiple first-class driving points can be set between the starting point and the dividing point, and multiple second-class driving points can be set between the end point and the dividing point by manual programming. In this way, after obtaining the return-to-zero position instruction, the control device can obtain the driving point adjacent to the robot according to the position of the robot, and judge the type of the adjacent driving point. When the adjacent driving point is a first-class driving point, it can be determined that the robot is between the starting point and the dividing point at this time, and the robot is controlled to drive to the first return-to-zero point in the direction of the starting point. When the adjacent driving point is a second-class driving point, it can be determined that the robot is between the dividing point and the end point at this time, and the robot is controlled to drive to the second return-to-zero point in the direction of the end point. Of course, in this scheme, when teaching the robot, the point information of multiple driving points between the starting point and the end point can also be recorded. Specifically, the driving point between the starting point and the dividing point is recorded as the first-class driving point, and the driving point between the end point and the dividing point is recorded as the second-class driving point. In this way, after obtaining the return-to-zero position instruction, the robot's current position can also be determined. The present application marks the points on the preset driving trajectory with two different types of marks. In this way, when determining the position of the robot at a later stage, it is only necessary to determine the type of driving points close to the robot to determine the position of the robot. There is no need for expensive position sensors and positioning devices such as GPS, and the operation is very simple.

[0063] In the above embodiment, the robot can first be taught manually so that the device can obtain the teaching information, and then the teaching information is saved to determine the preset driving route of the robot. The preset driving trajectory of the robot is generated by teaching. Different preset driving trajectories can be generated for the robot according to the actual working conditions of the workshop, so that the robot can flexibly cope with various complex working environments.

[0064] Furthermore, through the process of teaching the robot, a preset driving trajectory for the robot is generated, and multiple driving points on the driving trajectory are determined according to the preset driving trajectory and the starting point, end point and separation point on the preset driving trajectory. In this way, the driving information of multiple driving points on the driving trajectory can be recorded during the teaching process, so that the robot can be controlled to drive to the zero point according to the multiple driving points and the corresponding driving information during the later control of the robot to return to the zero position. Since the method records multiple driving points on the preset driving trajectory during the teaching process, the robot can return to the zero point position according to the driving information corresponding to the multiple driving points, ensuring the safety of the robot during the return process.

[0065] Furthermore, after obtaining the instruction to return to zero position, the device can sort the multiple driving points on the preset driving track according to the order in the teaching process, so that when the robot is controlled to travel along the preset driving track, the robot can be controlled to travel to the first return to zero point or the second return to zero point in the order of all driving points. In this method, after the device obtains the instruction to return to zero position, the device can automatically sort the multiple driving points on the preset driving track, so that the robot can be controlled to return to zero point in the order of multiple driving points, which is simple to operate and does not require the use of expensive position sensors and GPS positioning devices.

[0066] Furthermore, workers can add driving points or reduce existing driving points between any two adjacent driving points as needed. In this way, after the device obtains the increase and decrease information, the device can re-form a new preset track for the robot according to the increase and decrease information, and re-order all driving points on the new preset track. In this way, when the robot is controlled to return to the zero point along the preset track, the robot can be controlled to return to the zero point in sequence along multiple driving points on the new preset track. Since the method can arbitrarily increase or decrease driving points according to needs in the later stage, the robot can arbitrarily cope with complex working environments. That is, in the process of the robot returning to the zero position, when it is necessary to increase or decrease the robot's action at a certain position, it is only necessary to increase or decrease the corresponding driving points at the position, and then the device can re-order all the driving points that have been increased or decreased, so that when the robot drives to the position, the robot can be controlled to perform the corresponding action. The method will not cause the control device to be out of order due to the increase or decrease of driving points, and solves the robot's single route to return to the zero position, so that the robot can safely return to the zero position in various complex and changing working environments.

[0067] Furthermore, when the robot is controlled to travel according to the reordered multiple driving points, the position information of each driving point is obtained, and then the robot moves to the next driving point in sequence according to the position information of each driving point, and then returns to the zero point. The position information includes the robot's movement speed, movement acceleration, movement mode, movement posture, and movement name and Cartesian coordinates of the point. Since the solution controls the robot to travel according to the driving information of each driving point, it is equivalent to controlling not only the robot's walking route, but also the walking posture, walking speed and other information of each driving point during the robot's walking process, thereby avoiding collisions with other objects during the process of returning to the zero position. Of course, the position information of each driving point can also be saved during the teaching process, so that when the robot is controlled to return to the zero position, it can be ensured that the position information of each driving point passed by the robot during the return to zero process is consistent with the position information of each point during the robot teaching process, thereby improving the safety of the robot during the return to zero process.

[0068] In the above embodiment, the control method of the robot also includes that when the robot returns to the first return to zero point or the second return to zero point, an interrupt command can be manually input, so that when the device receives the interrupt command, the robot can be interrupted from continuing to move to the first return to zero point or the second return to zero point, and at the same time, the robot is controlled to return to the position where the robot was when the robot obtained the return to zero position command. In this way, according to the actual working situation, when the robot does not need to return to the zero position but needs to continue working, the process of the robot returning to the zero position can be interrupted in time to avoid the robot being unable to interrupt after receiving the return to zero position command and affecting the next step of work.

[0069] In the above embodiment, the robot control method also includes: when the robot returns to the first return-to-zero point or the second return-to-zero point, the device can control the robot to automatically reset to the initial position, and at the same time control the robot to send a position signal, so that the main program in the workshop will receive the corresponding position signal and understand the status of the robot, so as to assign new tasks to the robot at any time.

[0070] In the above embodiment, the starting point and the end point are different positions. Of course, the starting point and the end point can also be the same position. When the starting point and the end point are the same position, the preset driving trajectory of the robot is a closed circular trajectory. At this time, when the robot is controlled to return to the starting point, the robot can be controlled to drive in the reverse direction along the preset driving trajectory to the starting point. When the robot is controlled to return to the end point, the robot can be controlled to drive forward along the preset driving trajectory to the end point.

[0071] In the above embodiment, the robot can travel along multiple preset driving tracks, and the multiple preset driving tracks are connected end to end, that is, the end point of the previous preset track is the starting point of the next preset track, so that no matter which preset driving track the robot moves to, after obtaining the return to zero instruction, the robot can determine the nearest starting point and end point according to the location of the robot, and at the same time, according to the backward order of the nearest separation point on the preset driving track, select different driving tracks to return to zero position. This method is more suitable for production lines, usually each robot corresponds to multiple different workbenches, so no matter which workbench the robot moves to, it can select different driving tracks to return to zero position according to the positional relationship between the robot and the nearby workbenches.

[0072] In order to more clearly understand the control process of the robot control method provided by the present application, the working principle of the robot control method provided by the present application is introduced below, as follows:

[0073] (1) Before controlling the robot to return to the zero position, first manually create a program based on the program template. The program contains pre-written initialization commands to provide initialization operations for the zero position automatic return function.

[0074] (2) Then the robot is manually taught to generate a preset driving trajectory for the robot. During the teaching process of the robot, the background program will record and save the position information of multiple driving points on the preset driving trajectory and their corresponding motion information, including coordinate data, posture data, motion mode, speed during motion, acceleration, etc., and mark multiple driving points on the preset driving trajectory. Specifically, after determining the driving trajectory of the robot, the separation point is first determined. The separation point is also the working point or working platform. Then, during the teaching process of the robot, all the driving points between the separation point and the starting point are saved with a macro=ON mark, and all the points between the separation point and the end point are saved with a macro=OFF mark. The separation point is marked with a macro=CANT mark. This is equivalent to dividing all the driving points between the starting point and the end point into three types. In this way, the position of the robot can be judged according to the mark of the driving point where the robot is located during the return to zero position.

[0075] (4) After the robot is taught, that is, while the robot is moving along the teaching trajectory, the system will monitor the automatic return to zero position signal at any time. If a return to zero position signal is received, the robot's current operation will be interrupted, and then the robot will perform the return to zero position movement of the corresponding zero position automatic return strategy according to the point mark of the driving point where the robot is located. Specifically, after receiving the return to zero command, when the driving point adjacent to the robot has the macro=ON mark, it means that the robot is between the separation point and the starting point. At this time, all the driving points with the Macro=ON mark on the driving trajectory are obtained, and then these points are sorted, and according to the point order of all the driving points with the Macro=ON mark, the robot is controlled to return to the starting point along the original route of the driving trajectory. When the identification point close to the robot is marked with macro=OFF, it means that the robot is between the separation point and the end point. At this time, all the driving points with Macro=OFF on the driving trajectory are obtained, and the robot is controlled to continue driving along the driving trajectory to the end point according to the point sequence of all the driving points with Macro=OFF. When the identification point close to the robot is marked with macro=CANT, it means that the robot is at the separation point. At this time, the robot is controlled to continue driving along the driving trajectory to the end point.

[0076] The following is an example of a robot working on site;

[0077] If, during the teaching process, four driving points P1, P2, P3, and P4 are recorded in sequence between the starting point and the end point of the robot's driving trajectory, and points P1 and P2 are marked with Macro=ON, point P3 is a separation point (operation point) with Macro=CANT, and point P4 is after the separation point P3 with Macro=OFF, then the robot's running trajectory during the actual working process is as follows:

[0078] 1. When the robot moves to the P1 position, if it receives a return-to-zero command, the system will determine that the P1 point flag is ON, and control the robot to return from P1 to the starting point; if it does not receive a return-to-zero command, the robot will continue to move to P2 to work;

[0079] 2. If the return-to-zero command is not received at point P1, when the robot moves to point P2, if the return-to-zero command is received at this time, the system will determine that the P2 point flag is ON, and the robot will be controlled to move from point P2 to point P1, and finally return to the starting point; if the return-to-zero command is not received at this time, the robot will be controlled to continue to move to point P3 to work;

[0080] 3. If the return-to-zero command is not received at point P2, when the robot moves to position P3, if the return-to-zero command is received at this time, the system will determine that the mark of point P3 is CANT, and the robot will be controlled to move from point P3 to point P4, and finally to the end point; if the return-to-zero command is not received at this time, the robot will be controlled to continue to move to point P4 to work;

[0081] 4. If the return-to-zero command is not received at point P3, when the robot moves to position P4, if the return-to-zero command is received at this time, the system will determine that the flag of point P4 is OFF, and at this time the robot will be controlled to run from point P4 to the end point.

[0082] Therefore, no matter where the robot is during operation, after obtaining the return to zero position, the system can quickly read the robot's position information and control the robot to return to the zero point using the corresponding solution.

[0083] When the robot is between the dividing point and the end point and in the process of returning to the zero point, the robot usually does not need to return to the zero point for some reason, but needs to return to the original working position. Therefore, this embodiment provides another implementation method of the robot control method. In the process of the robot returning to the zero position, the stop and return instructions can also be obtained. After the stop and return instructions are obtained, the robot will be controlled to stop the step of returning to the zero point, and at the same time, the robot will be controlled to return to the position of the robot at the moment of receiving the return to zero instruction. Specifically, when the robot is between the dividing point and the end point, the system will display the stop program and the return program, so that the user can select the stop program and the return program to control the robot to stop moving in the direction of the zero position, and at the same time control the robot to automatically return to the position where the robot is at the moment of obtaining the return to zero instruction to continue working. When the robot is not between the dividing point and the end point, there is no need to control the stop program and the return program of the robot. At this time, the system does not display the stop program and the return program.

[0084] like Figure 2 As shown, specifically, when the Macro mark is not "OFF", the robot is controlled to run according to the normal program; when the Macro mark is "OFF", whether the robot is controlled to stop and return to the position where the robot obtains the return to zero instruction to continue working, the specific judgment steps are as follows:

[0085] When the abort instruction is input, S201 is executed; when the return instruction is input, S202 is executed; when the abort instruction and the return instruction are input at the same time, S203 is executed;

[0086] S201: Determine whether the option to terminate the program is "non-termination"; if so, execute S205; if not, execute S204;

[0087] S202: Determine whether the return option in the program is "non-return"; if so, execute S205; if not, execute S206;

[0088] S203: Determine whether the program abort selection is "non-abort"; if so, execute S205; if not, execute S207;

[0089] S204: running the termination program;

[0090] S205: The program continues to run;

[0091] S206: Run the return program;

[0092] S207: Determine whether the return option in the program is "non-return"; if so, execute S204, if not, execute S208;

[0093] S208: Run the abort procedure and the return procedure in sequence.

[0094] The above determination steps are described in detail below. Taking S203 as an example, in the above steps, first, when the user inputs the abort command and the return command at the same time, the system will execute step S203 to first determine whether the abort option in the program is "non-abort", that is, whether the program contains a mobilized robot program. When the abort option is "non-abort", it indicates that the program does not contain a mobilized robot program that executes the abort command. At this time, the robot cannot be aborted immediately, and step S205 is executed. The program continues to run, that is, the robot returns to the zero position according to the normal program. When the abort option is not "non-abort", it indicates that the program contains a mobilized robot program that executes the abort command. At this time, step S207 is executed to determine the return in the program. The selection of is "non-return". When the selection of return is "non-return", it indicates that the program does not contain the robot program that is called to execute the return command. At this time, since the program only contains the robot program that is called to execute the abort command, the step S204 is executed, that is, the robot only executes the abort program. When the selection of return is not "non-return", it indicates that the program contains the robot program that is called to execute the return command. At this time, since the program contains both the robot program that is called to execute the abort command and the robot program that is called to execute the return command, the step S208 is executed to control the robot to execute the abort and return programs in sequence, that is, to control the robot to abort and return to the position of the robot when receiving the return to zero command. Similarly, when only the abort command or only the return command is input, the determination method is the same as the above determination method.

[0095] like Figure 3 As shown, the following describes different situations of controlling the robot to run the program when different tasks are assigned to the robot, specifically:

[0096] When only task A is assigned to the robot, after the robot completes task A through program A during the working process, the system then determines whether the return to zero position request is triggered; when the determination result is yes, step S501 is executed, and when the determination result is no, step S502 is executed;

[0097] When two tasks, namely, task B and task C, are assigned to the robot, when the robot completes task B through program B during the working process, the system then determines whether the return to zero position request is triggered; when the judgment result is yes, execute step S501, when the judgment result is no, continue to execute task C, and when task C is completed, the system determines whether the return to zero position request is triggered; when the judgment result is yes, execute step S501, when the judgment result is no, execute step S502.

[0098] In this way, when only one task is assigned to the robot, after the robot completes the task, the system can determine whether a return to zero request is triggered. If a return to zero request is triggered, the system will control the robot to return to program initialization, so that the data information inside the robot can be initialized to prepare for the input of new programs at any time, which can avoid the interference of the existing programs inside the robot with the later work of the robot and improve the stability of the robot's work. If the return to zero request is not triggered, the system will control the robot to return to the waiting task and wait for the user to provide it with a new associated task. In this process, the program inside the robot does not need to be initialized, so the data inside the robot can be retained, which can improve the robot's work efficiency for associated tasks.

[0099] like Figure 4 As shown in the figure, the application scenario described is the robot palletizing in a small space. H is the Home point, ST1 is the first workbench, ST2 is the second workbench, and WP is the robot's workpiece palletizing position. Points P1 to P10 are the point motion trajectories of the robot moving the workpiece to the first workbench for palletizing and then moving to the second workbench to continue working. When the robot is working, point P5 is marked with Macro=CANT. Before point P5, points P1 to P4 are Macro=ON, indicating that the return to zero function is turned on. After point P5, from point P6 to P10, Macro=OFF, indicating that after the mark point P5, the return to zero function is turned off. When the robot is working, if the return to zero signal is received during the movement from point P1 to point P4, it will execute the operation of returning to the starting zero position from the current point. The return to zero motion trajectory is P4→P3→P2→P1, that is, the starting position of the work. If the robot has reached point P5 during operation, or has passed point P5 to point P6, P7, etc., then when the robot receives the return-to-zero signal, it will continue to return to the zero position from the current point along the previously taught trajectory. The trajectory movement sequence is P5→P6→P7→P8→P9→P10, which is the end position of the work, or the start position of the next work, and then it can wait for the upper-level general program to control the next work.

[0100] like Figure 5 As shown in the figure, the application scenario described is robot palletizing in a small space. H is the Home point, ST1 is the first workbench, ST2 is the second workbench, and WP is the position where the robot palletizes the workpiece. Points P1 to P10 are the point motion trajectories of the robot after it moves the workpiece to the first workbench for palletizing and then moves to the second workbench to continue working. This figure describes the situation when the process program is re-edited, and the re-editing of the robot's motion points includes adding or deleting. Add a new point P11 between P4 and P5, and delete point P8. After the program is re-edited, when the point name and the point movement sequence are inconsistent, the robot will re-rank the modified points after receiving the return to zero position signal during the work process, and will not be affected by the disorder of the point name. In this case, the robot receives a return to zero position signal before reaching point P5 where Macro = CANT, and the system will sort all driving points before point P5, such as Figure 5 As shown in the figure, when the sorting is successful, the robot will return to the starting position in the order of points P11→P4→P3→P2→P1; and when the robot reaches point P5 and receives the return-to-zero signal, it will move to the end position in the order of points P5→P6→P7→P9→P10. Then it will wait for the upper-level general program to control the next step.

[0101] like Figure 6 As shown in the figure, the application scenario described is the robot palletizing in a small space. H is the Home point, ST1 is the first workbench, ST2 is the second workbench, and WP is the position where the robot palletizes the workpiece. Points P1 to P10 are the point motion trajectories of the robot moving the workpiece to the first workbench for palletizing and then moving to the second workbench to continue working. The situation described in this figure is calling another user-defined strategy for returning to the origin. When the user re-edits the program, point P11 is added between points P4 and P5, point P8 is deleted, and the return to zero strategy of point P7 is modified, and the user-defined abort program and return program are called at this point. When the robot receives the return to zero signal before reaching point P5 where Macro = CANT, it will return to the starting position in the point sequence P11→P4→P3→P2→P1; and when the robot reaches point P5 and receives the return to zero signal, it will continue to move to points P6 and P7. When it reaches point P7, it will call to abort Program1 and return to the origin by the user-defined path instead of walking to the next workbench. The user can also return to point P7 through a user-defined program to continue the interrupted work.

[0102] An embodiment of the second aspect of the present invention provides a robot control device, comprising: a processor, including a memory and a processing unit, the memory storing executable instructions, and when the processor executes the executable instructions stored in the memory, it implements the steps of the robot control method of any one of the first aspects of the present application.

[0103] According to the control device provided by the present invention, by storing a computer program that can execute the control method of the robot of any technical solution of the first aspect in a memory, when the processor executes the computer program, the control method is implemented, and the robot's return-to-zero trajectory can be controlled. Since the control device provided by the present invention can execute the control method provided by any technical solution of the embodiment of the first aspect, the control device provided by this embodiment has all the beneficial effects of the control method of any technical solution of the embodiment of the first aspect of the present invention, which will not be repeated here.

[0104] like Figure 7 As shown, the control device of the robot of the present invention mainly includes a program template 1, a command module 2, a background program module and a display unit 3, an encryption module 4, an interrupt module 5 and a PLC control module 6, wherein the user can create a program in the program template 1 to create the robot's driving trajectory, driving parameters and other information, the command module 2 is used to execute the program in the program template 1 to control the robot's movement, the background program module and the display unit 3 are used to record the robot's background running program and display the robot's motion state for the user, the encryption module 4 is used to encrypt the background program module and the display unit 3, and the interrupt module 5 is used to stop the robot from returning to zero. During use, the user enters the background program module and the display unit 3 through the encryption module 4, and enters the corresponding command in the command module 2 to control the robot to perform the corresponding action. When the device receives the return to zero command, it will call the corresponding program in the program template 1 to control the robot to automatically return to zero. During the return to zero process, the user can enter the stop command, at which time the control robot stops returning to zero and returns to the working position to continue working.

[0105] An embodiment of the third aspect of the present invention provides a robot, including the robot control device provided by the embodiment of the second aspect of the present application.

[0106] The robot provided by the present invention includes the control device of the robot provided by the embodiment of the second aspect of the present invention, and the control device can control the robot to select a trajectory of returning to the zero position according to the position of the robot after obtaining the return to zero instruction. Since the robot provided by this embodiment includes the control device of the robot provided by the embodiment of the second aspect of the present application, the robot provided by the present application has all the beneficial effects of the control device of the robot provided by the second aspect of the present application.

[0107] An embodiment of the fourth aspect of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the robot control method provided by any technical solution of the embodiment of the first aspect of the present application is implemented.

[0108] The program code for implementing the control method of the wireless transmission node of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or electronic device.

[0109] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical fiber, a portable compact disk read-only memory, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0110] The computer-readable storage medium provided by the present invention requires a computer program for the processor to implement the robot control method of any one of the technical solutions in the first aspect embodiment above. This computer program needs to be stored in a computer-readable medium. This computer-readable storage medium ensures that the computer program can be executed by the processor, so as to realize the above-mentioned control method and quickly control the robot's return to zero position trajectory. Since the computer-readable storage medium provided by the present application can store the computer program for implementing the robot control method of any one of the technical solutions in the first aspect, the computer-readable storage medium provided by the present invention has all the beneficial effects of the robot control method of any one of the technical solutions in the first aspect of the present invention, which will not be repeated here.

[0111] Additional aspects and advantages of the present invention will become apparent in the following description or may be learned through practice of the present invention.

[0112] In the embodiments according to the present invention, the terms "first", "second", and "third" are only used for description and cannot be understood as indicating or implying relative importance; the term "plurality" refers to two or more, unless otherwise clearly defined. The terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments according to the present invention can be understood according to specific circumstances.

[0113] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present invention. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0114] Although the subject matter has been described in the language of specific structural features and / or method logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

[0115] The above are only preferred embodiments according to the embodiments of the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, various modifications and changes may be made according to the embodiments of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention shall be included in the protection scope of the embodiments of the present invention.

Claims

1. A robot control method, characterized in that: The robot can travel along a preset travel track, wherein a starting point, an end point and a separation point between the starting point and the end point are provided on the preset travel track, and the control method of the robot includes: After obtaining the zero return instruction, determining the position of the robot; When the robot is located between the starting point and the separation point, controlling the robot to move from the current position toward the starting point to a first return-to-zero point; When the robot is located at the dividing point or between the dividing point and the end point, the robot is controlled to travel from the current position to the direction of the end point to a second return-to-zero point.

2. The robot control method according to claim 1, characterized in that: The step of controlling the robot to travel from the current position toward the starting point to the first return to zero point specifically includes: controlling the robot to travel from the current position toward the starting point along the preset travel trajectory to the starting point.

3. The robot control method according to claim 1, characterized in that: The step of controlling the robot to travel from the current position toward the end point to the second return to zero point specifically includes: controlling the robot to travel from the current position toward the end point along the preset travel trajectory to the end point.

4. The robot control method according to claim 1, characterized in that: Also includes: The preset driving trajectory includes a plurality of first-type driving points between the starting point and the dividing point and a plurality of second-type driving points between the end point and the dividing point, and the step of determining the position of the robot specifically includes: Acquire the driving point adjacent to the robot and determine the type of the adjacent driving point. When it is determined that the adjacent driving point is the first type of driving point, determine that the robot is located between the starting point and the dividing point. When it is determined that the adjacent driving point is the second type of driving point, determine that the robot is located between the end point and the dividing point.

5. The robot control method according to claim 1, characterized in that: Also includes: Acquire teaching information, and generate the preset driving trajectory based on the teaching information.

6. The robot control method according to claim 5, characterized in that: The step of obtaining the teaching information and generating the preset driving trajectory based on the teaching information includes: In the process of teaching the robot, the preset driving track, as well as the starting point, the end point and the separation point of the preset driving track are determined based on the teaching information, a plurality of driving points are set on the preset driving track, and the driving information of the robot at the driving points and the separation points is recorded; Wherein, when controlling the robot to travel along the preset driving trajectory, the robot is controlled to travel according to the multiple driving points and the driving information corresponding to the multiple driving points.

7. The robot control method according to claim 6, characterized in that: The preset driving trajectory includes a plurality of driving points, and the control method of the robot further includes: All the driving points on the preset driving trajectory are sorted in order, When the robot is controlled to travel along the preset travel track, the robot is controlled to travel in sequence along all travel points.

8. The robot control method according to claim 7, characterized in that: The robot control method further comprises: Acquiring increase and decrease information of the driving points, updating the preset driving trajectory based on the increase and decrease information, and reordering the driving points on the updated preset driving trajectory; Wherein, when controlling the robot to travel along the preset driving trajectory, the robot is controlled to travel in sequence according to the reordered driving points.

9. The robot control method according to claim 1, characterized in that: Also includes: When the robot is moving toward the first return-to-zero point or the second return-to-zero point and an interruption instruction is obtained, the robot is controlled to return along a return-to-zero trajectory to the position where the robot is when the robot obtains the return-to-zero position instruction.

10. The robot control method according to claim 1, characterized in that: Also includes: After the robot returns to the first return-to-zero point or the second return-to-zero point, the robot is controlled to reset to an initial in-position state, and an in-position signal is generated.

11. The robot control method according to any one of claims 1 to 10, characterized in that: The starting point and the end point are the same position or the starting point and the end point are two different positions.

12. The robot control method according to any one of claims 1 to 10, characterized in that: The robot can travel along a plurality of preset travel tracks, and the plurality of preset travel tracks are connected end to end.

13. A robot control device, characterized in that: include: A processor comprises a memory and a processing unit, wherein the memory stores executable instructions, and when the processor executes the executable instructions stored in the memory, the steps of the robot control method according to any one of claims 1 to 12 are implemented.

14. A robot, characterized in that: A control device comprising the robot as claimed in claim 13.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the robot control method according to any one of claims 1 to 12 is implemented.