Robot posture control method and device

Through sensor positioning technology and environmental information judgment, the first controller is used to determine the robot's posture control amount, which solves the problem of inaccurate posture estimation caused by light differences and improves the robot docking accuracy.

CN112925302BActive Publication Date: 2024-09-24BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911242094.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-06
Publication Date
2024-09-24
Estimated Expiration
2039-12-06

AI Technical Summary

Technical Problem

In the case of poor regional lighting, the camera imaging quality is difficult to guarantee, resulting in inaccurate robot pose estimation and inaccurate pose control, which may lead to reduced robot docking accuracy or docking failure.

Method used

The robot's pose is estimated through sensor positioning technology, and the accuracy of the pose estimate is judged based on the collected current environmental information. If it is inaccurate, the first controller is used to determine the linear velocity and angular velocity control quantities to improve the accuracy of pose control. Accuracy.

Benefits of technology

It improves the accuracy of robot pose control and solves the problem of reduced docking accuracy or docking failure due to inaccurate pose estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112925302B
    Figure CN112925302B
Patent Text Reader

Abstract

The present invention discloses a robot posture control method and device, which relates to the field of mobile robot technology. The method includes: estimating the robot's posture according to sensor positioning technology; the robot's posture includes: the robot's position coordinates and the robot's posture angle; judging whether the robot's posture estimation is accurate according to the collected current environmental information; and determining the robot's linear velocity and angular velocity control amount based on a first controller when the robot's posture estimation is inaccurate. Through the above steps, the accuracy of the robot's posture control can be improved, thereby solving the problem that the robot is difficult to dock accurately or even fails to dock due to inaccurate posture estimation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mobile robots, and in particular to a robot posture control method and device. Background Art

[0002] Robots are used in a wide range of scenarios, such as commercial scenarios such as indoor service robots and sweeping robots, as well as industrial and logistics scenarios such as handling and traction AGVs (automatic guided vehicles). In many application scenarios, the position and posture of the robot need to be controlled. For example, in the robot docking scenario, the position and posture of the robot need to be accurately controlled.

[0003] In the prior art, the robot is usually positioned by measuring the position of landmarks (such as QR codes, image line features, angular features, etc.) in the camera coordinate system, and based on the relative position relationship between the camera and the robot body, the robot is then positioned, and the robot's linear velocity and angular velocity control amount are calculated using the measured robot's position and the pre-specified set position to achieve the robot's position control. In the case of good regional lighting and high camera imaging quality, the robot's position estimation is often more accurate, and accurate position control can be achieved.

[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: in areas with poor lighting, the imaging quality of the camera is usually difficult to guarantee. In this case, it is often difficult to accurately estimate the robot's posture, and there may even be abnormal posture estimates that jump violently in a series of consecutive moments. In particular, the angle measurement of road signs in the camera coordinate system is very common, which makes the robot's posture estimation often inaccurate. Inaccurate posture estimation will cause the existing controller to calculate the oscillation angular velocity control amount, making the robot's posture control inaccurate, and further leading to other adverse consequences. For example, in a robot docking scenario, inaccurate posture control will lead to reduced robot docking accuracy or even docking failure. Summary of the invention

[0005] In view of this, the present invention provides a robot posture control method and device, which can improve the accuracy of robot posture control, and further solve the problem that the robot is difficult to dock accurately or even fails to dock due to inaccurate posture estimation.

[0006] To achieve the above objective, according to one aspect of the present invention, a robot posture control method is provided.

[0007] The robot posture control method of the present invention includes: estimating the robot's posture based on sensor positioning technology; the robot's posture includes: the robot's position coordinates and the robot's posture angle; judging whether the robot's posture estimation is accurate based on the collected current environmental information; when the robot's posture estimation is inaccurate, determining the robot's linear velocity and angular velocity control amount based on a first controller.

[0008] Optionally, the method further includes: when the position and posture estimation of the robot is accurate, determining the linear velocity and angular velocity control amount of the robot based on the second controller.

[0009] Optionally, the sensor positioning technology is a camera-based positioning technology, and the current environmental information includes: the distance between the current camera and the reference object, and the current ambient light intensity; the step of judging whether the robot's posture estimation is accurate based on the collected current environmental information includes: judging whether the distance between the current camera and the reference object is within a first value range, and whether the current ambient light intensity is within a second value range; when the distance between the current camera and the reference object is within the first value range, and the current ambient light intensity is within the second value range, confirming that the robot's posture estimation is accurate; when the distance between the current camera and the reference object is not within the first value range, or the current ambient light intensity is not within the second value range, confirming that the robot's posture estimation is inaccurate.

[0010] Optionally, determining the linear speed control amount of the robot based on the first controller and / or the second controller includes: determining the linear speed control amount of the robot according to the distance between the robot and the docking point, the set speed when the robot reaches the docking point, and the set acceleration.

[0011] Optionally, determining the angular velocity control amount of the robot based on the first controller includes: taking the position coordinates of the robot as the position coordinates of the first reference point, and taking the angle between the line connecting the robot and the docking point and the set attitude angle direction at the docking point as the attitude angle of the first reference point to obtain a first reference posture; determining a state tracking error based on the first reference posture and the posture of the robot; and determining the angular velocity control amount of the robot based on the state tracking error.

[0012] Optionally, determining the angular velocity control amount of the robot based on the second controller includes: drawing a perpendicular line from the position coordinates of the robot to the set attitude angle at the docking point, and using the position coordinates of the foot point of the perpendicular as the position coordinates of the second reference point, and using the set attitude angle at the docking point as the attitude angle of the second reference point to obtain a second reference posture; determining a state tracking error based on the second reference posture and the posture of the robot; and determining the angular velocity control amount of the robot based on the state tracking error.

[0013] To achieve the above objective, according to another aspect of the present invention, a robot posture control device is provided.

[0014] The robot posture control device of the present invention includes: a posture estimation module, which is used to estimate the posture of the robot based on sensor positioning technology; the posture of the robot includes: the position coordinates of the robot, and the attitude angle of the robot; a judgment module, which is used to judge whether the posture estimation of the robot is accurate based on the collected current environmental information; and a determination module, which is used to determine the linear velocity and angular velocity control amount of the robot based on the first controller when the posture estimation of the robot is inaccurate.

[0015] Optionally, the determination module is further used to determine the linear velocity and angular velocity control amount of the robot based on the second controller when the posture estimation of the robot is accurate.

[0016] To achieve the above objective, according to another aspect of the present invention, an electronic device is provided.

[0017] The electronic device of the present invention comprises: one or more processors; and a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the robot posture control method of the present invention.

[0018] To achieve the above objective, according to yet another aspect of the present invention, a computer readable medium is provided.

[0019] The computer readable medium of the present invention stores a computer program thereon, and when the program is executed by a processor, the robot posture control method of the present invention is implemented.

[0020] One embodiment of the above invention has the following advantages or beneficial effects: by estimating the robot's posture based on sensor positioning technology, judging whether the robot's posture estimation is accurate based on the collected current environmental information, and when the robot's posture estimation is inaccurate, determining the robot's linear speed and angular velocity control amount based on the first controller. These steps can improve the accuracy of the robot's posture control, and thus solve the problem of the robot's difficulty in docking accurately or even docking failure due to inaccurate posture estimation.

[0021] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0023] Figure 1is a schematic diagram of the main process of the robot posture control method according to the first embodiment of the present invention;

