Robot motion error determination method, compensation method, device, electronic equipment and storage medium
By collecting and analyzing robot motion data, determining motion errors, and implementing compensatory control, the problem of robot motion control deviation was solved, achieving higher control accuracy.
Patent Information
- Application Number
- CN202411527381.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-10-30
Smart Images

Figure CN119304875B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent electronic technology, and in particular to a method for determining robot motion error, a method for compensating robot motion error, an apparatus, an electronic device, and a storage medium. Background Technology
[0002] With the development of science and technology, robots have been widely used. When controlling robots, we usually only consider the unavoidable design errors of robots. However, when robots are applied to different scenarios, the friction coefficient of the ground in different scenarios, the wear of the robot's own motion device (tire, etc.), and the assembly errors of the robot's motion device will all cause control deviations when the robot moves, resulting in low accuracy of robot motion control. Summary of the Invention
[0003] Therefore, it is necessary to provide a robot motion error compensation method, device, electronic device, computer-readable storage medium, and computer program product that can improve the accuracy of robot motion control in response to the above-mentioned technical problems.
[0004] Firstly, this application provides a method for determining robot motion errors. The method includes:
[0005] Control the robot to move from its current position to at least one preset point, and collect and acquire the actual mileage data of the robot during the process of moving to at least one preset point;
[0006] Obtain theoretical mileage data between the current location and at least one of the preset points;
[0007] Based on the actual mileage data and the theoretical mileage data, the motion error of the robot in the current motion control scenario is determined.
[0008] In one embodiment, the theoretical mileage data includes the theoretical trajectory length of the motion trajectory corresponding to the at least one preset point; determining the motion error of the robot in the current motion control scenario based on the actual mileage data and the theoretical mileage data includes: obtaining the motion trajectory of the robot moving to at least one of the preset points; constructing a trajectory length mapping relationship of the motion trajectory based on the actual mileage data, the robot's motion error, and the motion trajectory; and generating the robot's motion error based on the trajectory length mapping relationship and the theoretical trajectory length.
[0009] In one embodiment, the at least one preset point includes a first point and a second point; the motion trajectory includes a first trajectory of the robot moving from the current position to the first point, and a second trajectory of the robot moving from the first point to the second point; the actual mileage data includes first mileage position data corresponding to the robot at the current position, second mileage position data corresponding to the robot at the first point, and third mileage position data corresponding to the robot at the second point; the motion error includes a first error when the robot moves along the first trajectory and a second error when the robot moves along the second trajectory; the step of constructing a trajectory length mapping relationship for the motion trajectory based on the actual mileage data, the robot's motion error, and the motion trajectory includes: obtaining a first trajectory type for the first trajectory and obtaining a second trajectory type for the second trajectory; constructing a trajectory length mapping relationship for the first trajectory based on the first trajectory type, the first mileage position data, the second mileage position data, and the first error; and constructing a trajectory length mapping relationship for the second trajectory based on the second trajectory type, the second mileage position data, the third mileage position data, and the second error.
[0010] In one embodiment, the theoretical trajectory length includes a first trajectory length of the first trajectory and a second trajectory length of the second trajectory; generating the robot's motion error based on the trajectory length mapping relationship and the theoretical trajectory length includes: determining an error ratio coefficient between the first error and the second error based on the first trajectory length and the second trajectory length; and combining the trajectory length mapping relationship of the first trajectory and the trajectory length mapping relationship of the second trajectory based on the error ratio coefficient, the first trajectory length, and the second trajectory length to obtain the robot's motion error.
[0011] In one embodiment, after determining the motion error of the robot in the current motion control scenario based on the actual mileage data and the theoretical mileage data, the method further includes: obtaining a preset scenario error table, wherein the preset scenario error table includes at least one correspondence between preset motion control scenarios and motion errors; and updating the preset scenario error table based on the motion error in the current motion control scenario of the robot.
[0012] Secondly, this application also provides a method for determining robot motion errors. The method includes:
[0013] In response to a control command for the robot, the target motion position of the control command is obtained, and the pose control parameters for the robot to move from its current position to the target motion position are determined.
[0014] The motion error of the robot in the current motion control scenario is obtained. The motion error is generated based on the theoretical mileage data and actual mileage data between the robot's current position and at least one preset point. The actual mileage data is obtained and collected during the process of controlling the robot to move to at least one preset point.
[0015] Based on the motion error, motion compensation is performed on the pose control parameters to obtain pose compensation control parameters.
[0016] Based on the pose compensation control parameters, the robot is controlled to move from the current position to the target movement position.
[0017] In one embodiment, the pose control parameters include position control parameters and attitude control parameters, and the pose compensation control parameters include position compensation control parameters and attitude compensation control parameters. The step of performing motion compensation on the pose control parameters based on the motion error to obtain pose compensation control parameters includes: generating a unit-mileage motion error of the robot at a given unit mileage based on the motion error and the target theoretical mileage data corresponding to the robot; performing motion compensation on the position control parameters based on the unit-mileage motion error to obtain position compensation control parameters; and performing motion compensation on the attitude control parameters based on the unit-mileage motion error to obtain attitude compensation control parameters.
[0018] In one embodiment, before performing motion compensation on the pose control parameters based on the motion error to obtain pose compensation control parameters, the method further includes: if the motion error is detected to be greater than a preset error threshold, outputting a robot fault indication; if the motion error is detected to be less than or equal to the preset error threshold, performing the step of performing motion compensation on the pose control parameters based on the motion error to obtain pose compensation control parameters and subsequent steps.
[0019] Thirdly, this application also provides a robot motion error determination device. The device includes:
[0020] The data acquisition module is used to control the robot to move from its current position to at least one preset point, and to collect and acquire the actual mileage data of the robot during the process of moving to at least one preset point;
[0021] The first acquisition module is used to acquire theoretical mileage data between the current location and at least one of the preset points;
[0022] The first determining module is used to determine the motion error of the robot in the current motion control scenario based on the actual mileage data and the theoretical mileage data.
[0023] Fourthly, this application also provides a robot motion error compensation device. The device includes:
[0024] The second determining module is used to respond to a control command for the robot, obtain the target motion position of the control command, and determine the pose control parameters for the robot to move from the current position to the target motion position.
[0025] The second acquisition module is used to acquire the motion error of the robot in the current motion control scenario. The motion error is generated based on the theoretical mileage data and actual mileage data between the robot's current position and at least one preset point. The actual mileage data is acquired and collected during the process of controlling the robot to move to at least one preset point.
[0026] The compensation module is used to perform motion compensation on the pose control parameters based on the motion error to obtain pose compensation control parameters;
[0027] The control module is used to control the robot to move from the current position to the target movement position according to the pose compensation control parameters.
[0028] Fifthly, this application also provides an electronic device. The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0029] Control the robot to move from its current position to at least one preset point, and collect and acquire the actual mileage data of the robot during the process of moving to at least one preset point;
[0030] Obtain theoretical mileage data between the current location and at least one of the preset points;
[0031] Based on the actual mileage data and the theoretical mileage data, the motion error of the robot in the current motion control scenario is determined;
[0032] Alternatively, the processor may execute the computer program by performing the following steps:
[0033] In response to a control command for the robot, the target motion position of the control command is obtained, and the pose control parameters for the robot to move from its current position to the target motion position are determined.
[0034] The motion error of the robot in the current motion control scenario is obtained. The motion error is generated based on the theoretical mileage data and actual mileage data between the robot's current position and at least one preset point. The actual mileage data is obtained and collected during the process of controlling the robot to move to at least one preset point.
[0035] Based on the motion error, motion compensation is performed on the pose control parameters to obtain pose compensation control parameters.
[0036] Based on the pose compensation control parameters, the robot is controlled to move from the current position to the target movement position.
[0037] Sixthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0038] Control the robot to move from its current position to at least one preset point, and collect and acquire the actual mileage data of the robot during the process of moving to at least one preset point;
[0039] Obtain theoretical mileage data between the current location and at least one of the preset points;
[0040] Based on the actual mileage data and the theoretical mileage data, the motion error of the robot in the current motion control scenario is determined;
[0041] Alternatively, when the computer program is executed by the processor, it performs the following steps:
[0042] In response to a control command for the robot, the target motion position of the control command is obtained, and the pose control parameters for the robot to move from its current position to the target motion position are determined.
[0043] The motion error of the robot in the current motion control scenario is obtained. The motion error is generated based on the theoretical mileage data and actual mileage data between the robot's current position and at least one preset point. The actual mileage data is obtained and collected during the process of controlling the robot to move to at least one preset point.
[0044] Based on the motion error, motion compensation is performed on the pose control parameters to obtain pose compensation control parameters.
[0045] Based on the pose compensation control parameters, the robot is controlled to move from the current position to the target movement position.
[0046] Seventhly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0047] Control the robot to move from its current position to at least one preset point, and collect and acquire the actual mileage data of the robot during the process of moving to at least one preset point;
[0048] Obtain theoretical mileage data between the current location and at least one of the preset points;
[0049] Based on the actual mileage data and the theoretical mileage data, the motion error of the robot in the current motion control scenario is determined;
[0050] Alternatively, when the computer program is executed by the processor, it performs the following steps:
[0051] In response to a control command for the robot, the target motion position of the control command is obtained, and the pose control parameters for the robot to move from its current position to the target motion position are determined.
[0052] The motion error of the robot in the current motion control scenario is obtained. The motion error is generated based on the theoretical mileage data and actual mileage data between the robot's current position and at least one preset point. The actual mileage data is obtained and collected during the process of controlling the robot to move to at least one preset point.
[0053] Based on the motion error, motion compensation is performed on the pose control parameters to obtain pose compensation control parameters.
[0054] Based on the pose compensation control parameters, the robot is controlled to move from the current position to the target movement position.
[0055] The aforementioned method for determining robot motion error involves controlling the robot to move from its current position to at least one preset point, collecting and acquiring actual mileage data during the robot's movement to the preset point, acquiring theoretical mileage data between the current position and the preset point, and determining the motion error of the robot in the current motion control scenario based on the actual mileage data and the theoretical mileage data. This method provides a way to address the shortcomings of motion error by generating a unified motion error for points within the same area as the preset point, or for other points within the same scenario. Furthermore, it uses the actual mileage data of the robot's movement at the preset point and the actual distance measured at the preset point as the basis for generating the robot motion error, ensuring that the generated motion error is compatible with the robot's current motion control scenario. This provides a basis for subsequent robot motion error compensation methods, thus further improving the accuracy of robot motion control.
[0056] The aforementioned robot motion error compensation method, in response to a control command for the robot, obtains the target motion position of the control command and determines the pose control parameters for the robot to move from its current position to the target motion position. It then obtains the motion error in the current motion control scenario corresponding to the robot. This motion error is generated based on theoretical and actual mileage data between the robot's current position and at least one preset point. The actual mileage data is acquired and collected during the process of controlling the robot to move to at least one preset point. Based on the motion error, it performs motion compensation on the pose control parameters to obtain pose compensation control parameters. According to the pose compensation control parameters, it controls the robot to move from its current position to the target motion position. By using the motion error in the current motion control scenario to perform motion compensation on the robot's initial pose control parameters, and using the motion-compensated pose compensation control parameters as a basis, it controls the robot to move from its current position to the target motion position, enabling the robot to accurately reach the target motion position. Therefore, it improves the accuracy of the robot's motion control. Attached Figure Description
[0057] Figure 1 This is a schematic diagram illustrating an application scenario of the method in one embodiment;
[0058] Figure 2 This is a flowchart illustrating a method for determining robot motion errors in one embodiment;
[0059] Figure 3 This is a schematic diagram of the steps involved in generating motion errors for a robot in the current motion control scenario, as shown in one embodiment.
[0060] Figure 4This is a schematic diagram illustrating the positional relationship between the first point, the second point, and the third point in one embodiment.
[0061] Figure 5 This is a schematic diagram of the steps for updating a preset scenario error table in one embodiment;
[0062] Figure 6 This is a flowchart illustrating a robot motion error compensation method in one embodiment;
[0063] Figure 7 This is a schematic diagram of the motion error detection steps in one embodiment;
[0064] Figure 8 This is a structural block diagram of a robot motion error determination device in one embodiment;
[0065] Figure 9 This is a structural block diagram of a robot motion error compensation device in one embodiment;
[0066] Figure 10 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation
[0067] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0068] It is understandable that different types of robots may experience wear and tear on their motion mechanisms during use. Furthermore, there may be mechanical errors in the assembly or design of the motion mechanisms during manufacturing. Additionally, the robot's movement on surfaces with varying coefficients of friction can introduce different degrees of deviation. Specifically, a robot that theoretically should move 10 meters might actually move 9.99 meters, or a robot that theoretically should rotate 90 degrees might actually rotate 89 degrees. Therefore, a more accurate robot control solution is urgently needed.
[0069] The robot motion error determination method provided in this application embodiment can be applied to, for example, Figure 1In the application scenario shown, server 106 communicates with robot 104 via a network, and terminal 102 communicates with server 106 via a network. The data storage system stores the data that server 106 needs to process (actual mileage data, theoretical mileage data, and preset scenario error tables, etc.). Server 106 identifies and controls robot 104 to move from its current position to at least one preset point, collects and acquires actual mileage data during the process, acquires theoretical mileage data between the current position and at least one preset point, and determines the motion error of robot 104 in the current motion control scenario based on the actual and theoretical mileage data. Terminal 102 can be used to display the motion error. The data storage system can be integrated on server 106 or placed on the cloud or other network servers. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Server 106 can be implemented using a standalone server or a server cluster composed of multiple servers.
[0070] The robot motion error determination method provided in this application embodiment can also be applied to terminal 102. Terminal 102 communicates with robot 104 via a network. The data storage system can store the data that terminal 102 needs to process (actual mileage data, theoretical mileage data, preset scenario error table, etc.). Terminal 102 identifies and controls robot 104 to move from its current position to at least one preset point, collects and obtains actual mileage data during the process of robot 104 moving to at least one preset point, obtains theoretical mileage data between the current position and at least one preset point, and determines the motion error of robot 104 in the current motion control scenario based on the actual mileage data and theoretical mileage data. Terminal 102 can be used to display the motion error.
[0071] The robot motion error determination method provided in this application embodiment can also be applied to robot 104. The data storage system can store the data that robot 104 needs to process (actual mileage data, theoretical mileage data, preset scene error table, etc.). Robot 104 controls itself to move from its current position to at least one preset point, collects and obtains the actual mileage data during its movement to at least one preset point, and obtains the theoretical mileage data between the current position and at least one preset point. Based on the actual mileage data and the theoretical mileage data, the motion error under the current motion control scenario corresponding to itself is determined. If robot 104 has a display screen, the motion error can be displayed through the display screen of robot 104.
[0072] In one embodiment, such as Figure 2As shown, a method for determining robot motion error is provided, which can be applied to... Figure 1 Taking server 106 as an example, the explanation includes the following steps:
[0073] Step 202: Control the robot to move from its current position to at least one preset point, and collect and acquire the actual mileage data of the robot during the process of moving to at least one preset point.
[0074] In step 202, if there are multiple preset points, the robot's current position can be a fixed position or a variable position. Specifically, if the robot's current position is a fixed position, the robot is controlled to move from the current position to multiple preset points. For example, the multiple preset points include point A and point B. The robot is controlled to move from the current position to point A. When the robot is detected to have moved to point A, the robot is controlled to return to the current position and then move from the current position to point B.
[0075] Specifically, when the robot's current position is a changing position, the robot is controlled to move from the current position to any one of a plurality of preset points. When the robot moves to that point, that point is determined as the robot's current position. The robot is then controlled to move to other points among the plurality of preset points besides that point. For example, the plurality of preset points include points A and B. The robot is controlled to move from the current position to point A. When the robot moves to point A, point A is the robot's current position. The robot is then controlled to move from point A to point B.
[0076] In step 202, the actual mileage data is collected by a wheeled odometer.
[0077] As one embodiment, controlling a robot to move from its current position to at least one preset point includes: controlling the robot to move from its current position to a point among the at least one preset points where it has not stopped; when the robot is detected to have moved to that point, determining that point as the robot's current position and returning to the step of controlling the robot to move from its current position to a point among the at least one preset points where it has not stopped, until there are no more points among the at least one preset points where it has not stopped.
[0078] This provides a robot control method for situations where the current position is not fixed, which can reduce unnecessary control over the robot.
[0079] Further, controlling the robot to move from its current position to at least one preset point where it has not stopped includes: acquiring the motion trajectory corresponding to the point where the robot moves from its current position to the point where it has not stopped; and controlling the robot to move from its current position to the point based on the current position, the position of the point, and the corresponding motion trajectory. The motion trajectory corresponding to the point where the robot moves from its current position to the point where it has not stopped can be a line segment trajectory or a non-line segment trajectory. If it is a non-line segment trajectory, it can be a trajectory with a regular shape (e.g., a single arc trajectory) or an irregular shape (e.g., a multi-arc trajectory). For ease of calculation, a single arc trajectory is typically used. The motion trajectory corresponding to the point where the robot moves from the current position to at least one of the preset points without stopping can be set by the user as needed or based on experience. Specifically, it is determined according to the usage frequency of the robot in the usage scenario, which meets the preset usage frequency condition. The preset usage frequency condition can be greater than a preset frequency threshold, or it can be that the usage frequency ranks within a preset number range among all the motion trajectories used in the robot's usage scenario. For example, if the straight line trajectory and the single arc trajectory rank among the top two in terms of usage frequency among all the motion trajectories used in the robot's usage scenario, then the straight line trajectory or the single arc trajectory is determined as the motion trajectory corresponding to the robot moving from the current position to at least one of the preset points without stopping.
[0080] In this way, the robot's motion trajectory when the motion error is determined can be matched with the user's expectation, or with the motion trajectory commonly used in the robot's usage scenario, thus ensuring the accuracy of motion error generation.
[0081] As another embodiment, controlling the robot to move from its current position to at least one preset point includes: controlling the robot to move from its current position to a point among the at least one preset points where it has not stopped; when the robot is detected to have moved to that point, controlling the robot to return to its current position and then to the point among the at least one preset points where it has not stopped, until there are no more points among the at least one preset points where it has not stopped.
[0082] This provides a robot control method for a fixed current position. Although this method involves redundant control to return the robot to its current position, it reduces the number of position points that need to be calculated in subsequent calculations, thus improving the efficiency of motion error generation.
[0083] For example, collecting and acquiring actual mileage data during the process of the robot moving to at least one preset point includes: collecting and acquiring mileage position data when the robot first moves to the current position; for each preset point, collecting and acquiring mileage position data when the robot moves to each preset point; and integrating all the above mileage position data into actual mileage data.
[0084] Step 204: Obtain theoretical mileage data between the current location and at least one preset point.
[0085] In step 204, the theoretical mileage data is obtained by on-site measurement of the trajectory length between the current location and at least one preset point.
[0086] For example, step 204 includes: acquiring at least one motion trajectory of the robot moving from the current position to at least one preset point, measuring the at least one motion trajectory respectively, and obtaining theoretical mileage data between the current position and at least one preset point.
[0087] Step 206: Determine the motion error of the robot in the current motion control scenario based on the actual mileage data and the theoretical mileage data.
[0088] The motion control scenarios covered in this article (including but not limited to the current motion control scenario mentioned above and the preset motion control scenario mentioned below) consist of at least one of the following: robot type, robot model, wear degree of robot motion device, assembly information of robot motion device, and friction coefficient of robot motion surface.
[0089] For example, step 206 includes: generating the actual motion length of each segment of the robot's motion trajectory based on the actual mileage data, and determining the motion error of the robot in the current motion control scenario based on the deviation between the actual motion length of each segment of the robot's motion trajectory and the theoretical length of the corresponding motion trajectory in the theoretical mileage data.
[0090] In this embodiment, by controlling the robot to move from its current position to at least one preset point, actual mileage data during the robot's movement to the preset point is collected and acquired; theoretical mileage data between the current position and the preset point is acquired; based on the actual mileage data and the theoretical mileage data, the motion error of the robot in the current motion control scenario is determined, providing a way to address the shortcomings of motion error. For the area where the preset point is located, or other points belonging to the same scenario as the area where the preset point is located, a unified motion error is generated. The actual mileage data of the robot's movement at the preset point and the actual distance data measured for the preset point are used as the basis for generating the robot's motion error, ensuring that the generated motion error is compatible with the robot's current motion control scenario, thus providing a basis for subsequent robot motion error compensation methods. Therefore, the accuracy of robot motion control is further improved.
[0091] In one embodiment, such as Figure 3As shown, this paper provides a method for generating motion errors for a robot in the current motion control scenario. In this method, the theoretical mileage data includes the theoretical trajectory length of the motion trajectory corresponding to at least one preset point. Figure 2 Step 206 includes:
[0092] Step 302: Obtain the motion trajectory corresponding to the robot moving to at least one preset point.
[0093] For example, step 302 includes: obtaining the motion trajectory corresponding to the robot moving to at least one preset point as set by the user, or obtaining the motion trajectory corresponding to the robot moving to at least one preset point as determined by the robot's usage scenario.
[0094] Step 304: Based on the actual mileage data, the robot's motion error, and the motion trajectory, construct the trajectory length mapping relationship of the motion trajectory.
[0095] For example, step 304 includes: obtaining the trajectory type of the motion trajectory, and constructing a trajectory length mapping relationship of the motion trajectory based on the actual mileage data, the robot's motion error and the trajectory type.
[0096] As an embodiment, step 304 includes: at least one preset point including a first point and a second point; the motion trajectory including a first trajectory of the robot moving from the current position to the first point, and a second trajectory of the robot moving from the first point to the second point; actual mileage data including first mileage position data corresponding to the robot at the current position, second mileage position data corresponding to the robot at the first point, and third mileage position data corresponding to the robot at the second point; motion error including a first error when the robot moves along the first trajectory and a second error when the robot moves along the second trajectory; obtaining a first trajectory type of the first trajectory, and obtaining a second trajectory type of the second trajectory; constructing a trajectory length mapping relationship of the first trajectory based on the first trajectory type, the first mileage position data, the second mileage position data, and the first error; and constructing a trajectory length mapping relationship of the second trajectory based on the second trajectory type, the second mileage position data, the third mileage position data, and the second error.
[0097] To ensure accurate calculation of motion errors, the first and second trajectories are not collinear.
[0098] Furthermore, based on the first trajectory type, the first mileage location data, the second mileage location data, and the first error, a trajectory length mapping relationship for the first trajectory is constructed, including: if the first trajectory type is a line segment trajectory type, then the first mileage location data, the second mileage location data, and the first error are substituted into the coordinate line segment length formula to obtain the trajectory length mapping relationship for the first trajectory, wherein the coordinate line segment length formula is a formula for calculating the line segment length in a rectangular coordinate system; if the first trajectory type is an arc trajectory type, then the first mileage location data, the second mileage location data, and the first error are substituted into the arc length formula to obtain the trajectory length mapping relationship for the first trajectory, wherein the arc length formula is a formula for calculating the arc length in a rectangular coordinate system.
[0099] Furthermore, by substituting the first mileage location data, the second mileage location data, and the first error into the coordinate segment length formula, the trajectory length mapping relationship of the first trajectory is obtained, including: the first mileage location data includes the first mileage sub-coordinate of the first point in the first coordinate direction and the second mileage sub-coordinate of the first point in the second coordinate direction; the first error includes the first sub-error corresponding to the first trajectory in the first coordinate direction and the second sub-error corresponding to the first trajectory in the second coordinate direction; the second mileage location data includes the third mileage sub-coordinate of the second point in the first coordinate direction and the fourth mileage sub-coordinate of the second point in the second coordinate direction. Substituting the first mileage sub-coordinate, the second mileage sub-coordinate, the first sub-error, the second sub-error, the third mileage sub-coordinate, and the fourth mileage sub-coordinate into the coordinate segment length formula, the trajectory length mapping relationship of the first trajectory is obtained.
[0100] Optionally, by substituting the first mileage sub-coordinates, the second mileage sub-coordinates, the first sub-error, the second sub-error, the third mileage sub-coordinates, and the fourth mileage sub-coordinates into the coordinate segment length formula, the trajectory length mapping relationship of the first trajectory can be obtained, which can be expressed by the formula as follows:
[0101]
[0102] in, The length of the first trajectory is given by [the first trajectory]. The first mileage sub-coordinate, For the second mileage sub-coordinate, For the first sub-error, The third mileage sub-coordinate, The fourth mileage sub-coordinate, This is the second sub-error.
[0103] Optionally, based on the specific implementation of the second trajectory type, the second mileage location data, the third mileage location data, and the second error, the specific implementation steps for constructing the trajectory length mapping relationship of the first trajectory based on the first trajectory type, the first mileage location data, the second mileage location data, and the first error can be referred to above, and will not be repeated here.
[0104] As an example, the second mileage location data, the third mileage location data, and the second error are substituted into the coordinate segment length formula to obtain the trajectory length mapping relationship of the second trajectory. This includes: the second error includes the third sub-error corresponding to the second trajectory in the first coordinate direction, and the fourth sub-error corresponding to the second trajectory in the second coordinate direction; the third mileage location data includes the fifth mileage sub-coordinate of the third point in the first coordinate direction and the sixth mileage sub-coordinate of the third point in the second coordinate direction. The fifth mileage sub-coordinate, the sixth mileage sub-coordinate, the third sub-error, the fourth sub-error, the third mileage sub-coordinate, and the fourth mileage sub-coordinate are substituted into the coordinate segment length formula to obtain the trajectory length mapping relationship of the second trajectory.
[0105] Optionally, substituting the fifth mileage sub-coordinate, sixth mileage sub-coordinate, third sub-error, fourth sub-error, third mileage sub-coordinate, and fourth mileage sub-coordinate into the coordinate segment length formula yields the trajectory length mapping relationship of the second trajectory, which can be expressed by the formula:
[0106]
[0107] in, The length of the second trajectory is given by [the second trajectory]. The fifth mileage sub-coordinate, For the third sub-error, The sixth mileage sub-coordinate, This is the fourth sub-error.
[0108] Optionally, refer to Figure 4 , Figure 4 The diagram includes the positional relationship of the first point (point A in the diagram), the second point (point B in the diagram), and the third point (point C in the diagram) in a rectangular coordinate system.
[0109] Step 306: Generate the robot's motion error based on the trajectory length mapping relationship and the theoretical trajectory length.
[0110] For example, step 306 includes: substituting the theoretical trajectory length into the trajectory length mapping relationship to obtain the robot's motion error.
[0111] As one embodiment, the theoretical trajectory length includes the first trajectory length of the first trajectory and the second trajectory length of the second trajectory; generating the robot's motion error based on the trajectory length mapping relationship and the theoretical trajectory length includes: determining the error ratio coefficient between the first error and the second error based on the first trajectory length and the second trajectory length; and combining the trajectory length mapping relationship of the first trajectory and the trajectory length mapping relationship of the second trajectory based on the error ratio coefficient, the first trajectory length, and the second trajectory length to obtain the robot's motion error.
[0112] Further, based on the first trajectory length and the second trajectory length, the error ratio coefficient between the first error and the second error is determined, including: determining the ratio between the first trajectory length and the second trajectory length as the error ratio coefficient between the first error and the second error.
[0113] As one embodiment, determining the ratio between the first trajectory length and the second trajectory length as the error proportionality coefficient between the first error and the second error includes: determining the ratio between the first trajectory length and the second trajectory length as the error proportionality coefficient between the first sub-error and the third sub-error, and determining the ratio between the first trajectory length and the second trajectory length as the proportionality coefficient between the second sub-error and the fourth sub-error.
[0114] Optionally, the ratio between the length of the first trajectory and the length of the second trajectory is determined as the error proportionality coefficient between the first sub-error and the third sub-error, and the ratio between the length of the first trajectory and the length of the second trajectory is determined as the error proportionality coefficient between the second sub-error and the fourth sub-error. This can be expressed by the following formula:
[0115]
[0116] in, This is the error scaling factor.
[0117] Thus, since the motion error of the same robot in the same coordinate direction is proportional, and the motion error accumulates as the length of the motion trajectory increases, the error proportionality coefficient can be quantified to facilitate subsequent calculations.
[0118] As an example, based on the error scaling factor, the first trajectory length, and the second trajectory length, the trajectory length mapping relationship of the first trajectory and the trajectory length mapping relationship of the second trajectory are combined to obtain the robot's motion error. This includes: substituting the first trajectory length into the trajectory length mapping relationship of the first trajectory, and substituting the error scaling factor and the second trajectory length into the trajectory length mapping relationship of the second trajectory, and combining the substituted trajectory length mapping relationship of the first trajectory and the trajectory length mapping relationship of the second trajectory to obtain the robot's motion error.
[0119] It is understandable that when expanding the mapping relationship between the trajectory lengths of the first and second trajectories, there is a term for the square of motion error. Since motion error is usually small and negligible, the square of motion error term can be eliminated, or other terms can be replaced with other values (e.g., the error proportional coefficient relationship mentioned above and some terms referred to below), thereby simplifying the relationship. The elimination and simplification process can be expressed by the following formula:
[0120] make
[0121] The relational expression simplifies to:
[0122]
[0123]
[0124] After elimination, the simultaneous equations are:
[0125]
[0126] The motion error after combining the equations can be expressed as:
[0127]
[0128] In this way, motion error quantification is achieved when the trajectory type is a line segment trajectory.
[0129] In this embodiment, the motion trajectory corresponding to the robot moving to at least one preset point is obtained; a trajectory length mapping relationship is constructed based on the actual mileage data, the robot's motion error, and the motion trajectory; the robot's motion error is generated based on the trajectory length mapping relationship and the theoretical trajectory length. The actual mileage data, the robot's motion error, and the motion trajectory are used as the basis for constructing the trajectory length mapping relationship, ensuring that the constructed trajectory length mapping relationship matches the motion trajectory. The constructed trajectory length mapping relationship and the theoretical trajectory length are used as the basis for generating the motion error, ensuring the accuracy of the generated motion error.
[0130] In one embodiment, such as Figure 5 As shown, the steps of a method for updating a preset scenario error table are provided. In this method, Figure 2 Following step 206, the method further includes:
[0131] Step 502: Obtain a preset scene error table, wherein the preset scene error table includes at least one correspondence between preset motion control scenes and motion errors.
[0132] For example, step 502 includes: obtaining a preset scene error table for all robots, or obtaining a preset scene error table for each robot.
[0133] Step 504: Update the preset scene error table based on the motion error in the current motion control scenario corresponding to the robot.
[0134] For example, step 504 includes updating the preset scene error table based on the matching degree between the current motion control scene corresponding to the robot and each preset control scene in the preset scene error table, and the motion error under the current motion control scene corresponding to the robot.
[0135] It is understandable that for the same robot, as the robot is used for a longer period of time, the wear and tear on the robot's motion device will also increase. This will affect the robot's motion error. If the robot's motion error is not updated in time, there may be a situation where the motion deviation of the robot control based on the robot's motion error is relatively high, that is, the accuracy of the robot's motion control is low.
[0136] To overcome the technical defect that as the robot's usage time increases, the wear and tear on the robot's motion device also increases, which affects the robot's motion error. If the robot's motion error is not updated in time, it will lead to low accuracy in the robot's motion control. As an example, if there is a first target motion control scenario in the preset scenario error table that matches the robot's current motion control scenario, then the motion error corresponding to the first target motion control scenario in the preset scenario error table is updated according to the motion error under the robot's current motion control scenario.
[0137] In this way, the preset scene error table can be updated in real time, which facilitates the subsequent use of the preset scene error table, ensures the accuracy of motion error when using the preset scene error table for robot control, and thus also ensures the accuracy of robot motion control.
[0138] As another embodiment, if there is no first target motion control scenario in the preset scenario error table that matches the current motion control scenario of the robot, the preset scenario error table is updated according to the current motion control scenario of the robot and the motion error under the current motion control scenario of the robot.
[0139] In this way, the preset scene error table can be supplemented, ensuring that the preset scene error table can encompass more motion control scenarios, thereby facilitating the subsequent use of the preset scene error table and ensuring the comprehensiveness and rich diversity of motion control scenarios when using the preset scene error table.
[0140] In this embodiment, a preset scene error table is obtained, which includes at least one correspondence between preset motion control scenarios and motion errors. The preset scene error table is updated according to the motion error under the current motion control scenario corresponding to the robot. The preset scene error table is updated in a timely manner for the motion error under the current motion control scenario corresponding to the robot, which is calculated in real time. When controlling the robot in the future, the updated preset scene error table can be directly used as the control basis without the need for a redundant motion error determination process, thus improving the convenience of robot control.
[0141] The robot motion error compensation method provided in this application embodiment can be applied to, for example, Figure 1 The application scenario shown illustrates server 106. Server 106 communicates with robot 104 via a network, and terminal 102 communicates with server 106 via a network. A data storage system stores data that server 106 needs to process (control commands, motion errors, etc.). In response to control commands to robot 104, server 106 obtains the target motion position of the control command and determines the pose control parameters for robot 104 to move from its current position to the target position. It also obtains the motion error of robot 104 in the current motion control scenario; performs motion compensation on the pose control parameters based on the motion error to obtain pose compensation control parameters; and controls robot 104 to move from its current position to the target position according to the pose compensation control parameters. Terminal 102 can be used to send control commands to robot 104 to server 106.
[0142] The robot motion error compensation method provided in this application embodiment can also be applied to terminal 102. Terminal 102 communicates with robot 104 via a network. The data storage system can store the data (control commands, motion errors, etc.) that terminal 102 needs to process. In response to the control commands initiated by terminal 102 for robot 104, terminal 102 obtains the target motion position of the control command and determines the pose control parameters for robot 104 to move from the current position to the target motion position. It also obtains the motion error of robot 104 in the current motion control scenario. Based on the motion error, it performs motion compensation on the pose control parameters to obtain pose compensation control parameters. According to the pose compensation control parameters, it controls robot 104 to move from the current position to the target motion position.
[0143] The robot motion error compensation method provided in this application embodiment can also be applied to robot 104. The data storage system can store the data (control commands, motion errors, etc.) that robot 104 needs to process. By responding to control commands for itself, robot 104 obtains the target motion position of the control command and determines the pose control parameters for itself to move from the current position to the target motion position; obtains the motion error in the current motion control scenario corresponding to itself; performs motion compensation on the pose control parameters based on the motion error to obtain pose compensation control parameters; and controls itself to move from the current position to the target motion position according to the pose compensation control parameters. The control command can be generated by the user's operation on robot 104 or initiated by terminal 102 communicating with robot 104.
[0144] In one embodiment, such as Figure 6 As shown, a robot motion error compensation method is provided, which is applied to... Figure 1 Taking server 106 as an example, the explanation includes the following steps:
[0145] Step 602: In response to the control command for the robot, obtain the target motion position of the control command, and determine the pose control parameters for the robot to move from the current position to the target motion position.
[0146] In step 402, the control command is a motion control command for the robot. The specific content of the control command corresponds to the robot's usage scenario. When the robot's usage scenario is a transportation scenario, the control command is usually to control the robot to move to a certain location to pick up or deliver goods. The target motion position is the target position that the robot is to move to, as indicated by the control command. The pose control parameters include position control parameters and attitude control parameters. Specifically, the attitude control parameters include at least one attitude control sub-parameter during the robot's movement from the current position to the target motion position. The attitude control sub-parameter is used to characterize the robot's attitude control angle. The position control parameters include the distance control sub-parameters corresponding to each attitude control sub-parameter during the robot's movement from the current position to the target motion position.
[0147] For example, obtaining the target motion position of a control command includes: identifying the target motion position of the control command from the control command.
[0148] For example, determining the pose control parameters for the robot to move from its current position to its target position includes: determining the position control parameters and attitude control parameters that theoretically correspond to the process of the robot moving from its current position to its target position, based on the robot's current position and the target position.
[0149] Step 604: Obtain the motion error of the robot in the current motion control scenario. The motion error is generated based on the theoretical mileage data and actual mileage data between the robot's current position and at least one preset point. The actual mileage data is obtained and collected during the process of controlling the robot to move to at least one preset point.
[0150] For example, step 604 includes: obtaining a preset scene error table, querying the motion error of the robot in the current motion control scene corresponding to the preset scene error table, or obtaining the motion error of the robot in the current motion control scene corresponding to the robot through the above-described robot motion error determination method.
[0151] As an embodiment, step 604 includes: obtaining the matching degree between the current motion control scene corresponding to the robot and each preset motion control scene in the preset scene error table; if there is a corresponding matching degree in the preset scene error table that represents a second target motion control scene that matches the current motion control scene corresponding to the robot, then the motion error corresponding to the second target motion control scene in the preset scene error table is determined as the motion error under the current motion control scene corresponding to the robot; if there is no corresponding matching degree in the preset scene error table that represents a second target motion control scene that matches the current motion control scene corresponding to the robot, then the motion error under the current motion control scene corresponding to the robot is obtained through the above-described robot motion error determination method.
[0152] Thus, if a second target motion control scenario exists in the preset scenario error table, the unnecessary time spent on obtaining the motion error of the robot in the current motion control scenario through the above-mentioned robot motion error determination method is saved. Therefore, to a certain extent, the efficiency of obtaining motion error is improved.
[0153] Step 606: Perform motion compensation on the pose control parameters based on the motion error to obtain the pose compensation control parameters.
[0154] As an embodiment, step 606 includes: the pose compensation control parameters include position compensation control parameters and attitude compensation control parameters; generating the unit mileage motion error of the robot under unit mileage based on the motion error and the target theoretical mileage data corresponding to the robot; performing motion compensation on the position control parameters based on the unit mileage motion error to obtain the position compensation control parameters; and performing motion compensation on the attitude control parameters based on the unit mileage motion error to obtain the attitude compensation control parameters.
[0155] Furthermore, based on the motion error and the corresponding target theoretical mileage data of the robot, a unit mileage motion error of the robot under a unit mileage is generated, including: the target theoretical mileage data is the theoretical mileage data corresponding to the robot's movement from the current position to the target movement position; the unit mileage motion error includes a first unit mileage motion sub-error of the target theoretical mileage data in the first coordinate direction and a second unit mileage motion sub-error of the target theoretical mileage data in the second coordinate direction; the ratio between the first motion sub-error and the target theoretical mileage data is determined as the first unit mileage motion sub-error; the ratio between the second motion sub-error and the target theoretical mileage data is determined as the second unit mileage motion sub-error.
[0156] As one embodiment, position control parameters are compensated for based on unit mileage motion error to obtain position compensation control parameters, including: determining unit motion distance deviation based on first unit mileage motion sub-error, second unit mileage motion sub-error and the motion trajectory type corresponding to the current position moving to the target motion position; and performing motion compensation on position control parameters based on unit motion distance deviation to obtain position compensation control parameters.
[0157] As one embodiment, motion compensation is performed on the attitude control parameters based on the unit mileage motion error to obtain attitude compensation control parameters, including: differentiating the first unit mileage motion error and the second unit mileage motion error respectively to obtain the first unit mileage motion differential error and the second unit mileage motion differential error; constructing the robot's geometric error homogeneous transformation matrix based on the first unit mileage motion differential error and the second unit mileage motion differential error; and performing motion compensation on the attitude control parameters based on the robot's geometric error homogeneous transformation matrix to obtain attitude compensation control parameters.
[0158] Step 608: Based on the pose compensation control parameters, control the robot to move from the current position to the target position.
[0159] For example, step 608 includes: sending position compensation control parameters and attitude compensation control parameters to the robot's control system, and controlling the robot to move from the current position to the target position through the robot's control system.
[0160] Optionally, refer to Figure 7 Before step 606, the method also includes:
[0161] Step 605: Detect whether the motion error is greater than the preset error threshold.
[0162] For example, step 605 includes: detecting whether the error of the first motion sub-sub is greater than a preset error threshold, and / or detecting whether the error of the second motion sub-sub-sub is greater than a preset error threshold.
[0163] If the detected motion error is greater than the preset error threshold, then step 607 is executed to output a robot fault indication.
[0164] As an example, if the error of the first motion sub-sub is greater than a preset error threshold, or if the error of the second motion sub-sub is greater than a preset error threshold, then it is determined that the motion error is greater than the preset error threshold.
[0165] As one embodiment, outputting robot fault indication includes: outputting robot fault indication in voice form and / or text form and / or indicator light form.
[0166] Thus, on the one hand, in robot usage scenarios, it can be used to indicate that the robot has malfunctioned and to repair the malfunction in a timely manner; in robot manufacturing scenarios, it can be used to indicate that the robot has malfunctioned and needs to be returned to the factory for rework to avoid low production quality of the robot leaving the factory. On the other hand, as can be seen from the above method for determining robot motion error, in order to facilitate calculation and considering that motion error is usually small, the square term of motion error is eliminated. However, if the calculated motion error is still high in this case, it means that this motion error is not necessarily accurate. If this motion error is used for robot control, it is still easy to have a situation where the accuracy of robot control is low.
[0167] If the detected motion error is less than or equal to the preset error threshold, then proceed to step 606 and subsequent steps.
[0168] In this embodiment, in response to control commands for the robot, the target motion position of the control command is obtained, and the pose control parameters for the robot to move from the current position to the target motion position are determined. The motion error of the robot in the current motion control scenario is obtained. The motion error is generated based on the theoretical mileage data and actual mileage data between the robot's current position and at least one preset point. The actual mileage data is acquired and collected during the process of controlling the robot to move to at least one preset point. Based on the motion error, the pose control parameters are motion-compensated to obtain pose-compensated control parameters. According to the pose-compensated control parameters, the robot is controlled to move from the current position to the target motion position. The initial pose control parameters of the robot are motion-compensated based on the motion error in the current motion control scenario, and the robot is controlled to move from the current position to the target motion position based on the motion-compensated pose control parameters. This allows the robot to accurately reach the target motion position, thus improving the accuracy of the robot's motion control.
[0169] As a more detailed embodiment, the robot is controlled to move from its current position to at least one preset point. Actual mileage data during the robot's movement to the preset point is collected and acquired. Theoretical mileage data between the current position and the preset point is acquired. The motion trajectory corresponding to the robot's movement to the preset point is acquired. A first trajectory type of the first trajectory is acquired, and a second trajectory type of the second trajectory is acquired. A trajectory length mapping relationship for the first trajectory is constructed based on the first trajectory type, first mileage position data, second mileage position data, and a first error. A trajectory length mapping relationship for the second trajectory is constructed based on the second trajectory type, second mileage position data, third mileage position data, and a second error. An error ratio coefficient between the first and second errors is determined based on the first and second trajectory lengths. The trajectory length mapping relationships of the first and second trajectories are combined using the error ratio coefficient, the first trajectory length, and the second trajectory length to obtain the robot's motion error. A preset scenario error table is acquired, wherein the preset scenario error table includes a correspondence between at least one preset motion control scenario and the motion error. The preset scenario error table is updated based on the motion error under the current motion control scenario corresponding to the robot.
[0170] Furthermore, in response to control commands for the robot, the target motion position of the control command is obtained, and the pose control parameters for the robot to move from the current position to the target motion position are determined. The motion error of the robot in the current motion control scenario is obtained. The motion error is generated based on theoretical mileage data and actual mileage data between the robot's current position and at least one preset point. The actual mileage data is acquired and collected during the process of controlling the robot to move to at least one preset point. If the detected motion error is greater than a preset error threshold, a robot fault indication is output. If the detected motion error is less than or equal to the preset error threshold, a unit mileage motion error of the robot is generated based on the motion error and the corresponding target theoretical mileage data. Motion compensation is performed on the position control parameters based on the unit mileage motion error to obtain position compensation control parameters. Similarly, motion compensation is performed on the attitude control parameters based on the unit mileage motion error to obtain attitude compensation control parameters. Finally, based on the position compensation control parameters and the attitude compensation control parameters, the robot is controlled to move from the current position to the target motion position.
[0171] In this embodiment, by controlling the robot to move from its current position to at least one preset point, actual mileage data during the robot's movement to the preset point is collected and acquired; theoretical mileage data between the current position and the preset point is acquired; based on the actual mileage data and the theoretical mileage data, the motion error of the robot in the current motion control scenario is determined, providing a way to address the shortcomings of motion error. For the area where the preset point is located, or other points belonging to the same scenario as the area where the preset point is located, a unified motion error is generated, and the actual mileage data of the robot's movement at the preset point and the actual distance data measured for the preset point are used as the basis for generating the robot's motion error. This ensures that the generated motion error is compatible with the robot's current motion control scenario, providing a basis for subsequent robot motion error compensation methods. Therefore, the accuracy of robot motion control is further improved.
[0172] Furthermore, by controlling the robot to move from its current position to at least one preset point, actual mileage data during the robot's movement to at least one preset point is collected and acquired; theoretical mileage data between the current position and at least one preset point is acquired; based on the actual mileage data and the theoretical mileage data, the motion error of the robot in the current motion control scenario is determined, providing a way to address the shortcomings of motion error. For the area where the preset point is located, or other points belonging to the same scenario as the area where the preset point is located, a unified motion error is generated, and the actual mileage data of the robot's movement at the preset point and the actual distance data measured for the preset point are used as the basis for generating the robot's motion error. This ensures that the generated motion error is compatible with the robot's current motion control scenario, providing a basis for subsequent robot motion error compensation methods. Therefore, the accuracy of robot motion control is further improved.
[0173] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0174] Based on the same inventive concept, this application also provides a robot motion error compensation device for implementing the robot motion error compensation method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more robot motion error compensation device embodiments provided below can be found in the limitations of the robot motion error compensation method described above, and will not be repeated here.
[0175] In one embodiment, such as Figure 8 As shown, a robot motion error determination device 800 is provided, including: a data acquisition module 802, a first acquisition module 804, and a first determination module 806, wherein:
[0176] The data acquisition module 802 is used to control the robot to move from its current position to at least one preset point, and to collect and acquire the actual mileage data of the robot during the process of moving to at least one preset point.
[0177] The first acquisition module 804 is used to acquire theoretical mileage data between the current location and at least one preset point;
[0178] The first determining module 806 is used to determine the motion error of the robot in the current motion control scenario based on the actual mileage data and the theoretical mileage data.
[0179] In one embodiment, the theoretical mileage data includes the theoretical trajectory length of the motion trajectory corresponding to at least one preset point; the first determining module 806 is further configured to obtain the motion trajectory corresponding to the robot moving to at least one preset point; construct a trajectory length mapping relationship of the motion trajectory based on the actual mileage data, the robot's motion error and the motion trajectory; and generate the robot's motion error based on the trajectory length mapping relationship and the theoretical trajectory length.
[0180] In one embodiment, at least one preset point includes a first point and a second point; the motion trajectory includes a first trajectory of the robot moving from its current position to the first point, and a second trajectory of the robot moving from the first point to the second point; the actual mileage data includes first mileage position data corresponding to the robot's current position, second mileage position data corresponding to the robot's first point, and third mileage position data corresponding to the robot's second point; the motion error includes a first error when the robot moves along the first trajectory and a second error when the robot moves along the second trajectory; the first determining module 806 is further configured to obtain a first trajectory type of the first trajectory and a second trajectory type of the second trajectory; construct a trajectory length mapping relationship for the first trajectory based on the first trajectory type, the first mileage position data, the second mileage position data, and the first error; and construct a trajectory length mapping relationship for the second trajectory based on the second trajectory type, the second mileage position data, the third mileage position data, and the second error.
[0181] In one embodiment, the theoretical trajectory length includes the first trajectory length of the first trajectory and the second trajectory length of the second trajectory; the first determining module 806 is further configured to determine the error ratio coefficient between the first error and the second error based on the first trajectory length and the second trajectory length; and to obtain the robot's motion error by combining the trajectory length mapping relationship of the first trajectory and the trajectory length mapping relationship of the second trajectory based on the error ratio coefficient, the first trajectory length, and the second trajectory length.
[0182] In one embodiment, the robot motion error determination device 800 further includes: an update module, configured to acquire a preset scene error table, wherein the preset scene error table includes at least one preset motion control scene and a correspondence between motion errors; and update the preset scene error table according to the motion error under the current motion control scene corresponding to the robot.
[0183] Each module in the aforementioned robot motion error generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.
[0184] In one embodiment, such as Figure 9 As shown, a robot motion error compensation device 900 is provided, including: a second determining module 902, a second acquiring module 904, a compensation module 906, and a control module 908, wherein:
[0185] The second determining module 902 is used to respond to control commands for the robot, obtain the target motion position of the control command, and determine the pose control parameters for the robot to move from the current position to the target motion position.
[0186] The second acquisition module 904 is used to acquire the motion error of the robot in the current motion control scenario. The motion error is generated based on the theoretical mileage data and actual mileage data between the robot's current position and at least one preset point. The actual mileage data is acquired and collected during the process of controlling the robot to move to at least one preset point.
[0187] The compensation module 906 is used to perform motion compensation on the pose control parameters based on motion error to obtain pose compensation control parameters;
[0188] The control module 908 is used to control the robot to move from its current position to the target position based on the pose compensation control parameters.
[0189] In one embodiment, the pose control parameters include position control parameters and attitude control parameters, and the pose compensation control parameters include position compensation control parameters and attitude compensation control parameters; the compensation module 906 is further configured to generate a unit mileage motion error of the robot at a unit mileage based on the motion error and the target theoretical mileage data corresponding to the robot; perform motion compensation on the position control parameters based on the unit mileage motion error to obtain position compensation control parameters, and perform motion compensation on the attitude control parameters based on the unit mileage motion error to obtain attitude compensation control parameters.
[0190] In one embodiment, the robot motion error compensation device 900 further includes a detection module, which is used to output a robot fault indication if the detected motion error is greater than a preset error threshold; and to perform the step of obtaining pose compensation control parameters based on motion compensation of pose control parameters based on motion error and subsequent steps if the detected motion error is less than or equal to the preset error threshold.
[0191] Each module in the aforementioned robot motion error compensation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.
[0192] In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 10As shown, this electronic device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computational and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a robot motion error compensation method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.
[0193] Those skilled in the art will understand that Figure 10 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 electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0194] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0195] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0196] In one embodiment, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0197] Those skilled in the art will understand 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 can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0198] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0199] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for determining robot motion error, characterized in that, The method includes: Control the robot to move from its current position to at least one preset point, and collect and acquire the actual mileage data of the robot during the process of moving to at least one preset point; Obtain theoretical mileage data between the current location and at least one of the preset points; Based on the actual mileage data and the theoretical mileage data, the motion error of the robot in the current motion control scenario is determined; Wherein, at least one of the preset points includes a first point and a second point; the robot's motion trajectory includes a first trajectory from the current position to the first point, and a second trajectory from the first point to the second point; the actual mileage data includes first mileage position data corresponding to the current position, second mileage position data corresponding to the first point, and third mileage position data corresponding to the second point; the motion error includes a first error when the robot moves along the first trajectory and a second error when the robot moves along the second trajectory; and the theoretical mileage data includes a first trajectory length of the first trajectory and a second trajectory length of the second trajectory. The steps for determining the motion error include: determining an error ratio coefficient between the first error and the second error based on the first trajectory length and the second trajectory length; and combining the trajectory length mapping relationship of the first trajectory and the trajectory length mapping relationship of the second trajectory based on the error ratio coefficient, the first trajectory length, and the second trajectory length to obtain the motion error of the robot. The trajectory length mapping relationship of the first trajectory is constructed from the first trajectory type, the first mileage position data, the second mileage position data, and the first error. The trajectory length mapping relationship of the second trajectory is constructed from the second trajectory type, the second mileage position data, the third mileage position data, and the second error.
2. The method according to claim 1, characterized in that, The method further includes: Obtain the motion trajectory of the robot when it moves to at least one of the preset points.
3. The method according to claim 2, characterized in that, The method further includes: Obtain the first trajectory type of the first trajectory, and obtain the second trajectory type of the second trajectory; Based on the first trajectory type, the first mileage location data, the second mileage location data, and the first error, a trajectory length mapping relationship for the first trajectory is constructed. Based on the second trajectory type, the second mileage location data, the third mileage location data, and the second error, a trajectory length mapping relationship for the second trajectory is constructed.
4. The method according to any one of claims 1 to 3, characterized in that, After determining the motion error of the robot in the current motion control scenario based on the actual mileage data and the theoretical mileage data, the method further includes: Obtain a preset scene error table, wherein the preset scene error table includes at least one correspondence between preset motion control scenes and motion errors; The preset scenario error table is updated based on the motion error in the current motion control scenario corresponding to the robot.
5. A method for compensating for robot motion errors, characterized in that, The method includes: In response to a control command for the robot, the target motion position of the control command is obtained, and the pose control parameters for the robot to move from its current position to the target motion position are determined. The motion error of the robot in the current motion control scenario is obtained. The motion error is obtained by combining the trajectory length mapping relationship of the first trajectory and the trajectory length mapping relationship of the second trajectory based on the error ratio coefficient between the first error and the second error, the first trajectory length of the first trajectory and the second trajectory length of the second trajectory. At least one preset point of the robot's movement includes a first point and a second point. The first trajectory is the trajectory of the robot moving from the current position to the first point. The second trajectory is the trajectory of the robot moving from the first point to the second point. The trajectory length mapping relationship of the first trajectory is constructed by the first trajectory type, the first mileage position data, the second mileage position data and the first error of the first trajectory. The trajectory length mapping relationship of the second trajectory is constructed by the second trajectory type, the second mileage position data, the third mileage position data and the second error of the second trajectory. The first mileage position data is the mileage position data of the robot at the current position. The second mileage position data is the mileage position data of the robot at the first point. The third mileage position data is the mileage position data of the robot at the second point. The first error is the error of the robot moving with the first trajectory. The second error is the error of the robot moving with the second trajectory. The error ratio coefficient is determined based on the first trajectory length and the second trajectory length. Based on the motion error, motion compensation is performed on the pose control parameters to obtain pose compensation control parameters. Based on the pose compensation control parameters, the robot is controlled to move from the current position to the target movement position.
6. The method according to claim 5, characterized in that, The pose control parameters include position control parameters and attitude control parameters, and the pose compensation control parameters include position compensation control parameters and attitude compensation control parameters; the step of performing motion compensation on the pose control parameters based on the motion error to obtain pose compensation control parameters includes: Based on the motion error and the target theoretical mileage data corresponding to the robot, the unit mileage motion error of the robot under a unit mileage is generated. Based on the unit mileage motion error, motion compensation is performed on the position control parameters to obtain position compensation control parameters; and based on the unit mileage motion error, motion compensation is performed on the attitude control parameters to obtain attitude compensation control parameters.
7. The method according to claim 6 or 5, characterized in that, Before performing motion compensation on the pose control parameters based on the motion error to obtain pose compensation control parameters, the method further includes: If the detected motion error is greater than a preset error threshold, a robot fault indication is output. If the detected motion error is less than or equal to a preset error threshold, then the step of performing motion compensation on the pose control parameters based on the motion error to obtain pose compensation control parameters, and subsequent steps, are executed.
8. A robot motion error determination device, characterized in that, The apparatus includes modules for implementing the steps of the method according to any one of claims 1 to 4 when executed.
9. A robot motion error compensation device, characterized in that, The apparatus is used as a module to implement the steps of the method according to any one of claims 5 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Odometer calibration method and device, robot and readable storage medium
CN114323076A
Track compensation method and device and computer readable storage medium
CN115213897A
Method and apparatus for detecting movement error in mobile robot
US20090171504A1
