Intelligent following robot control method

Through the combination of inertial touch sensors and SDEPF algorithms, the problem of target recognition and following stability of traditional automatic following cars in complex environments is solved, stable target tracking and obstacle avoidance are achieved, and the following effect is improved.

CN118778636APending Publication Date: 2024-10-15SKYLAB M&C TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410753513.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Traditional automatic following cars have low target recognition accuracy and poor following stability in complex environments, and are easily disturbed by the environment, resulting in poor following results.

Method used

The inertial touch sensor is combined with the SDEPF algorithm to establish a coordinate system by measuring the distance and angle between the platform body and the target, collect inertial sensor data, correct the angle information using the SDEPF filtering algorithm, control the platform body to track the target, and detect obstacles through the ultrasonic probe. , calculate the lateral distance, and perform obstacle avoidance rotation to improve following stability.

Benefits of technology

It achieves stable tracking of targets in complex environments, improves the following effect, and enhances following stability and obstacle avoidance capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778636A_ABST
    Figure CN118778636A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent following robot control method, and belongs to the field of intelligent following robots, and the method comprises the steps: measuring the distance and angle between a platform body and a target tracking object, and carrying out the pre-positioning of the target tracking object, the method comprises the following steps: acquiring position information, establishing a coordinate system based on the position information, collecting feedback data of an inertial sensor, extracting angle information, and correcting the angle information by using an SDEPF filtering algorithm; controlling the platform body to track a target tracking object, collecting obstacle position data, calculating the transverse distance of the target obstacle relative to the platform body, and controlling the platform body to rotate when the transverse distance exceeds half of the transverse width of the platform body; and rotation is stopped until the transverse distance is larger than half of the transverse width of the platform body. According to the invention, stable tracking of the target tracking object is realized by using the inertial touch sensor and the SDEPF algorithm, and the stable following effect of the target tracking object in a complex environment is improved through the obstacle avoidance strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent following robots, and in particular to a control method for an intelligent following robot. Background Art

[0002] With the rapid development of science and technology, intelligent robot technology has been widely used in various fields. Among them, intelligent following robots, as a type of intelligent robots, have broad application prospects. However, traditional automatic following robots have great challenges in target recognition, following accuracy and efficiency.

[0003] First, target recognition is the core of the automatic following robot technology. When the automatic following robot follows the target in a complex environment, it has problems such as low recognition accuracy and susceptibility to environmental interference as the target moves and the environment changes. Secondly, following stability is an important indicator of the performance of the automatic following robot. During the following process, the automatic following robot often has problems such as angle loss or confusion, resulting in poor following effect.

[0004] Application Contents

[0005] In order to overcome the shortcomings of the prior art, the purpose of this application is to provide an intelligent following robot control method, which achieves stable tracking of the target object by utilizing inertial touch sensors and SDEPF algorithm, and improves the stable following effect of the target object in complex environments through obstacle avoidance strategies.

[0006] To achieve the above objectives, this application provides the following solutions:

[0007] A control method for an intelligent follower robot is applied to an intelligent follower robot; the intelligent follower robot comprises: a platform body, a PDOA communication base station, a universal wheel, a driving wheel, a first ultrasonic probe and a second ultrasonic probe; the platform body has a built-in single-chip microcomputer; the PDOA communication base station is arranged at the center position of the upper side of the platform body; the universal wheel is placed in the middle position of the front section of the platform body; the driving wheel is arranged at the rear end of the platform body; the first ultrasonic probe and the second ultrasonic probe are respectively arranged on the left and right sides of the front section of the platform body; the platform body has a built-in inertial sensor; the control method comprises:

[0008] Using the PDOA communication base station to measure the distance and angle between the platform body and the target tracking object;

[0009] Pre-positioning the target tracking object according to the distance and the angle to obtain position information;

[0010] Establishing a coordinate system based on the position information;

[0011] Based on the coordinate system, collecting feedback data from the inertial sensor and extracting angle information;

[0012] The angle information is corrected by using a SDEPF filtering algorithm to obtain angle correction information;

[0013] Controlling the platform body to track the target tracking object based on the angle correction information;

[0014] collecting obstacle location data using the first ultrasonic probe and the second ultrasonic probe;