[0024] Figure 2 is a schematic diagram of the main process of the robot posture control method according to the second embodiment of the present invention;

[0025] Figure 3 is a schematic diagram of a robot based on camera positioning according to an embodiment of the present invention;

[0026] Figure 4 is a schematic diagram of the docking process of the robot under the control of the first controller;

[0027] Figure 5 is a schematic diagram of the docking process of the robot under the control of the second controller;

[0028] Figure 6 It is a schematic diagram of the principle that the first controller can improve the accuracy of posture control;

[0029] Figure 7 is a schematic diagram of main modules of a robot posture control device according to a third embodiment of the present invention;

[0030] Figure 8 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0031] Fig. 9 It is a schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0033] It should be pointed out that the embodiments of the present invention and the features in the embodiments may be combined with each other if there is no conflict.

[0034] Figure 1 FIG. 1 is a schematic diagram of the main process of the robot posture control method according to the first embodiment of the present invention. Figure 1 As shown, the robot posture control method of the embodiment of the present invention includes:

[0035] Step S101: Estimate the position and posture of the robot based on sensor positioning technology.

[0036] Exemplarily, the sensor positioning technology may be a camera-based positioning technology. In this example, estimating the robot's posture based on the camera positioning technology may include: measuring the posture of a landmark (such as a QR code, image line features, angular features, etc.) in the camera coordinate system, and determining the robot's posture in the landmark coordinate system based on the relative posture relationship between the camera and the robot body. The robot's posture includes: the robot's position coordinates, and the robot's attitude angle (or "heading angle").

[0037] It should be noted that the sensor positioning technology in the present invention is not limited to the camera-based positioning technology. Without affecting the implementation of the present invention, if there is a problem of inaccurate landmark angle measurement when estimating the robot's posture based on the sensor positioning technology, the robot posture control method of the present invention can be applied.

[0038] Step S102: determining whether the position and posture estimation of the robot is accurate based on the collected current environment information.

[0039] Exemplarily, when the sensor positioning technology is a camera-based positioning technology, the current environment information may include: the distance between the current camera and the reference object, and / or the current environment light intensity.

[0040] In an optional embodiment, the current environment information includes: the distance between the current camera and the reference object. In this optional embodiment, step S102 is specifically: determining whether the distance between the current camera and the reference object is within a first value range; if the distance between the current camera and the reference object is within the first value range, confirming that the robot's posture estimation is accurate; if the distance between the current camera and the reference object is not within the first value range, confirming that the robot's posture estimation is inaccurate. The first value range can be flexibly set according to the actual resolution requirements for positioning based on the camera.

[0041] In another optional embodiment, the current environment information includes: current environment light intensity. In this optional embodiment, step S102 is specifically: determining whether the current environment light intensity is within a second value range; if the current environment light intensity is within the second value range, confirming that the robot's posture estimation is accurate; if the current environment light intensity is not within the second value range, confirming that the robot's posture estimation is inaccurate. The second value range can be flexibly set according to the actual resolution requirements when positioning based on the camera.

[0042] In another optional embodiment, the current environment information includes the distance between the current camera and the reference object and the current ambient light intensity. In this optional embodiment, step S102 specifically includes: determining whether the distance between the current camera and the reference object is within a first value range, and whether the current ambient light intensity is within a second value range; if the distance between the current camera and the reference object is within the first value range, and the current ambient light intensity is within the second value range, confirming that the robot's position and posture estimation is accurate; if the distance between the current camera and the reference object is not within the first value range, or the current ambient light intensity is not within the second value range, confirming that the robot's position and posture estimation is inaccurate.

