Sweeping method based on environment map, related device thereof and storage medium

By generating an environment map and real-time path adjustment, the problem of low cleaning efficiency and incomplete coverage of sweeping equipment in complex environments is solved, and efficient and intelligent cleaning effects are achieved, enhancing the adaptability and user experience of the equipment.

CN119002473APending Publication Date: 2024-11-22HUIZHOU HAIHE INTELLIGENT CONTROL TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410952268.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Existing sweeping equipment has low cleaning efficiency, incomplete coverage and lacks dynamic adjustment capabilities in complex and dynamic environments.

Method used

By obtaining environmental data, generating an environment map based on the SLAM algorithm, combining the D Lite algorithm to calculate the optimal cleaning path, and using the PID control algorithm to control the sweeping device to move along the optimal path. The incremental SLAM algorithm updates the environment map in real time to dynamically adjust the cleaning path .

Benefits of technology

It achieves efficient, comprehensive and precise cleaning effects, improves the responsiveness and adaptability of sweeping equipment in the event of environmental changes, and ensures continuous optimization of the cleaning process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002473A_ABST
    Figure CN119002473A_ABST
Patent Text Reader

Abstract

The invention discloses a sweeping method based on an environment map, a related device thereof and a storage medium, and the method comprises the steps: obtaining environment data, and determining the environment map based on the environment data; determining an optimal cleaning path based on the environment map; and controlling the sweeping equipment to sweep according to the optimal sweeping path. The method further comprises the steps of updating the environment map in real time to reflect environment changes, and dynamically adjusting the cleaning path. By means of the method, efficient and intelligent sweeping operation can be achieved, all sweeping areas can be covered, the sweeping strategy is adjusted in real time according to environment changes, the sweeping efficiency and effect are improved, meanwhile, collision to obstacles is avoided, and the intelligent level and user experience of the sweeping equipment are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a sweeping method based on an environmental map and related devices and storage media. Background Art

[0002] At present, most of the sweeping devices on the market rely on simple preset paths or random cleaning modes to work, and the existing methods have many shortcomings. For example, the random cleaning mode cannot guarantee that all areas are effectively covered, resulting in some areas being missed, and may also lead to unnecessary repeated cleaning, reducing work efficiency. Although sweeping devices with preset paths can cover all areas, they lack sufficient flexibility and adaptability when facing complex and dynamically changing environments.

[0003] Although some existing sweeping devices have introduced sensor technology to achieve obstacle detection and avoidance, the existing technology can only solve local problems and cannot optimize the cleaning path from a global perspective. Therefore, there are still problems of low efficiency and incomplete coverage in complex environments. In addition, existing sweeping devices lack the ability to dynamically adjust the cleaning path. Once the environment changes, the device cannot respond and adjust in time, resulting in a poor cleaning effect. Summary of the invention

[0004] The technical problem to be solved by the present application is to provide a sweeping method based on environmental maps and its related devices and storage media in view of the deficiencies in the prior art, so as to solve the problems of low cleaning efficiency, incomplete coverage and lack of dynamic adjustment capability of the sweeping methods of the existing sweeping equipment in complex and dynamic environments.

[0005] In order to solve the above technical problems, the first aspect of the embodiment of the present application provides a sweeping method based on an environment map, including:

[0006] Acquiring environmental data, and determining an environmental map based on the environmental data;

[0007] Determining an optimal cleaning path based on the environmental map;

[0008] The sweeping device is controlled to perform sweeping according to the optimal sweeping path.

[0009] The environmental data includes spatial distance data and visual image data collected by lidar sensors, ultrasonic sensors and cameras.

[0010] The process of determining the environment map based on the environment data specifically includes:

[0011] Based on the SLAM algorithm, the spatial distance data and the visual image data are combined into target map data;

[0012] An environment map is determined based on the target map data.

[0013] The process of determining the optimal cleaning path based on the environment map specifically includes:

[0014] Determine the location of obstacles, ground type and cleaning priority in the environment based on the environment map;