[0015] Calculating a lateral distance of a target obstacle relative to the platform body based on the obstacle position data;

[0016] When the lateral distance exceeds half of the lateral width of the platform body, the platform body is controlled to rotate, and the rotation is stopped when the lateral distance is greater than half of the lateral width of the platform body.

[0017] Preferably, the origin of the coordinate system is the platform body; the y-axis of the coordinate system is from the platform body to the target tracking object; and the x-axis of the coordinate system is perpendicular to the y-axis and is located on the right side of the y-axis.

[0018] Preferably, the angle information is corrected using a SDEPF filtering algorithm to obtain angle correction information, including:

[0019] Based on the angle information, a prediction is performed using a preset state equation to obtain a predicted value;

[0020] Based on a plurality of particles randomly generated according to a normal distribution and the predicted value, a preset probability density of importance is calculated and weighted summed to obtain a filtering estimate;

[0021] Substituting the filtered estimated value into a preset measurement equation to obtain a posterior measurement value;

[0022] Calculating the Mahalanobis distance between the posterior measurement value and the angle information;

[0023] Substitute the Mahalanobis distance into the chi-square distribution table to obtain the confidence data;

[0024] When the confidence data is less than 98%, the tracking state is determined to be tracking failure, and the preset particle set is differentiated and reset to obtain an optimized particle set with a higher weight.

[0025] Preferably, calculating the lateral distance of the target obstacle relative to the platform body based on the obstacle position data comprises:

[0026] The distance d between the first ultrasonic probe and the second ultrasonic probe and the obstacle is determined by1 and d 2 and the width d of the platform body to calculate the angle θ between the first ultrasonic probe and the second ultrasonic probe and the obstacle 1 and θ 2 ; The angle calculation formula is: and

[0027] When |θ 1 -θ 2 | greater than 10 degrees and θ 1 Less than θ 2 When the obstacle is located in the right front of the platform body, the calculation formula of the lateral distance is:

[0028] When |θ 1 -θ 2 | greater than 10 degrees and θ 1 Greater than θ 2 When the obstacle is located in the left front of the platform body, the calculation formula of the lateral distance is:

[0029] When |θ 1 -θ 2 When the angle is less than 10 degrees, the obstacle is located directly in front of the platform body.

[0030] Preferably, when the lateral distance exceeds half of the lateral width of the platform body, the platform body is controlled to rotate until the lateral distance is greater than half of the lateral width of the platform body and the rotation is stopped, comprising:

[0031] When the obstacle is located in front of the right side of the platform body, the obstacle azimuth angle θ s左 and critical azimuth Calculate the rotation angle θ r左 , and control the platform body to rotate leftward θ r左 Spend;

[0032] When the obstacle is located in the left front of the platform body, the azimuth angle θ s右 and the critical azimuth Calculate the rotation angle θ r右 , control the platform body to rotate right θ r右 Spend;

[0033]

[0034] When the obstacle is located in front of the platform body, and θ 1 Less than θ2 When the control is to rotate leftward θ r左正 Spend;

[0035] When the obstacle is located in front of the platform body, and θ 1 Greater than θ 2 When the control rotates rightward θ r右正 Spend;

[0036] Preferably, the state equation is: F = Δθ k =θ k -θ k-1 =w k-1 *t+Q;w k-1 is the angular velocity value at time k-1; t is the positioning time interval; Q is the state noise; θ k is the heading angle at time k, θ k-1 is the heading angle at time k-1.

[0037] Preferably, the measurement equation is: Z = ΔZ k =Z k -Z k-1 +R;Z k is the angle measured by the PDOA communication base station at time k; Z k-1 is the angle measured by the PDOA communication base station at time k-1; R is the measurement noise, ΔZ k The angle difference is the heading angle change.

[0038] This application discloses the following technical effects:

[0039] The present application provides a control method for an intelligent following robot, which belongs to the field of intelligent following robots, including: measuring the distance and angle between the platform body and the target tracking object, pre-positioning the target tracking object, obtaining position information, establishing a coordinate system based on the position information, collecting feedback data from the inertial sensor and extracting angle information, correcting the angle information using the SDEPF filtering algorithm, obtaining angle correction information, controlling the platform body to track the target tracking object, collecting obstacle position data, calculating the lateral distance of the target obstacle with respect to the platform body, and controlling the platform body to rotate when the lateral distance exceeds half of the lateral width of the platform body, until the lateral distance is greater than half of the lateral width of the platform body, the rotation stops. The present application achieves stable tracking of the target tracking object by using an inertial touch sensor and the SDEPF algorithm, and improves the stable following effect of the target tracking object in a complex environment by using an obstacle avoidance strategy. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0041] Figure 1 A control flow chart of the intelligent following robot provided in the embodiment of the present application;

[0042] Figure 2 A module diagram of an automatic following platform provided in an embodiment of the present application;

[0043] Figure 3 A structural diagram of a follower robot provided in an embodiment of the present application;

[0044] Figure 4 A schematic diagram of coordinates provided for an embodiment of the present application;

[0045] Figure 5 A schematic diagram of the relative positions of obstacles provided in an embodiment of the present application;

[0046] Figure 6 The obstacle provided for the embodiment of the present application is located in the schematic diagram on the right;

[0047] Figure 7 A schematic diagram of the obstacle azimuth provided in the embodiment of the present application;

[0048] Figure 8 A schematic diagram showing an obstacle located directly in front of the embodiment of the present application;

[0049] Fig. 9 A schematic diagram of the obstacle avoidance effect provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0051] The purpose of this application is to provide an intelligent following robot control method, which achieves stable tracking of the target tracking object by utilizing an inertial touch sensor and a SDEPF algorithm, and improves the stable following effect of the target tracking object in a complex environment by using an obstacle avoidance strategy.

[0052] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0053] Figure 1 The intelligent following robot control flow chart provided in the embodiment of the present application is as follows: Figure 1 As shown, the present application provides a control method for an intelligent follower robot, which is applied to an intelligent follower robot; the intelligent follower robot includes: a platform body, a PDOA communication base station, a universal wheel, a driving wheel, a first ultrasonic probe and a second ultrasonic probe; the platform body has a built-in single-chip microcomputer; the PDOA communication base station is arranged at the center position of the upper side of the platform body; the universal wheel is placed in the middle position of the front section of the platform body; the driving wheel is arranged at the rear end of the platform body; the first ultrasonic probe and the second ultrasonic probe are respectively arranged on the left and right sides of the front section of the platform body; the platform body has a built-in inertial sensor; the control method includes:

[0054] Step 100, using the PDOA communication base station to measure the distance and angle between the platform body and the target tracking object;

[0055] Step 200, pre-positioning the target tracking object according to the distance and the angle to obtain position information;

[0056] Step 300, establishing a coordinate system based on the position information;

[0057] Step 400, based on the coordinate system, collecting feedback data from the inertial sensor and extracting angle information;

[0058] Step 500, using the SDEPF filtering algorithm to correct the angle information to obtain angle correction information;

[0059] Step 600, controlling the platform body to track the target object based on the angle correction information;

[0060] Step 700, using the first ultrasonic probe and the second ultrasonic probe to collect obstacle position data;

[0061] Step 800, calculating the lateral distance of the target obstacle relative to the platform body based on the obstacle position data;

[0062] Step 900: When the lateral distance exceeds half of the lateral width of the platform body, the platform body is controlled to rotate, and the rotation is stopped when the lateral distance is greater than half of the lateral width of the platform body.

[0063] Optionally, the origin of the coordinate system is the platform body; the y-axis of the coordinate system is from the platform body to the target tracking object; and the x-axis of the coordinate system is perpendicular to the y-axis and is located on the right side of the y-axis.

[0064] Further, the angle information is corrected using a SDEPF filtering algorithm to obtain angle correction information, including:

[0065] Based on the angle information, a prediction is performed using a preset state equation to obtain a predicted value;

[0066] Based on a plurality of particles randomly generated according to a normal distribution and the predicted value, a preset probability density of importance is calculated and weighted summed to obtain a filtering estimate;

[0067] Substituting the filtered estimated value into a preset measurement equation to obtain a posterior measurement value;

[0068] Calculating the Mahalanobis distance between the posterior measurement value and the angle information;

[0069] Substitute the Mahalanobis distance into the chi-square distribution table to obtain the confidence data;