[0043] Step S103: When the position and posture estimation of the robot is inaccurate, determine the linear velocity and angular velocity control amount of the robot based on the first controller.

[0044] In the embodiment of the present invention, the purpose of controlling the posture of the robot is to adjust the posture of the robot so that the robot reaches the docking point with the set posture as accurately as possible. In the case where the posture estimation of the robot is inaccurate, the calculation accuracy of the angular velocity control amount of the first controller is higher than that of the second controller.

[0045] If we define q = [x, y, θ] T The robot posture in the landmark coordinate system is measured in real time. The first controller can calculate the angular velocity control value w in real time according to q and the first reference posture to adjust and control the robot posture, so that the robot reaches the docking point with an accurate posture. The first reference posture includes the position coordinates of the first reference point and the attitude angle of the first reference point, which can be defined as: the position coordinates of the robot are used as the position coordinates of the first reference point, and the angle between the line connecting the robot and the docking point and the set attitude angle direction at the docking point is used as the attitude angle of the first reference point.

[0046] In addition, the control of the robot's posture includes not only the control of the robot's angular velocity, but also the control of the robot's linear velocity. In specific implementation, the linear velocity control amount can be determined based on factors such as external efficiency requirements, vehicle body performance, and safety requirements.

[0047] In an embodiment of the present invention, by collecting environmental information, determining whether the robot's posture estimation is accurate based on the environmental information, and determining the robot's linear velocity and angular velocity control amount based on the first controller when the robot's posture estimation is inaccurate, these steps can improve the accuracy of the robot's posture control, thereby solving the problem of the robot being difficult to dock accurately or even failing to dock due to inaccurate posture estimation.

[0048] Figure 2FIG. 1 is a schematic diagram of the main process of the robot posture control method according to the second embodiment of the present invention. Figure 2 As shown, the robot posture control method of the embodiment of the present invention includes:

[0049] Step S201: Estimate the position and posture of the robot based on camera positioning technology.

[0050] Exemplarily, estimating the robot's posture based on camera positioning technology may include: measuring the posture of a landmark (such as a QR code, image line features, angular features, etc.) in the camera coordinate system, and determining the robot's posture in the landmark coordinate system based on the relative posture relationship between the camera and the robot body. The robot's posture includes: the robot's position coordinates and the robot's attitude angle (or "heading angle").

[0051] Step S202: Determine whether the position and posture estimation of the robot is accurate based on the collected current environment information. If it is determined that the position and posture estimation of the robot is accurate, execute step S204; if it is determined that the position and posture estimation of the robot is inaccurate, execute step S203.

[0052] In an optional embodiment, the current environment information includes the distance between the current camera and the reference object and the current ambient light intensity. In this optional embodiment, step S202 specifically includes: determining whether the distance between the current camera and the reference object is within a first value range, and whether the current ambient light intensity is within a second value range; if the distance between the current camera and the reference object is within the first value range, and the current ambient light intensity is within the second value range, confirming that the robot's posture estimation is accurate; if the distance between the current camera and the reference object is not within the first value range, or the current ambient light intensity is not within the second value range, confirming that the robot's posture estimation is inaccurate.

[0053] Among them, the first value range and the second value range can be flexibly set according to the actual resolution requirements when positioning based on the camera. For example, when using an ordinary industrial QR code camera and a QR code size of 4.5cm×4.5cm, the resolution of the measured angle is required to be 0.1 degrees, that is, every time the actual robot angle increases by 0.1 degrees, the camera measurement system can correctly measure an angle increment of at least 0.1 degrees, and vice versa. After experiments, the first value range can be set to: less than or equal to 0.5m, and the second value range can be set to: greater than or equal to 200lx and less than or equal to 400lx. That is, when the distance between the current camera and the reference object is less than or equal to 0.5m, and the current ambient light intensity is greater than or equal to 200lx and less than or equal to 400lx, it is confirmed that the robot's posture estimation is accurate; otherwise, it is confirmed that the robot's posture estimation is inaccurate.

