A quadruped robot positioning method and system
By conducting site mapping and security camera calibration for the quadruped robot, combined with the lidar SLAM function, and using security camera information to correct the pose, the problem of low positioning accuracy of the quadruped robot is solved, and more accurate and efficient positioning is achieved.
Patent Information
- Application Number
- CN202110915186.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-10
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-08-10
AI Technical Summary
The existing quadruped robot positioning method has low positioning accuracy during site inspections, resulting in low search efficiency and high cost. It is also inaccurate indoors or blocked by buildings, and the cumulative error of laser SLAM navigation is large, which affects Robot positioning accuracy.
By mapping the site environment, we obtain the ground area image captured by the security camera, use Zhang Zhengyou's checkerboard method for calibration, obtain the homography transformation matrix, rotation matrix and translation vector, convert them into standard rectangular coordinates, and combine them with the lidar SLAM function to conduct autonomous Navigation uses security camera information to correct the pose and achieve accurate positioning of the quadruped robot in the built map.
It improves the positioning accuracy of the quadruped robot, reduces the cumulative error, achieves fast and accurate positioning, reduces costs, and maintains efficient positioning performance in complex environments.
Smart Images

Figure CN113781550B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot control technology, and in particular to a quadruped robot positioning method and system. Background Art
[0002] Quadruped robots are used in complex environments such as mountains to assist in completing tasks such as mountain environment detection and testing, disaster relief, and border patrol and surveillance. They have the advantages of flexible climbing and walking, stable gait, small landing area, and low energy consumption. In the application scenario of site inspections, whether it is humans or robots, they often cannot accurately know the correct position of the inspector or the inspector during the inspection process. Many times, it takes a lot of time to find it, and it may even be lost.
[0003] Existing quadruped robots for site inspection mainly rely on manual search, which is time-consuming, inefficient and wastes a lot of human resources. Alternatively, they use GPS navigation, which is expensive and can cause inaccurate positioning in indoor scenes or when blocked by buildings. Alternatively, they use laser SLAM navigation, but the laser repositioning accuracy is insufficient. After a long period of cruising, the large accumulated error will affect the robot's positioning accuracy. Summary of the invention
[0004] The purpose of the present invention is to provide a quadruped robot positioning method and system to solve the problem of low positioning accuracy of the existing quadruped robot positioning method.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] A quadruped robot positioning method, comprising:
[0007] Mapping the site environment to obtain a constructed map;
[0008] Get the ground area of the security camera captured by the security camera in the venue environment;
[0009] Calibrate the transformation relationship between the ground area of the security camera and the actual ground area according to the built map to obtain the actual coordinates of the quadruped robot in the built map;
[0010] Obtaining position information of the quadruped robot during operation;
[0011] The positioning of the quadruped robot is completed according to the position information and the actual coordinates.
[0012] Preferably, the step of calibrating the transformation relationship between the ground area of the security camera and the actual ground area according to the built map to obtain the actual coordinates of the quadruped robot in the built map includes:
[0013] Calibrate the security camera using Zhang Zhengyou's chessboard method to obtain calibration parameters;
[0014] Select four points in the actual area of the ground to form a rectangle;
[0015] Obtain a distorted image of the rectangle obtained when the security camera is imaging, recorded as trapezoid X;
[0016] Obtaining a homography transformation matrix H according to the calibration parameters;
[0017] The trapezoid X is converted into a standard rectangle X' using the formula X'=H·X;
[0018] Obtaining a rotation matrix and a translation vector between the actual ground area and the constructed map;
[0019] The actual coordinates of the quadruped robot in the constructed map are obtained according to the rotation matrix and the translation vector.
[0020] Preferably, obtaining the actual coordinates of the quadruped robot in the built map according to the rotation matrix and the translation vector includes:
[0021] Obtaining a conversion relationship between the actual ground area and the constructed map according to the rotation matrix and the translation vector;
[0022] Obtaining the correspondence between the image coordinates of the quadruped robot in the image and the ground area according to the homography transformation matrix;
[0023] The actual coordinates of the quadruped robot in the constructed map are obtained according to the conversion relationship and the corresponding relationship.
[0024] Preferably, obtaining the actual coordinates of the quadruped robot in the built map according to the conversion relationship and the corresponding relationship includes:
[0025] Using the formula:
[0026] p=R -1 [f -1 (HX)-t]
[0027] Get the actual coordinates of the quadruped robot in the built map; where R represents the rotation matrix, t represents the translation vector, and f -1 (HX) indicates the corresponding relationship.
[0028] The present invention also provides a quadruped robot positioning system, comprising:
[0029] A map construction module is used to construct a map of the site environment to obtain a constructed map;
[0030] A shooting module is used to obtain the ground area of the security camera captured by the security camera in the site environment;
[0031] A calibration module, used to calibrate the transformation relationship between the ground area of the security camera and the actual ground area according to the built map to obtain the actual coordinates of the quadruped robot in the built map;
[0032] A position acquisition module, used to obtain the position information of the quadruped robot during operation;
[0033] A positioning module is used to complete the positioning of the quadruped robot according to the position information and the actual coordinates.
[0034] Preferably, the calibration module comprises:
[0035] A calibration parameter acquisition unit, used to calibrate the security camera by using Zhang Zhengyou's chessboard method to obtain calibration parameters;
[0036] A rectangle planning unit, used for selecting four points in the actual ground area to form a rectangle;
[0037] A distorted image acquisition unit, used to acquire a distorted image of the rectangle obtained when the security camera is imaging, which is denoted as a trapezoid X;
[0038] A homography transformation matrix calculation unit, used to obtain a homography transformation matrix H according to the calibration parameters;
[0039] A standard rectangle conversion unit, used to convert the trapezoid X into a standard rectangle X' by using the formula X'=H·X;
[0040] A rotation matrix and translation vector acquisition unit, used to acquire the rotation matrix and translation vector between the actual ground area and the constructed map;
[0041] The actual coordinate calculation unit is used to obtain the actual coordinates of the quadruped robot in the constructed map according to the rotation matrix and the translation vector.
[0042] Preferably, the actual coordinate calculation unit includes:
[0043] A conversion relationship determination subunit, used for obtaining a conversion relationship between the actual ground area and the built map according to the rotation matrix and the translation vector;
[0044] A correspondence determination subunit, used to obtain the correspondence between the image coordinates of the quadruped robot in the image and the ground area according to the homography transformation matrix;
[0045] The actual coordinate determination subunit is used to obtain the actual coordinates of the quadruped robot in the established map according to the conversion relationship and the corresponding relationship.
[0046] Preferably, the actual coordinate determination subunit includes:
[0047] Using the formula:
[0048] p=R -1 [f -1 (HX)-t]
[0049] Get the actual coordinates of the quadruped robot in the built map; where R represents the rotation matrix, t represents the translation vector, and f -1 (HX) indicates the corresponding relationship.
[0050] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0051] The present invention also provides a computer-readable storage medium on which a computer program is stored, and the computer program implements the steps of the above method when executed by a processor.
[0052] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0053] The present invention provides a method and system for positioning a quadruped robot. The method for positioning a quadruped robot provided by the present invention includes: firstly mapping the site environment to obtain a constructed map; obtaining the ground area of the security camera photographed by the security camera in the site environment; then calibrating the transformation relationship between the ground area of the security camera and the actual ground area according to the constructed map to obtain the actual coordinates of the quadruped robot in the constructed map; obtaining the position information of the quadruped robot during operation; and finally completing the positioning of the quadruped robot according to the position information and the actual coordinates. The present invention can remove the accumulated error of the quadruped robot during operation by using the actual coordinates of the quadruped robot in the constructed map to calibrate the position information of the quadruped robot during operation, thereby obtaining a more accurate positioning accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0055] Figure 1 This is a schematic diagram of the calibration of the transformation relationship between the security camera shooting area and the actual ground area provided by the present invention.
[0056] Figure 2 A schematic diagram of the ground area corresponding to the camera imaging and the camera imaging provided by the present invention.
[0057] Figure 3 A schematic diagram of the calibration of the conversion relationship between the security camera coordinate system and the quadruped robot coordinate system provided by the present invention.
[0058] Figure 4 A positioning principle diagram of a quadruped robot provided by the present invention. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] The purpose of the present invention is to provide a quadruped robot positioning method and system to solve the problem of low positioning accuracy of the existing quadruped robot positioning method.
[0061] Please also read Figure 1-Figure 4 To achieve the above object, the present invention provides the following solution: a quadruped robot positioning method, comprising:
[0062] Step 1: Map the site environment to obtain a constructed map;
[0063] Step 2: Obtain the ground area of the security camera captured by the security camera in the site environment;
[0064] Step 3: Calibrate the transformation relationship between the ground area of the security camera and the actual ground area according to the built map to obtain the actual coordinates of the quadruped robot in the built map;
[0065] Step 3 includes:
[0066] Step 3.1: Calibrate the security camera using Zhang Zhengyou's chessboard method to obtain calibration parameters;
[0067] Step 3.2: Select four points on the actual ground area to form a rectangle;
[0068] Step 3.3: Obtain the distorted image of the rectangle when the security camera is imaging, which is recorded as trapezoid X;
[0069] Step 3.4: Obtain the homography transformation matrix H according to the calibration parameters;
[0070] Step 3.5: Use the formula X'=H·X to convert the trapezoid X into a standard rectangle X';
[0071] Step 3.6: Obtain the rotation matrix and translation vector between the actual ground area and the constructed map;
[0072] Step 3.7: Get the actual coordinates of the quadruped robot in the built map based on the rotation matrix and translation vector.
[0073] Step 3.7 specifically includes:
[0074] The transformation relationship between the actual ground area and the constructed map is obtained based on the rotation matrix and the translation vector;
[0075] The corresponding relationship between the image coordinates of the quadruped robot in the image and the ground area is obtained according to the homography transformation matrix;
[0076] The actual coordinates of the quadruped robot in the built map are obtained according to the conversion relationship and the corresponding relationship. Specifically, the formula is used:
[0077] p=R -1 [f -1 (HX)-t]
[0078] Get the actual coordinates of the quadruped robot in the built map; where R represents the rotation matrix, t represents the translation vector, and f -1 (HX) indicates the corresponding relationship.
[0079] Step 4: Obtain the position information of the quadruped robot during operation;
[0080] Step 5: Complete the positioning of the quadruped robot based on the position information and actual coordinates.
[0081] The following is a further description of a quadruped robot positioning method provided by the present invention in conjunction with specific embodiments:
[0082] The present invention provides a quadruped robot positioning method, comprising the steps of mapping a site environment, calibrating the transformation relationship between a security camera and the ground, calibrating the transformation relationship between the security camera and a starting point of the quadruped robot, autonomous positioning and navigation of the quadruped robot, the quadruped robot transmitting position information to a server, the robot receiving target capture information from a security camera through the server, two-way confirmation of mutual capture, obtaining robot position information, converting robot position information, the robot correcting its own position, the robot calculating its own position information, transmitting the position information to a server, and converting the position information into site environment position information.
[0083] Step 1: Build a map of the entire site environment;
[0084] Step 2: Calibrate the transformation relationship between the security camera shooting area and the actual ground area;
[0085] Step 3: Calibrate the conversion relationship between the security camera and the starting point of the quadruped robot;
[0086] Step 4: The quadruped robot itself has a laser radar SLAM positioning function for autonomous positioning and navigation;
[0087] Step 5: During the operation of the quadruped robot, the position information is transmitted to the server, and the target capture information of the security camera is received from the server;
[0088] Step 6: The quadruped robot repositions itself and the camera captures the quadruped robot. After two-way confirmation, the position information of the quadruped robot in the image is transmitted to the robot;
[0089] Step 7: The quadruped robot will integrate the information transmitted by the camera and correct its own positioning information.
[0090] Step 8: During the operation of the quadruped robot, the position information is transmitted to the server, and this information is converted into the location information of the site environment. The staff can check the position of the robot in the site at any time.
[0091] Furthermore, in the calibration of the transformation relationship between the security camera and the ground, the height of the security camera is OD, the pitch angle is ∠DOA, the field of view angle is ∠AOB, and the field of view angle is ∠AOB as the given parameters of the camera, and the field of view angle can be recalibrated by Zhang Zhengyou's chessboard method, wherein the actual lengths of OD and DA in the calibration of the transformation relationship between the security camera and the ground can be accurately measured, and the pitch angle is The field of view angle is a given parameter of the camera. In the present invention, it can also be manually recalibrated using the Zhang Zhengyou chessboard method.
[0092] In practical applications, four points m, n, v, and u are selected on the ground to form a rectangle x. When the rectangular area is imaged in the camera, it is a distorted image, a trapezoidal MNVU, denoted as X, which can be transformed into a standard rectangle M'N'V'U', denoted as X', through homography transformation. X' = H·X, and H is the homography transformation matrix. In the calibration of the transformation relationship between the security camera and the ground, the distorted image when imaged in the camera is a trapezoidal MNVU, and the trapezoidal MNVU is denoted as X. By linking with the security camera in the station, the positioning accuracy of the quadruped robot is improved by combining external and internal methods.
[0093] In the calibration of the transformation relationship between the security camera and the ground, the ground area is mnvu, the built map is M, and the ground area mnvu and the built map M are in a preset rotation and translation relationship, the rotation matrix is R, and the translation vector is t. Then the relationship between the ground area and any point in M is x=R·M+t. The proportional relationship between the ground area mnvu and each pixel point in the rectangle M'N'V'U' is X'=f(x), and the corresponding relationship between the image coordinates of the quadruped robot in the image and the ground area is x=f -1 (HX), then the coordinates of the quadruped robot in the map M are p = R -1 [f -1 (HX)-t].
[0094] In the present invention, the relationship between the ground area mnvu and any point in M is x=R·M+t, and the coordinates of the quadruped robot in the map M are p=R -1 [f -1 (HX)-t], since the ground area and the built map are both two-dimensional planes, if the rotation is also 0, that is, R is a unit matrix, there is only a translation relationship between the two, which will simplify the calculation. The conversion relationship between the security camera and the starting point of the quadruped robot is calibrated to obtain the coordinate system of the quadruped robot self-navigation as E, and the relationship between the coordinate system E of the quadruped robot self-navigation and the built map M is a rotation-translation relationship, and the rotation matrix is W, the translation vector is s, E = W·M+s, when the starting direction of the quadruped robot is parallel to mn, that is, the rotation is also 0, that is, when R is a unit matrix, there is only a translation relationship between the two.
[0095] Furthermore, in step seven of the present invention, the quadruped robot will fuse the information transmitted by the camera without limiting the calculation method and optimization method of the robot's own laser SLAM, and only optimize the obtained posture. There are two possible ways for the quadruped robot to fuse camera information: when the robot is captured by the camera, it fully trusts the camera calculation information, but this method completely discards the robot's own radar information; the camera information is used as a constraint item, and added to the optimization equation of the quadruped robot to form a constraint on its posture, so as to remove the cumulative error of the quadruped robot itself and obtain better posture information. The calculation method and optimization method of the robot's own laser SLAM are not limited here, and only the obtained posture is optimized. After the robot and the camera complete mutual capture, the time offset is calculated by the difference between the timestamps of their respective messages and the server message to complete the timestamp synchronization. Since the camera does not have a cumulative error and the signal noise is much lower than the laser radar, the posture calculated by the camera is chosen to be more trusted during calculation. The posture of the robot's own laser SLAM at the previous moment is recorded as P d t-1 , the camera calculates the pose as P c t-1At this moment, the calculated poses are P d t , P c t , then theoretically the difference between the postures at the two moments should be equal, that is, However, due to the large radar noise and the existence of the robot's own accumulated error, this difference is actually not equal. Since we choose to trust the camera more, we have to minimize the residual min(ΔP c t P d t-1 -P d t ), all the positions of the robot in the time period t captured by the camera satisfy the above relationship, that is, Minimizing the residual will obtain the robot posture that minimizes the cumulative error.
[0096] The working principle of the present invention is as follows: first, a map is constructed for the entire site environment, and the transformation relationship between the shooting area of the security camera and the actual area on the ground is calibrated to obtain the position of the quadruped robot in the constructed map. The quadruped robot itself has a laser radar SLAM positioning function to perform autonomous positioning and navigation. During the operation of the quadruped robot, the position information is transmitted to the server, and the target capture information of the security camera is received from the server. At the same time, the quadruped robot itself is repositioned and the camera captures the quadruped robot. After two-way confirmation, the position information of the quadruped robot in the image is transmitted to the quadruped robot. The quadruped robot will integrate the information transmitted by the camera and correct its own positioning information. Then, during the operation of the quadruped robot, the position information is transmitted to the server, and this information is converted into site environment position information, so that the staff can check the position of the quadruped robot in the site at any time, realize the rapid positioning of the quadruped robot, and greatly improve the positioning accuracy of the quadruped robot.
[0097] The present invention uses a combination of external and internal methods to improve the positioning accuracy of the quadruped robot by linking with the security camera in the station, and determines the position of the quadruped robot through the security camera information, and then calibrates its own posture through the quadruped robot's own laser radar fusing the camera information. The quadruped robot performs a posture calibration every time it is captured by the security camera to remove the accumulated error. At the same time, the tight coupling optimization of the laser radar and vision can obtain a more accurate posture, so that the staff can check the position of the quadruped robot in the venue at any time. By adopting this method, the coupling constraint relationship between the existing information is fully utilized, so that the positioning accuracy of the robot is greatly improved without adding additional costs.
[0098] The present invention also provides a quadruped robot positioning system, comprising:
[0099] A map construction module is used to construct a map of the site environment to obtain a constructed map;
[0100] A shooting module is used to obtain the ground area of the security camera captured by the security camera in the site environment;
[0101] The calibration module is used to calibrate the transformation relationship between the ground area of the security camera and the actual ground area according to the built map to obtain the actual coordinates of the quadruped robot in the built map;
[0102] A position acquisition module is used to obtain the position information of the quadruped robot during operation;
[0103] The positioning module is used to complete the positioning of the quadruped robot based on the position information and actual coordinates.
[0104] Preferably, the calibration module comprises:
[0105] A calibration parameter acquisition unit, used to calibrate the security camera using Zhang Zhengyou's chessboard method to obtain calibration parameters;
[0106] A rectangular planning unit is used to select four points in the actual area on the ground to form a rectangle;
[0107] A distorted image acquisition unit, used to acquire a distorted image of a rectangle obtained when imaging by a security camera, which is denoted as a trapezoid X;
[0108] A homography transformation matrix calculation unit, used for obtaining a homography transformation matrix H according to calibration parameters;
[0109] A standard rectangle conversion unit, used to convert the trapezoid X into a standard rectangle X' by using the formula X'=H·X;
[0110] A rotation matrix and translation vector acquisition unit, used to acquire the rotation matrix and translation vector between the actual ground area and the built map;
[0111] The actual coordinate calculation unit is used to obtain the actual coordinates of the quadruped robot in the built map according to the rotation matrix and the translation vector.
[0112] Preferably, the actual coordinate calculation unit includes:
[0113] The conversion relationship determination subunit is used to obtain the conversion relationship between the actual ground area and the built map according to the rotation matrix and the translation vector;
[0114] A correspondence determination subunit is used to obtain the correspondence between the image coordinates of the quadruped robot in the image and the ground area according to the homography transformation matrix;
[0115] The actual coordinate determination subunit is used to obtain the actual coordinates of the quadruped robot in the built map according to the conversion relationship and the corresponding relationship.
[0116] Preferably, the actual coordinate determination subunit comprises:
[0117] Using the formula:
[0118] p=R -1 [f -1 (HX)-t]
[0119] Get the actual coordinates of the quadruped robot in the built map; where R represents the rotation matrix, t represents the translation vector, and f -1 (HX) indicates the corresponding relationship.
[0120] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0121] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.
[0122] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0123] The present invention provides a method and system for positioning a quadruped robot. The method for positioning a quadruped robot provided by the present invention includes: firstly mapping the site environment to obtain a constructed map; obtaining the ground area of the security camera photographed by the security camera in the site environment; then calibrating the transformation relationship between the ground area of the security camera and the actual ground area according to the constructed map to obtain the actual coordinates of the quadruped robot in the constructed map; obtaining the position information of the quadruped robot during operation; and finally completing the positioning of the quadruped robot according to the position information and the actual coordinates. The present invention can remove the accumulated error of the quadruped robot during operation by using the actual coordinates of the quadruped robot in the constructed map to calibrate the position information of the quadruped robot during operation, thereby obtaining a more accurate positioning accuracy.
[0124] This article uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A quadruped robot positioning method, characterized in that: include: Mapping the site environment to obtain a constructed map; Get the ground area of the security camera captured by the security camera in the venue environment; Calibrate the transformation relationship between the ground area of the security camera and the actual ground area according to the built map to obtain the actual coordinates of the quadruped robot in the built map; The step of calibrating the transformation relationship between the ground area of the security camera and the actual ground area according to the built map to obtain the actual coordinates of the quadruped robot in the built map includes: Calibrate the security camera using Zhang Zhengyou's chessboard method to obtain calibration parameters; Select four points in the actual area of the ground to form a rectangle; Obtain a distorted image of the rectangle obtained when the security camera is imaging, recorded as trapezoid X; Obtaining a homography transformation matrix H according to the calibration parameters; The trapezoid X is converted into a standard rectangle X' using the formula X'=H·X; Obtaining a rotation matrix and a translation vector between the actual ground area and the constructed map; Obtaining the actual coordinates of the quadruped robot in the constructed map according to the rotation matrix and the translation vector; The step of obtaining the actual coordinates of the quadruped robot in the constructed map according to the rotation matrix and the translation vector includes: Obtaining a conversion relationship between the actual ground area and the constructed map according to the rotation matrix and the translation vector; Obtaining the correspondence between the image coordinates of the quadruped robot in the image and the ground area according to the homography transformation matrix; Obtaining the actual coordinates of the quadruped robot in the constructed map according to the conversion relationship and the corresponding relationship; The step of obtaining the actual coordinates of the quadruped robot in the established map according to the conversion relationship and the corresponding relationship includes: Using the formula: p=R -1 [f -1 (HX)-t] Get the actual coordinates of the quadruped robot in the built map; where R represents the rotation matrix, t represents the translation vector, and f -1 (HX) indicates the corresponding relationship; Obtaining position information of the quadruped robot during operation; The positioning of the quadruped robot is completed according to the position information and the actual coordinates, including: The quadruped robot itself has a laser radar SLAM positioning function. During operation, the quadruped robot is used to transmit position information to the server and receive target capture information from the security camera from the server. After the quadruped robot repositions itself and the camera captures the quadruped robot, after two-way confirmation, the position information of the quadruped robot in the image is transmitted to the quadruped robot. The information of the security camera is used as a constraint item and added to the optimization equation of the quadruped robot to constrain its posture, so as to remove the cumulative error of the quadruped robot itself and obtain better posture information. After the robot and the security camera complete mutual capture, the time offset is calculated by the difference between the timestamps of their respective messages and the server message to complete the timestamp synchronization. Since the security camera does not have cumulative errors and the signal noise is much lower than the laser radar, the posture calculated by the camera is chosen to be more trusted during calculation. The posture of the robot's own laser SLAM at the previous moment is recorded as P d t-1 , the camera calculates the pose as P c t-1 At this moment, the calculated poses are P d t , P c t , so we have the minimum residual min(ΔP c t P d t-1 -P d t ), all the positions of the robot in the time period t captured by the camera satisfy the above relationship, that is, Minimizing the residual will obtain the robot posture that minimizes the cumulative error.
2. A quadruped robot positioning system, characterized in that: The system is applied to a quadruped robot positioning method according to claim 1, comprising: A map construction module is used to construct a map of the site environment to obtain a constructed map; A shooting module is used to obtain the ground area of the security camera captured by the security camera in the site environment; A calibration module, used to calibrate the transformation relationship between the ground area of the security camera and the actual ground area according to the built map to obtain the actual coordinates of the quadruped robot in the built map; The calibration module comprises: A calibration parameter acquisition unit, used to calibrate the security camera by using Zhang Zhengyou's chessboard method to obtain calibration parameters; A rectangle planning unit, used for selecting four points in the actual ground area to form a rectangle; A distorted image acquisition unit, used to acquire a distorted image of the rectangle obtained when the security camera is imaging, which is denoted as a trapezoid X; A homography transformation matrix calculation unit, used to obtain a homography transformation matrix H according to the calibration parameters; A standard rectangle conversion unit, used to convert the trapezoid X into a standard rectangle X' by using the formula X'=H·X; A rotation matrix and translation vector acquisition unit, used to acquire the rotation matrix and translation vector between the actual ground area and the constructed map; An actual coordinate calculation unit, used for obtaining the actual coordinates of the quadruped robot in the built map according to the rotation matrix and the translation vector; The actual coordinate calculation unit comprises: A conversion relationship determination subunit, used for obtaining a conversion relationship between the actual ground area and the built map according to the rotation matrix and the translation vector; A correspondence determination subunit, used to obtain the correspondence between the image coordinates of the quadruped robot in the image and the ground area according to the homography transformation matrix; An actual coordinate determination subunit, used to obtain the actual coordinates of the quadruped robot in the established map according to the conversion relationship and the corresponding relationship; The actual coordinate determination subunit comprises: Using the formula: p=R -1 [f -1 (HX)-t] Get the actual coordinates of the quadruped robot in the built map; where R represents the rotation matrix, t represents the translation vector, and f -1 (HX) indicates the corresponding relationship; A position acquisition module, used to obtain the position information of the quadruped robot during operation; A positioning module is used to complete the positioning of the quadruped robot according to the position information and the actual coordinates.
3. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to claim 1 are implemented.
4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method described in claim 1 are implemented.
Citation Information
Patent Citations
AGV (Automated Guided Vehicle) visual positioning system and method
CN108571971A
Robot vision positioning method and device, terminal equipment and storage medium
CN111015654A
Indoor mobile robot positioning method based on multiple cameras
CN112833883A
