A charging seat search method for automatic charging of a robot

By installing a 360° rotating chassis and lidar on the robot, and using adaptive variable threshold segmentation and cosine theorem calculations, the robot can achieve high-precision positioning and rapid docking of the charging base, solving the problem of low docking accuracy in the existing technology. , which improves the robot’s autonomous charging capabilities.

CN112947440BActive Publication Date: 2024-09-06SEVNCE ROBOTICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110164714.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-06
Publication Date
2024-09-06
Estimated Expiration
2041-02-06

AI Technical Summary

Technical Problem

In the existing technology, the docking accuracy between the robot and the charging base is not high, which causes the robot to take a long time to find the charging base, affecting its autonomy and intelligence.

Method used

A 360° rotating chassis is used to install a lidar. By preliminary searching for the characteristics of the charging base and accurately searching for the position of the charging base, the adaptive variable threshold segmentation method and the cosine theorem are used to calculate the relative distance and azimuth angle of the charging base to ensure that the robot can accurately dock with the charging base.

Benefits of technology

The robot's positioning accuracy and search efficiency for the charging base are improved, allowing the robot to quickly and accurately find and dock with the charging base, improving its autonomous charging capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112947440B
    Figure CN112947440B
Patent Text Reader

Abstract

The present invention discloses a method for searching a charging seat for automatic charging of a robot, comprising the following steps: preliminarily searching for the characteristics of the charging seat; calculating the preliminary position of the charging seat, judging the distance between the robot and the position of the charging seat, and directly and accurately searching the position of the charging seat if the robot charging seat is close to the robot; if the robot charging seat is far from the robot, controlling the robot to run to the charging reference point in front of the charging seat, judging that the robot has reached the reference point, and then accurately searching the position of the charging seat. The robot of the present invention preliminarily searches for the characteristics of the charging seat and accurately searches for the position of the charging seat by detecting the charging seat with a laser radar, first determining the position range of the charging seat, and then determining the positional relationship of the charging seat relative to the robot, and calculating the specific position of the robot in front of the charging seat, so that the robot moves to the front of the front panel of the charging seat and then realizes docking charging, thereby improving the positioning accuracy of the robot and the search efficiency of the charging seat.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robot wireless charging, and more specifically, to a charging seat searching method for automatic charging of a robot. Background Art

[0002] In recent years, with the continuous development of computer intelligent control technology and sensor technology, service robots have been more and more widely used in people's lives, such as sweeping robots, shopping guide robots, catering service robots, etc. Since service robots on the market are basically powered by batteries, when the robot runs out of power, people need to move the robot to a charging place for charging. Manual intervention in charging not only wastes manpower time, but also limits the working time of the robot, reducing the robot's autonomy and intelligence.

[0003] Robots in the prior art usually use infrared signal detection to realize automatic docking of the robot with the charging station for charging. This charging method requires at least two infrared transmitting tubes to be installed on the charging station, and correspondingly, an infrared receiving sensor needs to be installed on the robot. This charging method requires additional structural design and installation of more sensors on the robot, so the docking accuracy is not high. When the robot does not detect the specific location of the charging station, it may search aimlessly, which is very time-consuming. Summary of the invention

[0004] The present invention aims to provide a charging base searching method for automatic charging of a robot, so as to overcome the problem of low docking accuracy between the robot and the charging base in the prior art.

[0005] To achieve the above-mentioned purpose, the present invention provides a charging seat search method for a robot that automatically charges, wherein the robot has a chassis that can rotate 360 ​​degrees, a laser radar is fixedly installed on the chassis, and the laser radar emits a laser beam to detect obstacles in the surrounding environment to obtain laser radar data related to the obstacles; a left groove and a right groove that are recessed inward are provided on the front panel of the charging seat, and the left groove and the right groove are symmetrically arranged on both sides of the charging seat, and the heights of the left groove and the right groove are both flush with the scanning height of the laser radar, and the left groove, the right groove and the middle panel located between the left groove and the right groove together form the charging seat feature; the charging seat search method comprises the following steps:

[0006] S1. Preliminary search for charging seat features to determine whether the robot has found the charging seat features. If the robot has found the charging seat features, step S2 is executed. If the robot has not found the charging seat features, the robot chassis is controlled to rotate a certain angle and then search for the charging seat features again.