[0015] The optimal path is calculated based on the obstacle location, ground type, cleaning priority and D Lite algorithm.

[0016] Wherein, in the process of controlling the sweeping device to sweep according to the optimal sweeping path, the method further includes:

[0017] Controlling the sweeping device to move along the optimal cleaning path based on a PID control algorithm;

[0018] The speed and direction of the sweeping device are adjusted according to real-time environmental data during movement.

[0019] The process of controlling the sweeping device to move along the optimal cleaning path based on the PID control algorithm specifically includes:

[0020] Measuring the position and speed of the current sweeping device, and calculating the error value from the optimal sweeping path based on the position and speed;

[0021] Determine the proportional, integral and differential control quantities of the PID control algorithm based on the error value, reflecting the current error, the accumulated error and the error change rate respectively;

[0022] The position and speed of the sweeping device are corrected based on the current error, the accumulated error and the error change rate, so that the sweeping device moves along the optimal cleaning path.

[0023] Wherein, the method further comprises:

[0024] The environment map is updated in real time based on the use of an incremental SLAM algorithm, and the cleaning path is dynamically adjusted based on the updated environment map.

[0025] A second aspect of an embodiment of the present application provides a sweeping device based on an environment map, comprising:

[0026] A map confirmation module, used to obtain environmental data and determine an environmental map based on the environmental data;

[0027] A route confirmation module, used to determine the optimal cleaning path based on the environmental map;

[0028] The cleaning module is used to control the cleaning device to clean according to the optimal cleaning path.

[0029] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the sweeping method based on the environment map.

[0030] A fourth aspect of an embodiment of the present application provides a terminal device, which includes: a processor and a memory;

[0031] The memory stores a computer-readable program executable by the processor;

[0032] When the processor executes the computer-readable program, the steps in the sweeping method based on the environment map are implemented.

[0033] Beneficial effects: The technical solution of the present application collects environmental data through lidar sensors, ultrasonic sensors and cameras, and generates environmental maps based on SLAM algorithms, thereby solving the problems of low cleaning efficiency and incomplete coverage of sweeping equipment in the prior art in complex and dynamic environments, thereby achieving efficient, comprehensive and accurate cleaning effects;

[0034] In addition, the technical solution is based on the optimal cleaning path planning and PID control algorithm of the environmental map, which overcomes the problem that the sweeping equipment in the prior art lacks path optimization and dynamic adjustment capabilities, thereby enabling the sweeping equipment to respond and adjust the cleaning path in a timely manner when the environment changes, thereby improving the cleaning efficiency and adaptability.

[0035] The technical solution uses an incremental SLAM algorithm to update the environmental map in real time and dynamically adjust the cleaning path, thereby solving the problem in the prior art that sweeping equipment cannot reflect environmental changes in real time, thereby ensuring continuous optimization and efficient operation of the cleaning process. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of 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 the drawings without creative work.

[0037] Figure 1 A flowchart of an autonomous driving lane line processing method provided in this application.

[0038] Figure 2 A structural schematic diagram of an autonomous driving lane line processing device provided in this application.

[0039] Figure 3This is a schematic diagram of the structure of the terminal device provided in this application.

[0040] Description of Figure Numbers:

[0041] 100. Spectrum confirmation module;

[0042] 200, route confirmation module;

[0043] 300, cleaning module;

[0044] 20. Processor;

[0045] 21. Display screen;

[0046] 22. Memory;

[0047] 23. Communication interface;

[0048] 24. Bus. DETAILED DESCRIPTION

[0049] The present application provides a sweeping method based on an environmental map and its related devices and storage medium. In order to make the purpose, technical solution and effect of the present application clearer and more specific, the present application is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0051] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0052] It should be understood that the sequence numbers and sizes of the steps in this embodiment do not mean the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0053] An environmental map refers to an environmental map generated by collecting environmental data through sensors and processing the environmental data using algorithms. The environmental map can accurately reflect the terrain, obstacles and other important features within the working area of ​​the equipment.

