A wireless communication self-recovery method for wheeled vehicles based on entropy weight method and ultrasonic sensor
Through the combination of the entropy weight method and ultrasonic sensors, the wheeled vehicle evaluates the unshielded range and determines the best driving angle when it loses contact. Combined with the memory path mode and ultrasonic obstacle avoidance, it solves the problem of wheeled vehicles losing contact or losing control in harsh environments. problem, significantly improving the recovery success rate.
Patent Information
- Application Number
- CN202211038243.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-08-29
AI Technical Summary
When existing wheeled vehicles based on wireless communication technology lose contact or lose control, it is difficult to quickly find them, especially in harsh environments, resulting in data collection damage and serious situations.
Using a combination of entropy weight method and ultrasonic sensors, the wheeled vehicle rotates three times in situ to collect signals. After filtering, the unshielded range is evaluated, the optimal driving angle is determined, and the memory path mode and ultrasonic obstacle avoidance are used in error situations. , to retrieve the unshielded range.
It effectively reduces the probability of losing control due to communication interruption, improves the recovery success rate of wheeled vehicles in harsh environments, and has a certain degree of robustness.
Smart Images

Figure CN115437376B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of wireless communication of wheeled vehicles, and in particular relates to a wireless communication self-retrieval method of a wheeled vehicle based on an entropy weight method and an ultrasonic sensor. Background Art
[0002] Communication equipment is a general term for communication equipment set up in a certain area to transmit radio wave information, which is mainly divided into wired communication equipment and wireless communication equipment. Wired communication equipment mainly includes serial communication used in industrial sites, professional bus communication, industrial Ethernet communication and conversion equipment between various communication protocols. Wireless communication equipment mainly includes wireless AP, wireless bridge, wireless network card, wireless lightning arrester, antenna and other equipment.
[0003] Existing wheeled vehicles based on wireless communication technology have been used in many occasions, but the rapid recovery device for wheeled vehicles when they lose connection or lose control has not yet been perfected. The situations in which wheeled vehicles lose connection or lose control include: the built-in power system or remote control system of the wheeled vehicle fails or is damaged, causing the wheeled vehicle to lose connection or lose control; the terrain environment in the field is harsh, there are many shielding objects, the signal is poor, and there are problems with the connection between the wheeled vehicle and the remote control device; the software loopholes connecting the drone device and the remote control device affect the flight of the drone.
[0004] Once an emergency situation occurs where a wheeled vehicle loses connection or control, especially under harsh conditions, failure to promptly retrieve the lost wheeled vehicle equipment will cause damage and loss of collected data, and may also lead to more serious situations. Summary of the invention
[0005] The technical problem to be solved by the present invention is to address the deficiencies of the above-mentioned prior art and provide a wheeled vehicle wireless communication self-recovery method based on the entropy weight method and ultrasonic sensors. When the wheeled vehicle loses connection, the present invention evaluates the unshielded range based on the entropy weight method and returns the optimal angle. If an error is returned, it returns to the unshielded range through a memory array combined with ultrasonic obstacle avoidance. This method can be applied to a wheeled vehicle recovery device based on wireless communication technology and its use method.
[0006] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0007] A wheeled vehicle wireless communication self-finding method based on entropy weight method and ultrasonic sensor, comprising:
[0008] Step 1: When the wheeled vehicle is operating, the remote control end of the wheeled vehicle continuously sends marking instructions to the controlled end. When the controlled end receives the signal instruction, it moves according to the instruction and stores the path into the memory array A. 0 ,When the controlled end does not receive the command, it starts the self-retrieval mode;
[0009] Step 2: The wheeled vehicle rotates three times in place while the remote control sends a marking signal to obtain an initial marking array representing the unshielded range, i.e., the initial matrix C 0 ;
[0010] Step 3: Initial matrix C 0 Perform two filtering processes to obtain the marked row vector C 2 ;
[0011] Step 4: Mark the row vector C 2 Truncate the initial column vector and reconstruct it into the unmasked range matrix Z 0 ;
[0012] Step 5: Evaluate the unmasked range matrix Z using the entropy weight method 0 The unshielded range obtained gives the best driving angle;
[0013] Step 6. If the angle value is wrong, start the memory path mode, press the memory array and combine ultrasonic obstacle avoidance to find the unshielded range.
[0014] To optimize the above technical solutions, the specific measures taken also include:
[0015] The above step 2 includes the following sub-steps:
[0016] Step 2.1: After the self-retrieval mode is turned on, the timer starts counting for 180 seconds. During this time, the vehicle body is controlled to rotate at a constant speed for three cycles. At the same time, the remote control terminal continuously sends a marking signal to the controlled terminal at an interval of 50ms until the timing ends.
[0017] In the serial port communication program of the main control board of the controlled end, each time an interrupt is entered, an unshielded mark 1 will be obtained. If no mark signal is received, a shielded mark 0 will be obtained. That is, the duration ratio of each mark signal is The accuracy of the marker signal angle is 0.3;
[0018] Step 2.2: Arrange the marker signal received by the controlled end into the initial matrix C 0 :
[0019]
[0020] C0 is a 3*1200 matrix, x 1 , x 2 ……x 1199 , x 1200 represents the 1st to 1200th signals collected in the first cycle, x′ 1 , x′ 2 ...x′ 1199 , x′ 1200 Represents the 1st to 1200th signals collected in the second cycle, x″1 ,x″ 2 ……x″ 1199 ,x″ 1200 Represents the 1st to 1200th signals collected in the third cycle.
[0021] The above step 3 includes the following sub-steps:
[0022] Step 3.1: Initial matrix C 0 The three row vectors in the dot AND operation return a row vector C. 1 :
[0023] C 1 =[x 1 , x 2 ……x 1199 , x 1200 ]
[0024] Step 3.2: Row vector C 1 The first five and last five elements of the element marked as 0 in are all 0, and if x 1 =0 then x 2 ~x 6 、x 1196 ~x 1200 All equal to 0;
[0025] Returns the labeled row vector C obtained after denoising 2 .
[0026] Step 4 above includes:
[0027] Step 4.1: Label the row vector C 2 The subscripts of the elements that are consecutively 1 in are intercepted in order to obtain the initial column vector;
[0028] Step 4.2, perform fuzzy processing on the initial column vector, if the masking range between the unmasked ranges represented by two adjacent column vectors is less than 4.5°, then merge the two adjacent column vectors;
[0029] Step 4.3, truncate column vectors: filter out column vectors with a capacity less than 70 to obtain n′ column vectors.
[0030] Step 4.5: Reorganize the n′ column vectors intercepted in step 4.3 into the unmasked range matrix Z 0 , get the angle center value a, the deviation value d from the initial angle, the range c, and the unshielded rate p, and combine them with the first and last elements of the n′ column vectors intercepted in step 4.3 to form n′ 5×1 column vectors;
[0031] In the above step 4.1, for the labeled row vector C 2 When the subscripts of consecutive elements that are 1 are intercepted:
[0032] If 1 and 1200 are contained in the first column vector and the last column vector, the two column vectors are merged, and the first element of the vector containing 1200 is the starting point;
[0033] Finally, we get n column vectors, that is, we get n unshielded segments A 1 , A 2 ...A n ;
[0034] Represent n unshielded segments in polar coordinates. Each element in the column vector represents an angle value with a scale of 0.3. ° , and A 1 With A n Adjacent.
[0035] The specific operation of the fuzzy processing of the initial column vector in the above step 4.2 is:
[0036] Suppose two adjacent column vectors A n-1 T =[a 1 a 2 …… x ]、A n T =[b 1 b 2 …… b x ], when b 1 >a x When |b 1 -a x |<15, then two adjacent column vectors are merged into:
[0037] A n-1 T =[a 1 a 2 …… x b 1 b 2 …… b x ];
[0038] When n = 1, A n-1 represents the last column vector.
[0039] The specific operation of the reorganization of the unshielded range matrix in step 4.5 above is:
[0040] Let column vector A n T =[a 1 a 2 …… x ], the number of its elements is N, the first element is a 1 The last element ax ;
[0041] when a x >a 1 When
[0042]
[0043] when a x 1 When
[0044]
[0045] Returns the column vector A n T =[adcp]
[0046] And merge all column vectors to get a 5×n matrix Z 0 , i.e., the unmasked range matrix;
[0047]
[0048] Among them, the first row of elements is the range center value, the second row of elements is the unshielded segment closest to the initial angle, the third row of elements is the angle range represented by the unshielded segment, and the fourth row of elements is the unshielded rate of the unshielded segment.
[0049] The above step 5 includes the following sub-steps:
[0050] Step 5.1: Based on the three indicators of angle deviation value, unshielded rate and range, the unshielded range matrix Z is calculated. 0 The n′ column vectors are evaluated to obtain the original evaluation matrix;
[0051] Step 5.2: Data standardization: According to the original evaluation matrix, the indicator data is standardized to obtain the following data standardization matrix:
[0052] X i ={x 1 ,x 2 ,x 3}
[0053] Assume that the standardized value of each indicator is Y 1 ,Y 2 ...Y 10 ,but
[0054]
[0055] Step 5.3, calculate the information entropy of each indicator:
[0056] in,
[0057] If p ij =0, then define
[0058] Step 5.4: Determine the weight of each indicator:
[0059] Step 5.5: According to the indicator weights and the evaluation of the three indicator dimensions in step 5.1, the final score column vector is obtained, and the unshielded range corresponding to the column vector with the highest score in the original evaluation matrix is returned, which is the optimal communication range of the rescue vehicle;
[0060]
[0061] Step 5.6, selecting the best driving angle β from the best communication range;
[0062]
[0063] Among them, err = da,
[0064] The evaluation criteria for each indicator in step 5.1 above are as follows:
[0065] Evaluation criteria for deviation from initial angle:
[0066]
[0067] The evaluation criteria for the unshielded rate are:
[0068] x 2j =p
[0069] The scope assessment criteria are:
[0070]
[0071] The specific operations of step 6 above are as follows:
[0072] After the memory recall mode is activated, matrix A 0 Transform memory path array A 1 , execute the memory path in reverse order until the communication serial port interrupt can be stably triggered;
[0073] in,
[0074]
[0075] At the same time, two ultrasonic sensors are evenly distributed on the front section of the vehicle body, denoted as S1 and S2, for multi-angle detection of obstacles ahead;
[0076] Install an ultrasonic sensor on each side of the vehicle body, denoted as S3 and S4, to detect obstacles on both sides of the vehicle body;
[0077] When there is an obstacle in the path of the wheeled vehicle and the wheeled vehicle is in a situation where communication is unavailable, set a two-row matrix A 3 ;
[0078] Set the safety thresholds of S1, S2, S3, and S4 to D1, D2, D3, and D4 respectively;
[0079] Let the distances of the obstacles detected by S1, S2, S3, and S4 be d1, d2, d3, and d4 respectively;
[0080] If d1 < D1, it means there is an obstacle on the left side of the wheeled vehicle. The wheeled vehicle will first reverse a certain distance, then turn right by a certain angle and drive forward, repeating the above process until d3 > D3, and record the angle and distance information in A 3 ;
[0081] According to A 3 Obtain the new matrix A 4 ;
[0082] Among them,
[0083]
[0084] The wheeled vehicle bypasses the obstacle and returns to the original path according to A 4 matrix;
[0085] If d2 < D2, it means there is an obstacle on the right side of the wheeled vehicle. Similarly, bypass the obstacle from the left side;
[0086] If both D1 and D2 are less than the safety threshold, turn left and right by a certain angle, compare the values of d1 + d2 twice, and choose the direction with the larger value of d1 + d2 to bypass the obstacle.
[0087] The present invention has the following beneficial effects:
[0088] When the wheeled vehicle is operating, the remote control end of the wheeled vehicle continuously sends a marking instruction to the controlled end. When the controlled end receives the signal instruction, it moves according to the instruction and stores the path into the memory array. When the controlled end does not receive the instruction, the self-retrieval mode is started; the wheeled vehicle rotates three times in place and the remote control end sends a marking signal at the same time to obtain an initial marking array representing the unshielded range, that is, an initial matrix; the initial matrix is filtered twice to obtain a marking row vector; the initial column vector is intercepted from the marking row vector and reorganized into an unshielded range matrix; the entropy weight method is used to evaluate the unshielded range obtained by the unshielded range matrix to obtain the optimal driving angle; if the angle value is wrong, the memory path mode is started, and the unshielded range is retrieved according to the memory array and combined with ultrasonic obstacle avoidance, otherwise it directly returns to the unshielded range. The method of the present invention has certain robustness, and through simulation tests and simulation tests, the probability of losing control due to communication blocking can be effectively reduced by 78%. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] Figure 1 is a flow chart of the method of the present invention;
[0090] Figure 2 A schematic diagram for representing the unshielded segment in plane polar coordinates;
[0091] Figure 3 Schematic diagram of obstacle avoidance of the present invention. DETAILED DESCRIPTION
[0092] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings.
[0093] See also Figure 1 The present invention provides a wheeled vehicle wireless communication self-recovery method based on an entropy weight method and an ultrasonic sensor. In the present invention, the wheeled vehicle refers to a wheeled robot. The method comprises:
[0094] Step 1: When the wheeled vehicle is operating, the remote control end of the wheeled vehicle continuously sends marking instructions to the controlled end. When the controlled end receives the signal instruction, it moves according to the instruction and stores the path into the memory array A. 0 ,When the controlled end does not receive the command, it starts the self-retrieval mode;
[0095] When the wheeled vehicle based on wireless communication technology is operating, the remote control end sends a marking command to the controlled end every 5 minutes. When the controlled end does not receive the marking command beyond the expected time, and the remote control end does not receive the received signal, the self-retrieval mode is turned on;
[0096] Step 2: The wheeled vehicle rotates three times in place while the remote control sends a marking signal to obtain an initial marking array representing the unshielded range, i.e., the initial matrix C 0 ; Contains the following sub-steps:
[0097] Step 2.1: After the self-retrieval mode is turned on, the timer starts counting for 180 seconds. During this time, the vehicle body is controlled to rotate at a constant speed for three cycles. At the same time, the remote control terminal continuously sends a marking signal to the controlled terminal at an interval of 50ms until the timing ends.
[0098] In the serial port communication program of the main control board of the controlled end, each time an interrupt is entered, an unshielded mark "1" will be obtained. If no mark signal is received, a shielded mark "0" will be obtained. That is, the duration ratio of each mark signal is It is easy to know that the accuracy of the marking signal angle is 0.3°.
[0099] Step 2.2: Arrange the marker signal received by the controlled end into the initial matrix C 0 :
[0100]
[0101] C0 is a 3*1200 matrix, x 1 , x 2 ……x 1199 , x 1200 represents the 1st to 1200th signals collected in the first cycle, x′ 1 , x′ 2 ...x′ 1199 , x′ 1200 Represents the 1st to 1200th signals collected in the second cycle, x″ 1 ,x″ 2 ……x″ 1199 ,x″ 1200 Represents the 1st to 1200th signals collected in the third cycle.
[0102] Step 3: Initial matrix C 0 Perform two filtering processes to obtain the marked row vector C 2 ; Contains the following sub-steps:
[0103] Step 3.1: Initial matrix C 0 The three row vectors in the dot AND operation return a row vector C. 1 :
[0104] C 1 =[x 1 , x 2 ……x 1199 , x 1200 ]
[0105] Step 3.2: Row vector C 1 The first five and last five elements of the element marked as 0 in the array are all set to 0, and it should be noted that in this array x 1 With x 1200are adjacent elements. That is, if x 1 =0 then x 2 ~x 6 、x 1196 ~x 1200 All equal to 0;
[0106] Returns the labeled row vector C obtained after denoising 2 .
[0107] Step 4: Mark the row vector C 2 Truncate the initial column vector and reconstruct it into the unmasked range matrix Z 0 ;include:
[0108] Step 4.1: Label the row vector C 2 The subscripts of the elements that are consecutively 1 in are intercepted in order, and their subscripts are taken to form the initial column vector;
[0109] For the labeled row vector C 2 When the subscripts of consecutive elements that are 1 are intercepted:
[0110] If 1 and 1200 are contained in the first column vector and the last column vector, the two column vectors are merged, and the first element of the vector containing 1200 is the starting point;
[0111] Finally, we get n column vectors, that is, we get n unshielded segments A 1 , A 2 ……A n ;
[0112] See also Figure 2 , represent the n unshielded segments in the polar coordinate plane. It is easy to see that each element in the column vector represents an angle value, the scale is 0.3°, and A 1 With A n Adjacent.
[0113] Step 4.2, perform fuzzy processing on the initial column vector, if the masking range between the unmasked ranges represented by two adjacent column vectors is less than 4.5°, then merge the two adjacent column vectors;
[0114] The specific operation of fuzzy processing of the initial column vector is:
[0115] Suppose two adjacent column vectors A n-1 T =[a 1 a 2 …… x ]、A n T =[b 1 b 2 …… b x ], when b 1 >ax When |b 1 -a x |<15 (that is, the shielding range between the unshielded ranges is less than 4.5°), then the two adjacent column vectors are merged into:
[0116] A n-1 T =[a 1 a 2 …… x b 1 b 2 …… b x ];
[0117] And note that when n = 1, A n-1 represents the last column vector.
[0118] Step 4.3, extract column vectors: filter out column vectors with a capacity less than 70, the process ends, and n′ column vectors are returned.
[0119] Step 4.5: Reorganize the n′ column vectors intercepted in step 4.3 into the unmasked range matrix Z 0 , get the angle center value a, the deviation value d from the initial angle, the range c, and the unshielded rate p, and combine them with the first and last elements of the n′ column vectors intercepted in step 4.3 to form n′ 5×1 column vectors;
[0120] The reorganization of the unmasked range matrix is as follows:
[0121] Let column vector A n T =[a 1 a 2 …… x ], the number of its elements is N, the first element is a 1 The last element a x ;
[0122] when a x >a 1 When
[0123]
[0124] when a x 1 When
[0125]
[0126] Returns the column vector A n T =[adcp]
[0127] And merge all column vectors to get a 5×n matrix Z0 , i.e., the unmasked range matrix;
[0128]
[0129] Among them, the first row of elements is the range center value, the second row of elements is the unshielded segment closest to the initial angle, the third row of elements is the angle range represented by the unshielded segment, and the fourth row of elements is the unshielded rate of the unshielded segment.
[0130] Step 5: Evaluate the unmasked range matrix Z using the entropy weight method 0 The unshielded range is obtained to obtain the optimal driving angle; the following sub-steps are included:
[0131] Step 5.1: Based on the three indicators of angle deviation value, unshielded rate and range, the unshielded range matrix Z is calculated. 0 The n′ column vectors are evaluated to obtain the original evaluation matrix;
[0132] The evaluation criteria for each indicator are as follows:
[0133] Evaluation criteria for deviation from initial angle:
[0134]
[0135] The evaluation criteria for the unshielded rate are:
[0136] x 2j =p
[0137] The scope assessment criteria are:
[0138]
[0139] Step 5.2: Data standardization: According to the original evaluation matrix, the indicator data is standardized to obtain the following data standardization matrix:
[0140] X i ={x 1 ,x 2 ,x 3}
[0141] Assume that the standardized value of each indicator is Y 1 ,Y 2 ...Y 10 ,but
[0142]
[0143] Step 5.3, calculate the information entropy of each indicator:
[0144] in,
[0145] If p ij =0, then define
[0146] Step 5.4: Determine the weight of each indicator:
[0147] Step 5.5: According to the indicator weights and the evaluation of the three indicator dimensions in step 5.1, the final score column vector is obtained, and the unshielded range corresponding to the column vector with the highest score in the original evaluation matrix is returned, which is the optimal communication range of the rescue vehicle;
[0148]
[0149] Step 5.6, selecting the best driving angle β from the best communication range;
[0150]
[0151] Among them, err = da,
[0152] Step 6. If the angle value is wrong, start the memory path mode, press the memory array and combine ultrasonic obstacle avoidance to find the unshielded range. The specific operations are as follows:
[0153] It is easy to know that returning by the original route is the most convenient way to retrieve the communication signal. However, from the evaluation standard of the deviation from the initial angle, it can be seen that the closer the distance to the initial angle is, the better. In other words, try not to return by the original route, which can increase the search and rescue range and improve the rescue efficiency.
[0154] From the β return error, it can be inferred that there is no relatively feasible unshielded range. In this case, it is very likely that the memory path is blocked by collapsed objects. In theory, when the wheeled vehicle returns along the original route, it must be able to drive to a stable communication area that is not blocked. For this situation, the backup plan memory path return mode is turned on.
[0155] During the normal communication phase of the wheeled vehicle, a 2D memory array with a large enough capacity is set up at the remote control end of the wheeled vehicle, namely, a 2×n matrix A 0 , cooperate with the encoder and gyroscope to store the direction and distance of each command into the memory array;
[0156] After the memory recall mode is activated, press A 0 Matrix transformation memory path array A 1 , execute the memory path in reverse order until the communication serial port interrupt can be stably triggered.
[0157]
[0158]
[0159] See also Figure 3 Meanwhile, in view of the highly likely existence of unexpected obstacles such as collapsed objects on the memory path, two ultrasonic sensors, namely S1 and S2, are evenly distributed at the front section of the vehicle body to detect obstacles ahead from multiple angles.
[0160] One ultrasonic sensor each is installed on both sides of the vehicle body, namely S3 and S4, to detect obstacles on both sides of the vehicle body, thereby avoiding damage to the wheeled vehicle caused by collisions and the problem of non-signal shielding materials blocking the rescue vehicle's travel. The working principle of the ultrasonic sensor is to emit ultrasonic waves, record the time when the ultrasonic waves encounter an obstacle and return, and calculate the distance between the vehicle body and the obstacle. When the distance to the obstacle is less than a threshold value, the rescue vehicle performs obstacle avoidance.
[0161] When there are obstacles on the way of the wheeled vehicle and the wheeled vehicle is in a situation where communication is impossible, a two-row matrix A is set. 3 .
[0162] Set the safety thresholds of S1, S2, S3, and S4 to D1, D2, D3, and D4 respectively.
[0163] Let the distances of the obstacles detected by S1, S2, S3, and S4 be d1, d2, d3, and d4 respectively.
[0164] If d1 < D1, it means there is an obstacle on the left side of the wheeled vehicle. The wheeled vehicle will first back up a certain distance, then turn right by a certain angle and drive forward, repeating the above process until d3 > D3, and record the angle and distance information in A. 3 . According to A 3 Obtain the new matrix A 4 .
[0165] The wheeled vehicle bypasses the obstacle and returns to the original path according to matrix A. If d2 < D2, it means there is an obstacle on the right side of the wheeled vehicle, and similarly, it bypasses the obstacle from the left side. 4 If both D1 and D2 are less than the safety threshold, turn left and right by a certain angle, compare the values of (d1 + d2) twice, and choose the direction with the larger value of (d1 + d2) to bypass the obstacle.
[0166] If both D1 and D2 are less than the safety threshold, turn left and right by a certain angle, compare the values of (d1 + d2) twice, and choose the direction with the larger value of (d1 + d2) to bypass the obstacle.
[0167]
[0168]
[0169] The above is only the preferred implementation mode of the present invention. The protection scope of the present invention is not limited to the above embodiments. All technical solutions falling within the idea of the present invention belong to the protection scope of the present invention. It should be noted that for those of ordinary skill in the art in this technical field, several improvements and refinements made without departing from the principle of the present invention should be regarded as within the protection scope of the present invention.
Claims
1. A wheeled vehicle wireless communication self-recovery method based on entropy weight method and ultrasonic sensor, It is characterized in that include: Step 1: When the wheeled vehicle is operating, the remote control end of the wheeled vehicle continuously sends marking instructions to the controlled end. When the controlled end receives the signal instruction, it moves according to the instruction and stores the path into the memory array B. 0 ,When the controlled end does not receive the command, it starts the self-retrieval mode; Step 2: The wheeled vehicle rotates three times in place while the remote control sends a marking signal to obtain an initial marking array representing the unshielded range, i.e., the initial matrix C 0 ; Step 3: Initial matrix C 0 Perform two filtering processes to obtain the marked row vector C 2 ; Step 4: Mark the row vector C 2 Truncate the initial column vector and reconstruct it into the unmasked range matrix Z 0 ; Step 5: Evaluate the unmasked range matrix Z using the entropy weight method 0 The unshielded range obtained gives the best driving angle; Step 6. If the angle value is wrong, start the memory path mode, press the memory array and combine ultrasonic obstacle avoidance to find the unshielded range; Step 2 includes the following sub-steps: Step 2.1: After the self-retrieval mode is turned on, the timer starts counting for 180 seconds. During this time, the vehicle body is controlled to rotate at a constant speed for three cycles. At the same time, the remote control terminal continuously sends a marking signal to the controlled terminal at an interval of 50ms until the timing ends. In the serial port communication program of the main control board of the controlled end, each time an interrupt is entered, an unshielded mark 1 will be obtained. If no mark signal is received, a shielded mark 0 will be obtained. That is, the duration ratio of each mark signal is The accuracy of the marker signal angle is 0.3; Step 2.2: Arrange the marker signal received by the controlled end into the initial matrix C 0 : C 0 is a 3*1200 matrix, x 1 , x 2 ......x 1199 , x 1200 represents the 1st to 1200th signals collected in the first cycle, x′ 1 , x′ 2 ......x′ 1199 , x′ 1200 Represents the 1st to 1200th signals collected in the second cycle, x″ 1 ,x″ 2 ......x″ 1199 ,x″ 1200 Represents the 1st to 1200th signals collected in the third cycle; Step 3 includes the following sub-steps: Step 3.1: Initial matrix C 0 The three row vectors in the dot AND operation return a row vector C. 1 : C 1 =[x 1 ,x 2 ......x 1199 ,x 1200 ] Step 3.2: Row vector C 1 The first five and last five elements of the element marked as 0 in are all set to 0, and if x 1 =0 then x 2 ~x 6 、x 1196 ~x 1200 All equal to 0; Returns the labeled row vector C obtained after denoising 2 ; Step 4 includes: Step 4.1: Label the row vector C 2 The subscripts of the elements that are consecutively 1 in are intercepted in order to obtain the initial column vector; Step 4.2, perform fuzzy processing on the initial column vector, if the masking range between the unmasked ranges represented by two adjacent column vectors is less than 4.5°, then merge the two adjacent column vectors; Step 4.3, extract column vectors: filter out column vectors with a capacity less than 70 to obtain n′ column vectors; Step 4.4: Reorganize the n′ column vectors intercepted in step 4.3 into the unmasked range matrix Z 0 , get the angle center value a, the deviation value d from the initial angle, the range c, and the unshielded rate p, and combine them with the first and last elements of the n′ column vectors intercepted in step 4.3 to form n′ 5×1 column vectors; In step 4.1, for the labeled row vector C 2 When the subscripts of consecutive elements that are 1 are intercepted: If 1 and 1200 are contained in the first column vector and the last column vector, the two column vectors are merged, and the first element of the vector containing 1200 is the starting point; Finally, we get n column vectors, that is, we get n unshielded segments A 1 , A 2 ......A n ; Represent the n unshielded segments in the polar coordinate plane, where each element in the column vector represents an angle value with a scale of 0.3°, and A 1 With A n adjacent; The specific operation of fuzzy processing of the initial column vector in step 4.2 is: Suppose two adjacent column vectors A n-1 T =[a 1 a 2 ......a x ]、A n T =[b 1 b 2 ......b x ], when b 1 >a x When |b 1 -a x |<15, then two adjacent column vectors are merged into: A n-1 T =[a 1 a 2 ......a x b 1 b 2 ......b x ]; When n = 1, A n-1 represents the last column vector; The reorganization of the unmasked range matrix in step 4.4 is as follows: Let column vector A n T =[a 1 a 2 ......a x ], the number of its elements is N, and the first element is a 1 The last element a x ; when a x >a 1 When when a x <a 1 When Returns the column vector A n T =[adcp] And merge all column vectors to get a 5×n′ matrix Z 0 , i.e., the unmasked range matrix; Among them, the first row of elements is the range center value, the second row of elements is the unshielded segment closest to the initial angle, the third row of elements is the angle range represented by the unshielded segment, and the fourth row of elements is the unshielded rate of the unshielded segment; Step 5 includes the following sub-steps: Step 5.1: Based on the three indicators of angle deviation value, unshielded rate and range, the unshielded range matrix Z is calculated. 0 The n′ column vectors are evaluated to obtain the original evaluation matrix; Step 5.2: Data standardization: According to the original evaluation matrix, the indicator data is standardized to obtain the following data standardization matrix: X i ={x 1 ,x 2 ,x 3 } Assume that the standardized value of each indicator is Y 1 , Y 2 ......Y 10 ,but Step 5.3, calculate the information entropy of each indicator: in, If p ij =0, then define Step 5.4: Determine the weight of each indicator: Step 5.5: According to the indicator weights and the evaluation of the three indicator dimensions in step 5.1, the final score column vector is obtained, and the unshielded range corresponding to the column vector with the highest score in the original evaluation matrix is returned, which is the optimal communication range of the rescue vehicle; Step 5.6, selecting the best driving angle β from the best communication range; Among them, err = da, The evaluation criteria for each indicator in step 5.1 are as follows: Evaluation criteria for deviation from initial angle: The evaluation criteria for the unshielded rate are: x 2j =p The scope assessment criteria are: Step 6: After the memory recall mode is activated, matrix B 0 Transform memory path array B 1 , execute the memory path in reverse order until the communication serial port interrupt can be stably triggered; in, At the same time, two ultrasonic sensors are evenly distributed on the front section of the vehicle body, denoted as S1 and S2, for multi-angle detection of obstacles ahead; An ultrasonic sensor is installed on both sides of the vehicle body, denoted as S3 and S4, to detect obstacles on both sides of the vehicle body; When there is an obstacle in the wheeled vehicle's path and the wheeled vehicle is unable to communicate, set a two-row matrix A 3 ; Set the safety thresholds of S1, S2, S3, and S4 to D1, D2, D3, and D4 respectively; Assume that the obstacle distances detected by S1, S2, S3, and S4 are d1, d2, d3, and d4 respectively; If d1 < D1, it indicates that there is an obstacle on the left side of the wheeled vehicle. The wheeled vehicle will first reverse a certain distance and then turn right by a certain angle and drive forward. Repeat the above process until d3 > D3, and record the angle and distance information in B 3 ; According to B 3 Get the new matrix B 4 ; in, Wheeled vehicle based on B 4 The matrix bypasses the obstacle and returns to its original path; If d2<D2, it means there is an obstacle on the right side of the wheeled vehicle. Similarly, the obstacle should be avoided from the left side. If D1 and D2 are both less than the safety threshold, turn left or right by a certain angle, compare the values of d1+d2 twice, and choose the direction with the larger value of d1+d2 to bypass the obstacle.