[0007] S2. Calculate the initial position of the charging base and determine the distance between the robot and the charging base. If the charging base is close to the robot, directly and accurately search for the charging base. If the charging base is far from the robot, control the robot to run to the charging reference point C in front of the charging base. After determining that the robot has reached the reference point C, accurately search for the charging base.

[0008] Furthermore, the algorithm for the preliminary search for charging station features in step S1 is as follows:

[0009] 1.1. Read a frame of laser radar data and save all scanned laser radar data points into the laser point Data array. The data of the laser radar data points include the scanning distance and scanning angle;

[0010] 1.2. First, use the adaptive variable threshold segmentation method to confirm the segmentation threshold, define the segmentation threshold linear function Div = f(D), to determine the segmentation threshold of different laser radar data points; then calculate the segmentation threshold of two adjacent laser radar data points L a and L b The distance difference between the two laser radar data points L is Δd. If Δd>Div, then the two laser radar data points L a and L b For different areas; finally, a frame of lidar data is divided into N blocks, and the divided blocks are represented by R i , each block contains G i points, i = 1, 2, ..., N;

[0011] 1.3. Traverse the segmented block R i If there are less than 3 laser radar data points in a block, the block is considered to be a noise point and discarded. Then, the laser radar data points in the block are checked to see if they meet the characteristics of the charging station data points. All the laser radar data points in the block are traversed to calculate the L of two adjacent laser radar data points. a and L b Whether it meets the slot depth stacking error threshold of the charging base, calculate the number of matching lidar data points M, and the number of lidar data points in this block is N a , matching rate P = M / N a ;

[0012] 1.4. For all segmented blocks R i Sort by matching rate from high to low, and set the block with the highest matching rate as the location of the charging station. Calculate the straight line length of the block based on the cosine theorem and the first and last laser radar data points of the block. Where l1 is the scanning distance of the left laser radar data point of the block, l2 is the scanning distance of the right laser radar data point of the block, and θ is the angle difference between the left and right laser radar data points; check whether the length of the block meets the superposition error value of the charging seat block setting value, and loop the straight line length calculation of the block until the charging seat block that meets both the block verification length and the highest matching rate is found;

[0013] 1.5. Calculate the coordinates P of the center point of the block where the charging station is located a , according to P a The coordinates finally get the relative distance D between the charging base and the robot c and azimuth D a .

[0014] Furthermore, the algorithm for accurately searching the charging station location in step S2 is as follows:

[0015] 2.1. Read a frame of laser radar data and save all scanned laser radar data points into the laser point Data array. The data of the laser radar data points include the scanning distance and scanning angle.

[0016] 2.2. Set a close-range scanning parameter value, traverse the laser radar data points in the laser point Data array, and filter out invalid data and laser radar data points that are beyond the scanning range;

[0017] 2.3. Traverse the filtered laser point Data array and calculate the difference Δd between two points. When Δd exceeds the straight line feature threshold, find the continuous laser radar data points that match the laser data model of the charging stand from the laser point Data array according to the charging stand feature, first locate the rising edge and falling edge data points of the charging stand feature, and finally obtain the left feature point and the right feature point of the middle panel of the charging stand; a complete charging stand feature includes the left panel, the left falling edge, the left groove, the left rising edge, the middle panel, the right falling edge, the right groove, the right rising edge and the right panel from left to right;

[0018] 2.4. According to the left and right feature point data of the charging base, determine whether the robot is on the left or right side of the vertical midline of the charging base. When the length of line segment PL is greater than the length of line segment PR, the robot is on the right side of the midline of the charging base, otherwise it is on the left side. Given the angle of ∠LPR and the lengths of line segments PL and PR, calculate the angle of ∠POV according to the law of cosines and trigonometric functions, and determine whether the robot is in the direct docking charging area. When ∠POV is less than 20°, the robot can directly start to back up and dock with the charging base. When the angle of ∠POV is greater than or equal to 20°, first control the robot to run to the charging reference point C.

[0019] 2.5. If the robot is not in the direct docking charging area, the coordinates of the robot's location are P(x, y), and the robot's running direction is vector PC. Calculate the angle and modulus length |PC| of vector PC in the lidar coordinate system, and convert the angle of vector PC in the lidar coordinate system to the angle β in the mileage coordinate system. The robot first rotates by angle β, then moves forward by a distance |PC| to reach the charging reference point C.