[0054] SLAM algorithm (Simultaneous Localization and Mapping) is an algorithm that performs positioning and map construction simultaneously. It is often used in robots and automated equipment to enable them to navigate autonomously in unknown environments.

[0055] The PID control algorithm is a proportional-integral-derivative control algorithm used to control the feedback loop in the system to ensure that the output value (such as the position of the equipment) stably tracks the target value (such as the optimal cleaning path).

[0056] The D Lite algorithm is a heuristic search algorithm for path planning that can quickly update the optimal path in a dynamic environment.

[0057] Existing sweeping equipment mainly relies on preset paths or random cleaning modes, and the methods have problems of incomplete coverage and low efficiency. In order to improve the cleaning effect of sweeping equipment, various sensor technologies and path planning algorithms have been introduced in recent years. For example, the use of sensors such as lidar, ultrasonic sensors and cameras can obtain spatial distance data and visual image data of the environment. Based on the data processed by the SLAM algorithm, an environmental map can be generated to provide a basis for path planning. However, when facing complex and dynamically changing environments, the existing technology still has problems such as insufficient optimization of cleaning path planning and insufficient equipment control accuracy.

[0058] In order to solve the above problems, in an embodiment of the present application, a sweeping method based on an environmental map and its related devices and storage media are disclosed, the method comprising: acquiring environmental data, determining an environmental map based on the environmental data; determining an optimal cleaning path based on the environmental map; and controlling the sweeping device to clean according to the optimal cleaning path. The method also includes updating the environmental map in real time to reflect environmental changes and dynamically adjusting the cleaning path. Through the method of the present invention, efficient and intelligent cleaning operations can be achieved, covering all cleaning areas, and the cleaning strategy can be adjusted in real time according to environmental changes, thereby improving cleaning efficiency and effects, while avoiding collisions with obstacles, and improving the intelligence level of the sweeping device and user experience.

[0059] The application content is further explained below through the description of embodiments in conjunction with the accompanying drawings.

[0060] This embodiment provides a method and device for sweeping the floor based on an environment map, such as Figure 1 As shown, the method includes:

[0061] S10: Acquire environmental data, and determine an environmental map based on the environmental data.

[0062] Specifically, the environmental data includes spatial distance data and visual image data collected by lidar sensors, ultrasonic sensors and cameras.

[0063] The sweeping device obtains environmental data through a laser radar sensor, an ultrasonic sensor and a camera. The spatial distance data and visual image data collected by the sensors are used to generate a detailed environmental map.

[0064] LiDAR sensors are used to measure the distance between the sweeping equipment and surrounding objects. They obtain accurate distance information by emitting laser beams and receiving reflected signals.

[0065] Ultrasonic sensors measure the distance to objects by emitting and receiving ultrasonic waves, complementing the shortcomings of lidar in certain environmental conditions.

[0066] The camera acquires visual image data of the surrounding environment and is used to identify information such as ground type and obstacles.

[0067] The process of determining the environment map based on the environment data specifically includes:

[0068] S110: Based on a SLAM algorithm, the spatial distance data and the visual image data are combined into target map data.

[0069] Specifically, the spatial distance data and the visual image data obtained from the laser radar, ultrasonic sensor and camera are first preprocessed to obtain preprocessed data, and the preprocessing includes operations such as filtering, denoising and data synchronization.

[0070] Subsequently, feature points are extracted from the preprocessed data and feature matching is performed between consecutive frames to determine the relative position change of the device.

[0071] Finally, the matched feature points and location information are fused to update the target map data of the environment to make it gradually perfect.

[0072] S111. Determine an environment map based on the target map data.

[0073] Specifically, firstly, by analyzing the feature points in the target map data, the fixed obstacles and dynamic obstacles in the environment are identified and marked;

[0074] Secondly, based on the visual image data acquired by the camera, different ground types (such as carpet, tile, wooden floor, etc.) are identified and marked in the environment map;