[0054] It should be pointed out that according to different measurement angle resolution requirements and different camera measurement system performance, the controller switching conditions (i.e., the conditions for judging whether the robot's posture estimation is accurate) may have different settings, and can be adjusted according to actual needs during specific implementation.

[0055] Step S203: determining the linear velocity control amount and angular velocity control amount of the robot based on the first controller.

[0056] In an embodiment of the present invention, the purpose of controlling the posture of the robot is to adjust the posture of the robot so that the robot reaches the docking point with the set posture as accurately as possible. The control of the robot posture includes controlling the linear velocity of the robot and controlling the angular velocity of the robot. When controlling the linear velocity of the robot, the first controller and the second controller can use the same linear velocity control amount calculation method. For example, the linear velocity control amount can be determined according to factors such as external efficiency requirements, vehicle body performance, and safety requirements.

[0057] In an optional embodiment, the first controller may determine the linear speed control amount based on the following method: according to the distance between the robot and the docking point, the set speed when the robot reaches the docking point, and the set acceleration, the linear speed control amount of the robot is determined. For example, the first controller may calculate the linear speed control amount according to the following formula:

[0058]

[0059] Among them, v end is the speed to reach the docking point, a is the deceleration (i.e. the absolute value of the acceleration for deceleration), and x is the remaining distance (i.e. the distance between the current position of the robot and the docking point).

[0060] In the embodiment of the present invention, considering that when the camera is far away from the road sign or the ambient light is poor, the angle value of the road sign measured by the camera is not accurate, which will lead to inaccurate posture of the robot (such as AGV) estimated therefrom, and thus bring errors to the calculation of the angular velocity control amount. Therefore, in this case, the angular velocity control amount can be calculated based on the first controller to eliminate the adverse effects caused by inaccurate posture estimation.

[0061] In an alternative implementation, if q = [x, y, θ] is defined TThe robot posture in the landmark coordinate system is measured in real time. The first controller can calculate the angular velocity control amount w in real time according to q and the first reference posture, which specifically includes: taking the position coordinates of the robot as the position coordinates of the first reference point, taking the angle between the line connecting the robot and the docking point and the set attitude angle direction at the docking point as the attitude angle of the first reference point to obtain the first reference posture; determining the state tracking error according to the first reference posture and the robot's posture; determining the robot's angular velocity control amount according to the state tracking error. Wherein, the first reference posture includes the position coordinates of the first reference point and the attitude angle of the first reference point.

[0062] Further, in a specific example of the above optional implementation manner, the first controller may calculate the angular velocity control amount according to the following formula:

[0063] w=k4·[atan[(y s -y) / (x s -x)]-θ];

[0064] Among them, w is the angular velocity control value of the robot, k4 is the set controller parameter, atan[(y s -y) / (x s -x)] is the attitude angle of the first reference point, x s ,y s is the position coordinate of the docking point, x, y are the position coordinates of the robot, and θ is the attitude angle of the robot.

[0065] The physical meaning of the angular velocity control amount calculation formula used by the first controller can be expressed as follows: According to the robot posture angle direction in the landmark coordinate system and the angle between the robot and the docking point, Calculate the angular velocity control amount. When the angle of the road sign measurement in the camera coordinate system is abnormal, the angle is also accurate, so the angular velocity control amount calculated based on this angle is also accurate.

[0066] Step S204: determining the linear velocity control amount and angular velocity control amount of the robot based on the second controller.

[0067] When controlling the linear speed of the robot, the first controller and the second controller may adopt the same linear speed control amount calculation method, that is, the linear speed control amount may be determined according to factors such as external efficiency requirements, vehicle body performance, and safety requirements.

[0068] In an optional embodiment, the second controller may determine the linear speed control amount based on the following method: according to the distance between the robot and the docking point, the set speed when the robot reaches the docking point, and the set acceleration, the linear speed control amount of the robot is determined. For example, the second controller may calculate the linear speed control amount according to the following formula:

[0069]

[0070] Among them, v end is the speed to reach the docking point, a is the deceleration (i.e. the absolute value of the acceleration for deceleration), and x is the remaining distance (i.e. the distance between the current position of the robot and the docking point).

[0071] In the embodiment of the present invention, when it is determined in step S202 that the position and posture estimation of the robot is accurate, the angular velocity control amount can be calculated based on the second controller. Specifically, if q = [x, y, θ] is defined T The robot posture in the landmark coordinate system is measured in real time. The second controller can calculate the angular velocity control amount w in real time according to q and the second reference posture, which specifically includes: drawing a perpendicular line from the robot's position coordinates to the set attitude angle direction at the docking point, and taking the position coordinates of the foot of the perpendicular point as the position coordinates of the second reference point, and taking the set attitude angle at the docking point as the attitude angle of the second reference point to obtain the second reference posture; determining the state tracking error according to the second reference posture and the robot's posture; determining the robot's angular velocity control amount according to the state tracking error. Wherein, the second reference posture includes the position coordinates of the second reference point, and the attitude angle of the second reference point.

[0072] Further, in a specific example of the above optional implementation manner, the second controller may calculate the angular velocity control amount according to the following formula:

[0073] w=sign(v)·k2·[-sinθ·(x r -x)+cosθ·(y r -y)]+k3(θ r -θ);

[0074] Wherein, w is the angular velocity control value of the robot; sign() is the symbol parameter, v is the linear velocity control value of the robot; k2 and k3 are the set controller parameters. In specific implementation, the values ​​of k2 and k3 can be determined by zero-pole matching and other methods; x r ,y r is the position coordinate component of the second reference point; x, y are the position coordinate components of the robot; θ ris the attitude angle of the second reference point; θ is the attitude angle of the robot; the second reference point satisfies: a perpendicular line is drawn from the position coordinates of the robot to the direction of the set attitude angle at the docking point, and the position coordinates of the foot point of the perpendicular are used as the position coordinates of the second reference point, and the set attitude angle at the docking point is used as the attitude angle of the second reference point.

[0075] It should be noted that the way the first controller and the second controller calculate the angular velocity control amount is not limited to the above optional implementations listed in the present invention. Without affecting the implementation of the present invention, any calculation method that satisfies "when the robot posture estimation is inaccurate, the angular velocity control amount calculation accuracy of the first controller is higher than that of the second controller" can be used.

[0076] Step S205: Control the operation of the robot based on the linear velocity control amount and the angular velocity control amount.

[0077] After the linear velocity control amount and the angular velocity control amount of the robot are calculated in step S203 or step S204, the robot can be controlled to change its posture accordingly, so that the robot reaches the docking point with the most accurate posture possible.

[0078] Step S206: Determine whether the connection is complete. If so, end the process; if not, execute step S201 again.

[0079] In an embodiment of the present invention, by collecting environmental information, determining whether the robot's posture estimation is accurate based on the environmental information, and determining the robot's linear velocity and angular velocity control amount based on the first controller when the robot's posture estimation is inaccurate, and determining the robot's linear velocity and angular velocity control amount based on the second controller when the robot's posture estimation is accurate, these steps can improve the accuracy of the robot's posture control, thereby solving the problem of the robot's difficulty in accurately docking or even docking failure due to inaccurate posture estimation.

[0080] Figure 3 is a schematic diagram of a robot based on camera positioning according to an embodiment of the present invention. Figure 3 As shown, the camera-based positioning robot of the embodiment of the present invention may be specifically an AGV, which may include: a vehicle body 301, a camera 302 arranged on the vehicle body, a left wheel 303, and a tanker 304. In addition, Figure 3 The robot shown may also include the robot posture control device proposed by the present invention.

[0081] Figure 4 This is a schematic diagram of the robot docking process under the control of the first controller. Figure 4 The derivation process of the formula used by the first controller to calculate the angular velocity control amount is explained.

[0082] For simplicity, it is assumed that the docking point and the landmark are in the same position in the world coordinate system, or that the position error of the docking point in the landmark coordinate system is within an acceptable range when the angle measurement is abnormal.

[0083] like Figure 4 As shown, x s -o s -y s is the landmark coordinate system (such as the QR code coordinate system); xoy is the robot coordinate system; (x, y, θ) is the position of the robot in the landmark coordinate system, x and y are the position coordinates of the robot, and θ is the attitude angle (or "heading angle") of the robot, which can be defined as the deflection angle of the robot's heading in the counterclockwise direction relative to the x-axis of the landmark coordinate system.

[0084] Specifically, if we define q = [x, y, θ] T The first controller can calculate the angular velocity control value w in real time based on q and the first reference pose, which is the robot pose in the landmark coordinate system measured in real time. The first reference pose includes the position coordinates of the first reference point and the attitude angle of the first reference point, which can be defined as: the position coordinates of the robot are taken as the position coordinates of the first reference point, and the angle between the line connecting the robot and the docking point and the set attitude angle direction at the docking point is taken as the attitude angle of the first reference point. The first reference pose can be expressed as:

[0085]

[0086] In formula (1), q r is the first reference pose, x r ,y r is the position coordinate of the first reference point, θ r is the attitude angle of the first reference point, x and y are the position coordinates of the robot, x s ,y s is the position coordinate of the docking point.

[0087] In addition, the state tracking error in the robot coordinate system is:

[0088]

[0089] And the calculation formula of angular velocity control amount can be expressed as:

[0090] w=sign(v)·k2·e2+k3·e3 (3)

[0091] Furthermore, by substituting equations (1) and (2) into equation (3), the following formula can be obtained, which is the formula used by the first controller to calculate the angular velocity control amount:

[0092] w=k4·[atan[(y s-y) / (x s -x)]-θ] (4)

[0093] Among them, w is the angular velocity control value of the robot, k2, k3, k4 are the set controller parameters, atan[(y s -y) / (x s -x)] is the attitude angle of the first reference point, x s ,y s is the position coordinate of the docking point, x, y are the position coordinates of the robot, and θ is the attitude angle of the robot.

[0094] Figure 5 This is a schematic diagram of the robot docking process under the control of the second controller. Figure 5 The derivation process of the formula used by the second controller to calculate the angular velocity control amount is explained.

[0095] For simplicity, it is assumed that the docking point and the landmark are in the same position in the world coordinate system, or that the position error of the docking point in the landmark coordinate system is within an acceptable range when the angle measurement is abnormal.

[0096] like Figure 5 As shown, x w -o w -y w is the world coordinate system, which is only used as a reference and does not participate in the calculation of the posture control quantity; s -o s -y s is the landmark coordinate system (such as the QR code coordinate system); xoy is the robot coordinate system; (x, y, θ) is the position of the robot in the landmark coordinate system, x and y are the position coordinates of the robot, and θ is the attitude angle (or "heading angle") of the robot, which can be defined as the deflection angle of the robot's heading in the counterclockwise direction relative to the x-axis of the landmark coordinate system.

[0097] Specifically, if we define q = [x, y, θ] T The robot pose in the landmark coordinate system is measured in real time. The second controller can be based on q and the second reference pose q r The angular velocity control value w is calculated in real time. The second reference posture includes the position coordinates of the second reference point and the attitude angle of the second reference point, which can be defined as: a perpendicular line is drawn from the position coordinates of the robot to the direction of the set attitude angle at the docking point, and the position coordinates of the foot point of the perpendicular are used as the position coordinates of the second reference point, and the set attitude angle at the docking point is used as the attitude angle of the second reference point. The second reference posture can be expressed as:

[0098] q r =[x r ,y r ,θr ] (5)

[0099] In formula (1), q r is the second reference pose, x r ,y r is the position coordinate of the second reference point, θ r is the attitude angle of the second reference point.

[0100] In addition, the state tracking error in the robot coordinate system is:

[0101]

[0102] And the calculation formula of angular velocity control amount can be expressed as:

[0103] w=sign(v)·k2·e2+k3·e3 (7)

[0104] Furthermore, by substituting equations (5) and (6) into equation (7), we can obtain the following formula, which is the formula used by the second controller to calculate the angular velocity control amount:

[0105] w=sign(v)·k2·[-sinθ·(x r -x)+cosθ·(y r -y)]+k3(θ r -θ)(8)

[0106] Wherein, w is the angular velocity control value of the robot; sign() is the symbol parameter, v is the linear velocity control value of the robot; k2 and k3 are the set controller parameters. In specific implementation, the values ​​of k2 and k3 can be determined by zero-pole matching and other methods; x r ,y r is the position coordinate component of the second reference point; x, y are the position coordinate components of the robot; θ r is the attitude angle of the second reference point; θ is the attitude angle of the robot; the second reference point satisfies: a perpendicular line is drawn from the position coordinates of the robot to the direction of the set attitude angle at the docking point, and the position coordinates of the foot point of the perpendicular are used as the position coordinates of the second reference point, and the set attitude angle at the docking point is used as the attitude angle of the second reference point.

[0107] Figure 6 This is a schematic diagram of the principle that the first controller can improve the accuracy of posture control. Figure 6 In the above, it is assumed that the docking point and the landmark are in the same position in the world coordinate system, and the camera and the robot are assumed to have the same position. It should be pointed out that the following analysis and discussion are also applicable to the case where the camera is fixed at other positions of the robot.

[0108] exist Figure 6In the figure, sub-figure (a) describes the relative posture relationship between the real robot and the landmark. Since the angle of the landmark measured by the camera is inaccurate, the attitude angle of the landmark will have an angle deviation in the robot coordinate system, as shown in sub-figure (b). When the landmark coordinate system is used as the reference coordinate system to represent the robot posture, the robot's angle θ will also deviate, which will lead to a deviation when calculating the angular velocity control amount based on the second controller. However, at the same time, in the landmark coordinate system, the angle of the vector formed by the robot center and the landmark center in the landmark coordinate system (i.e., atan[(y s -y) / (x s -x)]) also has the same measurement error Δθ. Therefore, when the camera measures the angle of the landmark inaccurately, the angle between the robot position and the docking point position It can still remain accurate and can be used to calculate the appropriate angular velocity control amount.

[0109] Figure 7 Schematic diagram of the main modules of the robot posture control device according to the third embodiment of the present invention. Figure 7 As shown, the robot posture control device 700 according to the embodiment of the present invention includes: a posture estimation module 701 , a judgment module 702 , and a determination module 703 .

[0110] The posture estimation module 701 is used to estimate the posture of the robot based on the sensor positioning technology.

[0111] Exemplarily, the sensor positioning technology may be a positioning technology based on a camera. In this example, the pose estimation module 701 estimates the pose of the robot based on the camera positioning technology, which may include: measuring the pose of a landmark (such as a QR code, image line features, angular features, etc.) in the camera coordinate system, and determining the pose of the robot in the landmark coordinate system based on the relative pose relationship between the camera and the robot body. The pose of the robot includes: the position coordinates of the robot, and the attitude angle (or "heading angle") of the robot.

[0112] It should be noted that the sensor positioning technology in the present invention is not limited to the camera-based positioning technology. Without affecting the implementation of the present invention, if there is a problem of inaccurate measurement of landmark angles when estimating the robot's posture based on the sensor positioning technology, the robot posture control device of the present invention can be used to perform posture control.

[0113] The judgment module 702 is used to judge whether the position and posture estimation of the robot is accurate based on the collected current environment information.

[0114] In an optional embodiment, the current environment information includes the distance between the current camera and the reference object and the current environment light intensity. In this optional embodiment, the judgment module 702 judges whether the pose estimation of the robot is accurate according to the collected current environment information, specifically including: the judgment module 702 judges whether the distance between the current camera and the reference object is within the first value range, and whether the current environment light intensity is within the second value range; if the distance between the current camera and the reference object is within the first value range, and the current environment light intensity is within the second value range, the judgment module 702 confirms that the pose estimation of the robot is accurate; if the distance between the current camera and the reference object is not within the first value range, or the current environment light intensity is not within the second value range, the judgment module 702 confirms that the pose estimation of the robot is inaccurate.

[0115] Among them, the first value range and the second value range can be flexibly set according to the actual resolution requirements when positioning based on the camera. For example, when using an ordinary industrial QR code camera and a QR code size of 4.5cm×4.5cm, the resolution of the measured angle is required to be 0.1 degrees, that is, every time the actual robot angle increases by 0.1 degrees, the camera measurement system can correctly measure an angle increment of at least 0.1 degrees, and vice versa. After experiments, the first value range can be set to: less than or equal to 0.5m, and the second value range can be set to: greater than or equal to 200lx and less than or equal to 400lx. That is, when the distance between the current camera and the reference object is less than or equal to 0.5m, and the current ambient light intensity is greater than or equal to 200lx and less than or equal to 400lx, it is confirmed that the robot's posture estimation is accurate; otherwise, it is confirmed that the robot's posture estimation is inaccurate.

[0116] It should be pointed out that according to different measurement angle resolution requirements and different camera measurement system performance, the controller switching conditions (i.e., the conditions for judging whether the robot's posture estimation is accurate) may have different settings, and can be adjusted according to actual needs during specific implementation.

[0117] The determination module 703 is used to determine the linear velocity and angular velocity control amount of the robot based on the first controller when the posture estimation of the robot is inaccurate.

[0118] The first controller and the second controller may adopt the same linear speed control amount calculation method. For example, the linear speed control amount may be determined according to factors such as external efficiency requirements, vehicle body performance, and safety requirements.

[0119] In an optional embodiment, the first controller may determine the linear speed control amount based on the following method: according to the distance between the robot and the docking point, the set speed when the robot reaches the docking point, and the set acceleration, the linear speed control amount of the robot is determined. For example, the first controller may calculate the linear speed control amount according to the following formula:

[0120]

[0121] Among them, v end is the speed to reach the docking point, a is the deceleration (i.e. the absolute value of the acceleration for deceleration), and x is the remaining distance (i.e. the distance between the current position of the robot and the docking point).

[0122] In the embodiment of the present invention, considering that when the camera is far away from the road sign or the ambient light is poor, the angle value of the road sign measured by the camera is not accurate, which will lead to inaccurate posture of the robot (such as AGV) estimated based on this, and thus bring errors to the calculation of the angular velocity control amount. Therefore, in this case, the angular velocity control amount can be calculated based on the first controller to eliminate the adverse effects caused by inaccurate posture estimation. Among them, when the robot posture estimation is inaccurate, the calculation accuracy of the angular velocity control amount of the first controller is higher than that of the second controller.

[0123] In an alternative implementation, if q = [x, y, θ] is defined T The robot posture in the landmark coordinate system is measured in real time. The first controller can calculate the angular velocity control amount w in real time according to q and the first reference posture, which specifically includes: taking the position coordinates of the robot as the position coordinates of the first reference point, taking the angle between the line connecting the robot and the docking point and the set attitude angle direction at the docking point as the attitude angle of the first reference point to obtain the first reference posture; determining the state tracking error according to the first reference posture and the robot's posture; determining the robot's angular velocity control amount according to the state tracking error. Wherein, the first reference posture includes the position coordinates of the first reference point and the attitude angle of the first reference point.

[0124] Further, in a specific example of the above optional implementation manner, the first controller may calculate the angular velocity control amount according to the following formula:

[0125] w=k4·[atan[(y s -y) / (x s -x)]-θ];

[0126] Among them, w is the angular velocity control value of the robot, k4 is the set controller parameter, atan[(y s -y) / (x s -x)] is the attitude angle of the first reference point, x s ,ys is the position coordinate of the docking point, x, y are the position coordinates of the robot, and θ is the attitude angle of the robot.

[0127] The physical meaning of the angular velocity control amount calculation formula used by the first controller can be expressed as follows: According to the robot posture angle direction in the landmark coordinate system and the angle between the robot and the docking point, Calculate the angular velocity control amount. When the angle of the road sign measurement in the camera coordinate system is abnormal, the angle is also accurate, so the angular velocity control amount calculated based on this angle is also accurate.

[0128] Furthermore, the determination module 703 may also be used to determine the angular velocity control amount of the robot based on the second controller when the position and posture estimation of the robot is accurate.

[0129] Specifically, if we define q = [x, y, θ] T The robot posture in the landmark coordinate system is measured in real time. The second controller can calculate the angular velocity control amount w in real time according to q and the second reference posture, which specifically includes: drawing a perpendicular line from the robot's position coordinates to the set attitude angle direction at the docking point, and taking the position coordinates of the foot point of the perpendicular as the position coordinates of the second reference point, and taking the set attitude angle at the docking point as the attitude angle of the second reference point to obtain the second reference posture; determining the state tracking error according to the second reference posture and the robot's posture; determining the robot's angular velocity control amount according to the state tracking error. Among them, the second reference posture includes the position coordinates of the second reference point and the attitude angle of the second reference point, which can be defined as: drawing a perpendicular line from the robot's position coordinates to the set attitude angle direction at the docking point, and taking the position coordinates of the foot point of the perpendicular as the position coordinates of the second reference point, and taking the set attitude angle at the docking point as the attitude angle of the second reference point.

[0130] Further, in an optional implementation, the second controller may calculate the angular velocity control amount according to the following formula:

[0131] w=sign(v)·k2·[-sinθ·(x r -x)+cosθ·(y r -y)]+k3(θ r -θ);

[0132] Wherein, w is the angular velocity control value of the robot; sign() is the symbol parameter, v is the linear velocity control value of the robot; k2 and k3 are the set controller parameters. In specific implementation, the values ​​of k2 and k3 can be determined by zero-pole matching and other methods; x r ,y r is the position coordinate component of the second reference point; x, y are the position coordinate components of the robot; θr is the attitude angle of the second reference point; θ is the attitude angle of the robot; the second reference point satisfies: a perpendicular line is drawn from the position coordinates of the robot to the direction of the set attitude angle at the docking point, and the position coordinates of the foot point of the perpendicular are used as the position coordinates of the second reference point, and the set attitude angle at the docking point is used as the attitude angle of the second reference point.

[0133] In the device of the embodiment of the present invention, by collecting environmental information and judging whether the robot's posture estimation is accurate based on the environmental information, and determining the robot's angular velocity control amount based on the first controller when the robot's posture estimation is inaccurate, and determining the robot's linear velocity and angular velocity control amount based on the second controller when the robot's posture estimation is accurate, the accuracy of the robot's posture control can be improved, thereby solving the problem of the robot being difficult to dock accurately or even failing to dock due to inaccurate posture estimation.

[0134] Figure 8 An exemplary system architecture 800 is shown to which the robot posture control method or robot posture control device according to the embodiments of the present invention can be applied.

[0135] like Figure 8 As shown, the system architecture 800 may include mobile robots 801, 802, 803, a network 804, and a server 805. The network 804 is used to provide a medium for communication links between the mobile robots 801, 802, 803 and the server 805. The network 804 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0136] The mobile robots 801, 802, 803 may be AGVs, sweeping robots, or other types of mobile robots. The mobile robots 801, 802, 803 interact with the server 805 via the network 804 to receive or send messages, etc. The mobile robots 801, 802, 803 may be equipped with one or more sensors such as cameras, laser radars, GPS sensors, and IMU (inertial navigation) sensors.

[0137] The server 805 may be a server that provides various services, such as a management server that controls and manages the mobile robots 801, 802, and 803. The management server may analyze and process the posture control request received from the mobile robot, and feed back the processing result (such as the angular velocity control amount and the linear velocity control amount) to the mobile robot.

[0138] It should be noted that the robot posture control method provided in the embodiment of the present invention can be executed by the server 805 , and accordingly, the robot posture control device can be set in the server 805 .

[0139] It should be understood that Figure 8 The number of mobile robots, networks and servers in the example is only for illustration. Any number of mobile robots, networks and servers may be provided as required. Figure 8 In addition to the illustrated architecture, the robot posture control device provided in the embodiment of the present invention may also be a module disposed on a mobile robot, and the robot posture control method is executed by the module.

[0140] Reference below Fig. 9 , which shows a schematic diagram of the structure of a computer system 900 of an electronic device suitable for implementing an embodiment of the present invention. Fig. 9 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0141] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0142] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.