[0070] When the confidence data is less than 98%, the tracking state is determined to be tracking failure, and the preset particle set is differentiated and reset to obtain an optimized particle set with a higher weight.

[0071] Specifically, calculating the lateral distance of the target obstacle relative to the platform body based on the obstacle position data includes:

[0072] The distance d between the first ultrasonic probe and the second ultrasonic probe and the obstacle is determined by 1 and d 2 and the width d of the platform body to calculate the angle θ between the first ultrasonic probe and the second ultrasonic probe and the obstacle 1 and θ 2 ; The angle calculation formula is: and

[0073] When |θ 1 -θ 2 | greater than 10 degrees and θ 1 Less than θ 2 When the obstacle is located in the right front of the platform body, the calculation formula of the lateral distance is:

[0074] When |θ 1 -θ 2 | greater than 10 degrees and θ 1 Greater than θ 2When the obstacle is located in the left front of the platform body, the calculation formula of the lateral distance is:

[0075] When |θ 1 -θ 2 When the angle is less than 10 degrees, the obstacle is located directly in front of the platform body.

[0076] Further, when the lateral distance exceeds half of the lateral width of the platform body, the platform body is controlled to rotate until the lateral distance is greater than half of the lateral width of the platform body and the rotation is stopped, comprising:

[0077] When the obstacle is located in front of the right side of the platform body, the obstacle azimuth angle θ s左 and critical azimuth Calculate the rotation angle θ r左 , and control the platform body to rotate leftward θ r左 Spend;

[0078] When the obstacle is located in the left front of the platform body, the azimuth angle θ s右 and the critical azimuth Calculate the rotation angle θ r右 , control the platform body to rotate right θ r右 Spend;

[0079]

[0080] When the obstacle is located in front of the platform body, and θ 1 Less than θ 2 When the control is to rotate leftward θ r左正 Spend;

[0081] When the obstacle is located in front of the platform body, and θ 1 Greater than θ 2 When the control rotates rightward θ r右正 Spend;

[0082] Specifically, the state equation is: F = Δθ k =θ k -θ k-1 =w k-1 *t+Q;w k-1 is the angular velocity value at time k-1; t is the positioning time interval; Q is the state noise; θ k is the heading angle at time k, θ k-1 is the heading angle at time k-1.

[0083] Specifically, the measurement equation is: Z = ΔZ k =Z k -Z k-1 +R;Z k is the angle measured by the PDOA communication base station at time k; Z k-1 is the angle measured by the PDOA communication base station at time k-1; R is the measurement noise, ΔZ k The angle difference is the heading angle change.

[0084] Furthermore, the particle filter algorithm needs to randomly generate a particle set based on the state vector during data fusion. The state vector in this application is an angle change within a measurement time and is a one-dimensional vector. Therefore, the particle set is initially a standard normal distribution with the initial state as the mean, and the number of particle sets is set according to actual needs. In each filtering process, the algorithm will pass the particle set of the previous moment to the next generation. When the SDEPF algorithm recognizes that the tracking fails, the particle set is optimized, and then the particle set is passed to the next generation after optimization. Specifically, after obtaining the particle set, the SDEPF algorithm performs a weighted average according to the weight of each particle to obtain an estimate of the target state at that moment. In essence, it is an estimate of the target state, not a tracking of particles. At the same time, the particle set will be passed to the next moment.

[0085] refer to Figure 2 The automatic following platform (robot) provided in this embodiment mainly includes: a PDOA positioning communication module, an ultrasonic probe obstacle avoidance module, and a driving and warning module; the PDOA positioning communication module is used to measure distance and angle through wireless data transmission and provide positioning progress by combining IMU (inertial sensor, IMU is placed at the center of gravity of the robot, mainly through the internal angular velocity sensor to measure the change of the target heading angle within the calibration time) combined filtering; the ultrasonic probe obstacle avoidance module is used to collect obstacle information and perform obstacle avoidance; the driving and warning module is used to control the movement direction of the platform body and the target loss alarm. This embodiment uses a PDOA communication base station and a single UWB tag to achieve accurate positioning of the target. The PDOA communication base station can simultaneously obtain the angle and distance of the target relative to the platform body, and uses the IMU embedded in the platform body and the self-resetting differential particle filter algorithm (SDEPF) to feedback the UWB positioning system (including the PDOA positioning communication module and the UWB tag) to achieve stable tracking of the target tracking object. The UWB tag is placed on the top of the platform body, and its main function is to transmit data with the PDOA base station to obtain the relative angle and relative distance between the base station and the target tracking object.