[0075] Finally, the above information is integrated to generate a detailed environment map, which includes key information such as terrain, obstacle location and ground type.

[0076] S20: determining an optimal cleaning path based on the environmental map.

[0077] Specifically, the process of determining the optimal cleaning path based on the environment map includes:

[0078] S210: Determine the location of obstacles, ground type, and cleaning priority in the environment based on the environment map.

[0079] The process of determining the position of the obstacle includes using the environmental data collected by the lidar sensor, ultrasonic sensor and camera to mark the position of the obstacle in the environmental map generated by the SLAM algorithm; the data of the obstacle position is analyzed and confirmed by feature extraction and matching algorithms, and the specific position of the obstacle is marked in the environmental map.

[0080] The process of identifying the ground type includes analyzing the visual image data collected by the camera and using the image recognition algorithm to identify different types of ground, such as carpet, tile, wooden floor, etc. The ground type recognition results are also marked in the environment map to help select appropriate cleaning strategies and equipment parameters during subsequent path planning.

[0081] The process of determining the cleaning priority includes determining the cleaning priority of different areas based on the cleaning priority information set by the user and the intelligent algorithm inside the device. The priority information can be set based on factors such as room purpose (such as living room, kitchen, bedroom, etc.), frequency of use and degree of cleanliness. Based on the cleaning priority, specific marks are used to distinguish in the environment map to ensure that high-priority areas are cleaned first.

[0082] S211. Calculate the optimal path based on the obstacle position, ground type, cleaning priority and D Lite algorithm.

[0083] The D Lite algorithm is an efficient heuristic search algorithm that can quickly update the optimal path in a dynamic environment. The D Lite algorithm gradually adjusts the path to find the optimal solution by evaluating the cost between the current path and the target path.

[0084] The method for calculating the optimal path includes:

[0085] Combining the obstacle location, ground type and cleaning priority information in the environment map, the D Lite algorithm begins to calculate the optimal cleaning path;

[0086] Obstacle location data is used to prevent the device from colliding with obstacles during the cleaning process;

[0087] Floor type data is used to adjust the device’s cleaning pattern and speed, such as reducing speed on carpeted areas to ensure thorough cleaning;

[0088] Cleaning priority data is used to optimize the path so that the device cleans high-priority areas first.

[0089] The path optimization process includes:

[0090] During the path calculation process, the D Lite algorithm continuously evaluates and optimizes the path to ensure the shortest distance and highest scanning efficiency;

[0091] If the environment changes during the cleaning process (such as the appearance of new obstacles), the D Lite algorithm can adjust the path in real time to ensure that the device always cleans along the optimal path.

[0092] S30: Control the sweeping device to clean according to the optimal cleaning path.

[0093] In the process of controlling the sweeping device to sweep according to the optimal sweeping path, the method further includes:

[0094] S310. Control the sweeping device to move along the optimal cleaning path based on a PID control algorithm.

[0095] The process of controlling the sweeping device to move along the optimal sweeping path based on the PID control algorithm specifically includes:

[0096] S3110, measuring the position and speed of the current sweeping device, and calculating the error value from the optimal cleaning path based on the position and speed.

[0097] First, the position and speed of the current sweeping device are measured. The sweeping device is equipped with a position sensor and a speed sensor for real-time measurement of the position and speed of the current device. The position sensor can be a GPS, an inertial measurement unit (IMU) or other precision positioning device; the speed sensor is usually an encoder or an accelerometer.

[0098] The process of calculating the error value specifically includes:

[0099] Based on the measured position and speed data, a comparison is made with the predetermined optimal cleaning path; the error value refers to the gap between the current actual position of the device and the corresponding position on the predetermined path, as well as the difference between the actual speed and the expected speed.

[0100] S3120. Determine the proportional, integral and differential control quantities of the PID control algorithm based on the error value, which respectively reflect the current error, the accumulated error and the error change rate.

[0101] Among them, the proportional control amount (P) is directly calculated according to the current error value, and the proportional control amount is used to immediately correct the position and speed of the device so that it quickly approaches the predetermined path. The calculation process of the proportional control amount (P) can be expressed as:

[0102] P=K p ×e(t)

[0103] in:

[0104] P is the proportional control amount.

[0105] K p is the proportional gain coefficient.

[0106] e(t) is the current error value, which indicates the deviation between the current position of the device and the planned path.

[0107] Specific steps:

[0108] Get the current error value: Measure the current position of the device through the sensor, compare it with the predetermined path position, and calculate the current error value e(t).

[0109] Calculate the proportional control amount: multiply the current error value e(t) by the proportional gain coefficient K p , and obtain the proportional control amount P.

[0110] The proportional control amount is used to immediately correct the position and speed of the device so that it quickly approaches the intended path. For example, if the device deviates from the path by 1 meter and the proportional gain factor is 2, the proportional control amount is 2 meters, indicating that an immediate adjustment is needed to correct the deviation.

[0111] The integral control amount (I) is calculated based on the accumulation of error values. The integral control amount is used to eliminate persistent deviations and ensure that the equipment remains on the predetermined path for a long time.

[0112] The calculation process of the integral control quantity (I) can be expressed as:

[0113]

[0114] in:

[0115] I is the integral control amount.

[0116] K i is the integral gain coefficient.

[0117] e(τ) is the error value at time τ.

[0118] Represents the accumulated error from the initial time to the current time t.

[0119] Specific steps:

[0120] Cumulative error calculation: record and accumulate the error value from the initial time to the current time.

[0121] Calculate the integral control amount: multiply the cumulative error value by the integral gain coefficient K i , and obtain the integral control quantity I.

[0122] The integral control amount is used to eliminate persistent deviations and ensure that the device remains on the intended path in the long term. For example, if the device continues to deviate from the path, the integral control amount will increase until the deviation is completely eliminated.

[0123] The differential control amount (D) is calculated based on the error change rate. The differential control amount is used to predict the error change trend and make adjustments in advance to avoid excessive or insufficient adjustment of the equipment.

[0124] The calculation process of the differential control quantity (D) can be expressed as:

[0125]

[0126] in:

[0127] D is the differential control quantity.

[0128] K d is the differential gain coefficient.

[0129] is the rate of change of the current error, which indicates how fast the error changes over time.

[0130] Specific steps:

[0131] Error change rate calculation: Calculate the rate of change of the current error value relative to the previous time point.

[0132] Calculate the differential control amount: multiply the error change rate by the differential gain coefficient K d , and obtain the differential control quantity D.

[0133] The derivative control amount is used to predict the trend of error changes and make adjustments in advance to avoid over- or under-adjustment of the equipment. For example, if the trend of the equipment deviating from the path accelerates, the derivative control amount will be increased to correct this trend in advance.

[0134] For example, the process of determining the proportional, integral and differential control quantities of the PID control algorithm based on the error value can be expressed as:

[0135] Error value measurement:

[0136] The current position and speed of the device are measured by sensors, compared with the predetermined path, and the current error value e(t) is calculated.

[0137] Proportional control amount calculation:

[0138] Get the current error value e(t).

[0139] Calculate the proportional control amount P = K p ×e(t).

[0140] Integral control quantity calculation:

[0141] Cumulative error value

[0142] Calculate the integral control amount

[0143] Calculation of differential control quantity:

[0144] Calculate the error rate of change

[0145] Calculate the differential control quantity

[0146] Comprehensive adjustments:

[0147] The proportional, integral and differential control quantities are calculated comprehensively to obtain the total control quantity U=P+I+D.

[0148] The position and speed of the sweeping device are adjusted according to the total control amount U to ensure that the device moves along the predetermined path.

[0149] S3130. Correct the position and speed of the sweeping device based on the current error, the accumulated error and the error change rate, so that the sweeping device moves along the optimal cleaning path.

[0150] First, a comprehensive adjustment value is calculated by combining proportional, integral and differential control quantities; the adjustment value is used to correct the current position and speed of the device to make it as close as possible to the predetermined optimal cleaning path.