[0020] Compared with the prior art, the present invention has the following beneficial effects:

[0021] The present invention provides a charging base searching method for automatic charging of a robot. The robot uses a laser radar to emit a laser beam to preliminarily search for the characteristics of the charging base and accurately search for the position of the charging base. The position range of the charging base is first determined, and then the position relationship of the charging base relative to the robot is determined. The specific position of the robot in front of the charging base is specifically calculated, so that the robot moves to the front of the front panel of the charging base and then docks for charging, thereby improving the positioning accuracy of the robot and the search efficiency of the charging base.

[0022] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0024] Figure 1 It is a geometrical schematic diagram of the coordination between a charging base and a robot in a charging base searching method for automatic charging of a robot according to the present invention;

[0025] Figure 2 It is a flow chart of the method for searching the charging base of the robot in the present invention. DETAILED DESCRIPTION

[0026] The embodiments of the present invention are described in detail below with reference to the accompanying drawings, but the present invention can be implemented in many different ways as defined and covered by the claims.

[0027] See also Figure 1 and Figure 2, an embodiment of the present invention provides a method for searching a charging base for automatic charging of a robot, the robot has a chassis that can rotate 360 ​​degrees, a laser radar is fixedly installed on the chassis, the rotating laser head of the laser radar rotates 360 degrees, and the laser radar emits a laser beam to detect obstacles in the surrounding environment to obtain laser radar data related to the obstacles. The front panel of the charging base 1 is provided with an inwardly recessed left groove 1.1 and a right groove 1.2, the left groove and the right groove are symmetrically arranged on both sides of the charging base, the height of the left groove and the right groove are both flush with the scanning height of the laser radar, and the left groove, the right groove and the middle panel 1.3 located between the left groove and the right groove together form the charging base feature. The robot's charging base search method includes the following steps:

[0028] S1. Preliminary search for charging seat features to determine whether the robot has found the charging seat features. If the robot has found the charging seat features, step S2 is executed. If the robot has not found the charging seat features, the robot chassis is controlled to rotate 20° and then search for the charging seat features again. The algorithm for searching the charging seat features in this step is as follows:

[0029] 1.1. Read a frame of LiDAR data and save all scanned LiDAR data points into the LiDAR data point Data array. The data of the LiDAR data points include the scanning distance and scanning angle.

[0030] 1.2. For each frame of laser radar data, the laser radar data points are divided into different blocks according to the segmentation threshold; if the distance between two consecutive laser radar data points is less than a threshold, the two laser radar data points belong to the same segmentation block; if the distance between two consecutive laser radar data points is greater than a threshold, the data frame is segmented from between the two laser radar data points; since the distribution of laser radar data points is not uniform, the segmentation threshold is first confirmed using the adaptive variable threshold segmentation method, and the segmentation threshold linear function Div = f(D) is defined to determine the segmentation threshold of different laser radar data points; then the distance between two adjacent laser radar data points L is calculated. a and L b The distance difference between the two laser radar data points L is Δd. If Δd>Div, then the two laser radar data points L a and L b For different areas; finally, a frame of lidar data is divided into N blocks, and the divided blocks are represented by R i , each block contains G i points, i=1, 2,..., N.

[0031] 1.3. Traverse the segmented block R iIf there are less than 3 laser radar data points in a block, the block is considered to be a noise point and discarded. Then, the laser radar data points in the block are checked to see if they meet the characteristics of the charging station data points. All the laser radar data points in the block are traversed to calculate the L of two adjacent laser radar data points. a and L b Whether it meets the slot depth stacking error threshold of the charging base, calculate the number of matching lidar data points M, and the number of lidar data points in this block is N a , matching rate P = M / N a .

[0032] 1.4. For all segmented blocks R i Sort by matching rate from high to low, and set the block with the highest matching rate as the location of the charging station. Calculate the straight line length of the block based on the cosine theorem and the first and last laser radar data points of the block. Wherein, l1 is the scanning distance of the left lidar data point of the block, l2 is the scanning distance of the right lidar data point of the block, and θ is the angle difference between the left and right lidar data points. Check whether the length of the block meets the superposition error value of the setting value of the charging seat block, and repeat the straight line length calculation of the block until the charging seat block that meets both the block verification length and the highest matching rate is found.

[0033] 1.5. Calculate the coordinates P of the center point of the block where the charging station is located a , according to P a The coordinates finally get the relative distance D between the charging base and the robot c and azimuth D a .

