A tracking control method for mobile robots based on laser radar and odometer
Through the data processing and relative motion principles of lidar and odometry sensors, the difficulty of obstacle detection and tracking in traditional mobile robot tracking control in complex environments is solved, stable tracking in unknown environments is achieved, and the robot's performance in complex environments is improved. Security and continuous tracking of performance in the environment.
Patent Information
- Application Number
- CN202410162551.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-02-05
AI Technical Summary
Traditional mobile robot tracking control methods face problems such as repeated detection of obstacles, motion interference and loss of tracking targets in complex environments, and the sensors are easily disturbed by environmental noise, resulting in unstable tracking performance.
A mobile robot tracking control method based on lidar and odometry is used to distinguish the leader and obstacle point cloud data by defining the data structure, preprocessing point cloud data, and using the principle of relative motion and plane geometric relationships to achieve follower vs. leader Stable tracking of point clouds and positioning using historical obstacle area information when blocked by obstacles.
It improves the continuous tracking performance and safety of mobile robots in complex environments and ensures stable tracking capabilities in unknown obstacle environments.
Smart Images

Figure CN117949966B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of mobile robot tracking control, and specifically relates to a mobile robot tracking control method based on laser radar and odometer, which is suitable for realizing stable tracking of the mobile robot in an environment with unknown obstacles. Background Art
[0002] With the development of autonomous control technology, mobile robots need to achieve stable tracking control in various complex environments to ensure continuous tracking performance. Traditional mobile robot tracking control methods face difficulties such as repeated obstacle detection, interference with the motion of the mobile robot itself, and loss of tracking targets and re-establishing tracking. In addition, some sensors may also be interfered by environmental noise. Therefore, it is necessary to propose a mobile robot tracking control method based on laser radar and odometer to improve the autonomous control ability of mobile robots in complex environments through effective data processing and relative motion principles. Summary of the invention
[0003] The purpose of the present invention is to propose a mobile robot tracking control method based on laser radar and odometer, so as to realize stable tracking of a leader mobile robot by a follower mobile robot in an environment with unknown obstacles, thereby significantly improving the continuous tracking performance of the mobile robot in a complex environment.
[0004] In order to achieve the above object, the present invention adopts the following technical scheme:
[0005] A mobile robot tracking control method based on laser radar and odometer, wherein the mobile robot tracking control system includes a follower mobile robot and a leader mobile robot, and the method comprises the following steps:
[0006] Step 1. Define a data structure for describing an obstacle area, use a linked list to store the data structure, and name the linked list as a historical obstacle area, and define a data structure for describing the historical posture state of the navigator mobile robot;
[0007] Step 2. Obtain the laser radar sensor data of the follower mobile robot to generate the original point cloud data, while considering the laser radar sensor noise, the sampling density of the laser radar sensor data and the motion interference of the follower mobile robot, and fuse the odometer sensor data of the follower mobile robot to pre-process the original point cloud data to obtain the expected point cloud data;
[0008] Step 3. Eliminate the expected point cloud data located in the historical obstacle area to obtain valid point cloud data. At the same time, based on the historical posture state of the leader mobile robot, the follower mobile robot distinguishes the point cloud data of the leader mobile robot from the point cloud data of the obstacle by using the principle of relative motion or the principle of spatial position continuity;
[0009] Step 4. If step 3 fails to successfully identify the point cloud data of the navigator mobile robot, clear the historical position state variables of the navigator mobile robot and return to step 2; if step 3 successfully identifies the point cloud data of the navigator mobile robot, continue to step 5;
[0010] Step 5. Based on the point cloud data of the navigator mobile robot obtained in step 3, the center position and azimuth of the navigator mobile robot are calculated using the plane geometric relationship, and the historical position and posture state of the navigator mobile robot is updated. Then, the odometer sensor data of the follower mobile robot is used to perform coordinate transformation on the center position and azimuth of the navigator mobile robot, and the position and posture of the navigator mobile robot relative to the follower mobile robot are obtained, so that the follower mobile robot can track the point cloud of the navigator mobile robot;
[0011] Step 6. Based on the obstacle point cloud data obtained in step 3, the center position and size range of the obstacle are calculated, and the buffer area size is specified to obtain the obstacle area, and then the obstacle area is added to the historical obstacle area, and then return to step 2;
[0012] Among them, both the follower mobile robot and the leader mobile robot are equipped with laser radar and odometer sensors.
[0013] The present invention has the following advantages:
[0014] As described above, the present invention relates to a mobile robot tracking control method based on laser radar and odometer, which is suitable for environments with unknown obstacles. The system targeted by the method of the present invention is composed of a follower mobile robot and a navigator mobile robot equipped with a two-dimensional laser radar and an odometer sensor, wherein the follower mobile robot obtains laser radar information and converts it into point cloud information; the follower mobile robot performs data preprocessing on the point cloud information, including outlier removal, voxel grid filtering downsampling, reference coordinate system transformation and Euclidean clustering segmentation; the principle of relative motion is used to distinguish the point cloud of the navigator mobile robot from the point cloud of obstacles; the plane geometric relationship is used to calculate the position and posture of the navigator mobile robot relative to the follower mobile robot; the principle of spatial position continuity and the historical position and posture of the navigator mobile robot are used to continuously track the point cloud of the navigator mobile robot; an obstacle buffer area is set, and the obstacle area is calibrated and recorded. Even if the follower mobile robot loses its view of the navigator mobile robot due to special circumstances such as obstacle occlusion, when the navigator mobile robot appears in the follower mobile robot's field of view again, the follower mobile robot can still locate and continuously track the navigator mobile robot's point cloud based on the relative motion principle and historical obstacle area information. The present invention realizes the stable tracking of the navigator mobile robot's point cloud by the follower mobile robot in an unknown environment through sensor data processing, relative motion principle, spatial position continuity principle and plane geometric relationship calculation, thereby improving the safety and continuous tracking performance of the mobile robot in a complex environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 The present invention is a flowchart of a mobile robot tracking control method based on laser radar and odometer in an embodiment of the present invention.
[0016] Figure 2 Schematic diagram of the posture model of the mobile robot in an embodiment of the present invention;
[0017] Figure 3 Schematic diagram of a mobile robot tracking system in an embodiment of the present invention;
[0018] Figure 4 A schematic diagram of point cloud data segmentation and intermediate segmentation and segment center point calculation for each cluster in an embodiment of the present invention;
[0019] Figure 5 It is a schematic diagram of obtaining desired point cloud data after point cloud data preprocessing in an embodiment of the present invention;
[0020] Figure 6 This is a schematic diagram of the application of the position continuity principle in an embodiment of the present invention;
[0021] Figure 7Schematic diagram of the relative distance between the leader mobile robot and the follower mobile robot in an embodiment of the present invention;
[0022] Figure 8 Schematic diagram of the direction angle of the leader mobile robot relative to the follower mobile robot in an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0024] Example
[0025] In view of the complexity of mobile robot tracking in an environment with unknown obstacles and the data processing challenges of lidar and odometer sensors, the present invention proposes a mobile robot tracking control method based on lidar and odometer to achieve stable tracking of a leader mobile robot by a follower mobile robot in an environment with unknown obstacles, thereby improving the safety and continuous tracking performance of the mobile robot in a complex environment.
[0026] The mobile robot tracking control system targeted by the present invention comprises a follower mobile robot and a navigator mobile robot, wherein the follower mobile robot and the navigator mobile robot are both equipped with a two-dimensional laser radar and an odometer sensor.
[0027] like Figure 1 As shown, the mobile robot tracking control method based on laser radar and odometer includes the following steps:
[0028] Step 1. Define a data structure for describing an obstacle region, use a linked list to store the data structure, and name the linked list as a historical obstacle region, where an obstacle region is defined as a rectangular region. At the same time, define a data structure for describing the historical position and posture state of the navigator mobile robot.
[0029] The data structure used to describe the obstacle area contains four double-precision floating-point numbers, which represent the horizontal and vertical coordinates of the center point of the obstacle area, the length of the obstacle area, and the width of the obstacle area, respectively.
[0030] A linked list is used to store the data structure for describing the obstacle area. The geometric meaning of the linked list represents multiple rectangular obstacle areas, so the linked list is named historical obstacle area.
[0031] The data structure used to describe the historical position and posture state of the navigator mobile robot contains three double-precision floating-point numbers, which respectively represent the horizontal and vertical coordinates of the center point of the navigator mobile robot and the direction angle of the navigator mobile robot.
[0032] Step 2. Obtain the follower mobile robot's lidar sensor data to generate raw point cloud data, while considering the lidar sensor noise, lidar sensor data sampling density, and follower mobile robot motion interference, and fuse the follower mobile robot's odometer sensor data to preprocess the raw point cloud data and obtain the expected point cloud data.
[0033] like Figure 3 As shown, the scanning results of the laser radar sensor of the follower mobile robot are obtained, the surrounding environment data is generated, and the surrounding environment data is stored in the computer in the form of an array. The surrounding environment data includes distance information, laser radar scanning range and angle resolution. The surrounding environment data is converted from the laser radar polar coordinate system to the laser radar rectangular coordinate system coordinates to generate raw cloud data. The raw point cloud data is defined as point cloud data No. 1.
[0034] Among them, the conversion formula from the laser radar polar coordinate system to the laser radar rectangular coordinate system is as follows:
[0035]
[0036] Where r is the distance from the lidar scanning point to the lidar sensor, θ is the direction of the laser beam relative to the lidar sensor position, and x and y are the positions of the point cloud in the lidar rectangular coordinate system.
[0037] The laser radar rectangular coordinate system is the laser radar sensor coordinate system hereinafter.
[0038] Step 2.1. Considering the lidar sensor noise and lidar sensor data sampling density, the original point cloud data is filtered and downsampled using a statistical outlier removal algorithm and a voxel grid filter to generate point cloud data No. 2.
[0039] Step 2.2. Consider the motion interference of the follower mobile robot, obtain the transformation information between the follower mobile robot odometer sensor data and the follower mobile robot rigid body, calculate the transformation matrix from the follower mobile robot lidar sensor coordinate system to the odometer sensor coordinate system, and use the coordinate transformation to transform the reference coordinate system of the No. 2 point cloud data from the follower mobile robot lidar sensor coordinate system to the odometer sensor coordinate system to generate the No. 3 point cloud data.
[0040] The odometer sensor data of the follower mobile robot records the position and direction of the follower mobile robot's body coordinate system base_link in the odometer sensor coordinate system odom, specifically including the three-dimensional coordinates (x, y, z) used to describe the position information of the follower mobile robot and the quaternion [a, b, c, d] used to describe the direction of the follower mobile robot. T And other information.
[0041] like Figure 2 FIG. 1 shows a schematic diagram of a posture model of a mobile robot in an embodiment of the present invention. odom and X odom Respectively represent the horizontal and vertical coordinate systems of the odometer sensor coordinate system, O odom Represents the coordinate origin of the odometer sensor coordinate system, O R It is both the position of the mobile robot in the odometer sensor coordinate system and the coordinate origin of the mobile robot body coordinate system. R and X R They respectively represent the horizontal and vertical coordinate systems of the mobile robot's body coordinate system.
[0042] The calculation formula of the transformation matrix and the process of obtaining the No. 3 point cloud data are as follows:
[0043]
[0044] Where R is the rotation matrix, which represents the posture information of the follower mobile robot body coordinate system relative to the odometer sensor coordinate system; B is the translation vector, which represents the position information of the follower mobile robot body coordinate system relative to the odometer sensor coordinate system, and the parameters (x, y, z) represent the three-dimensional coordinates of the follower mobile robot position information.
[0045] The rotation matrix R and the translation vector B are combined to form a 4×4 transformation matrix T1, which represents the position information of the follower mobile robot body coordinate system relative to the odometer sensor coordinate system; where 0 is a 1×3 row vector, [a, b, c, d] T is the quaternion representation of the rotation matrix R, which is used to describe the posture of the follower mobile robot.
[0046] Obtain the transformation information between the rigid bodies of the follower mobile robot, and obtain the transformation matrix from the laser radar sensor coordinate system front_laser of the follower mobile robot to the coordinate system of the follower mobile robot body. Since the laser radar sensor is rigidly connected to the follower mobile robot, the relative position and posture between the two are fixed. Therefore, the transformation matrix mentioned here is a constant matrix, denoted as T2.
[0047] Considering the motion interference of the follower mobile robot, the reference coordinate system of the No. 2 point cloud data is transformed from the follower mobile robot's lidar sensor coordinate system to the odometer sensor coordinate system using coordinate transformation to generate No. 3 point cloud data.
[0048] P3=(T1×T2)·P2 (2)
[0049] Where P2 is the second point cloud data, and P3 is the third point cloud data.
[0050] Step 2.3. Use the Euclidean clustering method to segment the point cloud data No. 3 to obtain the point cloud data No. 4 containing K clusters; perform intermediate segmentation and segment center point calculation on each cluster in the point cloud data No. 4 to obtain two subsets after each cluster segmentation and the center point coordinates of each subset, where K is a natural number.
[0051] The coordinates of the central points are all stored in an array, and the desired point cloud data is obtained.
[0052] Specifically, the Euclidean clustering method is first used to segment the No. 3 point cloud data to obtain the No. 4 point cloud data containing K clusters as shown in Figure 4 As shown:
[0053] First, a distance threshold ε is set. For each pair of points (x i ,y i ) and (x j ,y j ), calculate the Euclidean distance:
[0054] Then, the Euclidean distance d ij Points smaller than the threshold ε are divided into the same cluster, and according to the number of separated objects in the surrounding space, a total of four point cloud data containing K clusters are generated.
[0055] like Figure 5 As shown, the middle segmentation of the point cloud and the segment center point calculation are performed on each cluster in the No. 4 point cloud data to obtain two subsets after each cluster is segmented and the coordinates of the center point of each subset.
[0056] Specifically, the coordinates of the center points of each subset are shown in the following formula:
[0057]
[0058] In the formula, Z i_1 With Z i_2 are the center point coordinates of the two subsets of the i-th cluster point cloud data, i = 1, 2, ..., K; N is the length of the i-th cluster point cloud data, symbol Represents floor operation; used to convert a real number to the integer that is closest to and not greater than the real number. j and j is the horizontal and vertical coordinates of the point cloud data, j=1,2,...,N.
[0059] The above center point coordinates are stored in an array in the original order to obtain the expected point cloud data.
[0060] Step 3. Eliminate the expected point cloud data located in the historical obstacle area to obtain valid point cloud data. At the same time, based on the historical posture state of the leader mobile robot and using the principle of relative motion or the principle of spatial position continuity, the follower mobile robot distinguishes the point cloud data of the leader mobile robot from the obstacle point cloud data.
[0061] Based on the expected point cloud data obtained in step 2, calculate the center point coordinates of each cluster of the expected point cloud data:
[0062]
[0063] In the formula, o M i are the center point coordinates of each cluster of point cloud data, representing the center point coordinates of each cluster of point cloud data in the coordinate system of the follower mobile robot odometer sensor, where i = 1, 2, ..., K.
[0064] The specific process of excluding clusters located in historical obstacle areas in the desired point cloud data is as follows:
[0065] enter: o M i That is, the center point coordinates of each cluster of the expected point cloud data and the historical obstacle area list LIST;
[0066] Output: Boolean value indicating whether the vehicle is within the historical obstacle area.
[0067] The specific process of judging whether a point is within the historical obstacle area is as follows:
[0068] For each obstacle area in LIST:
[0069] Obstacle center point_x = x coordinate of the center point of the obstacle area;
[0070] Obstacle center point_y = y coordinate of the center point of the obstacle area;
[0071] Obstacle length = length of obstacle area;
[0072] Obstacle width = width of the obstacle area.
[0073] Calculate the bounds of the rectangle:
[0074] Right boundary = (obstacle center point_y-obstacle width) / 2;
[0075] Left boundary = (obstacle center point_y + obstacle width) / 2;
[0076] Lower boundary = (obstacle center point_x-obstacle length) / 2;
[0077] Upper boundary = (obstacle center point_x + obstacle length) / 2.
[0078] if o M i If the object is within the rectangular range enclosed by the four boundary values, the return value is yes; otherwise, the return value is no.
[0079] The remaining expected point cloud data clusters are stored in the array in the original order to form valid point cloud data.
[0080] In order to solve the positioning problem of the navigator mobile robot in the initial stage, the tracking positioning problem of the navigator mobile robot in the normal operation stage and the re-positioning problem of the navigator mobile robot in the tracking loss stage, the present invention designs three different positioning methods, namely initial positioning, tracking positioning and re-positioning, and corresponding methods are run in different stages.
[0081] The initial stage refers to the period after the program is started and before the point cloud of the leader mobile robot is located.
[0082] After the initialization phase successfully locates the point cloud of the navigator mobile robot, it enters the normal operation phase.
[0083] Due to the obstruction of the navigator mobile robot by obstacles, the point cloud of the navigator mobile robot cannot be located during the normal operation stage, and the robot enters the tracking loss stage.
[0084] After re-identifying the point cloud of the leader mobile robot during the tracking loss phase, it returns to the normal operation phase.
[0085] Initial positioning method:
[0086] When the program enters the initial positioning method less than C times continuously, the valid point cloud data is recorded in the array.
[0087] When the program enters the initial positioning method for C consecutive times, the valid point cloud data is recorded in an array, and the average value algorithm is used to calculate the average value of the recorded C groups of valid point cloud data, which is called the initial valid point cloud data.
[0088] Formula (4) is used to calculate the coordinates of the center points of each cluster of initial valid point cloud data and each cluster of valid point cloud data, which are called the initial position of the point cloud and the real-time position of the point cloud, respectively.
[0089] The above-mentioned clusters of initial valid point cloud data and clusters of valid point cloud data are connected into line segments, and the inverse tangent function is used to calculate the angle between the line segment and the positive direction of the horizontal axis of the follower mobile robot odometer sensor coordinate system, which are called the point cloud initial angle and the point cloud real-time angle respectively.
[0090] When the navigator mobile robot undergoes translational motion, resulting in the Euclidean distance between the initial position of the point cloud and the real-time position of the point cloud being greater than a threshold σ, the point cloud data of the navigator mobile robot is distinguished from the valid point cloud data.
[0091] Or, when the navigator mobile robot rotates, causing the difference between the initial angle of the point cloud and the real-time angle of the point cloud to be greater than a threshold η, the point cloud data of the navigator mobile robot is distinguished from the valid point cloud data.
[0092] Tracking and positioning method:
[0093] Formula (4) is used to calculate the center point coordinates of each cluster of valid point cloud data, which is called the real-time position of the point cloud.
[0094] Get the historical position state variables of the navigator mobile robot, and make a circular area with a radius of R with the center point of the navigator mobile robot in the historical position state variables of the navigator mobile robot as the center of the circle, such as Figure 6 As shown, the circular area is called the circular boundary condition, and the valid point cloud data cluster whose real-time point cloud position is located within the circular boundary condition is considered to be the point cloud data of the navigator mobile robot, thereby distinguishing the point cloud data of the navigator mobile robot from the valid point cloud data.
[0095] Repositioning method:
[0096] When the program enters the re-positioning method for no more than C consecutive times, the valid point cloud data is recorded into an array, and the average value of the recorded valid point cloud data is calculated, which is called the real-time initial valid point cloud data.
[0097] Formula (4) is used to calculate the coordinates of the center points of each cluster of the initial effective point cloud data and each cluster of the effective point cloud data, which are called the real-time point cloud initial position and point cloud real-time position respectively.
[0098] The above-mentioned clusters of initial valid real-time point cloud data and clusters of valid point cloud data are connected into line segments, and the inverse tangent function is used to calculate the angle between the line segment and the positive direction of the horizontal axis of the follower mobile robot odometer sensor coordinate system, which are called the real-time point cloud initial angle and point cloud real-time angle respectively.
[0099] When the navigator mobile robot undergoes translational motion, resulting in the Euclidean distance between the initial position of the real-time point cloud and the real-time position of the point cloud being greater than a threshold σ, the point cloud data of the navigator mobile robot is distinguished from the valid point cloud data.
[0100] Or, when the navigator mobile robot rotates, causing the difference between the real-time point cloud initial angle and the point cloud real-time angle to be greater than a threshold η, the navigator mobile robot point cloud data is distinguished from the valid point cloud data.
[0101] Step 4. If the obstacle blocks the navigator mobile robot and the point cloud data of the navigator mobile robot cannot be distinguished from the valid point cloud data during the normal operation phase of step 3, clear the historical pose state variables of the navigator mobile robot and return to step 2. Otherwise, if step 3 successfully identifies the point cloud data of the navigator mobile robot, continue to step 5.
[0102] Step 5. Based on the point cloud data of the navigator mobile robot obtained in step 3, the center position and azimuth of the navigator mobile robot are calculated using plane geometric relationships, and the odometer sensor data of the follower mobile robot is used to perform coordinate transformation on the center position and azimuth of the navigator mobile robot to obtain the position and posture of the navigator mobile robot relative to the follower mobile robot, thereby enabling the follower mobile robot to track the point cloud of the navigator mobile robot.
[0103] Step 5.1. Based on the point cloud data of the navigator mobile robot obtained in step 3, use the average value algorithm to calculate the coordinates of the center point of the point cloud data of the navigator mobile robot. According to the fixed position relationship between the point cloud data center point and the center point of the navigator mobile robot, the center point position of the navigator mobile robot is obtained, that is, the center position, which is recorded as o M l .
[0104] Step 5.2. Based on the point cloud data of the navigator mobile robot obtained in step 3, connect the point cloud data of the navigator mobile robot into a line segment, calculate the angle between the line segment and the positive direction of the horizontal axis of the odometer sensor coordinate system, and obtain the angle of the navigator mobile robot, that is, the azimuth, recorded as o θ l .
[0105] Step 5.3. Use the center position obtained in step 5.1 and the azimuth information obtained in step 5.2 to update the historical posture state variables of the leader mobile robot.
[0106] Step 5.4. Obtain the transformation information between the odometer sensor data of the follower mobile robot and the rigid body of the follower mobile robot, and calculate the transformation matrix from the odometer sensor coordinate system to the chassis coordinate system of the follower mobile robot.
[0107] First, obtain the odometer sensor data of the follower mobile robot, calculate the rotation matrix and transformation matrix from the coordinate system of the follower mobile robot to the odometer sensor coordinate system, and invert them respectively to obtain the rotation matrix and transformation matrix from the odometer sensor coordinate system to the coordinate system of the follower mobile robot, which are denoted as R -1 and T3.
[0108] Obtain the transformation information between the rigid bodies of the follower mobile robot, and obtain the transformation matrix from the body coordinate system of the follower mobile robot to the chassis coordinate system chassis_link of the follower mobile robot. Since the relative position and posture between the body coordinate system of the follower mobile robot and the chassis coordinate system of the follower mobile robot are fixed, the transformation matrix here is a constant matrix, denoted as T4.
[0109] Step 5.5. Using the transformation matrix obtained in step 5.4, transform the reference coordinate system of the center position obtained in step 5.1 and the azimuth angle obtained in step 5.2 from the odometer sensor coordinate system to the chassis coordinate system of the follower mobile robot, as shown in formula (5), and obtain the position and posture of the leader mobile robot relative to the follower mobile robot, as shown in Figure 7 As shown in the figure, O F represents the origin of the coordinate system of the follower mobile robot, Y F and X F Respectively represent the horizontal and vertical coordinate systems of the mobile robot's body coordinate system. The relative position calculation formula of the leader mobile robot relative to the follower mobile robot is as follows:
[0110] f M l =(T3×T4) o M l (5)
[0111] In the formula, f M l is the relative position, indicating the coordinate of the center point of the leader mobile robot in the chassis coordinate system of the follower mobile robot.
[0112] Using the rotation matrix, the reference coordinate system of the azimuth angle is transformed from the odometer sensor coordinate system to the chassis coordinate system of the follower mobile robot, and the angle of the leader mobile robot relative to the follower mobile robot is obtained, such as Figure 8 As shown:
[0113]
[0114] In the formula, f R l It is a rotation matrix, which represents the rotation relationship from the positive direction of the horizontal axis of the mobile robot chassis coordinate system to the positive direction of the leader mobile robot.
[0115] From the above rotation matrix f R l The angle between the positive direction of the leader mobile robot and the positive direction of the horizontal axis of the mobile robot chassis coordinate system is extracted f θ l .
[0116] At this point, the position and posture of the leader mobile robot relative to the follower mobile robot are obtained, so that the follower mobile robot can track the point cloud of the leader mobile robot.
[0117] Step 6. Based on the obstacle point cloud data obtained in step 3, the center position and size range of the obstacle are calculated, and the buffer area size is specified to obtain the obstacle area, and then the obstacle area is added to the historical obstacle area, and then return to step 2.
[0118] Based on the obstacle point cloud data obtained in step 3, the rectangular area that can enclose all the obstacle point cloud data is calculated using the plane geometric relationship. The specific calculation formula is as follows:
[0119]
[0120] In the formula, Z j_mid is the center point coordinate of the obstacle point cloud data;
[0121] and are the center point coordinates of the two subsets of obstacle point cloud data, l j is the length of the rectangular area, w j is the width of the rectangular area, where j=1,2,...,K-1.
[0122] Considering the circumscribed circle radius and the minimum turning radius of the mobile robot, a buffer zone is created around the rectangular area, and the size of the buffer zone is specified. The rectangular area with the buffer zone is named the obstacle area.
[0123] Calculate the center point coordinates, length and width of the obstacle area. The specific formula is as follows:
[0124]
[0125] Where M j Indicates the coordinates of the center point of the obstacle area, length j Indicates the length of the obstacle area, width j Represents the width of the obstacle area, buffer represents the specified buffer area size, where j = 1, 2, ..., K-1.
[0126] The center point coordinates, length and width of the obstacle area are stored in the data structure used to describe the obstacle area, and then added to the historical obstacle area linked list, and then return to step 2.
[0127] The method of the present invention realizes the stable tracking of the point cloud of the leader mobile robot by the follower mobile robot in an unknown environment through sensor data processing, relative motion principle, spatial position continuity principle and plane geometric relationship calculation, thereby improving the safety and continuous tracking performance of the mobile robot in complex environments.
[0128] Of course, the above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiments. It should be noted that all equivalent substitutions and obvious deformation forms made by any technician familiar with the field under the guidance of this specification fall within the essential scope of this specification and should be protected by the present invention.
Claims
1. A mobile robot tracking control method based on laser radar and odometer, wherein the mobile robot tracking control system includes a follower mobile robot and a leader mobile robot, and is characterized in that: The method comprises the following steps: Step 1. Define a data structure for describing an obstacle area, use a linked list to store the data structure, and name the linked list as a historical obstacle area, and define a data structure for describing the historical posture state of the navigator mobile robot; Step 2. Obtain the laser radar sensor data of the follower mobile robot to generate the original point cloud data, while considering the laser radar sensor noise, the sampling density of the laser radar sensor data and the motion interference of the follower mobile robot, and fuse the odometer sensor data of the follower mobile robot to pre-process the original point cloud data to obtain the expected point cloud data; In step 2, the process of obtaining the desired point cloud data is as follows: Step 2.
1. Use the statistical outlier removal algorithm and voxel grid filter to filter and downsample the original point cloud data to generate the second point cloud data; Step 2.
2. Obtain the transformation information between the follower mobile robot odometer sensor data and the follower mobile robot rigid body, calculate the transformation matrix from the follower mobile robot lidar sensor coordinate system to the odometer sensor coordinate system, and use the coordinate transformation to transform the reference coordinate system of the No. 2 point cloud data from the follower mobile robot lidar sensor coordinate system to the odometer sensor coordinate system to generate No. 3 point cloud data; Step 2.
3. Use the Euclidean clustering method to segment the No. 3 point cloud data to obtain the No. 4 point cloud data containing K clusters; perform the middle segmentation of the point cloud and the calculation of the segment center point for each cluster in the No. 4 point cloud data to obtain two subsets after each cluster segmentation and the coordinates of the center point of each subset, where K is a natural number; The coordinates of the central points are all stored in an array, and the desired point cloud data is obtained; In step 2.2, the calculation formula of the transformation matrix and the process of obtaining the No. 3 point cloud data are as follows: Where R is the rotation matrix, which represents the posture information of the follower mobile robot's body coordinate system relative to the odometer sensor coordinate system; B is the translation vector, which represents the position information of the follower mobile robot's body coordinate system relative to the odometer sensor coordinate system, and the parameters (x, y, z) represent the three-dimensional coordinates of the follower mobile robot's position information; The rotation matrix R and the translation vector B are combined to form a 4×4 transformation matrix T1, which represents the position information of the follower mobile robot body coordinate system relative to the odometer sensor coordinate system; where 0 is a 1×3 row vector and the parameters [a, b, c, d] T is the quaternion representation of the rotation matrix R, which is used to describe the posture of the follower mobile robot; Obtain the transformation information between the rigid bodies of the follower mobile robot, and obtain the transformation matrix from the coordinate system of the follower mobile robot's laser radar sensor to the coordinate system of the follower mobile robot's body. Here, the transformation matrix is a constant matrix, denoted as T2; Use coordinate transformation to transform the reference coordinate system of the No. 2 point cloud data from the follower mobile robot's lidar sensor coordinate system to the odometer sensor coordinate system to generate No. 3 point cloud data: P3=(T1×T2)·P2 (2) In the formula, P2 is the second point cloud data, and P3 is the third point cloud data; In step 2.3, the coordinates of the center points of each subset are shown in the following formula: In the formula, Z i1 With Z i2 is the center point coordinates of the two subsets of the i-th cluster point cloud data, i = 1, 2, ..., K; N is the length of the i-th cluster point cloud data, symbol Indicates rounding down, x j and j is the horizontal and vertical coordinates of the point cloud data, j=1,2,...,N; Step 3. Eliminate the expected point cloud data located in the historical obstacle area to obtain valid point cloud data. At the same time, based on the historical posture state of the leader mobile robot, the follower mobile robot distinguishes the point cloud data of the leader mobile robot from the point cloud data of the obstacle by using the principle of relative motion or the principle of spatial position continuity; In step 3, the process of excluding the desired point cloud data located in the historical obstacle area is as follows: Based on the expected point cloud data obtained in step 2, calculate the center point coordinates of each cluster of the expected point cloud data: In the formula, o M i is the coordinate of the center point of each cluster of point cloud data, which represents the coordinate of the center point of each cluster of point cloud data in the coordinate system of the follower mobile robot odometer sensor, where i = 1, 2, ..., K; Z i_1 With Z i_2 are the center point coordinates of the two subsets of the i-th cluster point cloud data; Given o M i That is, the center point coordinates of each cluster of the expected point cloud data and the historical obstacle area list LIST, then the specific process of excluding the clusters in the historical obstacle area in the expected point cloud data is as follows: For each obstacle area in LIST: Obstacle center point_x = x coordinate of the center point of the obstacle area; Obstacle center point_y = y coordinate of the center point of the obstacle area; Obstacle length = length of obstacle area; Obstacle width = width of the obstacle area; Calculate the bounds of the rectangle: Right boundary = (obstacle center point_y-obstacle width) / 2; Left boundary = (obstacle center point_y + obstacle width) / 2; Lower boundary = (obstacle center point_x-obstacle length) / 2; Upper boundary = (obstacle center point_x + obstacle length) / 2; if o M i If it is within the rectangular range enclosed by the above four boundary values, the expected point cloud data is within the historical obstacle area; otherwise, the expected point cloud data is not within the historical obstacle area; The remaining expected point cloud data clusters are stored in the array in the original order to form valid point cloud data; The step 3 is specifically as follows: Aiming at the positioning problem of the navigator mobile robot in the initial stage, the tracking positioning problem of the navigator mobile robot in the normal operation stage, and the re-positioning problem of the navigator mobile robot in the tracking loss stage, three different positioning methods, initial positioning, tracking positioning and re-positioning, are designed respectively, and the corresponding methods are run in different stages; Initial positioning method: When the program enters the initial positioning method less than C times continuously, the valid point cloud data is recorded, where C is a natural number; When the program enters the initial positioning method for C consecutive times, the valid point cloud data is recorded, and the average value of the recorded C groups of valid point cloud data is calculated, which is called the initial position of the point cloud; When the program continuously enters the initial positioning method for no less than C times, based on the initial position of the point cloud, when the navigator mobile robot translates or rotates, the relative motion principle is used to distinguish the navigator mobile robot point cloud data from the valid point cloud data; Tracking and positioning method: The historical position and posture state variables of the navigator mobile robot are obtained, and a circular area with a radius of R is made with the center point of the navigator mobile robot in the historical position and posture state variables of the navigator mobile robot as the center of the circle. The circular area is called the circular boundary condition. The valid point cloud data appearing in the circular boundary condition at the current moment is considered to be the point cloud data of the navigator mobile robot, so as to distinguish the point cloud data of the navigator mobile robot from the valid point cloud data. Repositioning method: When the program continuously enters the re-positioning method for no more than C times, the valid point cloud data is recorded, and the average value of the recorded valid point cloud data is calculated, which is called the real-time initial position of the point cloud; When the program enters the re-localization method, based on the above-mentioned real-time initial position of the point cloud, when the navigator mobile robot translates or rotates, the relative motion principle is used to distinguish the navigator mobile robot point cloud data from the valid point cloud data; Step 4. If step 3 fails to successfully identify the point cloud data of the navigator mobile robot, clear the historical position state variables of the navigator mobile robot and return to step 2; if step 3 successfully identifies the point cloud data of the navigator mobile robot, continue to step 5; Step 5. Based on the point cloud data of the navigator mobile robot obtained in step 3, the center position and azimuth of the navigator mobile robot are calculated using the plane geometric relationship, and the historical position and posture state of the navigator mobile robot is updated. Then, the odometer sensor data of the follower mobile robot is used to perform coordinate transformation on the center position and azimuth of the navigator mobile robot, and the position and posture of the navigator mobile robot relative to the follower mobile robot are obtained, so that the follower mobile robot can track the point cloud of the navigator mobile robot; Step 6. Based on the obstacle point cloud data obtained in step 3, the center position and size range of the obstacle are calculated, and the buffer area size is specified to obtain the obstacle area, and then the obstacle area is added to the historical obstacle area, and then return to step 2; Among them, both the follower mobile robot and the leader mobile robot are equipped with laser radar and odometer sensors.
2. The mobile robot tracking control method based on laser radar and odometer according to claim 1 is characterized in that: In the step 1, the obstacle area is defined as a rectangular area; The data structure used to describe the obstacle area contains four double-precision floating-point numbers, which represent the horizontal and vertical coordinates of the center point of the obstacle area, the length of the obstacle area, and the width of the obstacle area. The data structure used to describe the historical position and posture state of the navigator mobile robot contains three double-precision floating-point numbers, which respectively represent the horizontal and vertical coordinates of the center point of the navigator mobile robot and the direction angle of the navigator mobile robot.
3. The mobile robot tracking control method based on laser radar and odometer according to claim 1 is characterized in that: The step 5 is specifically as follows: Step 5.
1. Based on the point cloud data of the navigator mobile robot obtained in step 3, use the average value algorithm to calculate the coordinates of the center point of the point cloud data of the navigator mobile robot, and obtain the center point position of the navigator mobile robot, that is, the center position, according to the fixed position relationship between the center point of the point cloud data of the navigator mobile robot and the center point of the navigator mobile robot; Step 5.
2. Based on the point cloud data of the navigator mobile robot obtained in step 3, connect the point cloud data of the navigator mobile robot into a line segment, calculate the angle between the line segment and the positive direction of the horizontal axis of the odometer sensor coordinate system, and obtain the angle of the navigator mobile robot, that is, the azimuth; Step 5.
3. Use the center position obtained in step 5.1 and the azimuth information obtained in step 5.2 to update the historical posture state variables of the leader mobile robot; Step 5.
4. Obtain the transformation information between the odometer sensor data of the follower mobile robot and the rigid body of the follower mobile robot, and calculate the transformation matrix from the odometer sensor coordinate system to the chassis coordinate system of the follower mobile robot; Step 5.
5. Using the transformation matrix obtained in step 5.4, transform the reference coordinate system of the center position obtained in step 5.1 and the azimuth angle obtained in step 5.2 from the odometer sensor coordinate system to the chassis coordinate system of the follower mobile robot to obtain the position and posture of the leader mobile robot relative to the follower mobile robot; At this point, the follower mobile robot is able to track the point cloud of the leader mobile robot.
4. The mobile robot tracking control method based on laser radar and odometer according to claim 3 is characterized in that: In step 5.4, the odometer sensor data of the follower mobile robot is obtained, and the rotation matrix and transformation matrix from the coordinate system of the follower mobile robot to the odometer sensor coordinate system are calculated. The two are inverted to obtain the rotation matrix and transformation matrix from the odometer sensor coordinate system to the coordinate system of the follower mobile robot, which are respectively denoted as R -1 and T3; Obtain the transformation information between the rigid bodies of the follower mobile robot, and obtain the transformation matrix from the coordinate system of the follower mobile robot body to the coordinate system of the chassis of the follower mobile robot. The transformation matrix is a constant matrix, denoted as T4; In step 5.5, the relative position calculation formula of the leader mobile robot with respect to the follower mobile robot is as follows: f M l =(T3×T4)· o M l (5) In the formula, f M l is the relative position, indicating the coordinate of the center point of the leader mobile robot in the chassis coordinate system of the follower mobile robot; o M l is the center position obtained in step 5.1; Use the rotation matrix to transform the reference coordinate system of the azimuth angle from the odometer sensor coordinate system to the chassis coordinate system of the follower mobile robot to obtain the angle of the leader mobile robot relative to the follower mobile robot: In the formula, f R l is a rotation matrix, which represents the rotation relationship from the positive direction of the horizontal axis of the mobile robot chassis coordinate system to the positive direction of the leader mobile robot; o θ l is the azimuth obtained in step 5.2; From the above rotation matrix f R l The angle between the positive direction of the leader mobile robot and the positive direction of the horizontal axis of the mobile robot chassis coordinate system is extracted f θ l ; At this point, the position and posture of the leader mobile robot relative to the follower mobile robot are obtained.
5. The mobile robot tracking control method based on laser radar and odometer according to claim 1 is characterized in that: The step 6 is specifically as follows: Based on the obstacle point cloud data obtained in step 3, the rectangular area that can enclose all the obstacle point cloud data is calculated using the plane geometric relationship. The specific calculation formula is as follows: In the formula, Z j_mid is the center point coordinate of the obstacle point cloud data; and are the center point coordinates of the two subsets of obstacle point cloud data, l j is the length of the rectangular area, w j is the width of the rectangular area, where j=1,2,...,K-1; Considering the circumscribed circle radius and the minimum turning radius of the mobile robot, a buffer zone is created around the rectangular area, and the size of the buffer zone is specified. The rectangular area with the buffer zone is named the obstacle area. Calculate the center point coordinates, length and width of the obstacle area. The specific formula is as follows: Where M j Indicates the coordinates of the center point of the obstacle area, length j Indicates the length of the obstacle area, width j represents the width of the obstacle area, and buffer represents the specified buffer area size, where j = 1, 2, ..., K-1; The center point coordinates, length and width of the obstacle area are stored in the data structure used to describe the obstacle area, and then added to the historical obstacle area linked list, and then return to step 2.
Citation Information
Patent Citations
Adaptive tracking control method of multi-mobile-robot system under condition of attitude unknown
CN104881044A
Robot self-following method and device based on single-line laser radar, and robot
CN112379673A