[0151] Subsequently, the control system converts the calculated adjustment value into a specific control instruction and sends it to the actuator of the sweeping device, which may include a motor, a drive system, etc., to adjust the motion state of the device according to the control instruction.

[0152] S311. Adjust the speed and direction of the sweeping device according to the real-time environmental data during the movement.

[0153] During the cleaning process, the sweeping equipment not only needs to move along the predetermined path, but also needs to make dynamic adjustments based on real-time environmental data to ensure cleaning effectiveness and safety.

[0154] Specifically, the sweeping device is equipped with a variety of sensors, such as lidar, ultrasonic sensors and cameras, to continuously collect data on the surrounding environment. The sensors can detect new obstacles, terrain changes and dynamic objects.

[0155] Through data fusion and filtering algorithms, the collected environmental data is processed in real time to extract useful information. Based on the information, the current environmental status is analyzed to determine whether the speed and direction of the equipment need to be adjusted.

[0156] If the sensor detects a new obstacle or environmental change ahead, the control system adjusts the speed and direction of the device based on real-time data.

[0157] The PID control algorithm combines real-time environmental data to calculate new control instructions, ensuring that the device continues to clean along the optimal path while avoiding obstacles.

[0158] S40, the sweeping method based on the environment map further includes:

[0159] The environment map is updated in real time based on the use of an incremental SLAM algorithm, and the cleaning path is dynamically adjusted based on the updated environment map.

[0160] Specifically, the incremental SLAM (Simultaneous Localization and Mapping) algorithm is an algorithm that can continuously update the environment map and device position during the device movement process. Unlike traditional SLAM algorithms, the incremental SLAM algorithm has higher real-time performance and calculation efficiency by gradually updating the map and position.

[0161] Before updating the environmental map, it is necessary to collect environmental data. The sweeping device is equipped with a lidar sensor, an ultrasonic sensor and a camera to collect environmental data in real time, including spatial distance data and visual image data.

[0162] The sensor data is preprocessed through a data fusion algorithm to obtain more accurate and consistent environmental information.

[0163] Subsequently, feature extraction and matching operations are performed on the environmental information.

[0164] Extract key feature points from the collected environmental data, including obstacles, ground types, and dynamic objects. Determine the relative displacement and rotation changes of the device by matching the feature points at the current moment with the feature points at the previous moment.

[0165] In summary, the present application provides a sweeping method based on an environmental map and its related devices and storage media. The method uses a laser radar sensor, an ultrasonic sensor and a camera to collect spatial distance data and visual image data, generates an environmental map based on a SLAM algorithm, and reflects the terrain, obstacles and other important features in the working area of ​​the sweeping device based on the environmental map, thereby improving the environmental perception capability and navigation accuracy of the device; secondly, the method uses D based on the obstacle location, ground type and cleaning priority in the environmental map. The Lite algorithm calculates the optimal cleaning path and optimizes the path planning to ensure that the sweeping equipment covers the cleaning area efficiently and comprehensively, reducing cleaning time and energy consumption and improving cleaning efficiency. Secondly, based on the PID control algorithm, the position and speed of the equipment are measured in real time, the error value is calculated, and the proportional, integral and differential control quantities are determined to correct the position and speed of the equipment. By precisely controlling the movement of the equipment, it is ensured that the equipment moves along the optimal path and can dynamically adjust the speed and direction to adapt to environmental changes and avoid obstacles, thereby improving the cleaning effect and the adaptability of the equipment. In addition, the incremental SLAM algorithm is used to update the environmental map in real time, and the cleaning path is dynamically adjusted according to the updated environmental map, thereby reflecting environmental changes in real time, ensuring continuous optimization of the cleaning path, and enabling the equipment to operate efficiently in complex and dynamic environments, improving the flexibility and intelligence of cleaning.

[0166] Based on the above-mentioned sweeping method based on environment map, this embodiment provides a sweeping device based on environment map, such as Figure 2 As shown, the device comprises:

