WO2024001880A1 - Intelligent obstacle avoidance method and device, mowing robot, and storage medium - Google Patents

Intelligent obstacle avoidance method and device, mowing robot, and storage medium Download PDF

Info

Publication number
WO2024001880A1
WO2024001880A1 PCT/CN2023/101484 CN2023101484W WO2024001880A1 WO 2024001880 A1 WO2024001880 A1 WO 2024001880A1 CN 2023101484 W CN2023101484 W CN 2023101484W WO 2024001880 A1 WO2024001880 A1 WO 2024001880A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
obstacle
arc
lawn mowing
robot
Prior art date
Application number
PCT/CN2023/101484
Other languages
French (fr)
Chinese (zh)
Inventor
张伟夫
王宁
黄振昊
Original Assignee
松灵机器人(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 松灵机器人(深圳)有限公司 filed Critical 松灵机器人(深圳)有限公司
Publication of WO2024001880A1 publication Critical patent/WO2024001880A1/en

Links

Classifications

    • AHUMAN NECESSITIES
    • A01AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
    • A01DHARVESTING; MOWING
    • A01D34/00Mowers; Mowing apparatus of harvesters
    • A01D34/006Control or measuring arrangements
    • A01D34/008Control or measuring arrangements for automated or remotely controlled operation
    • AHUMAN NECESSITIES
    • A01AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
    • A01DHARVESTING; MOWING
    • A01D91/00Methods for harvesting agricultural products
    • A01D91/04Products growing above the soil
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0214Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas

Definitions

  • This application relates to the field of computer technology, and specifically to an intelligent obstacle avoidance method, device, lawn mowing robot and storage medium.
  • Embodiments of the present application provide an intelligent obstacle avoidance method, device, lawn mower robot, and storage medium, which can generate obstacle avoidance paths based on the adaptability of obstacles and improve the obstacle avoidance efficiency and flexibility of the lawn mower robot.
  • embodiments of the present application provide an intelligent obstacle avoidance method, including:
  • generating an arc path traveling along the current mowing direction includes:
  • an arc path traveling along the current mowing direction is generated.
  • activating the default working mode of the lawn mower robot includes:
  • the preset working mode of the lawn mowing robot is automatically turned on.
  • the characteristic information of the obstacle includes the horizontal length and/or angular range of the obstacle
  • a circular arc path traveling along the current mowing direction is generated.
  • generating a circular arc path traveling in the current mowing direction based on the arc parameter, arc length parameter and the initial path includes:
  • the initial arc is intersected with the initial path to generate a circular arc path traveling in the current mowing direction according to the intersection point.
  • generating an arc path along the current mowing direction based on the characteristic information of the obstacle and the initial path includes:
  • the angular range of the obstacle is divided into left deflection angles according to the orientation of the lawn mower robot. degree and right deflection angle;
  • a circular arc path traveling in the current mowing direction is generated according to the deflection direction.
  • controlling the lawn mowing robot to perform operations according to the arc path includes:
  • the lawn mowing robot is controlled to retreat to the starting point to perform operations according to the arc path.
  • the method further includes:
  • the lawn mowing robot is controlled to perform operations according to the second arc path.
  • an intelligent obstacle avoidance device including:
  • a judgment module used to judge whether there are obstacles in the initial path during the operation
  • a generation module configured to generate a circular arc path traveling in the current mowing direction when the judgment module determines yes, and control the lawn mowing robot to perform operations according to the circular arc path;
  • the judgment module and the generation module run repeatedly until all obstacles in the initial path are bypassed.
  • embodiments of the present application provide a lawn mowing robot, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the program, it implements the above Steps of intelligent obstacle avoidance method.
  • embodiments of the present application provide a storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the steps of the intelligent obstacle avoidance method as described above are implemented.
  • the intelligent obstacle avoidance method provided by the embodiment of the present application can turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode, and determines whether there are obstacles in the initial path during the operation. , if it exists, generate an arc traveling in the current mowing direction. path, and control the lawn mower robot to perform operations according to the arc path, and repeat the above steps until all obstacles in the initial path are bypassed.
  • the embodiments of the present application can adaptively generate obstacle avoidance paths and improve the obstacle avoidance efficiency of the lawn mowing robot. flexibility.
  • Figure 1 is a schematic scene diagram of the intelligent obstacle avoidance method provided by the embodiment of the present application.
  • Figure 2 is a schematic flow chart of an intelligent obstacle avoidance method provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of a route design provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of another route design provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of an arc path provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of another arc path provided by an embodiment of the present application.
  • Figure 7 is another schematic flow chart of the intelligent obstacle avoidance method provided by the embodiment of the present application.
  • Figure 8 is a schematic diagram of another arc path provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of yet another arc path provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of a second arc path provided by an embodiment of the present application.
  • Figure 11 is a schematic structural diagram of an intelligent obstacle avoidance device provided by an embodiment of the present application.
  • Figure 12 is another structural schematic diagram of an intelligent obstacle avoidance device provided by an embodiment of the present application.
  • Figure 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • connection can be used for either fixation or circuit connection.
  • first and second are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of this application, “plurality” means two or more, unless otherwise explicitly and specifically limited.
  • Embodiments of the present application provide an intelligent obstacle avoidance method, device, lawn mowing robot, and storage medium.
  • the intelligent obstacle avoidance device can be integrated in the microcontroller unit (MCU) of the lawn mowing robot, or in an intelligent terminal or server.
  • MCU is also called a single chip microcomputer (Single Chip Microcomputer) or a single chip microcomputer.
  • CPU Central Processing Unit
  • peripherals such as memory, counter (Timer), USB, analog-to-digital conversion/digital-to-analog conversion, UART, PLC, DMA, etc.
  • the interface forms a chip-level computer to perform different combinations of controls for different applications.
  • the lawn mowing robot can walk automatically to prevent collisions, automatically return to charge within the range, has safety detection and battery power detection, and has a certain climbing ability. It is especially suitable for lawn mowing and maintenance in home courtyards, public green spaces and other places. Its characteristics are: automatic Cut grass, clean grass clippings, automatically avoid rain, automatically charge, automatically avoid obstacles, compact appearance, electronic virtual fence, network control, etc.
  • the terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smart watch, etc., but is not limited to this. Terminals and servers can be connected directly or indirectly through wired or wireless communication methods.
  • the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud service or cloud database. , cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, this application Please make no restrictions here.
  • This application provides a lawn mowing system, including a lawn mowing robot 10, a server 20 and a user device 30 that have established communication connections with each other.
  • the user can control the lawn mowing robot 10 to start a preset working mode, such as land reclamation mode, through the user device 30 .
  • a variety of sensors can be integrated into the lawn mowing robot 10.
  • a rain sensor can be installed on the top of the lawn mowing robot 10 to detect whether it is raining, or on the side of the lawn mowing robot 10.
  • obstacles can be comprehensively detected through a variety of sensors.
  • the land reclamation mode can be automatically or manually turned on. It should be noted that in the land reclamation mode, the lawn mowing robot 10 only travels in a straight line, so the side wheels can be turned off in this mode. For ultrasonic sensors and infrared sensors, you only need to turn on the collision sensor directly in front to detect obstacles directly in front.
  • the lawn mowing robot 10 can perform lawn mowing operations according to different paths in different working modes.
  • the user can also control and adjust the action path or action speed of the lawn mowing robot 10 in real time through the user device 30 , or mowing range, etc.
  • the data corresponding to the lawn mowing operation can also be synchronized to the server 20 to facilitate viewing by the user.
  • the lawn mowing robot 10 turns on a preset working mode in response to a user instruction, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode.
  • the user instruction can be generated and sent through the user device 30, and during the operation, the lawn mowing robot 10 turns on the preset working mode.
  • the grass robot 10 determines whether there are obstacles in the initial path. If there are obstacles, it obtains the characteristic information of the obstacles, and generates an arc path traveling in the current mowing direction based on the characteristic information of the obstacles and the initial path. Finally, the lawn mowing robot 10, you can control the lawn mowing robot to work according to the arc path.
  • An intelligent obstacle avoidance method includes: turning on a preset working mode of a lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode, and determines whether there are obstacles in the initial path during the operation. If If exists, generate an arc path along the current mowing direction, and control the lawn mower robot to perform operations according to the arc path. Repeat the above steps until all obstacles in the initial path are bypassed.
  • Figure 2 is a schematic flow chart of an intelligent obstacle avoidance method provided by an embodiment of the present application.
  • the wisdom The specific process of obstacle avoidance methods can be as follows:
  • the lawn mowing robot may include multiple preset working modes, such as intelligent lawn mowing mode, normal lawn mowing mode, land reclamation and lawn mowing mode, etc.
  • the intelligent lawn mowing mode means that in this mode, the lawn mower robot can automatically detect the area to be cut in the current area and plan the action path of the lawn mower robot based on the detection results.
  • the lawn mowing robot can detect a grass area with a growth height greater than a preset height in the current area as an area to be cut. For example, in this embodiment, grass area 1 and grass area 2 are determined. If the height of the medium-growing grass is greater than 20CM, the grass area 1 and grass area 2 can be used as areas to be cut, and an action path is generated based on the positions of grass area 1 and grass area 2 as the initial path.
  • the normal mowing mode and the land reclamation mowing mode both mean that in the corresponding modes, the lawn mowing robot can mow the working area with predefined boundaries and plan its corresponding actions according to the working area. path.
  • the height of the grass in the reclamation mode is greater than the height of the grass in the ordinary mowing mode.
  • the ordinary mowing mode is turned on when the grass height is between 20CM and 60CM, and the reclamation and mowing mode is turned on when the grass height is greater than 60CM.
  • Grass mode As shown in Figure 4, when the lawn mower robot turns on the land reclamation and mowing mode, the lawn mower robot will generate an action path in all the current areas.
  • the action path can cover the entire current area, such as setting return according to the boundaries of the current area. point, and generate an arc-shaped action path based on the turning point as the initial path.
  • the lawn mowing operation can be carried out according to the initial path corresponding to the preset working mode.
  • the above-mentioned preset working mode can be set manually by the user, for example, through a user device connected to the lawn mowing robot.
  • the above-mentioned preset working mode can also be automatically selected by the lawn mowing robot according to the current scene. For example, if the current area has not been mowing for a long time, there may be more weeds growing in the area. In this case, You can turn on the land reclamation and mowing mode to mow the grass.
  • the time interval between the last time mowing in the current area and the current time can be determined based on historical mowing records.
  • the lawn mowing robot can automatically choose to turn on smart mowing. Grass mode; if the above time interval is not less than the preset time, the lawn mower robot can automatically choose to turn on the land reclamation and grass cutting mode.
  • the preset working mode can also be determined by the lawn mower robot based on the number of obstacles in the current area. and/or obstacle volume to select, such as taking an image corresponding to the current area through a camera, and then analyzing the number of obstacles and/or the volume of obstacles in the image.
  • the lawn mowing robot can automatically choose to turn on the intelligent mowing mode; when the number of obstacles exceeds the preset number and/or the volume of the obstacles exceeds the preset volume, the lawn mowing robot can automatically choose to turn on land reclamation. Grass mode.
  • step 103 determine whether there are obstacles in the initial path. If there are obstacles, perform step 103.
  • the lawn mowing robot while the lawn mowing robot is mowing the grass according to the above-mentioned initial path, it can also detect in real time whether it encounters obstacles on the current initial path. Specifically, this can be done through various sensors integrated on the lawn mowing robot.
  • the above-mentioned sensors may include at least one of the following: a collision sensor, a depth sensor, an ultrasonic sensor, and an infrared sensor.
  • various sensors installed on the lawn mowing robot can collect detection data in real time or at a fixed operating frequency and every preset time interval.
  • the specific type of detection data is determined by the type of sensor.
  • the detection data collected by the collision sensor The detection data is impact data
  • the detection data collected by the depth sensor is depth data
  • the detection data collected by the ultrasonic sensor is ultrasonic data
  • the detection data collected by the infrared sensor is infrared data, etc.
  • the detection of obstacles through the infrared sensor mainly uses infrared rays to aim at certain areas, and the infrared signal is emitted to the area in front of the lawn mowing robot through the transmitting system.
  • the sampler samples the emitted signal, which is used as a pulse signal for the counter to open the door and start the counter.
  • the clock oscillator effectively inputs the counting pulse like a counter.
  • the infrared echo reflected by the target acts on the photodetector and is converted into an electrical pulse signal through the amplifier. Amplify and enter the counter. As the door closing signal of the counter, the counter stops counting.
  • the number of clock pulses entered by the counter from opening the door to closing the door is calculated to obtain the distance of each point in the target area, and then preliminarily determines whether there are obstacle.
  • the lawn mowing robot if it encounters an obstacle during its operation, it can make a detour according to a pre-designed arc path.
  • the arc path can be a semicircle with a preset radius.
  • the obstacle By controlling the lawn mower robot to follow the semicircular path, the obstacle can be detoured and the original path can be returned to the initial path to continue the operation. .
  • the obstacle encountered by the lawn mowing robot is large, it may not have detoured around the obstacle after following the above arc path, then it can generate another arc path and continue to detour, and so on, until the obstacle is completely bypassed, as shown in Figure 6, and finally returns to the initial path to continue the operation after bypassing the obstacle.
  • the above-mentioned arc path can also be adaptively adjusted. For example, when an obstacle is detected on the initial path, the characteristic information of the obstacle can be further obtained, for example, by analyzing the detection data currently collected by each sensor. Data processing and analysis can restore the shape, outline, location and other information of obstacles in the current environment. Then the arc path is generated based on the above feature information.
  • the lawn mowing robot can obtain the depth information of the current scene using the triangulation principle through the visual sensor, and can reconstruct the three-dimensional shape and position of the surrounding objects, similar to the stereoscopic function of the human eye. , thus being able to determine the 3D information of obstacles detected in the space. That is to say, after the obstacle is initially detected, the position corresponding to the obstacle is determined, and then the position is further detected or scanned through the visual recognition system to obtain the characteristic information of the above obstacle. It is used to assist in judgment based on sensors and further confirm the characteristic information of obstacles to improve the accuracy of obstacle judgment.
  • the step of generating an arc path traveling along the current mowing direction may include: obtaining the characteristic information of the obstacle, and generating an arc path traveling along the current mowing direction based on the characteristic information of the obstacle and the initial path.
  • the MCU in a lawn mower robot can control the lawn mower robot to perform mowing operations based on the arc path; for another example, the server or user device can control the lawn mower robot to drive based on the arc path.
  • the lawn mowing robot performs mowing operations according to the arc path, and after completing the arc path, the lawn mowing robot is controlled to continue walking on the initial path and continue to detect obstacles.
  • the position of the lawn mower robot when encountering an obstacle is usually not designed as the starting point of the arc path, and the lawn mower robot often detects When it reaches an obstacle, it is already very close to the obstacle. Therefore, before controlling the lawn mower robot to perform operations according to the arc path, the lawn mower robot can also be controlled to retreat to the starting point of the arc path and then proceed along the arc path. . That is to say, the step of controlling the lawn mowing robot to perform operations according to the arc path may include: finding the starting point of the arc path on the initial path; controlling the lawn mowing robot to retreat to the starting point according to the arc path.
  • the arc path is used for operation.
  • the intelligent obstacle avoidance method provided by the embodiment of the present application can turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode, and determines the initial path during the operation. Whether there are obstacles, if so, generate an arc path along the current mowing direction, and control the lawn mower robot to work according to the arc path. Repeat the above steps until all obstacles in the initial path are bypassed.
  • the embodiments of the present application can adaptively generate obstacle avoidance paths and improve the obstacle avoidance efficiency of the lawn mowing robot. flexibility.
  • FIG. 7 is another schematic flowchart of the intelligent obstacle avoidance method provided by an embodiment of the present application.
  • the specific process of this intelligent obstacle avoidance method can be as follows:
  • the lawn mowing robot may include multiple working modes, such as intelligent lawn mowing mode, land reclamation and lawn mowing mode, etc. Specifically, it can be automatically selected based on the distribution of obstacles around the lawn mowing robot. For example, the lawn mowing robot is used as the center for detection, and it is judged whether the distribution range of the detected surrounding obstacles exceeds 270°. If it exceeds, it means that there are many obstacles nearby. , the land reclamation and mowing mode can be automatically turned on, and if it does not exceed, the intelligent lawn mowing mode can be turned on.
  • the above-mentioned land reclamation and mowing mode means that in this mode the lawn mowing robot can mow the entire current area
  • the intelligent lawn mowing mode means that in this mode the lawn mowing robot can automatically detect the grass to be cut in the current area. area and mow it.
  • the number of detected obstacles can also be The quantity is taken as the distribution range of obstacles relative to the lawn mowing robot.
  • the detection range of the above-mentioned detection obstacle can be determined by taking the lawn mower robot as the center of the circle and making a circle with a preset radius so that the circular area is used as the detection range.
  • the preset working mode of the lawn mowing robot is automatically turned on, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode.
  • the lawn mowing robot when the lawn mowing robot turns on the land reclamation and mowing mode, the lawn mowing robot will generate an action path in all the current areas. It is determined that the action path can cover the entire current area, such as setting return according to the boundaries of the current area. point, and generate an arc-shaped action path based on the turning point as the initial path.
  • step 204 determine whether there are obstacles in the initial path. If there are obstacles, perform step 205.
  • the lawn mowing robot while the lawn mowing robot is mowing according to the above-mentioned initial path, it can also detect in real time whether it encounters obstacles in the current path. Specifically, the detection can be carried out through various sensors integrated on the lawn mowing robot. For the specific detection process, reference may be made to the above description, which is not further limited in this embodiment.
  • the lawn mowing robot can continue to move and cut grass along the initial path. If there is an obstacle, continue to perform subsequent step 205.
  • the above-mentioned characteristic information may include the horizontal length and/or angular range of the obstacle.
  • the optimal arc sum can be calculated based on the characteristics.
  • the arc length is used to generate the final arc path. For example, for the small obstacles in Figure 5, arc paths corresponding to larger arcs and shorter arc lengths can be generated through calculation. For the larger obstacles in Figure 8, When there are obstacles, an arc path corresponding to a smaller arc and a longer arc length can be generated.
  • the arc path can be spliced with the initial path to form a complete path for the lawn mowing robot to travel.
  • the step of generating an arc path traveling along the current mowing direction based on the radian parameter, the arc length parameter and the initial path may include: determining an initial arc based on the radian parameter and the arc length parameter; The initial arc and The initial paths are intersected to generate an arc path traveling in the current mowing direction based on the intersection points.
  • the lawn mowing robot When the lawn mowing robot generates a circular arc path, it can also determine the deflection direction according to the obstacle, thereby generating a circular arc path deflected to the left or a circular arc path deflected to the right. Specifically, you can first divide the angular range of the obstacle into left deflection angle A and right deflection angle B according to the orientation of the lawn mower robot. When the left deflection angle A is greater than the right deflection angle B, you can choose to deflect to the right to generate Arc path allows faster obstacle avoidance.
  • the step of generating an arc path traveling along the current mowing direction may also include: dividing the angular range of the obstacle into a left deflection angle and a right deflection angle according to the orientation of the lawn mowing robot; The side deflection angle is compared with the right deflection angle to determine the deflection direction; an arc path traveling along the current mowing direction is generated according to the deflection direction.
  • step 208 When controlling the lawn mowing robot to perform operations according to the arc path, determine whether there is a second obstacle in the arc path. If there is, perform step 208.
  • the lawn mower robot can control the lawn mower robot to perform lawn mowing operations based on the arc path. During this process, if the lawn mowing robot detects the second obstacle again, it can continue to obtain the characteristic information of the second obstacle and generate the second arc path again based on the arc path. Please refer to Figure 10.
  • the lawn mowing robot can design arc paths with different arcs and arc lengths based on different obstacles. When a second obstacle is detected, the current position of the lawn mowing robot can also be used as the second arc path. , and place the end point of the second arc path on the initial path, so that the lawn mower robot can return to the initial path and complete mowing after completing the arc path and the second arc path.
  • the intelligent obstacle avoidance method can detect at least one obstacle around the lawn mowing robot to obtain the position information of the at least one obstacle, and determine the relative position of the at least one obstacle relative to the lawn mower based on the position information.
  • the distribution range of the robot When the distribution range exceeds the preset distribution range, the preset working mode of the lawn mowing robot is automatically turned on so that the lawn mowing robot can operate according to the initial path corresponding to the preset working mode and determine the initial path during the operation. Whether there is an obstacle, if so, calculate the radian parameter and arc length parameter based on the characteristic information of the obstacle.
  • arc path traveling in the current mowing direction.
  • the lawn mowing robot is controlled to perform operations, it is determined whether there is a second obstacle in the arc path. If there is a second obstacle, based on the characteristic information of the second obstacle, the initial path and the current position of the lawn mowing robot, a method is generated to drive in the current mowing direction. the second arc path, and the lawn mowing robot is controlled to perform operations according to the second arc path.
  • Embodiments of the present application can automatically turn on the preset working mode, detect obstacles in this mode, and generate arc paths for obstacle avoidance based on the characteristic information of the obstacles and the initial path. The avoidance can be generated according to the adaptability of the obstacles. obstacle path to improve the obstacle avoidance efficiency and flexibility of the lawn mower robot.
  • the embodiment of the present application also provides an intelligent obstacle avoidance device based on the above.
  • the meanings of the nouns are the same as in the above-mentioned intelligent obstacle avoidance method.
  • Figure 11 is a schematic structural diagram of an intelligent obstacle avoidance device provided by an embodiment of the present application.
  • the intelligent obstacle avoidance device may include:
  • the control module 301 is used to turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode;
  • the judgment module 302 is used to judge whether there are obstacles in the initial path during the operation;
  • the generation module 303 is configured to generate a circular arc path traveling in the current mowing direction when the judgment module 302 determines yes, and control the lawn mowing robot to perform operations according to the circular arc path;
  • the judgment module 302 and the generation module 303 are executed repeatedly until all obstacles in the initial path are bypassed.
  • control module 301 specifically includes:
  • the detection sub-module 3011 is used to detect at least one obstacle around the lawn mowing robot to obtain the position information of the at least one obstacle;
  • Determination sub-module 3012 configured to determine the distribution range of the at least one obstacle relative to the lawn mowing robot according to the position information
  • the starting sub-module 3013 is used to automatically turn on the preset working mode of the lawn mowing robot when the distribution range exceeds the preset distribution range.
  • the generation module 303 is specifically configured to obtain the characteristic information of the obstacle, and generate an arc path traveling along the current mowing direction according to the characteristic information of the obstacle and the initial path.
  • the characteristic information of the obstacle includes the horizontal length and/or Angle range
  • the generation module 303 may include:
  • Calculation sub-module 3031 used to calculate radian parameters and arc length parameters according to the horizontal length and/or angular range of the obstacle;
  • the generation sub-module 3032 is used to generate a circular arc path traveling along the current mowing direction according to the radian parameter, the arc length parameter and the initial path.
  • the generation sub-module 3032 is specifically configured to determine an initial arc according to the radian parameter and the arc length parameter, and intersect the initial arc with the initial path to generate a path along the current cut according to the intersection point. An arc path traveling in the direction of the grass.
  • the control module 301 turns on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode.
  • the judgment module 302 judges the initial path during the operation. Whether there is an obstacle? If so, the generation module 303 generates an arc path traveling along the current mowing direction, and controls the lawn mower robot to perform operations according to the arc path.
  • the above judgment module 302 and the generation module 303 are repeatedly run until the obstacle is bypassed. All obstacles in the initial path.
  • the embodiments of the present application can adaptively generate obstacle avoidance paths and improve the obstacle avoidance efficiency of the lawn mowing robot. flexibility.
  • the embodiment of the present application also provides a lawn mowing robot, as shown in Figure 13, which shows a schematic structural diagram of the lawn mowing robot involved in the embodiment of the present application. Specifically:
  • the lawn mowing robot may include a control module 501, a traveling mechanism 502, a cutting module 503, a power supply 504 and other components.
  • a control module 501 may control the traveling mechanism 502 and controls the cutting module 503 and other components.
  • the control module 501 is the control center of the lawn mowing robot.
  • the control module 501 may specifically include a central processing unit (CPU), memory, input/output ports, system bus, timer/counter, digital-to-analog converter and Components such as analog-to-digital converters, the CPU performs various functions of the lawn mowing robot and processes data by running or executing software programs and/or modules stored in the memory, and calling data stored in the memory; preferably, the CPU can Integrated application processor and modem processor, where the application processor mainly handles operating systems and application programs, etc., and the modem processor mainly handles wireless communications. It can be understood that the above modem processor may not be integrated into in the CPU.
  • the memory can be used to store software programs and modules, and the CPU executes various functional applications and data processing by running the software programs and modules stored in the memory.
  • the memory may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.;
  • the storage data area may store electronic files according to the electronic data. Data created by the use of the device, etc.
  • the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • the memory may also include a memory controller to provide the CPU with access to the memory.
  • the traveling mechanism 502 is electrically connected to the control module 501, and is used to respond to the control signal transmitted by the control module 501, adjust the traveling speed and direction of the lawn mower robot, and realize the self-moving function of the lawn mower robot.
  • the cutting module 503 is electrically connected to the control module 501, and is used to respond to the control signal transmitted by the control module, adjust the height and rotation speed of the cutting blade, and implement lawn mowing operations.
  • the power supply 504 can be logically connected to the control module 501 through the power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
  • the power supply 504 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
  • the lawn mowing robot may also include a communication module, a sensor module, a prompt module, etc., which will not be described again here.
  • the communication module is used to receive and send signals in the process of sending and receiving information. By establishing a communication connection with the user equipment, base station or server, it realizes signal sending and receiving with the user equipment, base station or server.
  • the sensor module is used to collect internal environmental information or external environmental information, and feeds the collected environmental data to the control module for decision-making, realizing the precise positioning and intelligent obstacle avoidance functions of the lawn mowing robot.
  • the sensors may include: ultrasonic sensors, infrared sensors, collision sensors, rain sensors, lidar sensors, inertial measurement units, wheel speedometers, image sensors, position sensors and other sensors, without limitation.
  • the prompt module is used to prompt the user about the current working status of the lawn mower robot.
  • the prompt module includes but is not limited to indicator lights, buzzers, etc.
  • a lawn mowing robot can remind the user of the current power status, motor working status, sensor working status, etc. through indicator lights.
  • the buzzer can be used to provide an alarm.
  • the processor in the control module 501 will load the executable files corresponding to the processes of one or more application programs into the memory according to the following instructions, and the processor will run the executable files stored in the memory. application to achieve various functions, as follows:
  • the lawn mowing robot can operate according to the initial path corresponding to the preset working mode.
  • it is judged whether there are obstacles in the initial path. If there are obstacles, generate a function along the current mowing direction. Drive the arc path, and control the lawn mower robot to perform operations according to the arc path. Repeat the above steps until all obstacles in the initial path are bypassed.
  • Embodiments of the present application can turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode. During the operation, it is judged whether there are obstacles in the initial path, and if so, generate Follow the arc path in the current mowing direction, and control the lawn mower robot to perform operations according to the arc path. Repeat the above steps until all obstacles in the initial path are bypassed.
  • the embodiments of the present application can adaptively generate obstacle avoidance paths and improve the obstacle avoidance efficiency of the lawn mowing robot. flexibility.
  • embodiments of the present application provide a storage medium in which multiple instructions are stored, and the instructions can be loaded by the processor to execute steps in any of the intelligent obstacle avoidance methods provided by the embodiments of the present application.
  • this command can perform the following steps:
  • the lawn mowing robot can operate according to the initial path corresponding to the preset working mode.
  • it is judged whether there are obstacles in the initial path. If there are obstacles, generate a function along the current mowing direction. Drive the arc path, and control the lawn mower robot to perform operations according to the arc path. Repeat the above steps until all obstacles in the initial path are bypassed.
  • the storage medium may include: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
  • the instructions stored in the storage medium can execute the steps in any intelligent obstacle avoidance method provided by the embodiments of the present application, it is possible to realize the capabilities of any intelligent obstacle avoidance method provided by the embodiments of the present application.
  • the beneficial effects achieved are detailed in the previous embodiments and will not be described again here.

Abstract

According to an intelligent obstacle avoidance method provided by the present application, a mowing robot can operate according to an initial path corresponding to a preset operation mode; when there is an obstacle in the initial path, an arc path running in a current mowing direction is generated, the mowing robot is controlled to operate according to the arc path, and the steps are repeatedly executed till all obstacles are bypassed. In embodiments of the present application, an obstacle avoidance path can be adaptively generated, and the obstacle avoidance efficiency and flexibility of the mowing robot are improved.

Description

智能避障方法、装置、割草机器人以及存储介质Intelligent obstacle avoidance method, device, lawn mowing robot and storage medium
本申请要求于2022年06月29日提交中国专利局、申请号为CN202210763666.7、申请名称为“智能避障方法、装置、割草机器人以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on June 29, 2022, with the application number CN202210763666.7 and the application name "Intelligent obstacle avoidance method, device, lawn mowing robot and storage medium", all of which The contents are incorporated into this application by reference.
技术领域Technical field
本申请涉及计算机技术领域,具体涉及一种智能避障方法、装置、割草机器人以及存储介质。This application relates to the field of computer technology, and specifically to an intelligent obstacle avoidance method, device, lawn mowing robot and storage medium.
背景技术Background technique
随着人们生活水平的不断提高,人们对休闲环境有了越来越高的要求,私人花园、公园、操场等场地成为了人们休闲娱乐的最佳场所,然而私人花园、公园、操场等草地需要不定期的进行修整,以保证美观。目前通常采用割草机器人来代替人工进行修整。With the continuous improvement of people's living standards, people have higher and higher requirements for leisure environment. Private gardens, parks, playgrounds and other venues have become the best places for people to relax and entertain. However, private gardens, parks, playgrounds and other grasslands need Renovate from time to time to ensure beautiful appearance. At present, lawn mowing robots are usually used to replace manual trimming.
然而割草机器人在工作中常常会遇到各种不同的障碍物,现有的割草机器人可以通过机器人上设置的识别装置进行障碍物检测,然后采用智能算法、可视图法、自由空间法、人工势场法等导航路径的规划方法进行避障,但是这种方式只要检测到障碍物之后,都是按照预设路径进行统一避障处理,没有根据具体障碍物进行适应性调整,因此无法适应不同的使用场景,灵活性较差并且避障效率不高。However, lawn mowing robots often encounter various obstacles during their work. Existing lawn mowing robots can detect obstacles through the identification device installed on the robot, and then use intelligent algorithms, visual graphics methods, free space methods, Navigation path planning methods such as the artificial potential field method are used to avoid obstacles. However, as long as an obstacle is detected in this method, obstacle avoidance is performed uniformly according to the preset path. There is no adaptive adjustment according to the specific obstacle, so it cannot be adapted. Different usage scenarios, poor flexibility and low obstacle avoidance efficiency.
发明内容Contents of the invention
本申请实施例提供一种智能避障方法、装置、割草机器人以及存储介质,可以根据障碍物适应性的生成避障路径,提高割草机器人的避障效率以及灵活性。Embodiments of the present application provide an intelligent obstacle avoidance method, device, lawn mower robot, and storage medium, which can generate obstacle avoidance paths based on the adaptability of obstacles and improve the obstacle avoidance efficiency and flexibility of the lawn mower robot.
第一方面,本申请实施例提供了一种智能避障方法,包括:In the first aspect, embodiments of the present application provide an intelligent obstacle avoidance method, including:
S11、开启割草机器人的预设工作模式,以使所述割草机器人根据所述预设工作模式对应的初始路径进行作业;S11. Turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode;
S12、在作业过程中判断所述初始路径当中是否存在障碍物;S12. Determine whether there are obstacles in the initial path during the operation;
S13、若存在,则生成沿当前割草方向行驶的圆弧路径,并根据所述圆弧 路径控制所述割草机器人进行作业;S13. If it exists, generate an arc path traveling in the current mowing direction, and use the arc path to The path controls the lawn mowing robot to perform operations;
S14、重复执行所述步骤S12和S13,直至绕开所述初始路径中的所有障碍物。S14. Repeat steps S12 and S13 until all obstacles in the initial path are bypassed.
在一实施例中,所述生成沿当前割草方向行驶的圆弧路径,包括:In one embodiment, generating an arc path traveling along the current mowing direction includes:
获取所述障碍物的特征信息;Obtain characteristic information of the obstacle;
根据所述障碍物的特征信息以及所述初始路径,生成沿当前割草方向行驶的圆弧路径。According to the characteristic information of the obstacle and the initial path, an arc path traveling along the current mowing direction is generated.
在一实施例中,所述开启割草机器人的预设工作模式,包括:In one embodiment, activating the default working mode of the lawn mower robot includes:
对所述割草机器人周围的至少一个障碍物进行检测,以获取所述至少一个障碍物的位置信息;Detect at least one obstacle around the lawn mowing robot to obtain position information of the at least one obstacle;
根据所述位置信息确定所述至少一个障碍物相对于所述割草机器人的分布范围;Determine the distribution range of the at least one obstacle relative to the lawn mowing robot based on the position information;
当所述分布范围超出预设分布范围时,自动开启所述割草机器人的预设工作模式。When the distribution range exceeds the preset distribution range, the preset working mode of the lawn mowing robot is automatically turned on.
在一实施例中,所述障碍物的特征信息包括所述障碍物的水平长度和/或角度范围;In one embodiment, the characteristic information of the obstacle includes the horizontal length and/or angular range of the obstacle;
所述根据所述障碍物的特征信息以及所述初始路径,生成沿当前割草方向行驶的圆弧路径,包括:Generating an arc path traveling in the current mowing direction based on the characteristic information of the obstacle and the initial path includes:
根据所述障碍物的水平长度和/或角度范围计算弧度参数和弧长参数;Calculate radian parameters and arc length parameters based on the horizontal length and/or angular range of the obstacle;
根据所述弧度参数、弧长参数以及所述初始路径,生成沿当前割草方向行驶的圆弧路径。According to the arc parameter, the arc length parameter and the initial path, a circular arc path traveling along the current mowing direction is generated.
在一实施例中,所述根据所述弧度参数、弧长参数以及所述初始路径,生成沿当前割草方向行驶的圆弧路径,包括:In one embodiment, generating a circular arc path traveling in the current mowing direction based on the arc parameter, arc length parameter and the initial path includes:
根据所述弧度参数和弧长参数确定初始圆弧;Determine the initial arc according to the radian parameter and arc length parameter;
将所述初始圆弧与所述初始路径进行交叉,以根据交叉点生成沿当前割草方向行驶的圆弧路径。The initial arc is intersected with the initial path to generate a circular arc path traveling in the current mowing direction according to the intersection point.
在一实施例中,所述根据所述障碍物的特征信息以及所述初始路径,生成沿当前割草方向行驶的圆弧路径,包括:In one embodiment, generating an arc path along the current mowing direction based on the characteristic information of the obstacle and the initial path includes:
将所述障碍物的角度范围按照所述割草机器人的朝向划分为左侧偏转角 度和右侧偏转角度;The angular range of the obstacle is divided into left deflection angles according to the orientation of the lawn mower robot. degree and right deflection angle;
将所述左侧偏转角度和右侧偏转角度进行对比,以确定偏转方向;Compare the left deflection angle and the right deflection angle to determine the deflection direction;
按照所述偏转方向生成沿当前割草方向行驶的圆弧路径。A circular arc path traveling in the current mowing direction is generated according to the deflection direction.
在一实施例中,所述根据所述圆弧路径控制所述割草机器人进行作业,包括:In one embodiment, controlling the lawn mowing robot to perform operations according to the arc path includes:
查找所述圆弧路径在所述初始路径上的起点;Find the starting point of the arc path on the initial path;
控制所述割草机器人后退至所述起点,以根据所述圆弧路径进行作业。The lawn mowing robot is controlled to retreat to the starting point to perform operations according to the arc path.
在一实施例中,所述方法还包括:In one embodiment, the method further includes:
根据所述圆弧路径控制所述割草机器人进行作业时,判断所述圆弧路径当中是否存在第二障碍物;When controlling the lawn mowing robot to perform operations according to the arc path, determine whether there is a second obstacle in the arc path;
根据所述第二障碍物的特征信息、所述初始路径以及所述割草机器人的当前位置,生成沿当前割草方向行驶的第二圆弧路径;Generate a second arc path traveling along the current mowing direction according to the characteristic information of the second obstacle, the initial path and the current position of the lawn mowing robot;
根据所述第二圆弧路径控制所述割草机器人进行作业。The lawn mowing robot is controlled to perform operations according to the second arc path.
第二方面,本申请实施例提供了一种智能避障装置,包括:In the second aspect, embodiments of the present application provide an intelligent obstacle avoidance device, including:
控制模块,用于开启割草机器人的预设工作模式,以使所述割草机器人根据所述预设工作模式对应的初始路径进行作业;A control module for turning on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode;
判断模块,用于在作业过程中判断所述初始路径当中是否存在障碍物;A judgment module used to judge whether there are obstacles in the initial path during the operation;
生成模块,用于当所述判断模块判断为是时,生成沿当前割草方向行驶的圆弧路径,并根据所述圆弧路径控制所述割草机器人进行作业;A generation module, configured to generate a circular arc path traveling in the current mowing direction when the judgment module determines yes, and control the lawn mowing robot to perform operations according to the circular arc path;
所述判断模块和生成模块重复运行,直至绕开所述初始路径中的所有障碍物。The judgment module and the generation module run repeatedly until all obstacles in the initial path are bypassed.
第三方面,本申请实施例提供了一种割草机器人,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上所述智能避障方法的步骤。In a third aspect, embodiments of the present application provide a lawn mowing robot, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the above Steps of intelligent obstacle avoidance method.
第四方面,本申请实施例提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述智能避障方法的步骤。In a fourth aspect, embodiments of the present application provide a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the intelligent obstacle avoidance method as described above are implemented.
本申请实施例提供的智能避障方法可以开启割草机器人的预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业,在作业过程中判断初始路径当中是否存在障碍物,若存在,则生成沿当前割草方向行驶的圆弧 路径,并根据圆弧路径控制割草机器人进行作业,重复执行上述步骤,直至绕开初始路径中的所有障碍物。本申请实施例通过在预设工作模式下检测障碍物,并在检测到障碍物后生成用于避障的圆弧路径,可以适应性的生成避障路径,提高割草机器人的避障效率以及灵活性。The intelligent obstacle avoidance method provided by the embodiment of the present application can turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode, and determines whether there are obstacles in the initial path during the operation. , if it exists, generate an arc traveling in the current mowing direction. path, and control the lawn mower robot to perform operations according to the arc path, and repeat the above steps until all obstacles in the initial path are bypassed. By detecting obstacles in a preset working mode and generating arc paths for obstacle avoidance after detecting obstacles, the embodiments of the present application can adaptively generate obstacle avoidance paths and improve the obstacle avoidance efficiency of the lawn mowing robot. flexibility.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1是本申请实施例提供的智能避障方法的场景示意图;Figure 1 is a schematic scene diagram of the intelligent obstacle avoidance method provided by the embodiment of the present application;
图2是本申请实施例提供的智能避障方法的一种流程示意图;Figure 2 is a schematic flow chart of an intelligent obstacle avoidance method provided by an embodiment of the present application;
图3是本申请实施例提供的一种路线设计示意图;Figure 3 is a schematic diagram of a route design provided by an embodiment of the present application;
图4是本申请实施例提供的另一种路线设计示意图;Figure 4 is a schematic diagram of another route design provided by an embodiment of the present application;
图5是本申请实施例提供的一种圆弧路径示意图;Figure 5 is a schematic diagram of an arc path provided by an embodiment of the present application;
图6是本申请实施例提供的另一种圆弧路径示意图;Figure 6 is a schematic diagram of another arc path provided by an embodiment of the present application;
图7是本申请实施例提供的智能避障方法的另一种流程示意图;Figure 7 is another schematic flow chart of the intelligent obstacle avoidance method provided by the embodiment of the present application;
图8是本申请实施例提供的又一种圆弧路径示意图;Figure 8 is a schematic diagram of another arc path provided by an embodiment of the present application;
图9是本申请实施例提供的再一种圆弧路径示意图;Figure 9 is a schematic diagram of yet another arc path provided by an embodiment of the present application;
图10是本申请实施例提供的一种第二圆弧路径示意图;Figure 10 is a schematic diagram of a second arc path provided by an embodiment of the present application;
图11是本申请实施例提供的智能避障装置的一种结构示意图;Figure 11 is a schematic structural diagram of an intelligent obstacle avoidance device provided by an embodiment of the present application;
图12是本申请实施例提供的智能避障装置的另一种结构示意图;Figure 12 is another structural schematic diagram of an intelligent obstacle avoidance device provided by an embodiment of the present application;
图13是本申请实施例提供的电子设备的结构示意图。Figure 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts fall within the scope of protection of this application.
需要说明的是,当元件被称为“固定于”或“设置于”另一个元件,它可以直 接在另一个元件上或者间接在该另一个元件上。当一个元件被称为是“连接于”另一个元件,它可以是直接连接到另一个元件或间接连接至该另一个元件上。另外,连接既可以是用于固定作用也可以是用于电路连通作用。It should be noted that when an element is referred to as being "fixed to" or "disposed to" another element, it can directly Connected to another component or indirectly connected to the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, the connection can be used for either fixation or circuit connection.
需要理解的是,术语“长度”、“宽度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明实施例和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。It should be understood that the terms "length", "width", "top", "bottom", "front", "back", "left", "right", "vertical", "horizontal", "top" The orientations or positional relationships indicated by "bottom", "inner", "outside", etc. are based on the orientations or positional relationships shown in the drawings. They are only for convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply the following. It is intended that devices or elements must have a specific orientation, be constructed and operate in a specific orientation and therefore are not to be construed as limitations of the invention.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多该特征。在本申请实施例的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of this application, "plurality" means two or more, unless otherwise explicitly and specifically limited.
本申请实施例提供一种智能避障方法、装置、割草机器人和存储介质。Embodiments of the present application provide an intelligent obstacle avoidance method, device, lawn mowing robot, and storage medium.
其中,该智能避障装置具体可以集成在割草机器人的微控制单元(Microcontroller Unit,MCU)中,还可以集成在智能终端或服务器中,MCU又称单片微型计算机(Single Chip Microcomputer)或者单片机,是把中央处理器(Central Process Unit,CPU)的频率与规格做适当缩减,并将内存(memory)、计数器(Timer)、USB、模数转换/数模转换、UART、PLC、DMA等周边接口,形成芯片级的计算机,为不同的应用场合做不同组合控制。割草机器人可以自动行走,防止碰撞,范围之内自动返回充电,具备安全检测和电池电量检测,具备一定爬坡能力,尤其适合家庭庭院、公共绿地等场所进行草坪修剪维护,其特点是:自动割草、清理草屑、自动避雨、自动充电、自动躲避障碍物、外形小巧、电子虚拟篱笆、网络控制等。Among them, the intelligent obstacle avoidance device can be integrated in the microcontroller unit (MCU) of the lawn mowing robot, or in an intelligent terminal or server. MCU is also called a single chip microcomputer (Single Chip Microcomputer) or a single chip microcomputer. , which is to appropriately reduce the frequency and specifications of the Central Processing Unit (CPU), and integrate peripherals such as memory, counter (Timer), USB, analog-to-digital conversion/digital-to-analog conversion, UART, PLC, DMA, etc. The interface forms a chip-level computer to perform different combinations of controls for different applications. The lawn mowing robot can walk automatically to prevent collisions, automatically return to charge within the range, has safety detection and battery power detection, and has a certain climbing ability. It is especially suitable for lawn mowing and maintenance in home courtyards, public green spaces and other places. Its characteristics are: automatic Cut grass, clean grass clippings, automatically avoid rain, automatically charge, automatically avoid obstacles, compact appearance, electronic virtual fence, network control, etc.
终端可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表等,但并不局限于此。终端以及服务器可以通过有线或无线通信方式进行直接或间接地连接,服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器,本申 请在此不做限制。The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smart watch, etc., but is not limited to this. Terminals and servers can be connected directly or indirectly through wired or wireless communication methods. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud service or cloud database. , cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, this application Please make no restrictions here.
例如,请参阅图1,本申请提供一种割草系统,包括相互之间建立有通信连接的割草机器人10、服务器20以及用户设备30。用户可以通过用户设备30控制割草机器人10开启预设工作模式,比如开荒模式。具体的,在本申请实施例中,割草机器人10当中可以集成多种传感器,比如在割草机器人10的顶部可以设置雨水传感器以检测当前是否下雨,还可以在割草机器人10的侧边设置侧向超声波传感器和红外线传感器,以及在割草机器人10的四周设置碰撞传感器,通过多种传感器可以综合对障碍物进行检测。当检测到割草机器人10周围障碍物较多时就可以自动或手动开启开荒模式,需要说明的是,在开荒模式下割草机器人10仅沿直线进行行进,因此在该模式下可以关闭侧边的超声波传感器以及红外传感器,仅开启正前方的碰撞传感器对正前方的障碍物进行检测即可。For example, please refer to Figure 1. This application provides a lawn mowing system, including a lawn mowing robot 10, a server 20 and a user device 30 that have established communication connections with each other. The user can control the lawn mowing robot 10 to start a preset working mode, such as land reclamation mode, through the user device 30 . Specifically, in the embodiment of the present application, a variety of sensors can be integrated into the lawn mowing robot 10. For example, a rain sensor can be installed on the top of the lawn mowing robot 10 to detect whether it is raining, or on the side of the lawn mowing robot 10. By setting up lateral ultrasonic sensors and infrared sensors, and setting up collision sensors around the lawn mowing robot 10, obstacles can be comprehensively detected through a variety of sensors. When it is detected that there are many obstacles around the lawn mowing robot 10, the land reclamation mode can be automatically or manually turned on. It should be noted that in the land reclamation mode, the lawn mowing robot 10 only travels in a straight line, so the side wheels can be turned off in this mode. For ultrasonic sensors and infrared sensors, you only need to turn on the collision sensor directly in front to detect obstacles directly in front.
其中,在不同的工作模式下割草机器人10可按照不同的路径进行割草作业,在进行作业的过程中,用户也可以通过用户设备30实时控制调整割草机器人10的行动路径,或者行动速度,或者割草范围等等。在作业完成后,还可以将该次割草作业对应的数据同步至服务器20中,从而方便用户进行查看。Among them, the lawn mowing robot 10 can perform lawn mowing operations according to different paths in different working modes. During the operation, the user can also control and adjust the action path or action speed of the lawn mowing robot 10 in real time through the user device 30 , or mowing range, etc. After the operation is completed, the data corresponding to the lawn mowing operation can also be synchronized to the server 20 to facilitate viewing by the user.
比如,割草机器人10响应用户指令开启预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业,其中用户指令可以通过用户设备30进行生成并发送,在作业过程中割草机器人10判断初始路径当中是否存在障碍物,若存在,则获取障碍物的特征信息,并根据障碍物的特征信息以及初始路径,生成沿当前割草方向行驶的圆弧路径,最后割草机器人10便可以根据圆弧路径控制割草机器人进行作业。For example, the lawn mowing robot 10 turns on a preset working mode in response to a user instruction, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode. The user instruction can be generated and sent through the user device 30, and during the operation, the lawn mowing robot 10 turns on the preset working mode. The grass robot 10 determines whether there are obstacles in the initial path. If there are obstacles, it obtains the characteristic information of the obstacles, and generates an arc path traveling in the current mowing direction based on the characteristic information of the obstacles and the initial path. Finally, the lawn mowing robot 10, you can control the lawn mowing robot to work according to the arc path.
以下分别进行详细说明。需说明的是,以下实施例的描述顺序不作为对实施例优先顺序的限定。Each is explained in detail below. It should be noted that the description order of the following embodiments is not used to limit the priority order of the embodiments.
一种智能避障方法,包括:开启割草机器人的预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业,在作业过程中判断初始路径当中是否存在障碍物,若存在,则生成沿当前割草方向行驶的圆弧路径,并根据圆弧路径控制割草机器人进行作业,重复执行上述步骤,直至绕开初始路径中的所有障碍物。An intelligent obstacle avoidance method includes: turning on a preset working mode of a lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode, and determines whether there are obstacles in the initial path during the operation. If If exists, generate an arc path along the current mowing direction, and control the lawn mower robot to perform operations according to the arc path. Repeat the above steps until all obstacles in the initial path are bypassed.
请参阅图2,图2为本申请实施例提供的智能避障方法的流程示意图。该智 能避障方法的具体流程可以如下:Please refer to Figure 2, which is a schematic flow chart of an intelligent obstacle avoidance method provided by an embodiment of the present application. The wisdom The specific process of obstacle avoidance methods can be as follows:
101、开启割草机器人的预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业。101. Turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode.
在一实施例中,割草机器人可以包括多种预设工作模式,比如智能割草模式、普通割草模式、开荒割草模式等。其中,智能割草模式指的是在该模式下割草机器人可以自动检测当前区域内的待割草区域,并根据检测结果规划割草机器人的行动路径。具体的,如图3所示,割草机器人可以在当前区域内检测生长高度大于预设高度的草地区域,以作为待割草区域,比如在该实施例中,判断草地区域1和草地区域2中生长的草的高度大于20CM,就可以将该草地区域1和草地区域2作为待割草区域,并根据上述草地区域1和草地区域2的位置生成行动路径以作为初始路径。In one embodiment, the lawn mowing robot may include multiple preset working modes, such as intelligent lawn mowing mode, normal lawn mowing mode, land reclamation and lawn mowing mode, etc. Among them, the intelligent lawn mowing mode means that in this mode, the lawn mower robot can automatically detect the area to be cut in the current area and plan the action path of the lawn mower robot based on the detection results. Specifically, as shown in Figure 3, the lawn mowing robot can detect a grass area with a growth height greater than a preset height in the current area as an area to be cut. For example, in this embodiment, grass area 1 and grass area 2 are determined. If the height of the medium-growing grass is greater than 20CM, the grass area 1 and grass area 2 can be used as areas to be cut, and an action path is generated based on the positions of grass area 1 and grass area 2 as the initial path.
在一实施例中,普通割草模式和开荒割草模式均指的是在该相应模式下割草机器人可以对预先圈定好边界的作业区域进行割草,并根据该作业区域规划其相应的行动路径。需要说明的是,开荒模式下草的高度大于普通割草模式下的草的高度,例如,在草的高度为20CM至60CM之间时开启普通割草模式,在草的高度大于60CM时开启开荒割草模式。如图4所示,当割草机器人开启开荒割草模式后,割草机器人会在全部的当前区域内生成行动路径,已确定该行动路径可以覆盖全部当前区域,比如根据当前区域的边界设置折返点,并依据折返点生成弓形行动路径,以作为初始路径。在确定割草机器人的预设工作模式后,便可以根据该预设工作模式对应的初始路径进行割草作业。In one embodiment, the normal mowing mode and the land reclamation mowing mode both mean that in the corresponding modes, the lawn mowing robot can mow the working area with predefined boundaries and plan its corresponding actions according to the working area. path. It should be noted that the height of the grass in the reclamation mode is greater than the height of the grass in the ordinary mowing mode. For example, the ordinary mowing mode is turned on when the grass height is between 20CM and 60CM, and the reclamation and mowing mode is turned on when the grass height is greater than 60CM. Grass mode. As shown in Figure 4, when the lawn mower robot turns on the land reclamation and mowing mode, the lawn mower robot will generate an action path in all the current areas. It has been determined that the action path can cover the entire current area, such as setting return according to the boundaries of the current area. point, and generate an arc-shaped action path based on the turning point as the initial path. After the preset working mode of the lawn mowing robot is determined, the lawn mowing operation can be carried out according to the initial path corresponding to the preset working mode.
其中,上述预设工作模式可以由用户手动进行设置,比如通过与割草机器人连接的用户设备进行设置。在其他实施例中,上述预设工作模式还可以由割草机器人根据当前场景自动选择,比如若当前区域较长时间未进行割草时,该片区域就可能生长较多杂草,此时就可以开启开荒割草模式进行割草。具体的,可以根据历史割草记录判断当前区域上次进行割草时与当前时间的时间间隔,若上述时间间隔小于预设时长(比如为10天),割草机器人就可以自动选择开启智能割草模式;若上述时间间隔不小于预设时长,割草机器人就可以自动选择开启开荒割草模式。Among them, the above-mentioned preset working mode can be set manually by the user, for example, through a user device connected to the lawn mowing robot. In other embodiments, the above-mentioned preset working mode can also be automatically selected by the lawn mowing robot according to the current scene. For example, if the current area has not been mowing for a long time, there may be more weeds growing in the area. In this case, You can turn on the land reclamation and mowing mode to mow the grass. Specifically, the time interval between the last time mowing in the current area and the current time can be determined based on historical mowing records. If the above time interval is less than the preset time (for example, 10 days), the lawn mowing robot can automatically choose to turn on smart mowing. Grass mode; if the above time interval is not less than the preset time, the lawn mower robot can automatically choose to turn on the land reclamation and grass cutting mode.
可选地,预设工作模式还可以由割草机器人根据当前区域内的障碍物数量 和/或障碍物体积进行选择,比如通过摄像头拍摄当前区域对应的图像,然后分析该图像当中的障碍物数量和/或障碍物体积,当障碍物数量不超过预设数量和/或障碍物体积不超过预设体积时,割草机器人就可以自动选择开启智能割草模式;当障碍物数量超过预设数量和/或障碍物体积超过预设体积时,割草机器人就可以自动选择开启开荒割草模式。Optionally, the preset working mode can also be determined by the lawn mower robot based on the number of obstacles in the current area. and/or obstacle volume to select, such as taking an image corresponding to the current area through a camera, and then analyzing the number of obstacles and/or the volume of obstacles in the image. When the number of obstacles does not exceed the preset number and/or the volume of obstacles, When the volume does not exceed the preset volume, the lawn mowing robot can automatically choose to turn on the intelligent mowing mode; when the number of obstacles exceeds the preset number and/or the volume of the obstacles exceeds the preset volume, the lawn mowing robot can automatically choose to turn on land reclamation. Grass mode.
102、在作业过程中判断初始路径当中是否存在障碍物,若存在,则执行步骤103。102. During the operation, determine whether there are obstacles in the initial path. If there are obstacles, perform step 103.
在一实施例中,割草机器人在根据上述初始路径行进割草的过程中,还可以实时检测当前的初始路径中是否遇到障碍物,具体可以通过割草机器人上集成的各种传感器来进行检测,上述传感器可以包括以下至少一种:碰撞传感器、深度传感器、超声波传感器以及红外传感器。In one embodiment, while the lawn mowing robot is mowing the grass according to the above-mentioned initial path, it can also detect in real time whether it encounters obstacles on the current initial path. Specifically, this can be done through various sensors integrated on the lawn mowing robot. For detection, the above-mentioned sensors may include at least one of the following: a collision sensor, a depth sensor, an ultrasonic sensor, and an infrared sensor.
具体的,设置于割草机器人的各种传感器开启之后可以实时或以固定工作频率、每间隔预设时间采集一次检测数据,检测数据的具体类型由传感器的类型来决定,例如,碰撞传感器采集的检测数据为撞击数据,深度传感器采集的检测数据为深度数据,超声波传感器采集的检测数据为超声波数据,红外传感器采集的检测数据为红外线数据等。Specifically, after being turned on, various sensors installed on the lawn mowing robot can collect detection data in real time or at a fixed operating frequency and every preset time interval. The specific type of detection data is determined by the type of sensor. For example, the detection data collected by the collision sensor The detection data is impact data, the detection data collected by the depth sensor is depth data, the detection data collected by the ultrasonic sensor is ultrasonic data, the detection data collected by the infrared sensor is infrared data, etc.
在一实施例中,以红外传感器为例进行举例说明,通过红外传感器进行障碍物的检测主要是借助红外线的对部分区域进行瞄准,通过发射系统,向割草机器人前方区域发射红外信号,同时,采样器采样发射信号,作为计数器开门的脉冲信号,启动计数器,时钟振荡器像计数器有效的输入计数脉冲,由目标反射回来的红外线回波作用在光电探测器上,转变为电脉冲信号,经过放大器放大,进入计数器,作为计数器的关门信号,计数器停止计数,计数器从开门到关门期间,所进入的时钟脉冲个数,经过运算得到目标区域中各个点的距离,进而初步判断该部分区域中是否存在障碍物。可选地,还可以设置传感器的检测范围,比如在割草机器人前方1M的范围内通过传感器来检测是否存在障碍物,若不存在,割草机器人就可以继续按照初始路径进行行进割草,若存在,则继续执行后续步骤103。In one embodiment, taking an infrared sensor as an example, the detection of obstacles through the infrared sensor mainly uses infrared rays to aim at certain areas, and the infrared signal is emitted to the area in front of the lawn mowing robot through the transmitting system. At the same time, The sampler samples the emitted signal, which is used as a pulse signal for the counter to open the door and start the counter. The clock oscillator effectively inputs the counting pulse like a counter. The infrared echo reflected by the target acts on the photodetector and is converted into an electrical pulse signal through the amplifier. Amplify and enter the counter. As the door closing signal of the counter, the counter stops counting. The number of clock pulses entered by the counter from opening the door to closing the door is calculated to obtain the distance of each point in the target area, and then preliminarily determines whether there are obstacle. Optionally, you can also set the detection range of the sensor. For example, use the sensor to detect whether there is an obstacle within 1M in front of the lawn mower robot. If there is no obstacle, the lawn mower robot can continue to mow the grass along the initial path. If If exists, proceed to subsequent step 103.
103、生成沿当前割草方向行驶的圆弧路径,并根据圆弧路径控制割草机器人进行作业。 103. Generate an arc path traveling along the current mowing direction, and control the lawn mower robot to perform operations according to the arc path.
在一实施例中,在割草机器人作业过程中若遇到障碍物,就可以按照预先设计的圆弧路径进行绕行。举例来说,请参阅图5,该圆弧路径可以为预设半径的半圆,通过控制割草机器人按照该半圆路径行进,即可对障碍物进行绕行并在绕行后回归初始路径继续作业。可选地,考虑到在实际应用中,若割草机器人遇到的障碍物尺寸较大,就可能在按照上述圆弧路径行进完成后,仍未对障碍物进行绕行,则可以再次生成一个圆弧路径并继续进行绕行,以此类推,直至完全绕开障碍物,如图6所示,并最终在绕开该障碍物后回归初始路径继续作业。In one embodiment, if the lawn mowing robot encounters an obstacle during its operation, it can make a detour according to a pre-designed arc path. For example, please refer to Figure 5. The arc path can be a semicircle with a preset radius. By controlling the lawn mower robot to follow the semicircular path, the obstacle can be detoured and the original path can be returned to the initial path to continue the operation. . Optionally, considering that in actual applications, if the obstacle encountered by the lawn mowing robot is large, it may not have detoured around the obstacle after following the above arc path, then it can generate another arc path and continue to detour, and so on, until the obstacle is completely bypassed, as shown in Figure 6, and finally returns to the initial path to continue the operation after bypassing the obstacle.
在一实施例中,上述圆弧路径还可以进行适应性调整,比如当检测到初始路径上存在障碍物时,可以进一步获取该障碍物的特征信息,比如通过对各个传感器当前采集的检测数据进行数据处理和分析,即可还原出当前环境中障碍物的形状、轮廓、位置等信息。然后再根据上述特征信息来生成圆弧路径。In one embodiment, the above-mentioned arc path can also be adaptively adjusted. For example, when an obstacle is detected on the initial path, the characteristic information of the obstacle can be further obtained, for example, by analyzing the detection data currently collected by each sensor. Data processing and analysis can restore the shape, outline, location and other information of obstacles in the current environment. Then the arc path is generated based on the above feature information.
在一实施例中,在初步检测到障碍物后,割草机器人可以通过视觉传感器利用三角测量原理获得当前场景的深度信息,并且可以重建周围物体的三维形状和位置,类似人眼的体视功能,因而能够确定空间中检测得到的障碍物的3D信息。也就是说在初步检测到障碍物之后,并确定该障碍物对应的位置,然后通过视觉识别系统再次对该位置进行进一步的检测或扫描,进而得到上述障碍物的特征信息。用于在传感器的基础上进行辅助判断,并且进一步对障碍物的特征信息进行确认,提高障碍物判断的准确性。In one embodiment, after initially detecting an obstacle, the lawn mowing robot can obtain the depth information of the current scene using the triangulation principle through the visual sensor, and can reconstruct the three-dimensional shape and position of the surrounding objects, similar to the stereoscopic function of the human eye. , thus being able to determine the 3D information of obstacles detected in the space. That is to say, after the obstacle is initially detected, the position corresponding to the obstacle is determined, and then the position is further detected or scanned through the visual recognition system to obtain the characteristic information of the above obstacle. It is used to assist in judgment based on sensors and further confirm the characteristic information of obstacles to improve the accuracy of obstacle judgment.
在获取到障碍物的特征信息后,还可以结合初始路径生成沿当前割草方向行驶的圆弧路径,比如,在检测到初始路径上存在障碍物后,便可以结合该障碍物的尺寸、体积、面积以及高度等特征信息生成首尾均位于初始路径上的圆弧路径,从而使得割草机器人避开该障碍物并在避开后继续沿初始路径进行行进作业。因此生成沿当前割草方向行驶的圆弧路径的步骤可以包括:获取障碍物的特征信息,根据障碍物的特征信息以及初始路径,生成沿当前割草方向行驶的圆弧路径。After obtaining the characteristic information of the obstacle, you can also combine it with the initial path to generate an arc path traveling in the current mowing direction. For example, after detecting the presence of an obstacle on the initial path, you can combine the size and volume of the obstacle. , area, height and other characteristic information to generate an arc path with the beginning and end located on the initial path, so that the lawn mowing robot can avoid the obstacle and continue to move along the initial path after avoiding it. Therefore, the step of generating an arc path traveling along the current mowing direction may include: obtaining the characteristic information of the obstacle, and generating an arc path traveling along the current mowing direction based on the characteristic information of the obstacle and the initial path.
104、重复执行上述步骤102和103,直至绕开初始路径中的所有障碍物。104. Repeat the above steps 102 and 103 until all obstacles in the initial path are bypassed.
比如,割草机器人中的MCU可以基于圆弧路径控制割草机器人执行割草作业;再比如,服务器或者用户设备可以根据该圆弧路径控制割草机器人行驶, 以此执行割草作业。即,割草机器人按照该圆弧路径执行割草作业,并在走完上述圆弧路径后,控制割草机器人继续走初始路径,并继续进行障碍物检测。For example, the MCU in a lawn mower robot can control the lawn mower robot to perform mowing operations based on the arc path; for another example, the server or user device can control the lawn mower robot to drive based on the arc path. Use this to perform lawn mowing operations. That is, the lawn mowing robot performs mowing operations according to the arc path, and after completing the arc path, the lawn mowing robot is controlled to continue walking on the initial path and continue to detect obstacles.
在一实施例中,在生成用于避开障碍物的圆弧路径时,通常不会将遇到障碍物时割草机器人的位置作为圆弧路径的起点进行设计,而割草机器人往往在检测到障碍物时已经距离该障碍物的距离非常接近,因此在根据圆弧路径控制割草机器人进行作业之前,还可以控制割草机器人先后退至圆弧路径的起点,再按照圆弧路径进行行进。也即根据所述圆弧路径控制所述割草机器人进行作业的步骤可以包括:查找所述圆弧路径在所述初始路径上的起点;控制所述割草机器人后退至所述起点,以根据所述圆弧路径进行作业。In one embodiment, when generating an arc path for avoiding obstacles, the position of the lawn mower robot when encountering an obstacle is usually not designed as the starting point of the arc path, and the lawn mower robot often detects When it reaches an obstacle, it is already very close to the obstacle. Therefore, before controlling the lawn mower robot to perform operations according to the arc path, the lawn mower robot can also be controlled to retreat to the starting point of the arc path and then proceed along the arc path. . That is to say, the step of controlling the lawn mowing robot to perform operations according to the arc path may include: finding the starting point of the arc path on the initial path; controlling the lawn mowing robot to retreat to the starting point according to the arc path. The arc path is used for operation.
由上可知,本申请实施例提供的智能避障方法可以开启割草机器人的预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业,在作业过程中判断初始路径当中是否存在障碍物,若存在,则生成沿当前割草方向行驶的圆弧路径,并根据圆弧路径控制割草机器人进行作业,重复执行上述步骤,直至绕开初始路径中的所有障碍物。本申请实施例通过在预设工作模式下检测障碍物,并在检测到障碍物后生成用于避障的圆弧路径,可以适应性的生成避障路径,提高割草机器人的避障效率以及灵活性。It can be seen from the above that the intelligent obstacle avoidance method provided by the embodiment of the present application can turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode, and determines the initial path during the operation. Whether there are obstacles, if so, generate an arc path along the current mowing direction, and control the lawn mower robot to work according to the arc path. Repeat the above steps until all obstacles in the initial path are bypassed. By detecting obstacles in a preset working mode and generating arc paths for obstacle avoidance after detecting obstacles, the embodiments of the present application can adaptively generate obstacle avoidance paths and improve the obstacle avoidance efficiency of the lawn mowing robot. flexibility.
请参阅图7,图7为本申请实施例提供的智能避障方法的另一流程示意图。该智能避障方法的具体流程可以如下:Please refer to FIG. 7 , which is another schematic flowchart of the intelligent obstacle avoidance method provided by an embodiment of the present application. The specific process of this intelligent obstacle avoidance method can be as follows:
201、对割草机器人周围的至少一个障碍物进行检测,以获取至少一个障碍物的位置信息。201. Detect at least one obstacle around the lawn mowing robot to obtain position information of at least one obstacle.
202、根据位置信息确定至少一个障碍物相对于割草机器人的分布范围。202. Determine the distribution range of at least one obstacle relative to the lawn mowing robot based on the position information.
在一实施例中,割草机器人可以包括多种工作模式,比如智能割草模式、开荒割草模式等。具体可以根据割草机器人周围的障碍物分布自动进行选取,比如以割草机器人为中心进行检测,并判断检测到周围的障碍物分布范围是否超过270°,若超过则说明附近存在较多障碍物,则可以自动开启开荒割草模式,若不超过,则可以开启智能割草模式。其中,上述开荒割草模式指的是在该模式下割草机器人可以对全部当前区域进行割草,智能割草模式指的是在该模式下割草机器人可以自动检测当前区域内的待割草区域,并对其进行割草。In one embodiment, the lawn mowing robot may include multiple working modes, such as intelligent lawn mowing mode, land reclamation and lawn mowing mode, etc. Specifically, it can be automatically selected based on the distribution of obstacles around the lawn mowing robot. For example, the lawn mowing robot is used as the center for detection, and it is judged whether the distribution range of the detected surrounding obstacles exceeds 270°. If it exceeds, it means that there are many obstacles nearby. , the land reclamation and mowing mode can be automatically turned on, and if it does not exceed, the intelligent lawn mowing mode can be turned on. Among them, the above-mentioned land reclamation and mowing mode means that in this mode the lawn mowing robot can mow the entire current area, and the intelligent lawn mowing mode means that in this mode the lawn mowing robot can automatically detect the grass to be cut in the current area. area and mow it.
可选地,在以割草机器人为中心进行检测时,还可以将检测到的障碍物数 量作为障碍物相对于割草机器人的分布范围。其中,上述检测障碍物的检测范围可以通过以割草机器人为圆心,以预设半径作圆从而将该圆形区域作为检测范围。Optionally, when detecting with the lawn mower robot as the center, the number of detected obstacles can also be The quantity is taken as the distribution range of obstacles relative to the lawn mowing robot. Wherein, the detection range of the above-mentioned detection obstacle can be determined by taking the lawn mower robot as the center of the circle and making a circle with a preset radius so that the circular area is used as the detection range.
203、当分布范围超出预设分布范围时,自动开启割草机器人的预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业。203. When the distribution range exceeds the preset distribution range, the preset working mode of the lawn mowing robot is automatically turned on, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode.
在一实施例中,当割草机器人开启开荒割草模式后,割草机器人会在全部的当前区域内生成行动路径,已确定该行动路径可以覆盖全部当前区域,比如根据当前区域的边界设置折返点,并依据折返点生成弓形行动路径,以作为初始路径。In one embodiment, when the lawn mowing robot turns on the land reclamation and mowing mode, the lawn mowing robot will generate an action path in all the current areas. It is determined that the action path can cover the entire current area, such as setting return according to the boundaries of the current area. point, and generate an arc-shaped action path based on the turning point as the initial path.
204、在作业过程中判断初始路径当中是否存在障碍物,若存在,则执行步骤205。204. During the operation, determine whether there are obstacles in the initial path. If there are obstacles, perform step 205.
在一实施例中,割草机器人在根据上述初始路径行进割草的过程中,还可以实时检测当前路径中是否遇到障碍物,具体可以通过割草机器人上集成的各种传感器来进行检测,具体检测过程可参考上述描述,本实施例对此不做进一步限定。当未检测到障碍物时,割草机器人可以继续按照初始路径进行行进割草,若存在,则继续执行后续步骤205。In one embodiment, while the lawn mowing robot is mowing according to the above-mentioned initial path, it can also detect in real time whether it encounters obstacles in the current path. Specifically, the detection can be carried out through various sensors integrated on the lawn mowing robot. For the specific detection process, reference may be made to the above description, which is not further limited in this embodiment. When no obstacle is detected, the lawn mowing robot can continue to move and cut grass along the initial path. If there is an obstacle, continue to perform subsequent step 205.
205、根据障碍物的特征信息计算弧度参数和弧长参数。205. Calculate the arc parameter and arc length parameter based on the characteristic information of the obstacle.
206、根据弧度参数、弧长参数以及初始路径,生成沿当前割草方向行驶的圆弧路径。206. Generate a circular arc path traveling in the current mowing direction based on the arc parameter, arc length parameter and initial path.
在一实施例中,上述特征信息可以包括该障碍物的水平长度和/或角度范围,在获取到该障碍物的水平长度和/或角度范围后,便可以根据该特征计算最佳的弧度和弧长,从而生成最终的圆弧路径,比如图5种的小型障碍物,通过计算就可以生成较大的弧度以及较短的弧长所对应的圆弧路径,而针对如图8中较大型的障碍物时,就可以生成较小的弧度以及较长的弧长所对应的圆弧路径。In one embodiment, the above-mentioned characteristic information may include the horizontal length and/or angular range of the obstacle. After obtaining the horizontal length and/or angular range of the obstacle, the optimal arc sum can be calculated based on the characteristics. The arc length is used to generate the final arc path. For example, for the small obstacles in Figure 5, arc paths corresponding to larger arcs and shorter arc lengths can be generated through calculation. For the larger obstacles in Figure 8, When there are obstacles, an arc path corresponding to a smaller arc and a longer arc length can be generated.
进一步的,在生成圆弧路径之后,便可以将该圆弧路径与初始路径进行拼接,从而形成一个完整的路径供割草机器人进行行进。比如所述根据所述弧度参数、弧长参数以及所述初始路径,生成沿当前割草方向行驶的圆弧路径的步骤可以包括:根据所述弧度参数和弧长参数确定初始圆弧;将所述初始圆弧与 所述初始路径进行交叉,以根据交叉点生成沿当前割草方向行驶的圆弧路径。Further, after the arc path is generated, the arc path can be spliced with the initial path to form a complete path for the lawn mowing robot to travel. For example, the step of generating an arc path traveling along the current mowing direction based on the radian parameter, the arc length parameter and the initial path may include: determining an initial arc based on the radian parameter and the arc length parameter; The initial arc and The initial paths are intersected to generate an arc path traveling in the current mowing direction based on the intersection points.
在一实施例中,请参阅图9,在割草机器人生成圆弧路径时,还可以根据障碍物确定偏转方向,从而生成向左偏转的圆弧路径或者向右偏转的圆弧路径。具体可以先将障碍物的角度范围按照割草机器人的朝向划分为左侧偏转角度A和右侧偏转角度B,当左侧偏转角度A大于右侧偏转角度B时,就可以选择向右偏转生成圆弧路径,从而可以更加快速的进行避障。因此生成沿当前割草方向行驶的圆弧路径的步骤还可以包括:将所述障碍物的角度范围按照所述割草机器人的朝向划分为左侧偏转角度和右侧偏转角度;将所述左侧偏转角度和右侧偏转角度进行对比,以确定偏转方向;按照所述偏转方向生成沿当前割草方向行驶的圆弧路径。In one embodiment, please refer to FIG. 9 . When the lawn mowing robot generates a circular arc path, it can also determine the deflection direction according to the obstacle, thereby generating a circular arc path deflected to the left or a circular arc path deflected to the right. Specifically, you can first divide the angular range of the obstacle into left deflection angle A and right deflection angle B according to the orientation of the lawn mower robot. When the left deflection angle A is greater than the right deflection angle B, you can choose to deflect to the right to generate Arc path allows faster obstacle avoidance. Therefore, the step of generating an arc path traveling along the current mowing direction may also include: dividing the angular range of the obstacle into a left deflection angle and a right deflection angle according to the orientation of the lawn mowing robot; The side deflection angle is compared with the right deflection angle to determine the deflection direction; an arc path traveling along the current mowing direction is generated according to the deflection direction.
207、根据圆弧路径控制割草机器人进行作业时,判断圆弧路径当中是否存在第二障碍物,若存在,则执行步骤208。207. When controlling the lawn mowing robot to perform operations according to the arc path, determine whether there is a second obstacle in the arc path. If there is, perform step 208.
208、根据第二障碍物的特征信息、初始路径以及割草机器人的当前位置,生成沿当前割草方向行驶的第二圆弧路径,根据第二圆弧路径控制割草机器人进行作业。208. Generate a second arc path traveling along the current mowing direction according to the characteristic information of the second obstacle, the initial path and the current position of the lawn mower robot, and control the lawn mower robot to perform operations according to the second arc path.
在生成圆弧路径后,割草机器人便可以基于圆弧路径控制割草机器人执行割草作业。在此过程中,若割草机器人再次检测到第二障碍物,便可以继续获取该第二障碍物的特征信息,并在圆弧路径的基础上再次生成第二圆弧路径。请参阅图10,割草机器人可以根据不同的障碍物设计出不同弧度和弧长的圆弧路径,在检测到第二障碍物时,还可以将割草机器人的当前位置作为第二圆弧路径的起点,并将第二圆弧路径的终点落在初始路径上,以使得割草机器人再走完圆弧路径和第二圆弧路径后可以回归初始路径,并完成割草。After the arc path is generated, the lawn mower robot can control the lawn mower robot to perform lawn mowing operations based on the arc path. During this process, if the lawn mowing robot detects the second obstacle again, it can continue to obtain the characteristic information of the second obstacle and generate the second arc path again based on the arc path. Please refer to Figure 10. The lawn mowing robot can design arc paths with different arcs and arc lengths based on different obstacles. When a second obstacle is detected, the current position of the lawn mowing robot can also be used as the second arc path. , and place the end point of the second arc path on the initial path, so that the lawn mower robot can return to the initial path and complete mowing after completing the arc path and the second arc path.
由上可知,本申请实施例提供的智能避障方法可以对割草机器人周围的至少一个障碍物进行检测,以获取至少一个障碍物的位置信息,根据位置信息确定至少一个障碍物相对于割草机器人的分布范围,当分布范围超出预设分布范围时,自动开启割草机器人的预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业,在作业过程中判断初始路径当中是否存在障碍物,若存在,则根据障碍物的特征信息计算弧度参数和弧长参数,根据弧度参数、弧长参数以及初始路径,生成沿当前割草方向行驶的圆弧路径,根据圆弧路径 控制割草机器人进行作业时,判断圆弧路径当中是否存在第二障碍物,若存在,则根据第二障碍物的特征信息、初始路径以及割草机器人的当前位置,生成沿当前割草方向行驶的第二圆弧路径,根据第二圆弧路径控制割草机器人进行作业。本申请实施例可以自动开启预设工作模式,并在该模式下检测障碍物,根据障碍物的特征信息以及初始路径,生成用于避障的圆弧路径,可以根据障碍物适应性的生成避障路径,提高割草机器人的避障效率以及灵活性。It can be seen from the above that the intelligent obstacle avoidance method provided by the embodiment of the present application can detect at least one obstacle around the lawn mowing robot to obtain the position information of the at least one obstacle, and determine the relative position of the at least one obstacle relative to the lawn mower based on the position information. The distribution range of the robot. When the distribution range exceeds the preset distribution range, the preset working mode of the lawn mowing robot is automatically turned on so that the lawn mowing robot can operate according to the initial path corresponding to the preset working mode and determine the initial path during the operation. Whether there is an obstacle, if so, calculate the radian parameter and arc length parameter based on the characteristic information of the obstacle. Based on the radian parameter, arc length parameter and the initial path, generate an arc path traveling in the current mowing direction. According to the arc path When the lawn mowing robot is controlled to perform operations, it is determined whether there is a second obstacle in the arc path. If there is a second obstacle, based on the characteristic information of the second obstacle, the initial path and the current position of the lawn mowing robot, a method is generated to drive in the current mowing direction. the second arc path, and the lawn mowing robot is controlled to perform operations according to the second arc path. Embodiments of the present application can automatically turn on the preset working mode, detect obstacles in this mode, and generate arc paths for obstacle avoidance based on the characteristic information of the obstacles and the initial path. The avoidance can be generated according to the adaptability of the obstacles. obstacle path to improve the obstacle avoidance efficiency and flexibility of the lawn mower robot.
为便于更好的实施本申请实施例的智能避障方法,本申请实施例还提供一种基于上述智能避障装置。其中名词的含义与上述智能避障方法中相同,具体实现细节可以参考方法实施例中的说明。In order to facilitate better implementation of the intelligent obstacle avoidance method in the embodiment of the present application, the embodiment of the present application also provides an intelligent obstacle avoidance device based on the above. The meanings of the nouns are the same as in the above-mentioned intelligent obstacle avoidance method. For specific implementation details, please refer to the description in the method embodiment.
请参阅图11,图11为本申请实施例提供的智能避障装置的结构示意图,其中该智能避障装置可以包括:Please refer to Figure 11. Figure 11 is a schematic structural diagram of an intelligent obstacle avoidance device provided by an embodiment of the present application. The intelligent obstacle avoidance device may include:
控制模块301,用于开启割草机器人的预设工作模式,以使所述割草机器人根据所述预设工作模式对应的初始路径进行作业;The control module 301 is used to turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode;
判断模块302,用于在作业过程中判断所述初始路径当中是否存在障碍物;The judgment module 302 is used to judge whether there are obstacles in the initial path during the operation;
生成模块303,用于当所述判断模块302判断为是时,生成沿当前割草方向行驶的圆弧路径,并根据所述圆弧路径控制所述割草机器人进行作业;The generation module 303 is configured to generate a circular arc path traveling in the current mowing direction when the judgment module 302 determines yes, and control the lawn mowing robot to perform operations according to the circular arc path;
判断模块302和生成模块303重复运行,直至绕开所述初始路径中的所有障碍物。The judgment module 302 and the generation module 303 are executed repeatedly until all obstacles in the initial path are bypassed.
在一实施例中,控制模块301具体包括:In one embodiment, the control module 301 specifically includes:
检测子模块3011,用于对所述割草机器人周围的至少一个障碍物进行检测,以获取所述至少一个障碍物的位置信息;The detection sub-module 3011 is used to detect at least one obstacle around the lawn mowing robot to obtain the position information of the at least one obstacle;
确定子模块3012,用于根据所述位置信息确定所述至少一个障碍物相对于所述割草机器人的分布范围;Determination sub-module 3012, configured to determine the distribution range of the at least one obstacle relative to the lawn mowing robot according to the position information;
开启子模块3013,用于当所述分布范围超出预设分布范围时,自动开启所述割草机器人的预设工作模式。The starting sub-module 3013 is used to automatically turn on the preset working mode of the lawn mowing robot when the distribution range exceeds the preset distribution range.
在一实施例中,生成模块303,具体用于获取所述障碍物的特征信息,根据所述障碍物的特征信息以及所述初始路径,生成沿当前割草方向行驶的圆弧路径。In one embodiment, the generation module 303 is specifically configured to obtain the characteristic information of the obstacle, and generate an arc path traveling along the current mowing direction according to the characteristic information of the obstacle and the initial path.
在一实施例中,所述障碍物的特征信息包括所述障碍物的水平长度和/或 角度范围,其中,生成模块303可以包括:In one embodiment, the characteristic information of the obstacle includes the horizontal length and/or Angle range, wherein the generation module 303 may include:
计算子模块3031,用于根据所述障碍物的水平长度和/或角度范围计算弧度参数和弧长参数;Calculation sub-module 3031, used to calculate radian parameters and arc length parameters according to the horizontal length and/or angular range of the obstacle;
生成子模块3032,用于根据所述弧度参数、弧长参数以及所述初始路径,生成沿当前割草方向行驶的圆弧路径。The generation sub-module 3032 is used to generate a circular arc path traveling along the current mowing direction according to the radian parameter, the arc length parameter and the initial path.
在一实施例中,生成子模块3032,具体用于根据所述弧度参数和弧长参数确定初始圆弧,将所述初始圆弧与所述初始路径进行交叉,以根据交叉点生成沿当前割草方向行驶的圆弧路径。In one embodiment, the generation sub-module 3032 is specifically configured to determine an initial arc according to the radian parameter and the arc length parameter, and intersect the initial arc with the initial path to generate a path along the current cut according to the intersection point. An arc path traveling in the direction of the grass.
由上可知,本申请实施例通过控制模块301开启割草机器人的预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业,判断模块302在作业过程中判断初始路径当中是否存在障碍物,若存在,则生成模块303生成沿当前割草方向行驶的圆弧路径,并根据圆弧路径控制割草机器人进行作业,重复运行上述判断模块302和生成模块303,直至绕开初始路径中的所有障碍物。本申请实施例通过在预设工作模式下检测障碍物,并在检测到障碍物后生成用于避障的圆弧路径,可以适应性的生成避障路径,提高割草机器人的避障效率以及灵活性。It can be seen from the above that in the embodiment of the present application, the control module 301 turns on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode. The judgment module 302 judges the initial path during the operation. Whether there is an obstacle? If so, the generation module 303 generates an arc path traveling along the current mowing direction, and controls the lawn mower robot to perform operations according to the arc path. The above judgment module 302 and the generation module 303 are repeatedly run until the obstacle is bypassed. All obstacles in the initial path. By detecting obstacles in a preset working mode and generating arc paths for obstacle avoidance after detecting obstacles, the embodiments of the present application can adaptively generate obstacle avoidance paths and improve the obstacle avoidance efficiency of the lawn mowing robot. flexibility.
此外,本申请实施例还提供一种割草机器人,如图13所示,其示出了本申请实施例所涉及的割草机器人的结构示意图,具体来讲:In addition, the embodiment of the present application also provides a lawn mowing robot, as shown in Figure 13, which shows a schematic structural diagram of the lawn mowing robot involved in the embodiment of the present application. Specifically:
该割草机器人可以包括控制模块501、行进机构502、切割模块503以及电源504等部件。本领域技术人员可以理解,图13中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The lawn mowing robot may include a control module 501, a traveling mechanism 502, a cutting module 503, a power supply 504 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 13 does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange different components. in:
控制模块501是该割草机器人的控制中心,该控制模块501具体可以包括中央处理器(Central Process Unit,CPU)、存储器、输入/输出端口、系统总线、定时器/计数器、数模转换器和模数转换器等组件,CPU通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,执行割草机器人的各种功能和处理数据;优选的,CPU可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到 CPU中。The control module 501 is the control center of the lawn mowing robot. The control module 501 may specifically include a central processing unit (CPU), memory, input/output ports, system bus, timer/counter, digital-to-analog converter and Components such as analog-to-digital converters, the CPU performs various functions of the lawn mowing robot and processes data by running or executing software programs and/or modules stored in the memory, and calling data stored in the memory; preferably, the CPU can Integrated application processor and modem processor, where the application processor mainly handles operating systems and application programs, etc., and the modem processor mainly handles wireless communications. It can be understood that the above modem processor may not be integrated into in the CPU.
存储器可用于存储软件程序以及模块,CPU通过运行存储在存储器的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器还可以包括存储器控制器,以提供CPU对存储器的访问。The memory can be used to store software programs and modules, and the CPU executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store electronic files according to the electronic data. Data created by the use of the device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Correspondingly, the memory may also include a memory controller to provide the CPU with access to the memory.
行进机构502与控制模块501电性相连,用于响应控制模块501传递的控制信号,调整割草机器人的行进速度和行进方向,实现割草机器人的自移动功能。The traveling mechanism 502 is electrically connected to the control module 501, and is used to respond to the control signal transmitted by the control module 501, adjust the traveling speed and direction of the lawn mower robot, and realize the self-moving function of the lawn mower robot.
切割模块503与控制模块501电性相连,用于响应控制模块传递的控制信号,调整切割刀盘的高度和转速,实现割草作业。The cutting module 503 is electrically connected to the control module 501, and is used to respond to the control signal transmitted by the control module, adjust the height and rotation speed of the cutting blade, and implement lawn mowing operations.
电源504可以通过电源管理系统与控制模块501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源504还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The power supply 504 can be logically connected to the control module 501 through the power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system. The power supply 504 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
尽管未示出,该割草机器人还可以包括通信模块、传感器模块、提示模块等,在此不再赘述。Although not shown, the lawn mowing robot may also include a communication module, a sensor module, a prompt module, etc., which will not be described again here.
通信模块用于收发信息过程中信号的接收和发送,通过与用户设备、基站或服务器建立通信连接,实现与用户设备、基站或服务器之间的信号收发。The communication module is used to receive and send signals in the process of sending and receiving information. By establishing a communication connection with the user equipment, base station or server, it realizes signal sending and receiving with the user equipment, base station or server.
传感器模块用于采集内部环境信息或外部环境信息,并将采集到的环境数据反馈给控制模块进行决策,实现割草机器人的精准定位和智能避障功能。可选地,传感器可以包括:超声波传感器、红外传感器、碰撞传感器、雨水感应器、激光雷达传感器、惯性测量单元、轮速计、图像传感器、位置传感器及其他传感器,对此不做限定。The sensor module is used to collect internal environmental information or external environmental information, and feeds the collected environmental data to the control module for decision-making, realizing the precise positioning and intelligent obstacle avoidance functions of the lawn mowing robot. Optionally, the sensors may include: ultrasonic sensors, infrared sensors, collision sensors, rain sensors, lidar sensors, inertial measurement units, wheel speedometers, image sensors, position sensors and other sensors, without limitation.
提示模块用于提示用户当前割草机器人的工作状态。本方案中,提示模块包括但不限于指示灯、蜂鸣器等。例如,割草机器人可以通过指示灯提示用户当前的电源状态、电机的工作状态、传感器的工作状态等。又例如,当检测到 割草机器人出现故障或被盗时,可以通过蜂鸣器实现告警提示。The prompt module is used to prompt the user about the current working status of the lawn mower robot. In this solution, the prompt module includes but is not limited to indicator lights, buzzers, etc. For example, a lawn mowing robot can remind the user of the current power status, motor working status, sensor working status, etc. through indicator lights. For another example, when it is detected When the lawn mowing robot malfunctions or is stolen, the buzzer can be used to provide an alarm.
具体在本实施例中,控制模块501中的处理器会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器中,并由处理器来运行存储在存储器中的应用程序,从而实现各种功能,如下:Specifically, in this embodiment, the processor in the control module 501 will load the executable files corresponding to the processes of one or more application programs into the memory according to the following instructions, and the processor will run the executable files stored in the memory. application to achieve various functions, as follows:
开启割草机器人的预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业,在作业过程中判断初始路径当中是否存在障碍物,若存在,则生成沿当前割草方向行驶的圆弧路径,并根据圆弧路径控制割草机器人进行作业,重复执行上述步骤,直至绕开初始路径中的所有障碍物。Turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot can operate according to the initial path corresponding to the preset working mode. During the operation, it is judged whether there are obstacles in the initial path. If there are obstacles, generate a function along the current mowing direction. Drive the arc path, and control the lawn mower robot to perform operations according to the arc path. Repeat the above steps until all obstacles in the initial path are bypassed.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of each of the above operations, please refer to the previous embodiments and will not be described again here.
本申请实施例可以开启割草机器人的预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业,在作业过程中判断初始路径当中是否存在障碍物,若存在,则生成沿当前割草方向行驶的圆弧路径,并根据圆弧路径控制割草机器人进行作业,重复执行上述步骤,直至绕开初始路径中的所有障碍物。本申请实施例通过在预设工作模式下检测障碍物,并在检测到障碍物后生成用于避障的圆弧路径,可以适应性的生成避障路径,提高割草机器人的避障效率以及灵活性。Embodiments of the present application can turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode. During the operation, it is judged whether there are obstacles in the initial path, and if so, generate Follow the arc path in the current mowing direction, and control the lawn mower robot to perform operations according to the arc path. Repeat the above steps until all obstacles in the initial path are bypassed. By detecting obstacles in a preset working mode and generating arc paths for obstacle avoidance after detecting obstacles, the embodiments of the present application can adaptively generate obstacle avoidance paths and improve the obstacle avoidance efficiency of the lawn mowing robot. flexibility.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium, and loaded and executed by the processor.
为此,本申请实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种智能避障方法中的步骤。例如,该指令可以执行如下步骤:To this end, embodiments of the present application provide a storage medium in which multiple instructions are stored, and the instructions can be loaded by the processor to execute steps in any of the intelligent obstacle avoidance methods provided by the embodiments of the present application. For example, this command can perform the following steps:
开启割草机器人的预设工作模式,以使割草机器人根据预设工作模式对应的初始路径进行作业,在作业过程中判断初始路径当中是否存在障碍物,若存在,则生成沿当前割草方向行驶的圆弧路径,并根据圆弧路径控制割草机器人进行作业,重复执行上述步骤,直至绕开初始路径中的所有障碍物。Turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot can operate according to the initial path corresponding to the preset working mode. During the operation, it is judged whether there are obstacles in the initial path. If there are obstacles, generate a function along the current mowing direction. Drive the arc path, and control the lawn mower robot to perform operations according to the arc path. Repeat the above steps until all obstacles in the initial path are bypassed.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of each of the above operations, please refer to the previous embodiments and will not be described again here.
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。 The storage medium may include: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
由于该存储介质中所存储的指令,可以执行本申请实施例所提供的任一种智能避障方法中的步骤,因此,可以实现本申请实施例所提供的任一种智能避障方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Since the instructions stored in the storage medium can execute the steps in any intelligent obstacle avoidance method provided by the embodiments of the present application, it is possible to realize the capabilities of any intelligent obstacle avoidance method provided by the embodiments of the present application. The beneficial effects achieved are detailed in the previous embodiments and will not be described again here.
以上对本申请实施例所提供的一种智能避障方法、装置、割草机器人以及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 The above is a detailed introduction to an intelligent obstacle avoidance method, device, lawn mower robot and storage medium provided by the embodiments of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The above embodiments The description is only used to help understand the methods and core ideas of this application; at the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the ideas of this application. In summary, The contents of this specification should not be construed as limiting this application.

Claims (11)

  1. 一种智能避障方法,其中,包括:An intelligent obstacle avoidance method, including:
    S11、开启割草机器人的预设工作模式,以使所述割草机器人根据所述预设工作模式对应的初始路径进行作业;S11. Turn on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode;
    S12、在作业过程中判断所述初始路径当中是否存在障碍物;S12. Determine whether there are obstacles in the initial path during the operation;
    S13、若存在,则生成沿当前割草方向行驶的圆弧路径,并根据所述圆弧路径控制所述割草机器人进行作业;S13. If it exists, generate an arc path traveling in the current mowing direction, and control the lawn mowing robot to perform operations according to the arc path;
    S14、重复执行所述步骤S12和S13,直至绕开所述初始路径中的所有障碍物。S14. Repeat steps S12 and S13 until all obstacles in the initial path are bypassed.
  2. 根据权利要求1所述的方法,其中,所述生成沿当前割草方向行驶的圆弧路径,包括:The method according to claim 1, wherein generating an arc path traveling along the current mowing direction includes:
    获取所述障碍物的特征信息;Obtain characteristic information of the obstacle;
    根据所述障碍物的特征信息以及所述初始路径,生成沿当前割草方向行驶的圆弧路径。According to the characteristic information of the obstacle and the initial path, an arc path traveling along the current mowing direction is generated.
  3. 根据权利要求1所述的方法,其中,所述开启割草机器人的预设工作模式,包括:The method according to claim 1, wherein said turning on the preset working mode of the lawn mowing robot includes:
    对所述割草机器人周围的至少一个障碍物进行检测,以获取所述至少一个障碍物的位置信息;Detect at least one obstacle around the lawn mowing robot to obtain position information of the at least one obstacle;
    根据所述位置信息确定所述至少一个障碍物相对于所述割草机器人的分布范围;Determine the distribution range of the at least one obstacle relative to the lawn mowing robot based on the position information;
    当所述分布范围超出预设分布范围时,自动开启所述割草机器人的预设工作模式。When the distribution range exceeds the preset distribution range, the preset working mode of the lawn mowing robot is automatically turned on.
  4. 根据权利要求2所述的方法,其中,所述障碍物的特征信息包括所述障碍物的水平长度和/或角度范围;The method according to claim 2, wherein the characteristic information of the obstacle includes the horizontal length and/or angular range of the obstacle;
    所述根据所述障碍物的特征信息以及所述初始路径,生成沿当前割草方向行驶的圆弧路径,包括:Generating an arc path traveling in the current mowing direction based on the characteristic information of the obstacle and the initial path includes:
    根据所述障碍物的水平长度和/或角度范围计算弧度参数和弧长参数;Calculate radian parameters and arc length parameters based on the horizontal length and/or angular range of the obstacle;
    根据所述弧度参数、弧长参数以及所述初始路径,生成沿当前割草方向行驶的圆弧路径。 According to the arc parameter, the arc length parameter and the initial path, a circular arc path traveling along the current mowing direction is generated.
  5. 根据权利要求4所述的方法,其中,所述根据所述弧度参数、弧长参数以及所述初始路径,生成沿当前割草方向行驶的圆弧路径,包括:The method according to claim 4, wherein generating a circular arc path traveling along the current mowing direction according to the arc parameter, the arc length parameter and the initial path includes:
    根据所述弧度参数和弧长参数确定初始圆弧;Determine the initial arc according to the radian parameter and arc length parameter;
    将所述初始圆弧与所述初始路径进行交叉,以根据交叉点生成沿当前割草方向行驶的圆弧路径。The initial arc is intersected with the initial path to generate a circular arc path traveling in the current mowing direction according to the intersection point.
  6. 根据权利要求4所述的方法,其中,所述根据所述障碍物的特征信息以及所述初始路径,生成沿当前割草方向行驶的圆弧路径,包括:The method according to claim 4, wherein generating an arc path traveling along the current mowing direction according to the characteristic information of the obstacle and the initial path includes:
    将所述障碍物的角度范围按照所述割草机器人的朝向划分为左侧偏转角度和右侧偏转角度;Divide the angular range of the obstacle into a left deflection angle and a right deflection angle according to the orientation of the lawn mowing robot;
    将所述左侧偏转角度和右侧偏转角度进行对比,以确定偏转方向;Compare the left deflection angle and the right deflection angle to determine the deflection direction;
    按照所述偏转方向生成沿当前割草方向行驶的圆弧路径。A circular arc path traveling in the current mowing direction is generated according to the deflection direction.
  7. 根据权利要求1所述的方法,其中,所述根据所述圆弧路径控制所述割草机器人进行作业,包括:The method according to claim 1, wherein controlling the lawn mowing robot to perform operations according to the arc path includes:
    查找所述圆弧路径在所述初始路径上的起点;Find the starting point of the arc path on the initial path;
    控制所述割草机器人后退至所述起点,以根据所述圆弧路径进行作业。The lawn mowing robot is controlled to retreat to the starting point to perform operations according to the arc path.
  8. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, further comprising:
    根据所述圆弧路径控制所述割草机器人进行作业时,判断所述圆弧路径当中是否存在第二障碍物;When controlling the lawn mowing robot to perform operations according to the arc path, determine whether there is a second obstacle in the arc path;
    根据所述第二障碍物的特征信息、所述初始路径以及所述割草机器人的当前位置,生成沿当前割草方向行驶的第二圆弧路径;Generate a second arc path traveling along the current mowing direction according to the characteristic information of the second obstacle, the initial path and the current position of the lawn mowing robot;
    根据所述第二圆弧路径控制所述割草机器人进行作业。The lawn mowing robot is controlled to perform operations according to the second arc path.
  9. 一种智能避障装置,其中,包括:An intelligent obstacle avoidance device, including:
    控制模块,用于开启割草机器人的预设工作模式,以使所述割草机器人根据所述预设工作模式对应的初始路径进行作业;A control module for turning on the preset working mode of the lawn mowing robot, so that the lawn mowing robot operates according to the initial path corresponding to the preset working mode;
    判断模块,用于在作业过程中判断所述初始路径当中是否存在障碍物;A judgment module used to judge whether there are obstacles in the initial path during the operation;
    生成模块,用于当所述判断模块判断为是时,生成沿当前割草方向行驶的圆弧路径,并根据所述圆弧路径控制所述割草机器人进行作业;A generation module, configured to generate a circular arc path traveling in the current mowing direction when the judgment module determines yes, and control the lawn mowing robot to perform operations according to the circular arc path;
    所述判断模块和生成模块重复运行,直至绕开所述初始路径中的所有障碍物。 The judgment module and the generation module run repeatedly until all obstacles in the initial path are bypassed.
  10. 一种割草机器人,其中,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如权利要求1-8任一项所述智能避障方法的步骤。A lawn mowing robot, which includes a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the method described in any one of claims 1-8. Steps of intelligent obstacle avoidance method.
  11. 一种存储介质,其中,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-8任一项所述智能避障方法的步骤。 A storage medium, wherein a computer program is stored thereon, and when the computer program is executed by a processor, the steps of the intelligent obstacle avoidance method according to any one of claims 1-8 are implemented.
PCT/CN2023/101484 2022-06-29 2023-06-20 Intelligent obstacle avoidance method and device, mowing robot, and storage medium WO2024001880A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210763666.7 2022-06-29
CN202210763666.7A CN115053689A (en) 2022-06-29 2022-06-29 Intelligent obstacle avoidance method and device, mowing robot and storage medium

Publications (1)

Publication Number Publication Date
WO2024001880A1 true WO2024001880A1 (en) 2024-01-04

Family

ID=83204330

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/101484 WO2024001880A1 (en) 2022-06-29 2023-06-20 Intelligent obstacle avoidance method and device, mowing robot, and storage medium

Country Status (2)

Country Link
CN (1) CN115053689A (en)
WO (1) WO2024001880A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115053689A (en) * 2022-06-29 2022-09-16 松灵机器人(深圳)有限公司 Intelligent obstacle avoidance method and device, mowing robot and storage medium
CN117516513A (en) * 2024-01-08 2024-02-06 锐驰激光(深圳)有限公司 Intelligent mower path planning method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140180478A1 (en) * 2012-12-21 2014-06-26 RoboLabs, Inc. Autonomous robot apparatus and method for controlling the same
US20150012164A1 (en) * 2013-07-05 2015-01-08 Asia Technology Co., Ltd. Method and apparatus for controlling driving of robot
CN106054882A (en) * 2016-06-15 2016-10-26 深圳市金佰科创发展有限公司 Robot obstacle avoidance method
CN111026114A (en) * 2019-12-12 2020-04-17 南京苏美达智能技术有限公司 Obstacle detouring method and self-walking equipment
CN113568404A (en) * 2021-07-08 2021-10-29 深圳拓邦股份有限公司 Mowing mode self-adaption method of mowing robot and mowing robot
CN115016502A (en) * 2022-07-11 2022-09-06 松灵机器人(深圳)有限公司 Intelligent obstacle avoidance method, mowing robot and storage medium
CN115053689A (en) * 2022-06-29 2022-09-16 松灵机器人(深圳)有限公司 Intelligent obstacle avoidance method and device, mowing robot and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101091428A (en) * 2006-10-20 2007-12-26 大连理工大学 Automatic mowing robot
KR101578882B1 (en) * 2014-05-02 2015-12-18 에브리봇 주식회사 A robot cleaner and a method for operating it

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140180478A1 (en) * 2012-12-21 2014-06-26 RoboLabs, Inc. Autonomous robot apparatus and method for controlling the same
US20150012164A1 (en) * 2013-07-05 2015-01-08 Asia Technology Co., Ltd. Method and apparatus for controlling driving of robot
CN106054882A (en) * 2016-06-15 2016-10-26 深圳市金佰科创发展有限公司 Robot obstacle avoidance method
CN111026114A (en) * 2019-12-12 2020-04-17 南京苏美达智能技术有限公司 Obstacle detouring method and self-walking equipment
CN113568404A (en) * 2021-07-08 2021-10-29 深圳拓邦股份有限公司 Mowing mode self-adaption method of mowing robot and mowing robot
CN115053689A (en) * 2022-06-29 2022-09-16 松灵机器人(深圳)有限公司 Intelligent obstacle avoidance method and device, mowing robot and storage medium
CN115016502A (en) * 2022-07-11 2022-09-06 松灵机器人(深圳)有限公司 Intelligent obstacle avoidance method, mowing robot and storage medium

Also Published As

Publication number Publication date
CN115053689A (en) 2022-09-16

Similar Documents

Publication Publication Date Title
WO2024001880A1 (en) Intelligent obstacle avoidance method and device, mowing robot, and storage medium
WO2024012192A1 (en) Intelligent obstacle avoidance method, and mowing robot and storage medium
US20180253098A1 (en) Autonomous working system, an autonomous vehicle and a turning method thereof
CN106462161B (en) Autonomous mobile robot
WO2021228040A1 (en) Path planning method and self-moving device
CN110612492A (en) Self-driven unmanned mower
WO2024022337A1 (en) Obstacle detection method and apparatus, mowing robot, and storage medium
CN108983761B (en) Method and system for searching charging device by robot and robot
CN108575095A (en) From mobile device and its positioning system, localization method and control method
WO2023246802A1 (en) Mowing method and apparatus, robotic lawn mower, and storage medium
WO2024008018A1 (en) Mowing method and apparatus, mowing robot, and storage medium
WO2024017034A1 (en) Route planning method and device, mowing robot, and storage medium
WO2024008016A1 (en) Operation map construction method and apparatus, mowing robot, and storage medium
WO2024012286A1 (en) Mowing method and apparatus, and mowing robot and storage medium
WO2024017032A1 (en) Mowing robot recharging method, mowing robot and storage medium
WO2024016958A1 (en) Mowing method and device, mowing robot, and storage medium
WO2024002061A1 (en) Mowing method and apparatus, mowing robot, and storage medium
WO2021093469A1 (en) Automatic walking area route planning method and automatic walking device
CN115268438A (en) Intelligent obstacle avoidance method and device, mowing robot and storage medium
CN115053690A (en) Mowing method, mowing device, mowing robot and storage medium
KR20200101486A (en) Artificial intelligence lawn mover robot and controlling method for the same
US20200238531A1 (en) Artificial intelligence moving robot and method for controlling the same
WO2020156519A1 (en) Working method and device for self-moving apparatus, and self-moving apparatus
CN115268439A (en) Intelligent obstacle avoidance method and device, mowing robot and storage medium
CN115617053B (en) Obstacle traversing method, obstacle traversing device, mowing robot and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23830059

Country of ref document: EP

Kind code of ref document: A1