[0143] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present invention are executed.

[0144] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0145] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0146] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be arranged in a processor, for example, they may be described as: a processor including a posture estimation module, a judgment module and a determination module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the posture estimation module may also be described as a "module for estimating the posture of the robot".

[0147] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the following process: estimating the posture of the robot according to the sensor positioning technology; the posture of the robot includes: the position coordinates of the robot, and the attitude angle of the robot; judging whether the posture estimation of the robot is accurate according to the current environmental information collected; if the posture estimation of the robot is inaccurate, determining the linear velocity and angular velocity control amount of the robot based on the first controller.

[0148] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A robot posture control method, It is characterized in that The method comprises: The position and posture of the robot are estimated according to the sensor positioning technology; the position and posture of the robot includes: the position coordinates of the robot and the attitude angle of the robot; the sensor positioning technology is a positioning technology based on a camera; Determining whether the position and posture estimation of the robot is accurate according to the collected current environmental information; the current environmental information includes: the distance between the current camera and the reference object and / or the current ambient light intensity; if the distance between the current camera and the reference object is not within the first value range, or the current ambient light intensity is not within the second value range, confirming that the position and posture estimation of the robot is inaccurate; In the case where the posture estimation of the robot is inaccurate, the linear speed and angular velocity control amount of the robot is determined based on the first controller; specifically, the linear speed control amount of the robot is determined according to the distance between the robot and the docking point, the set speed when the robot reaches the docking point, and the set acceleration; the position coordinates of the robot are used as the position coordinates of the first reference point, and the angle between the line connecting the robot and the docking point and the set posture angle direction at the docking point is used as the posture angle of the first reference point to obtain a first reference posture; the state tracking error is determined according to the first reference posture and the posture of the robot; the angular velocity control amount of the robot is determined according to the state tracking error.