[0167] A map confirmation module 100, for acquiring environmental data and determining an environmental map based on the environmental data;

[0168] A route confirmation module 200, for determining an optimal cleaning path based on the environmental map;

[0169] The cleaning module 300 is used to control the cleaning device to clean according to the optimal cleaning path.

[0170] Based on the above-mentioned sweeping method based on environmental map, this embodiment provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the sweeping method based on environmental map as described in the above-mentioned embodiment.

[0171] Based on the above-mentioned sweeping method based on the environment map, the present application also provides a terminal device, such as Figure 3 As shown, it includes at least one processor 20, a display screen 21, and a memory 22, and may also include a communication interface 23 and a bus 24. The processor 20, the display screen 21, the memory 22, and the communication interface 23 may communicate with each other through the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call the logic instructions in the memory 22 to execute the method in the above embodiment.

[0172] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0173] The memory 22 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 22, that is, implementing the methods in the above embodiments.

[0174] The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.

[0175] In addition, the specific process of loading and executing the multiple instruction processors in the above-mentioned storage medium and the terminal device has been described in detail in the above-mentioned method, and will not be described one by one here.

[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some of the technical features therein with equivalents. However, based on the modification or replacement, the essence of the corresponding technical solutions does not deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A sweeping method based on an environment map, characterized in that: include: Acquiring environmental data, and determining an environmental map based on the environmental data; Determining an optimal cleaning path based on the environmental map; The sweeping device is controlled to perform sweeping according to the optimal sweeping path.

2. The method for sweeping the floor based on the environment map according to claim 1, characterized in that: The environmental data includes spatial distance data and visual image data collected by lidar sensors, ultrasonic sensors and cameras.

3. The method for sweeping the floor based on the environment map according to claim 2, characterized in that: The process of determining the environment map based on the environment data specifically includes: Based on the SLAM algorithm, the spatial distance data and the visual image data are combined into target map data; An environment map is determined based on the target map data.

4. The method for sweeping the floor based on the environment map according to claim 1, characterized in that: The process of determining the optimal cleaning path based on the environmental map specifically includes: Determine the location of obstacles, ground type and cleaning priority in the environment based on the environment map; The optimal path is calculated based on the obstacle location, ground type, cleaning priority and D Lite algorithm.

5. The method for sweeping the floor based on the environment map according to claim 1, characterized in that: In the process of controlling the sweeping device to sweep according to the optimal sweeping path, the method further includes: Controlling the sweeping device to move along the optimal sweeping path based on a PID control algorithm; The speed and direction of the sweeping device are adjusted according to real-time environmental data during movement.

6. The method for sweeping the floor based on the environment map according to claim 5, characterized in that: The process of controlling the sweeping device to move along the optimal sweeping path based on the PID control algorithm specifically includes: Measuring the position and speed of the current sweeping device, and calculating the error value from the optimal sweeping path based on the position and speed; Determine the proportional, integral and differential control quantities of the PID control algorithm based on the error value, reflecting the current error, the accumulated error and the error change rate respectively; The position and speed of the cleaning device are corrected based on the current error, the accumulated error and the error change rate, so that the cleaning device moves along the optimal cleaning path.

7. The method for sweeping the floor based on the environment map according to claim 1, characterized in that: The method further comprises: The environment map is updated in real time based on the use of an incremental SLAM algorithm, and the cleaning path is dynamically adjusted based on the updated environment map.

8. A sweeping device based on an environmental map, characterized in that: include: A map confirmation module, used to obtain environmental data and determine an environmental map based on the environmental data; A route confirmation module, used to determine the optimal cleaning path based on the environmental map; The cleaning module is used to control the cleaning device to clean according to the optimal cleaning path.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the sweeping method based on the environment map as described in any one of claims 1-7.

10. A terminal device, characterized in that: include: Processor and memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the steps of the sweeping method based on the environment map as described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Sweeper control method and device, equipment, storage medium and program product

    CN119279454A