[0034] S2. Calculate the initial position of the charging base and determine the distance between the robot and the charging base 1. If the robot charging base is close to the robot, directly search for the charging base position accurately. If the robot charging base is far from the robot, control the robot to run to the charging reference point in front of the charging base. After determining that the robot has reached the reference point, search for the charging base position accurately. The algorithm for accurately searching the charging base position in this step is as follows:

[0035] 2.1. Read a frame of laser radar data and save all scanned laser radar data points into the laser point Data array. The data of the laser radar data point includes the scanning distance and scanning angle.

[0036] 2.2. Set a close-range scanning parameter value, traverse the laser radar data points in the laser point Data array, and filter out invalid data and laser radar data points that are out of the scanning range.

[0037] 2.3. Traverse the filtered laser point Data array and calculate the difference Δd between the two points. When Δd exceeds the straight line feature threshold, find the continuous laser radar data points that match the charging stand laser data model from the laser point Data array according to the charging stand feature. First locate the rising edge and falling edge data points of the charging stand feature, and finally obtain the left feature point and the right feature point of the middle panel of the charging stand. A complete charging stand feature includes, from left to right, the left panel 1.4, the left concave edge 1.5, the left groove inner wall panel, the left return edge 1.6, the middle panel 1.3, the right concave edge 1.7, the right groove inner wall panel, the right return edge 1.8 and the right panel 1.9.

[0038] 2.4. According to the left and right feature point data of the charging base, determine whether the robot is on the left or right side of the vertical center line of the charging base. When the length of line segment PL is greater than the length of line segment PR, the robot is on the right side of the center line of the charging base, otherwise it is on the left side. Given the angle α1 between line segments PL and PR and the lengths of line segments PL and PR, calculate the angle α2 between line segment PO and line segment OV according to the cosine theorem and trigonometric functions. First determine whether the robot is in the direct docking charging area. When α2 < 20°, the robot can directly start to retreat to dock with the charging base. When α2 ≥ 20°, first control the robot to run to the charging reference point C. P is the center point of the robot's chassis, L is the left feature point of the charging base, and R is the right feature point of the charging base. The intersection line of the left groove 1.1 and the middle panel 1.3 is the left characteristic line, and the left characteristic point L is the intersection point of the laser beam emitted by the laser radar and the left characteristic line. The intersection line of the right groove 1.2 and the middle panel 1.3 is the right characteristic line, and the right characteristic point R is the intersection point of the laser beam emitted by the laser radar and the right characteristic line.

[0039] 2.5. If the robot is not in the direct docking charging area, the coordinates of the robot's location are P(x, y), and the robot's running direction is vector PC. Calculate the angle and modulus length |PC| of vector PC in the lidar coordinate system, and convert the angle of vector PC in the lidar coordinate system to the angle β in the mileage coordinate system. The robot first rotates by angle β, then moves forward by a distance |PC| to reach the charging reference point C.

[0040] Therefore, the positional relationship of the charging base relative to the robot is accurately determined by the method of the present invention; then, the robot is automatically docked with the charging base on this basis, and finally, automatic charging of the robot is realized.

[0041] In the present invention, if the robot chassis is controlled to rotate more than 360° cumulatively and still fails to find the features of the charging base, the search is terminated.

[0042] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for searching a charging seat for automatic charging of a robot, characterized in that the robot has a chassis that can rotate 360 ​​degrees, a laser radar is fixedly installed on the chassis, and the laser radar emits a laser beam to detect obstacles in the surrounding environment to obtain laser radar data related to the obstacles; a left groove (1.1) and a right groove (1.2) that are recessed inward are opened on the front panel of the charging seat (1), the left groove and the right groove are symmetrically arranged on both sides of the charging seat, the height of the left groove and the right groove are both arranged flush with the scanning height of the laser radar, and the left groove, the right groove and the middle panel (1.3) located between the left groove and the right groove together form the charging seat feature; the charging seat search method comprises the following steps: S1. Preliminary search for charging seat features to determine whether the robot has found the charging seat features. If the robot has found the charging seat features, step S2 is executed. If the robot has not found the charging seat features, the robot chassis is controlled to rotate a certain angle and then search for the charging seat features again. S2. Calculate the initial position of the charging base and determine the distance between the robot and the charging base (1). If the charging base is close to the robot, directly search for the charging base position accurately. If the charging base is far from the robot, control the robot to move to the charging reference point C in front of the charging base. After determining that the robot has reached the reference point C, search for the charging base position accurately. The algorithm for preliminary searching for charging station features in step S1 is as follows: 1.