2. The method according to claim 1, It is characterized in that The method further comprises: When the position and posture estimation of the robot is accurate, the linear velocity and angular velocity control amount of the robot are determined based on the second controller.

3. The method according to claim 2, It is characterized in that The step of judging whether the robot's posture estimation is accurate based on the collected current environmental information also includes: judging whether the distance between the current camera and the reference object is within a first value range, and whether the current ambient light intensity is within a second value range; when the distance between the current camera and the reference object is within the first value range, and the current ambient light intensity is within the second value range, confirming that the robot's posture estimation is accurate.

4. The method according to claim 2, It is characterized in that Determining the linear speed control amount of the robot based on the second controller includes: determining the linear speed control amount of the robot according to the distance between the robot and the docking point, the set speed when the robot reaches the docking point, and the set acceleration.

5. The method according to claim 2, It is characterized in that Determining the angular velocity control amount of the robot based on the second controller includes: Draw a perpendicular line from the position coordinates of the robot to the set attitude angle at the docking point, and use the position coordinates of the foot point of the perpendicular as the position coordinates of the second reference point, and use the set attitude angle at the docking point as the attitude angle of the second reference point to obtain a second reference posture; determine the state tracking error based on the second reference posture and the robot's posture; determine the robot's angular velocity control amount based on the state tracking error.