[0086] refer to Figure 3, the platform body designed in this embodiment is equipped with a universal wheel and two drive wheels. The movement of the platform body is controlled by STM32. The battery is set at the bottom of the platform body, the universal wheel is located at the front end of the platform body, and is used to control the steering of the platform body. The two drive wheels are located at the rear end of the platform body, and are used to control the forward and backward movement of the platform body. At the same time, the rear drive wheel is differentially controlled according to the obstacle avoidance strategy to achieve mobile obstacle avoidance. Since there is no GPS or other external positioning system to provide a relative position reference between the platform and the mobile target in actual use, there may be a problem of target loss when following in a complex environment. In order to cope with this problem, an early warning module is designed in this embodiment. When the distance between the platform body and the target tracking object exceeds 5m, a warning prompt is triggered. The platform body prompts the target tracking object to return to the trackable range of the platform body by issuing a warning prompt sound.

[0087] Furthermore, in order to prevent the shape of the platform from affecting the PDOA communication base station, the PDOA base station is placed in the center of the rectangular box. The PDOA positioning method is used to measure the distance and relative azimuth angle between the platform body and the target tracking object, and the target tracking object is pre-positioned. Then, the positioning is corrected by combining the IMU and SDEPF algorithms to improve the effect of stable tracking of the target tracking object.

[0088] Furthermore, in order to better realize the recognition and avoidance of obstacles, the present embodiment installs ultrasonic sensors on both sides of the front end of the mobile platform to respectively recognize the obstacles on the left and right sides. When the obstacle is on the right side of the mobile platform, the platform body moves to the left to avoid the obstacle; when the obstacle is on the left side of the mobile platform, the platform body moves to the right to avoid the obstacle.

[0089] refer to Figure 4 The PDOA base station includes two TWR base stations, and the TWR base stations communicate bilaterally with the UWB tag to obtain distance information. Since the distance between the TWR base stations is fixed, the relative orientation can be calculated based on the distance between the two TWR base stations and the distance to the target tracking object combined with trigonometric function calculation. This embodiment uses the PDOA positioning method to locate the target tracking object. Since the distance between the two TWR base stations is known, the direction to the target tracking object can be obtained while obtaining the distance to the target tracking object. According to the obtained distance and direction, the platform body can be controlled to move to the position of the target tracking object.

[0090] The TWR base station is a subcomponent of the PDOA base station. TWR uses UWB communication technology. The angle change measured by the IMU is then fused with the measurement value of the PDOA and substituted into the SDEPF for filtering to obtain more accurate azimuth and distance values. Therefore, the overall expression is the UWB / SDEPF tracking algorithm.

[0091] Furthermore, the detailed process of the solution process of the UWB / SDEPF tracking algorithm adopted in this embodiment is as follows:

[0092] 1) Initial calibration:

[0093] refer to Figure 4 At the initial moment, reset and calibrate the position of the target. During the calibration process, the platform is assumed to be in front of the target. During the entire tracking process, the coordinate system is established with the positive direction of the platform as the Y axis and the horizontal direction as the X axis, and the center of the platform as the origin. k ,y k is the position of the platform at time k, x p ,y p is the position of the target object at time k, θ is the relative angle between the platform and the target object, and d is the relative distance between the platform and the target object.

[0094] 2) Filter optimization:

[0095] After the target tracker starts to move, the platform body also starts to move, records the data fed back by the IMU, extracts the angular velocity value, and calculates the cumulative heading angle of the platform within a time interval. When the positioning time interval is short, it can be assumed that the angular velocity of the target remains unchanged in the short term. In a short period of time, the angle change calculated by the angular velocity value fed back by the IMU is more accurate than the angle change measured by the PDOA, so the following state equation and measurement equation are defined:

[0096] F=Δθ k =θ k -θ k-1 =w k-1 *t+Q