1. Read a frame of laser radar data and save all scanned laser radar data points into the laser radar data point Data array. The data of the laser radar data point includes the scanning distance and scanning angle; 1.

2. First, use the adaptive variable threshold segmentation method to confirm the segmentation threshold, define the segmentation threshold linear function Div = f(D), to determine the segmentation threshold of different laser radar data points; then calculate the segmentation threshold of two adjacent laser radar data points L a and L b The distance difference between the two laser radar data points L is Δd. If Δd>Div, then the two laser radar data points L a and L b For different areas; finally, a frame of lidar data is divided into N blocks, and the divided blocks are represented by R i , each block contains G i points, i = 1, 2, ..., N; 1.

3. Traverse the segmented block R i If there are less than 3 laser radar data points in a block, the block is considered to be a noise point and discarded. Then, the laser radar data points in the block are checked to see if they meet the characteristics of the charging station data points. All the laser radar data points in the block are traversed to calculate the L of two adjacent laser radar data points. a and L b Whether it meets the slot depth stacking error threshold of the charging base, calculate the number of matching lidar data points M, and the number of lidar data points in this block is N a , matching rate P = M / N a ; 1.

4. For all segmented blocks R i Sort by matching rate from high to low, and set the block with the highest matching rate as the location of the charging station. Calculate the straight line length of the block based on the cosine theorem and the first and last laser radar data points of the block. Where l1 is the scanning distance of the left laser radar data point of the block, l2 is the scanning distance of the right laser radar data point of the block, and θ is the angle difference between the left and right laser radar data points; check whether the length of the block meets the superposition error value of the charging seat block setting value, and loop the straight line length calculation of the block until the charging seat block that meets both the block verification length and the highest matching rate is found; 1.

5. Calculate the coordinates P of the center point of the block where the charging station is located a , according to P a The coordinates finally get the relative distance D between the charging base and the robot c and azimuth D a .

2. The charging station search method according to claim 1, characterized in that: The algorithm for accurately searching the charging station location in step S2 is as follows: 2.

1. Read a frame of laser radar data and save all scanned laser radar data points into the laser radar data point Data array. The data of the laser radar data point includes the scanning distance and scanning angle. 2.

2. Set a close-range scanning parameter value, traverse the laser radar data points in the laser radar data point array Data, and filter out invalid data and laser radar data points that are beyond the scanning range; 2.

3. Traverse the filtered laser radar data point Data array, calculate the difference Δd between two points, and when Δd exceeds the straight line feature threshold, find the continuous laser radar data points that match the laser data model of the charging seat from the laser radar data point Data array according to the charging seat feature, first locate the rising edge and falling edge data points of the charging seat feature, and finally obtain the left feature point and the right feature point of the middle panel of the charging seat; a complete charging seat feature includes, from left to right, the left panel (1.4), the left concave edge (1.5), the left groove inner wall plate, the left return edge (1.6), the middle panel (1.3), the right concave edge (1.7), the right groove inner wall plate, the right return edge (1.8) and the right panel (1.9); 2.

4. According to the left and right feature point data of the charging base, determine whether the robot is on the left or right side of the vertical midline of the charging base. When the length of line segment PL is greater than the length of line segment PR, the robot is on the right side of the midline of the charging base, otherwise it is on the left side. Given the angle of ∠LPR and the lengths of line segments PL and PR, calculate the angle of ∠POV according to the cosine theorem and trigonometric functions, and determine whether the robot is in the direct docking charging area. When ∠POV is less than 20°, the robot can directly start to back up and dock with the charging base. When ∠POV is greater than or equal to 20°, first control the robot to run to the charging reference point C. 2.

5. If the robot is not in the direct docking charging area, the coordinates of the robot's location are P(x, y), and the robot's running direction is vector PC. Calculate the angle and modulus length |PC| of vector PC in the lidar coordinate system, and convert the angle of vector PC in the lidar coordinate system to the angle β in the mileage coordinate system. The robot first rotates by angle β, then moves forward by a distance |PC| to reach the charging reference point C.