6. A robot posture control device, It is characterized in that The device comprises: A posture estimation module, used for estimating the posture of the robot according to the sensor positioning technology; the posture of the robot includes: the position coordinates of the robot and the attitude angle of the robot; the sensor positioning technology is a positioning technology based on a camera; A judgment module, used to judge whether the posture estimation of the robot is accurate according to the collected current environmental information; the current environmental information includes: the distance between the current camera and the reference object and / or the current ambient light intensity; if the distance between the current camera and the reference object is not within the first value range, or the current ambient light intensity is not within the second value range, confirming that the posture estimation of the robot is inaccurate; A determination module is used to determine the linear velocity and angular velocity control amount of the robot based on the first controller when the posture estimation of the robot is inaccurate; specifically used to: determine the linear velocity control amount of the robot according to the distance between the robot and the docking point, the set speed when the robot reaches the docking point, and the set acceleration; use the position coordinates of the robot as the position coordinates of the first reference point, and use the angle between the line connecting the robot and the docking point and the set posture angle direction at the docking point as the posture angle of the first reference point to obtain a first reference posture; determine the state tracking error according to the first reference posture and the posture of the robot; determine the angular velocity control amount of the robot according to the state tracking error.

7. The device according to claim 6, It is characterized in that The determination module is further configured to determine the angular velocity control amount of the robot based on the second controller when the posture estimation of the robot is accurate.

8. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

9. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.