[0097] Z=ΔZ k =Z k -Z k-1 +R

[0098] Where F is the state function value, Z is the measurement function value, and w k-1 is the angular velocity value at time k-1, and t is the positioning time interval. Because it is assumed that the platform is facing the target at the previous moment, ΔZ k It is the angle measured by the PDOA communication base station at time k. Q is the state noise, and its variance is δ Q Gaussian distribution. R is the measurement noise, which has a variance of δ R Gaussian distribution.

[0099] 3)SDEPF filtering algorithm:

[0100] For the above state equation and measurement equation, this embodiment uses a particle filter as an intermediate processor to use the angular velocity fed back by the IMU to correct the angle measured by the PDOA communication base station. The standard particle filter is based on the Bayesian framework, and its specific implementation is similar to the Kalman filter. The difference is that it uses a large number of particle sets to simulate the posterior distribution of the target state, and is widely used in target tracking and data processing. The principle is briefly described as follows:

[0101] Let the state value at time k-1 be x k , predict the state of the target at the next moment according to the state equation:

[0102] p(x k |y 1:k-1 )=∫p(x k |x k-1 )p(x k-1 |y 1:k-1 )dx k-1

[0103] After obtaining the measured value at time k, the prior probability p(x k |y 1:k-1 ) Calculate the posterior probability value:

[0104]

[0105] Since the posterior probability is generally difficult to have an analytical solution, the particle filter introduces the probability density q(x k |y k ) and use a large number of particles to cover the proposed probability distribution, according to each particle in q(x k |y k ) is weighted summed to obtain the importance weights of x k The recursive formula of importance weight is as follows:

[0106]

[0107] Then, N particles can be sampled from q(·), and the weights can be calculated and normalized, where Substituting the importance weight of the i-th particle at time k into the following formula, we can get the filter estimate at time k:

[0108]

[0109] Since the particle filter may occasionally diverge during long-term tracking, this embodiment introduces a heuristic algorithm into the particle filter, processes the particle set when the target diverges, and introduces the particle set into the high likelihood region. First, substitute the filter estimate into the measurement equation Z(·) to obtain the posterior measurement value Second, compare With the measured value Z k The Mahalanobis distance between them is used to eliminate the correlation between dimensions, as follows:

[0110]

[0111] Finally, the obtained Mahalanobis distance value is substituted into the chi-square distribution table to compare its confidence. When the confidence is less than 98%, it is considered that the tracking has failed. When the tracking fails, the particle set is processed by differential optimization and the particle set is reset as follows:

[0112]

[0113] where x i k is the particle to be optimized, x best k is the particle with the highest weight at time k, x r1 k With x r2 k are two random particles in the particle set. After obtaining the optimized particle x i k* After that, substitute it into the weight calculation formula. If the weight is higher than before, keep it, otherwise wait for subsequent optimization. The weight calculation formula is as follows:

[0114]

[0115] Combining the state equation and measurement equation described above with SDEPF can reduce the possibility of the filter diverging when working for a long time. At the same time, this embodiment is also tested under actual conditions: one is that the target moves in a straight line, the mobile platform follows it and records the angle information; the other is that the target moves randomly, the mobile platform follows it and records the angle information. Both tests were performed 50 times each. If the platform body has a follow-up disorder, it is determined that the filter has diverged, and the feedback angle estimate cannot provide an effective reference. The experimental results are shown in Table 1, where PF (particle filter) is a particle filter algorithm, and the PF group is used for comparison.

[0116] Table 1

[0117]

[0118] It can be seen from the above table that the modified SDEPF algorithm can effectively improve the stability of the filter, which is reflected in the improved tracking accuracy on the automatic following platform.

[0119] Furthermore, in actual applications, the platform body may encounter obstacles between it and the target object, which may lead to misjudgment of the angle. Although the IMU can correct the angle to a certain extent to alleviate such problems, it still cannot effectively avoid obstacles. Therefore, this embodiment adopts the following obstacle avoidance strategy:

[0120] For the obstacle blocking situation of the platform body during the following process, it is assumed that the platform and the target are in line of sight at the previous moment and the obstacle is in front of the platform, so the position of the obstacle can be specifically divided into the following two situations: one is that the obstacle is in the left front of the platform body; the other is that the obstacle is in the right front of the platform body. Since the platform body designed in this embodiment is equipped with ultrasonic probes on both sides of the front end, the distance d between the platform and the obstacle can be obtained through the two ultrasonic probes. 1 With d 2 , assuming the length of the platform is L and the width is d, we can calculate whether the target will collide with the obstacle. If the horizontal distance between the center of the platform and the obstacle is greater than half the width of the platform, it is determined that there will be no collision. Otherwise, it is determined that there will be a collision. For details, refer to Figure 5 .

[0121] 1) If the obstacle is in front of the right side of the platform (refer to Figure 6 ):

[0122] For the case where the obstacle is in front of the right side of the platform, d 1 Greater than d 2 , the angle calculation formula of the obstacle with respect to the two ultrasonic probes θ 1 and θ 2 for:

[0123]

[0124] If |θ 1 -θ 2 | greater than 10 degrees, and θ 1 Less than θ 2 , and the obstacle is considered to be in front of the right side of the platform. After determining the position of the obstacle, calculate the collision possibility. The calculation formula for Δd is:

[0125]

[0126] If the obstacle is far away from the platform, θ 2 will be greater than 90 degrees, and the calculated Δd will be greater than No collision will occur, so the universal wheel at the front end of the platform body does not need to adjust the direction, and the platform body continues to move forward; if the obstacle is close to the platform body, 2 will be less than 90 degrees, and the calculated Δd will be less than A collision will occur, so it is necessary to adjust the direction of the universal wheel and the speed of the rear drive wheel to avoid obstacles (see Figure 7 ), at this time the azimuth angle θ between the platform and the obstacle s The calculation formula is as follows:

[0127]

[0128] Critical azimuth The calculation formula is:

[0129]

[0130] It is easy to get θ s is less than Therefore, the rotation angle of the universal wheel is θ r Should be The direction is left.

[0131] 2) If the obstacle is in front of the left side of the platform:

[0132] If |θ 1 -θ 2 | greater than 10 degrees, and θ 1 Greater than θ 2 , then the obstacle is considered to be in front of the left side of the platform. After determining the position of the obstacle, calculate the collision possibility. The calculation formula of Δd is as follows:

[0133]

[0134] The corresponding θ s and for:

[0135]

[0136] Therefore, the rotation angle of the universal wheel is θ r Should be The direction is right.

[0137] 3) If the obstacle is directly in front of the platform (see Figure 8 ):

[0138] Combined with the above-mentioned side judgment strategy, for this situation, this embodiment sets the platform body to turn its head until there is no possibility of collision between one side of the platform body and the obstacle. Then it keeps moving forward in this direction until the ultrasonic probes at both ends cannot identify the obstacle, and then it is determined that the platform body has passed the obstacle. Since the volume of the obstacle is generally much larger than the platform body, the platform body will be moved forward in the process of turning. 1 The size of can be almost assumed to be constant, so θ r equal θ r The calculation formula is:

[0139]

[0140] Therefore, the rotation angle of the universal wheel is θ r Should be The direction is right.

[0141] Specifically, the platform body obstacle avoidance effect diagram is referenced Fig. 9 .

[0142] The beneficial effects of this application are as follows:

[0143] The present application realizes stable tracking of the target object by utilizing an inertial touch sensor and the SDEPF algorithm, and improves the stable following effect of the target object in a complex environment by using an obstacle avoidance strategy.

[0144] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0145] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, 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 this application.

Claims

1. A control method for an intelligent following robot, It is characterized in that Applied to an intelligent follower robot; the intelligent follower robot comprises: a platform body, a PDOA communication base station, a universal wheel, a driving wheel, a first ultrasonic probe and a second ultrasonic probe; the platform body has a built-in single chip microcomputer; the PDOA communication base station is arranged at the center position of the upper side of the platform body; the universal wheel is arranged at the middle position of the front section of the platform body; the driving wheel is arranged at the rear end of the platform body; the first ultrasonic probe and the second ultrasonic probe are respectively arranged on the left and right sides of the front section of the platform body; the platform body has a built-in inertial sensor; the control method comprises: Using the PDOA communication base station to measure the distance and angle between the platform body and the target tracking object; Pre-positioning the target tracking object according to the distance and the angle to obtain position information; Establishing a coordinate system based on the position information; Based on the coordinate system, collecting feedback data from the inertial sensor and extracting angle information; The angle information is corrected by using a SDEPF filtering algorithm to obtain angle correction information; Controlling the platform body to track the target tracking object based on the angle correction information; collecting obstacle location data using the first ultrasonic probe and the second ultrasonic probe; Calculating a lateral distance of a target obstacle relative to the platform body based on the obstacle position data; When the lateral distance exceeds half of the lateral width of the platform body, the platform body is controlled to rotate, and the rotation is stopped when the lateral distance is greater than half of the lateral width of the platform body.

