Intelligent sweeper control method
Through camera grayscale processing and controller adjustment, the smart sweeper realizes dynamic power and speed adjustment of the cleaning system, solves the problems of imprecise control and uncoordinated trajectory tracking of the cleaning system in the existing technology, and improves cleaning efficiency and speed. Accuracy and extended battery life.
Patent Information
- Application Number
- CN202410739365.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-11
AI Technical Summary
Existing smart sweepers lack fine control of cleaning system components during the cleaning process, which affects battery life, and the cleaning system and trajectory tracking control system cannot be coordinated and regulated, resulting in low cleaning efficiency and accuracy.
A camera is used to obtain pictures of the cleaning area, the operating power of the roller brush and vacuum system is controlled through grayscale processing and average difference, the longitudinal speed is adjusted using a fuzzy controller and a PID controller, and the wheel speed is optimized using bp neural network to achieve Dynamic adjustment and precise trajectory tracking of the cleaning system.
It can dynamically adjust the operating power and speed of the cleaning system according to the ground environment, reduce energy consumption, improve cleaning efficiency and accuracy, extend battery life, and adapt to environmental changes.
Smart Images

Figure CN118760153A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of control of unmanned intelligent road sweepers, and in particular to a control method of an intelligent road sweeper. Background Art
[0002] Traditional cleaning methods often rely on manpower, which is not only inefficient, but also has problems such as high labor costs and unstable cleaning quality. With the continuous advancement of artificial intelligence and autonomous driving technology, smart sweepers have shown broad application prospects in campus cleaning, sanitation maintenance, and the construction of smart urban cleaning.
[0003] Unmanned sweepers not only need to complete the cleaning task autonomously, but also need to be able to accurately track the preset cleaning trajectory to ensure efficient and accurate cleaning. Existing sweepers generally use simple switch control, lack fine-tuning of the cleaning process, and cannot individually control the components in the cleaning system, which affects the endurance of the intelligent sweeper. In addition, the cleaning system and intelligent trajectory tracking control system of existing sweepers are individually controlled, and cannot be coordinated. The control of each system is relatively independent and uncoordinated. Summary of the invention
[0004] The purpose of the present invention is to provide a control method for an intelligent road sweeper, which can adjust the operating power and forward speed of each part of the cleaning system of the intelligent road sweeper according to the ground environment, and at the same time add model predictive control to the lateral control to reduce the posture error in tracking, so that the intelligent road sweeper can not only coordinate the cleaning system to clean the environment, but also have higher accuracy in trajectory tracking.
[0005] In order to achieve the above object, the present invention adopts the following technical solution.
[0006] A method for controlling an intelligent sweeper comprises the following steps.
[0007] Step 1: Use a camera installed on the smart sweeper to obtain pictures of the cleaning area before and after cleaning, and divide the areas that can be cleaned by the left and right brushes on the smart sweeper in the pictures before cleaning.
[0008] Step 2: Evenly select pixel points to grayscale the image, and calculate the grayscale averages of the image before cleaning, the image after cleaning, the image of the left brush-cleaned area, and the image of the right brush-cleaned area.
[0009] Step 3: According to the grayscale average difference d1 between the pictures before and after cleaning, and the grayscale average difference d2 between the pictures of the left brush cleaning area and the right brush cleaning area, control and adjust the operating power of the roller brush, dust collection system, and left and right brushes on the smart sweeper.
[0010] Step 4: Input the posture deviation and grayscale average difference d1 between the current actual posture of the intelligent sweeper and the reference posture into the speed controller of the intelligent sweeper, and output the longitudinal speed control value of the intelligent sweeper.
[0011] Step 5: Input the posture deviation into the yaw angle controller of the intelligent sweeper, and output the yaw angle control value of the intelligent sweeper.
[0012] Step 6: Combine the longitudinal speed control amount and the yaw angle control amount to control the rotation speed of each of the four wheels of the smart sweeper so that the smart sweeper can run accurately along the preset trajectory.
[0013] Furthermore, in step 2, 50% of the pixels of the image before and after cleaning are uniformly selected as a basis for calculating the average grayscale value of the image.
[0014] Furthermore, when selecting pixel points, the pixel points in the image are numbered in sequence from left to right and from top to bottom, and the pixel points with odd numbers are selected.
[0015] Furthermore, when the image is grayed out in step 2, the pixels selected in the image are grayed out according to F(i,j)=max(R(i,j),G(i,j),B(i,j)) Grayscale processing is performed, where R, G, and B are RGB pixel values, and the value range is an integer from 0 to 255.
[0016] Furthermore, in step 2, the grayscale average of each image is calculated according to The grayscale average value of each image is calculated, where n is the number of pixels selected in the corresponding image, and F is the grayscale value of the pixels selected within the range of the corresponding image.
[0017] Furthermore, the speed controller in step four is a fuzzy controller, including a fuzzy control unit and a PID control unit. The reasoning mechanism of the fuzzy control unit is to input the grayscale average value difference d1 and the posture deviation, and output the error value of the grayscale average value difference and the comprehensive posture deviation. The PID controller adjusts and outputs the longitudinal speed control value according to the error value of the average value difference and the comprehensive posture deviation.
[0018] Furthermore, in step five, the posture deviation is input into the yaw angle controller, and the yaw angle control value of the intelligent sweeper is output through the prediction model, rolling optimization and feedback correction.
[0019] Furthermore, the pose deviation calculation equation is: The current status is The expected position in the global coordinate system is
[0020] Furthermore, in the prediction model, the wheel slip is considered when constructing the kinematic equation in the geodetic coordinate system. The kinematic equation is: Among them, the slip rate f1 and the slip rate f2 represent the slip and turn degree of the robot wheels on the low-speed side and the high-speed side, v is the speed at the center of mass of the intelligent sweeper, and v x 、v y are the longitudinal and lateral velocities, respectively, l f , l r are the distances from the front and rear axles to the mass center of the smart sweeper, ω is the yaw angular velocity, b is the left and right wheelbase of the smart sweeper, is the heading angle, β is the sideslip angle of the center of mass, ω1 and ω2 are the rotation speeds of the driving wheels on the high-speed side and the low-speed side respectively.
[0021] Furthermore, in step six, the intelligent sweeper is also provided with a BP neural network. The BP neural network structure is divided into three parts: input layer, hidden layer and output layer. The transfer function adopts sigmoid. Based on the descent strategy, training is performed for the slip generated during four-wheel differential steering and the slip generated by the different speeds of the front and rear wheels in contact with the ground. The longitudinal speed control amount and the yaw angular velocity control amount are input into the BP neural network, and the rotation speed of each wheel is mapped and output to reduce the impact of wheel slip on the driving path.
[0022] After adopting the above technical solution, the present invention has the following beneficial effects: 1. The intelligent sweeper control method of the present invention can accurately control the operating power and travel speed of the sweeping system according to the cleanliness of the road surface, thereby ensuring the sweeping effect while reducing energy consumption and achieving longer endurance; 2. In the present invention, half of the pixels in the road surface information photographed by the camera are selected and then grayscale processed for comparison, thereby reducing the demand for computing power; 3. The speed controller in the present invention combines a fuzzy control unit with a PID control unit, which combines the desired posture and cleaning effect. In the application scenario of the intelligent sweeper, since the environment, road conditions and cleaning tasks may change at any time, the fuzzy control can adapt to the uncertainty of the environment; 4. The BP neural network in the present invention has a strong nonlinear fitting ability. According to the input and output of the corresponding connection of the kinematic equation, the BP neural network can characterize their internal connection, and is trained for the slip caused by the four-wheel differential steering and the slip caused by the different speeds of the front and rear wheels in contact with the ground. The structure of the BP neural network is divided into three parts: input layer, hidden layer and output layer. The transfer function adopts sigmoid. Based on the descent strategy, the longitudinal speed and yaw angular velocity are input, and the rotation speed of each wheel is mapped and output, thereby reducing the impact of wheel slip on the driving path of the intelligent sweeper. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a schematic diagram of the control principle of the intelligent sweeper in the present invention;
[0024] Figure 2 It is a structural diagram of the cleaning system of the intelligent sweeper.
[0025] Description of the drawings: 1. Right brush, 2. Left brush, 3. Dust suction system, 4. Roller brush. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the features and performances of a smart sweeper control method in the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments.
[0027] Please see attached Figure 1 and 2 , an intelligent sweeper control method includes the following steps.
[0028] Step 1: Use a camera installed on the smart sweeper to obtain pictures of the cleaning area before and after cleaning, and divide the areas that can be cleaned by the left and right brushes on the smart sweeper in the pictures before cleaning.
[0029] Step 2: Evenly select pixels to grayscale the image, and calculate the grayscale averages of the image before cleaning, the image after cleaning, the image of the left brush-cleaned area, and the image of the right brush-cleaned area. The grayscale average represents the cleanliness of the area. The larger the difference in the grayscale averages, the greater the difference in the cleanliness of the two areas.
[0030] In particular, when selecting pixel points, an appropriate proportion of pixel points are uniformly selected according to the actual situation, which can reflect the cleanliness of the cleaning area. Preferably, in this embodiment, 50% of the pixel points are uniformly selected from the pictures before and after cleaning as the basis for calculating the grayscale average of the picture. When selecting, the pixel points of each picture are numbered in order from left to right and from top to bottom, and the pixel points with odd numbers are selected.
[0031] When graying an image, the pixels selected in the image are converted into grayscale. F(i,j)=max(R(i,j),G(i,j),B(i,j)) Grayscale processing is performed, where R, G, and B are RGB pixel values, and the value range is an integer from 0 to 255.
[0032] When calculating the grayscale averages of the image before cleaning, the image after cleaning, the image of the left brush-cleaned area, and the image of the right brush-cleaned area, we use The grayscale average value of each image is calculated, where n is the number of pixels selected in the corresponding image, and F is the grayscale value of the pixels selected within the range of the corresponding image.
[0033] Step 3: According to the grayscale average difference d1 between the pictures before and after cleaning, and the grayscale average difference d2 between the pictures of the left brush cleaning area and the right brush cleaning area, control and adjust the operating power of the roller brush, dust collection system, and left and right brushes on the smart sweeper.
[0034] During actual operation, the rotation speed of the roller brush on the smart sweeper and the operating power of the dust collection system are controlled and adjusted according to the grayscale average value difference d1 of the pictures before and after cleaning. The rotation speeds of the left and right brushes are controlled according to the grayscale average value difference d2 of the pictures of the left brush cleaning area and the right brush cleaning area. This allows the smart sweeper to dynamically adjust the operating power of each part of the cleaning system according to the cleanliness of the ground, thereby saving energy consumption while ensuring the cleaning effect.
[0035] Step 4: Input the posture deviation and grayscale average difference d1 between the current actual posture of the intelligent sweeper and the reference posture into the speed controller of the intelligent sweeper, and output the longitudinal speed control value of the intelligent sweeper.
[0036] In particular, the speed controller in step four is a fuzzy controller, including a fuzzy control unit and a PID control unit. The reasoning mechanism of the fuzzy control unit is to input the grayscale average value difference d1 and the posture deviation, and output the error value of the grayscale average value difference and the comprehensive posture deviation. The PID controller adjusts the output longitudinal speed control value according to the error value of the average value difference and the comprehensive posture deviation.
[0037] Step 5: Input the posture deviation into the yaw angle controller of the intelligent sweeper, and output the yaw angle control value of the intelligent sweeper.
[0038] In particular, the posture deviation is input into the yaw angle controller, and the yaw angle control value of the intelligent sweeper is output through the prediction model, rolling optimization and feedback correction.
[0039] The calculation equation for the above posture deviation is: The current status is The expected position in the global coordinate system is
[0040] In the above prediction model, the kinematic equation constructed in the geodetic coordinate system takes wheel slip into consideration, and its kinematic equation is: Among them, the slip rate f1 and the slip rate f2 represent the slip and turn degree of the robot wheels on the low-speed side and the high-speed side, v is the speed at the center of mass of the intelligent sweeper, and v x 、v y are the longitudinal and lateral velocities, respectively, l f , l r are the distances from the front and rear axles to the mass center of the smart sweeper, ω is the yaw angular velocity, b is the left and right wheelbase of the smart sweeper, is the heading angle, β is the sideslip angle of the center of mass, ω1 and ω2 are the rotation speeds of the driving wheels on the high-speed side and the low-speed side respectively.
[0041] Step 6: Combine the longitudinal speed control amount and the yaw angle control amount to control the rotation speed of each of the four wheels of the smart sweeper so that the smart sweeper can run accurately along the preset trajectory.
[0042] In particular, in step six, the intelligent sweeper is also equipped with a BP neural network. The BP neural network structure is divided into three parts: input layer, hidden layer and output layer. The transfer function adopts sigmoid. Based on the descent strategy, training is performed on the slip caused by four-wheel differential steering and the slip caused by the different speeds of the front and rear wheels in contact with the ground. The longitudinal speed control amount and the yaw angular velocity control amount are input into the BP neural network, and the rotation speed of each wheel is mapped and output.
[0043] The BP neural network has a strong nonlinear fitting ability. According to the input and output of the corresponding connection of the kinematic equation, the BP neural network can characterize their internal connection and reduce the impact of wheel slip on the driving path.
[0044] In specific implementation, the intelligent sweeper adopts four-wheel differential steering and four-wheel independent drive. The intelligent sweeper includes a sweeping system and a trajectory tracking control system. The sweeping system includes front and rear cameras, a right brush 1, a left brush 2, a dust collection system 3 and a roller brush 4.
[0045] When the intelligent sweeper starts working, the left and right brushes of the sweeper start to rotate, and their function is to gather the garbage, sand and other debris on the edge of the cleaning area on the road to the center area of the sweeper. The roller brush 4 also starts to rotate during the process of the sweeper moving forward, and its main function is to further compact the garbage swept to the center by the left and right brushes and send it to the dust suction system 3. The dust suction system 3 includes a high-power fan and a dust suction port. When the roller brush 4 brings the garbage to the vicinity of the dust suction port, the high-speed airflow generated by the fan sucks the garbage into the dust suction system 3.
[0046] The cleaning system obtains pictures of the cleaning area before and after cleaning based on the front and rear cameras, divides the areas that can be cleaned by the left and right brushes in the pictures before cleaning, and evenly selects 50% of the pixels from the pictures before and after cleaning. When selecting, the pixels of each picture are numbered in order from left to right and from top to bottom, and the pixels with odd numbers are selected.
[0047] The selected pixels are grayed out, and the grayscale averages of the image before cleaning, the image after cleaning, the image of the left brush-cleaned area, and the image of the right brush-cleaned area are calculated using the selected pixels. The grayscale average represents the cleanliness of the area. The larger the difference in the grayscale averages, the greater the difference in the cleanliness of the two areas.
[0048] When graying the selected pixels, F(i,j)=max(R(i,j),G(i,j),B(i,j)), Among them, R, G, B are RGB pixel values, and the value range is an integer from 0 to 255.
[0049] After all the selected pixels are grayed, the grayscale average of each image is calculated using Among them, n is the number of pixels selected in the corresponding image, and F is the grayscale value of the pixels selected within the corresponding image range. The grayscale average values of the image before cleaning, the image after cleaning, the image of the left brush cleaning area, and the image of the right brush cleaning area are calculated.
[0050] The grayscale average difference between the pictures before and after cleaning is d1, which represents the change in the cleanliness of the cleaning area before and after the cleaning by the smart sweeper. The larger d1 is, the more garbage needs to be cleaned in the current area. According to the size of d1, the rotation speed of the roller brush 4 and the operating power of the dust collection system 3 on the smart sweeper are controlled and adjusted. When d1 is large, the rotation speed of the roller brush 4 and the operating power of the dust collection system 3 are appropriately increased. When d1 is small, the rotation speed of the roller brush 4 and the operating power of the dust collection system 3 are appropriately reduced.
[0051] The grayscale average difference between the left and right brush cleaning areas is d2. The grayscale average difference d2 represents the difference in cleanliness between the left and right brush cleaning areas. If d2 is close to 0, it means that the cleanliness of the left and right brush cleaning areas is similar. If d2 is greater than or less than 0, it means that there is more garbage in the cleaning area of one side of the brush. The rotation speed of the left and right brushes is controlled according to the size of d2. When d2 is close to 0, the rotation speed of the left and right brushes is kept equal. When d2 is greater than or less than zero for more than a certain range, the rotation speed of the side brush with a larger grayscale average is increased to achieve a better cleaning effect.
[0052] In actual operation, according to the cleaning requirements, an expected grayscale average difference can be set to indicate the ideal cleaning degree to be achieved after cleaning. The error between the current grayscale value difference and the set target grayscale value difference is calculated, and the power of the cleaning system is adjusted according to the size of the error to make the error as small as possible.
[0053] The posture deviation and grayscale average value difference d1 between the current actual posture of the intelligent sweeper and the reference posture are input into the speed controller of the intelligent sweeper, and the longitudinal speed control value of the intelligent sweeper is output.
[0054] In this embodiment, the speed controller is a fuzzy controller, including a fuzzy control unit and a PID control unit. The reasoning mechanism of the fuzzy control unit is to input the grayscale average value difference d1 and the posture deviation, and output the error value of the grayscale average value difference and the comprehensive posture deviation. The PID controller adjusts and outputs the longitudinal speed control amount according to the error value of the average value difference and the comprehensive posture deviation.
[0055] Because of the addition of the fuzzy control unit, the subsequent parameter selection of the PID control unit no longer requires only manual experience selection, reducing manual calculations. At the same time, the grayscale average difference d1 is added to the parameters of the input fuzzy control unit, and the control parameters of the PID control unit are obtained after fuzzy processing. When the smart sweeper drives to an area with a relatively clean road surface, it can speed up and shorten the cleaning time. When the smart sweeper drives to an area with more garbage and dust, it can slow down its forward speed and cooperate with the cleaning system to achieve more detailed cleaning, saving energy while improving work efficiency.
[0056] The posture deviation is input into the yaw angle controller, and the yaw angle control value of the intelligent sweeper is output.
[0057] In this embodiment, the posture deviation is input into the yaw angle controller, and the yaw angle control value of the intelligent sweeper is output through the prediction model, rolling optimization and feedback correction.
[0058] The calculation equation for the above posture deviation is: The current status is The expected position in the global coordinate system is
[0059] In the above prediction model, the kinematic equation constructed in the geodetic coordinate system takes wheel slip into consideration, and its kinematic equation is: Among them, the slip rate f1 and the slip rate f2 represent the slip and turn degree of the robot wheels on the low-speed side and the high-speed side, v is the speed at the center of mass of the intelligent sweeper, and v x 、v y are the longitudinal and lateral velocities, respectively, and l f , l r are the distances from the front and rear axles to the mass center of the smart sweeper, ω is the yaw angular velocity, b is the left and right wheelbase of the smart sweeper, is the heading angle, β is the sideslip angle of the center of mass, ω1 and ω2 are the rotation speeds of the driving wheels on the high-speed side and the low-speed side respectively.
[0060] The longitudinal speed control quantity output by the speed controller and the yaw angle control quantity output by the yaw angle controller are input into the BP neural network, so that the BP neural network is trained for the slip generated during four-wheel differential steering and the slip generated by the different speeds of the front and rear wheels in contact with the ground, and the rotational speeds of the four wheels of the intelligent sweeper are mapped and output, so that the intelligent sweeper can run accurately along the preset trajectory and adjust the forward speed according to the cleanliness of the cleaning area.
[0061] It should be noted that the parts not described in detail in this scheme are all prior art, and the above embodiments are only used to illustrate the present invention, but the present invention is not limited to the above embodiments. Any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention fall within the protection scope of the present invention.
Claims
1. A method for controlling an intelligent sweeper, characterized in that: The following steps are included: Step 1: Use a camera installed on the smart sweeper to obtain pictures of the cleaning area before and after cleaning, and divide the areas that can be cleaned by the left and right brushes on the smart sweeper in the pictures before cleaning; Step 2: Evenly select pixel points to grayscale the image, and calculate the grayscale averages of the image before cleaning, the image after cleaning, the image of the left brush cleaning area, and the image of the right brush cleaning area; Step 3: According to the grayscale average difference d1 of the pictures before and after cleaning, and the grayscale average difference d2 of the pictures of the left brush cleaning area and the right brush cleaning area, the operating power of the roller brush, the dust collection system, and the left and right brushes on the intelligent cleaning vehicle is controlled and adjusted; Step 4: input the posture deviation and grayscale average value difference d1 between the current actual posture of the intelligent sweeper and the reference posture into the speed controller of the intelligent sweeper, and output the longitudinal speed control value of the intelligent sweeper; Step 5: input the posture deviation into the yaw angle controller of the intelligent sweeper, and output the yaw angle control value of the intelligent sweeper; Step 6: Combine the longitudinal speed control amount and the yaw angle control amount to control the rotation speed of each of the four wheels of the smart sweeper so that the smart sweeper can run accurately along the preset trajectory.
2. The intelligent sweeper control method according to claim 1, characterized in that: In step 2, 50% of the pixels of the image before and after cleaning are uniformly selected as the basis for calculating the average grayscale value of the image.
3. A control method for an intelligent sweeper according to claim 2, characterized in that: When selecting pixels, the pixels in the image are numbered in order from left to right and from top to bottom, and the pixels with odd numbers are selected.
4. The intelligent sweeper control method according to claim 1, characterized in that: When graying the image in step 2, the pixels selected in the image are grayed out according to F(i,j)=max(R(i,j),G(i,j),B(i,j)) Grayscale processing is performed, where R, G, and B are RGB pixel values, and the value range is an integer from 0 to 255.
5. The intelligent sweeper control method according to claim 1, characterized in that: In step 2, the grayscale average of each image is calculated according to The grayscale average value of each image is calculated, where n is the number of pixels selected in the corresponding image, and F is the grayscale value of the pixels selected within the range of the corresponding image.
6. The intelligent sweeper control method according to claim 1, characterized in that: The speed controller in step four is a fuzzy controller, including a fuzzy control unit and a PID control unit. The reasoning mechanism of the fuzzy control unit is to input the grayscale average value difference d1 and the posture deviation, and output the error value of the grayscale average value difference and the comprehensive posture deviation. The PID controller adjusts and outputs the longitudinal speed control value according to the error value of the average value difference and the comprehensive posture deviation.
7. The intelligent sweeper control method according to claim 1, characterized in that: In step five, the posture deviation is input into the yaw angle controller, and the yaw angle control value of the intelligent sweeper is output through the prediction model, rolling optimization and feedback correction.
8. The intelligent sweeper control method according to claim 7, characterized in that: The pose deviation calculation equation is: The current status is The expected position in the global coordinate system is 9. The intelligent sweeper control method according to claim 7, characterized in that: In the prediction model, the wheel slip is considered when constructing the kinematic equation in the geodetic coordinate system. The kinematic equation is: Among them, the slip rate f1 and the slip rate f2 represent the slip and turn degree of the robot wheels on the low-speed side and the high-speed side, v is the speed at the center of mass of the intelligent sweeper, and v x 、v y are the longitudinal and lateral velocities, respectively, l f , l r are the distances from the front and rear axles to the mass center of the smart sweeper, ω is the yaw angular velocity, b is the left and right wheelbase of the smart sweeper, is the heading angle, β is the sideslip angle of the center of mass, ω1 and ω2 are the rotation speeds of the driving wheels on the high-speed side and the low-speed side respectively.
10. The intelligent sweeper control method according to claim 1, characterized in that: In step six, the intelligent sweeper is also equipped with a BP neural network. The BP neural network structure is divided into three parts: input layer, hidden layer and output layer. The transfer function adopts sigmoid. Based on the descent strategy, it is trained for the slip caused by four-wheel differential steering and the slip caused by the different speeds of the front and rear wheels in contact with the ground. The longitudinal speed control amount and the yaw angular velocity control amount are input into the BP neural network, and the rotation speed of each wheel is mapped and output to reduce the impact of wheel slip on the driving path.