2. According to claim 1, a control method for an intelligent following robot, It is characterized in that The origin of the coordinate system is the platform body; the y-axis of the coordinate system is from the platform body to the target tracking object; the x-axis of the coordinate system is perpendicular to the y-axis and is located on the right side of the y-axis.

3. According to claim 1, a control method for an intelligent following robot, It is characterized in that The angle information is corrected using the SDEPF filtering algorithm to obtain angle correction information, including: Based on the angle information, a prediction is performed using a preset state equation to obtain a predicted value; Based on a plurality of particles randomly generated according to a normal distribution and the predicted value, a preset probability density of importance is calculated and weighted summed to obtain a filtering estimate; Substituting the filtered estimated value into a preset measurement equation to obtain a posterior measurement value; Calculating the Mahalanobis distance between the posterior measurement value and the angle information; Substitute the Mahalanobis distance into the chi-square distribution table to obtain the confidence data; When the confidence data is less than 98%, the tracking state is determined to be tracking failure, and the preset particle set is differentiated and reset to obtain an optimized particle set with a higher weight.

4. The intelligent following robot control method according to claim 1, It is characterized in that Calculating a lateral distance of a target obstacle relative to the platform body based on the obstacle position data includes: The distance d between the first ultrasonic probe and the second ultrasonic probe and the obstacle is determined by 1 and d 2 and the width d of the platform body to calculate the angle θ between the first ultrasonic probe and the second ultrasonic probe and the obstacle 1 and θ 2 ; The angle calculation formula is: and When |θ 1 -θ 2 | greater than 10 degrees and θ 1 Less than θ 2 When the obstacle is located in the right front of the platform body, the calculation formula of the lateral distance is: When |θ 1 -θ 2 | greater than 10 degrees and θ 1 Greater than θ 2 When the obstacle is located in the left front of the platform body, the calculation formula of the lateral distance is: When |θ 1 -θ 2 When the angle is less than 10 degrees, the obstacle is located directly in front of the platform body.

5. The intelligent following robot control method according to claim 4, It is characterized in that When the lateral distance exceeds half of the lateral width of the platform body, the platform body is controlled to rotate until the lateral distance is greater than half of the lateral width of the platform body and the rotation is stopped, comprising: When the obstacle is located in front of the right side of the platform body, the obstacle azimuth angle θ s左 and critical azimuth Calculate the rotation angle θ r左 , and control the platform body to rotate leftward θ r左 Spend; When the obstacle is located in the left front of the platform body, the azimuth angle θ s右 and the critical azimuth Calculate the rotation angle θ r右 , control the platform body to rotate right θ r右 Spend; When the obstacle is located in front of the platform body, and θ 1 Less than θ 2 When the control is to rotate leftward θ r左正 Spend; When the obstacle is located in front of the platform body, and θ 1 Greater than θ 2 When the control rotates rightward θ r右正 Spend; 6. The intelligent following robot control method according to claim 3, It is characterized in that The state equation is: F = Δθ k =θ k -θ k-1 =w k-1 *t+Q;w k-1 is the angular velocity value at time k-1; t is the positioning time interval; Q is the state noise; θ k is the heading angle at time k, θ k-1 is the heading angle at time k-1.

7. The intelligent following robot control method according to claim 3, It is characterized in that The measurement equation is: Z = ΔZ k =Z k -Z k-1 +R;Z k is the angle measured by the PDOA communication base station at time k; Z k-1 is the angle measured by the PDOA communication base station at time k-1; R is the measurement noise, ΔZ k The angle difference is the heading angle change.