Cleaning robot control method, cleaning robot and storage medium
By acquiring and processing a variety of sensor data to determine the true outer contour of obstacles, and planning and executing precise avoidance paths, it solves the accuracy and safety risk problems of existing robots when avoiding obstacles, and improves the obstacle avoidance capabilities of cleaning robots.
Patent Information
- Application Number
- CN202310230164.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-09-06
AI Technical Summary
Existing robots often detect obstacles by touching them when avoiding obstacles, resulting in damage to the robot's working state and obstacle stability, and high obstacle avoidance accuracy and high safety risks.
By obtaining the observed contour information of the obstacle, its true outer contour is determined, and based on this, the target motion path is planned, and the robot is controlled to avoid the obstacle along the path. The visual sensor, edge ranging sensor and lidar are combined to obtain accurate contour information, reducing the Risk of collision.
It improves the accuracy of the robot's edge avoidance, reduces the safety risks caused by collisions, and ensures the coverage and safety of the cleaning robot during its autonomous movement.
Smart Images

Figure CN118592840A
Abstract
Description
Technical Field
[0001] The present application relates to the field of robot technology, and in particular to a cleaning robot control method, a cleaning robot and a computer-readable storage medium. Background Art
[0002] With the advancement and development of technology, robots are increasingly used in daily production and life. Mobile robots often need to avoid obstacles and move along the edges due to the characteristics of the application scenarios. For example, household cleaning robots often need to avoid obstacles by moving along the edges when performing cleaning tasks.
[0003] In the related art, robots generally avoid obstacles by touching the obstacles to detect them and further implement obstacle avoidance measures, which has a significant negative impact on the normal working state of the robot and the stability of the obstacle itself. Summary of the invention
[0004] The present application provides a cleaning robot control method, a cleaning robot and a computer-readable storage medium.
[0005] The cleaning robot control method of the embodiment of the present application includes:
[0006] Obtain the observed contour information of obstacles;
[0007] Determining outer contour information of the obstacle according to the observed contour information;
[0008] Determining, according to the outer contour information, a target motion path for the cleaning robot to move in order to avoid the obstacle;
[0009] The cleaning robot is controlled to move along the target motion path to avoid the obstacle.
[0010] In this way, the real outer contour of the obstacle is determined by the observed outer contour, and then the target motion path is planned based on the real outer contour. Finally, the cleaning robot is controlled to correctly enter the target motion path and move along the path, so as to achieve the edge avoidance of obstacles during the movement of the cleaning robot. Correction is made according to the contour data of the obstacle to obtain the precise outer contour of the obstacle, and the target motion path of the robot is determined according to the precise outer contour, which can improve the accuracy of edge avoidance and avoid using the same obstacle avoidance plan for obstacles with different contours. At the same time, by pre-designing the motion path, it can ensure that the cleaning robot can reduce unnecessary collisions while ensuring coverage during autonomous movement, thereby reducing the safety risks caused by collisions.
[0011] In some embodiments, obtaining the observed profile information of the obstacle includes:
[0012] Acquire a first outline of the obstacle based on an edge ranging sensor;
[0013] Based on the laser radar, obtaining a second outline of the obstacle;
[0014] Based on the visual sensor, the observed outer contour, the first observed contour and the second observed contour of the obstacle are obtained,
[0015] The observed outer contour is the contour corresponding to the outer contour of the obstacle in the field of view of the visual sensor, the first observed contour is the contour corresponding to the first contour in the field of view of the visual sensor, and the second observed contour is the contour corresponding to the second contour in the field of view of the visual sensor;
[0016] Determining the outer contour information of the obstacle according to the observed contour information includes:
[0017] Determine first outer contour information according to the first contour, the first observed contour, and the observed outer contour;
[0018] Determine second outer contour information according to the second contour, the second observed contour, and the observed outer contour;
[0019] The outer contour information is determined according to the first outer contour information and the second outer contour information.
[0020] In this way, the contour information of the obstacle can be acquired based on the visual sensor, edge ranging sensor and laser radar installed on the cleaning robot, and the real contour information of the obstacle can be determined based on the acquired contour information.
[0021] In some embodiments, determining first outer contour information according to the first contour, the first observed contour, and the observed outer contour includes:
[0022] Determine the difference between the observed outer contour spacing and the first observed spacing;
[0023] Determine the sum of the difference and the first distance as the first sum value, and determine the first sum value as the first outer contour information, wherein the first distance is the distance between the first contour and the geometric center of the cleaning robot, the observed outer contour distance is the distance between the observed outer contour and the geometric center, and the first observed distance is the distance between the first observed contour and the geometric center.
[0024] In this way, the first outer contour information of the obstacle can be determined based on the position of the robot and the contour information obtained based on the edge ranging sensor and the visual sensor by calculating and removing errors.
[0025] In some embodiments, determining the second outer contour information according to the second contour, the second observed contour, and the observed outer contour includes:
[0026] Determine the difference between the observed outer contour spacing and the second observed spacing;
[0027] Determine the sum of the difference and the second distance as the second sum value, and determine the second sum value as the second outer contour information, wherein the second distance is the distance between the second contour and the geometric center of the cleaning robot, the observed outer contour distance is the distance between the observed outer contour and the geometric center, and the second observed distance is the distance between the second observed contour and the geometric center.
[0028] In this way, the second outer contour information of the obstacle can be determined based on the position of the robot and the contour information obtained based on the laser radar and the visual sensor, and the error can be removed through calculation.
[0029] In some embodiments, determining the outer contour information according to the first outer contour information and the second outer contour information includes:
[0030] Determine the difference between the observed outer contour spacing and the first observed spacing as a first difference, and then determine the sum of the first difference and the first spacing as a first sum, wherein the first spacing is the distance between the first contour and the geometric center of the cleaning robot, the observed outer contour spacing is the distance between the observed outer contour and the geometric center, and the first observed spacing is the distance between the first observed contour and the geometric center;
[0031] Determine the difference between the observed outer contour spacing and the second observed spacing as a second difference, and then determine the sum of the second difference and the second spacing as a second sum, wherein the second spacing is the distance between the second contour and the geometric center of the cleaning robot, and the second observed spacing is the distance between the second observed contour and the geometric center;
[0032] The smaller one of the first sum value and the second sum value is determined as the outer contour information.
[0033] In this way, the error can be removed by calculation based on the position of the robot and the contour information obtained based on the edge ranging sensor, lidar and visual sensor, and a set of data that better meets the requirements can be selected from the two sets of results as the true contour information of the obstacle.
[0034] In some embodiments, obtaining the observed profile information of the obstacle includes:
[0035] Acquire a first outline of the obstacle based on an edge ranging sensor;
[0036] Based on the visual sensor, an observed outer contour and a first observed contour of the obstacle are obtained, wherein the observed outer contour is a contour corresponding to the outer contour of the obstacle in the field of view of the visual sensor, and the first observed contour is a contour corresponding to the first contour in the field of view of the visual sensor;
[0037] Determining the outer contour information of the obstacle according to the observed contour information includes:
[0038] The outer contour information is determined according to the first contour, the first observed contour, and the observed outer contour.
[0039] In this way, the contour information of the obstacle can be acquired only based on the visual sensor and the edge ranging sensor installed on the cleaning robot, and the real contour information of the obstacle can be determined based on the acquired contour information.
[0040] In some embodiments, determining the outer contour information according to the first contour, the first observed contour, and the observed outer contour includes:
[0041] Determine the difference between the observed outer contour spacing and the first observed spacing;
[0042] Determine the sum of the difference and the first distance as the first sum value, and determine the first sum value as the outer contour information, wherein the first distance is the distance between the first contour and the geometric center of the cleaning robot, the observed outer contour distance is the distance between the observed outer contour and the geometric center, and the first observed distance is the distance between the first observed contour and the geometric center.
[0043] In this way, the true contour information of the obstacle can be determined based on the position of the robot and only in combination with the contour information obtained based on the edge ranging sensor and the visual sensor by calculation to remove errors.
[0044] In some embodiments, obtaining the observed profile information of the obstacle includes:
[0045] Based on the laser radar, obtaining a second outline of the obstacle;
[0046] Based on the visual sensor, acquiring an observed outer contour and a second observed contour of the obstacle, wherein the observed outer contour is a contour corresponding to the outer contour of the obstacle in the field of view of the visual sensor, and the second observed contour is a contour corresponding to the second contour in the field of view of the visual sensor;
[0047] Determining the outer contour information of the obstacle according to the observed contour information includes:
[0048] The outer contour information is determined according to the second contour, the second observed contour, and the observed outer contour.
[0049] In this way, the contour information of the obstacle can be acquired only based on the visual sensor and the laser radar installed on the cleaning robot, and the real contour information of the obstacle can be determined based on the acquired contour information.
[0050] In some embodiments, determining the outer contour information according to the second contour, the second observed contour, and the observed outer contour includes:
[0051] Determine the difference between the observed outer contour spacing and the second observed spacing;
[0052] Determine the sum of the difference and the second distance as the second sum value, and determine the second sum value as the outer contour information, wherein the second distance is the distance between the second contour and the geometric center of the cleaning robot, the observed outer contour distance is the distance between the observed outer contour and the geometric center, and the second observed distance is the distance between the second observed contour and the geometric center.
[0053] In this way, the true contour information of the obstacle can be determined based on the position of the robot and by removing errors through calculation based on the contour information obtained by the laser radar and the visual sensor.
[0054] In some embodiments, obtaining the observed profile information of the obstacle includes:
[0055] Based on the visual sensor, obtaining the observed outer contour of the obstacle;
[0056] Determining the outer contour information of the obstacle according to the observed contour information includes:
[0057] The distance between the observed outer contour and the geometric center of the cleaning robot is determined as the outer contour information.
[0058] In this way, the outline information of the obstacle can be acquired only based on the visual sensor installed on the cleaning robot.
[0059] In some embodiments, determining, based on the outer contour information, a target motion path for the cleaning robot to avoid the obstacle includes:
[0060] Acquiring semantic information of the obstacle;
[0061] Determining a first distance of the obstacle according to the semantic information;
[0062] Determining an expansion contour of the obstacle according to the outer contour information, the first distance, and the size information of the cleaning robot;
[0063] The target motion path is determined according to the expansion profile.
[0064] In this way, the basic data of the avoidance path can be determined according to the obstacle category based on the acquired semantic information of the obstacle, and the path for the robot to avoid the obstacle can be determined in combination with the robot's own appearance characteristics.
[0065] In some embodiments, determining the target motion path according to the expansion profile includes:
[0066] In the case that there are multiple obstacles and the ranges of the multiple expansion contours overlap, merging the multiple expansion contours to determine the original target motion path;
[0067] The target motion path is determined according to the original target motion path.
[0068] In this way, when there are multiple obstacles and the distance between the obstacles is relatively close, the edge contours of the obstacles can be integrated to determine a complete and continuous obstacle avoidance path.
[0069] In some embodiments, determining the target motion path according to the expansion profile includes:
[0070] acquiring a second distance between the expansion profile and the cleaning robot;
[0071] Determine that the expansion contour whose second distance satisfies a preset condition is the original target motion path;
[0072] The target motion path is determined according to the original target motion path.
[0073] In this way, it is possible to use the current position of the robot as a reference, select an expanded contour that meets the conditions according to the distance between the robot and the expanded obstacle contour, and perform further processing to determine the path for the robot to avoid the obstacle.
[0074] In some embodiments, determining the target motion path according to the original target motion path includes:
[0075] Determining the direction of travel of the original target motion path;
[0076] Determining a starting point of the cleaning robot on the target motion path according to the current position of the cleaning robot and the original target motion path;
[0077] The target motion path is determined according to the moving direction of the original target motion path and the starting point.
[0078] In this way, the starting point and the direction of travel on the obstacle avoidance path can be determined according to the current position of the robot.
[0079] In some embodiments, determining the target motion path according to the direction of travel of the original target motion path and the starting point includes:
[0080] In the case where the distance between the current position of the cleaning robot and the starting point is less than or equal to a preset threshold, taking the starting point as the initial reference point, and according to the travel direction of the original target motion path and a preset spacing threshold range, determining a plurality of reference points on the original target motion path, wherein the spacing between adjacent reference points is within the preset spacing threshold range;
[0081] Taking the starting point as the initial reference point, all the reference points are connected in sequence with line segments along the direction of travel of the original target motion path to determine the target motion path.
[0082] In this way, when the original target motion path meets the conditions, the original target motion path can be thinned to determine the target motion path, so that the robot can perform obstacle avoidance motion.
[0083] In some embodiments, the cleaning robot control method further includes:
[0084] When the distance between the current position of the cleaning robot and the starting point is less than or equal to a preset threshold or greater than a preset threshold, the semantic information of the obstacle is acquired.
[0085] In this way, the present application can also realize looping and re-acquiring the semantic information of the obstacle when the original target motion path does not meet the conditions.
[0086] In some embodiments, controlling the cleaning robot to move along the target motion path includes:
[0087] Obtaining the distance between the current position of the cleaning robot and the starting point, and determining it as the adjustment distance;
[0088] According to the starting point, determining an angle between the original moving direction of the cleaning robot and the moving direction of the target motion path, and determining the angle as an adjustment angle;
[0089] The cleaning robot is controlled to move so that the adjustment distance is smaller than a preset value and the adjustment angle is smaller than a preset value.
[0090] In this way, the robot can be controlled to move along the target motion path according to the starting point and the travel direction of the target motion path according to the relevant parameter values to avoid obstacles.
[0091] The cleaning robot of the embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the cleaning robot control method as described in the above embodiment.
[0092] The computer-readable storage medium of the embodiment of the present application stores a computer program. When the computer program is executed by one or more processors, the cleaning robot control method as described in the above embodiment is implemented.
[0093] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0094] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0095] Figure 1 It is a flow chart of the cleaning robot control method provided by the present application;
[0096] Figure 2 It is a flow chart of the cleaning robot control method provided by the present application;
[0097] Figure 3 It is a flow chart of the cleaning robot control method provided by the present application;
[0098] Figure 4 It is a schematic diagram of an application scenario of the cleaning robot control method provided in this application;
[0099] Figure 5 It is a flow chart of the cleaning robot control method provided by the present application;
[0100] Figure 6 It is a schematic diagram of an application scenario of the cleaning robot control method provided in this application;
[0101] Figure 7 It is a flow chart of the cleaning robot control method provided by the present application;
[0102] Figure 8 It is a flow chart of the cleaning robot control method provided by the present application;
[0103] Fig. 9 It is a flow chart of the cleaning robot control method provided by the present application;
[0104] Fig.10 It is a flow chart of the cleaning robot control method provided by the present application;
[0105] Fig.11 It is a flow chart of the cleaning robot control method provided by the present application;
[0106] Fig.12 It is a flow chart of the cleaning robot control method provided by the present application;
[0107] Fig.13 It is a flow chart of the cleaning robot control method provided by the present application;
[0108] Fig.14 It is a schematic diagram of an application scenario of the cleaning robot control method provided in this application;
[0109] Fig.15 It is a flow chart of the cleaning robot control method provided by the present application;
[0110] Fig.16 It is a schematic diagram of an application scenario of the cleaning robot control method provided in this application;
[0111] Fig.17 It is a flow chart of the cleaning robot control method provided by the present application;
[0112] Fig.18 It is a schematic diagram of an application scenario of the cleaning robot control method provided in this application;
[0113] Fig.19 It is a flow chart of the cleaning robot control method provided by the present application;
[0114] Fig. 20 It is a flow chart of the cleaning robot control method provided by the present application;
[0115] Fig.21 It is a flow chart of the cleaning robot control method provided by the present application;
[0116] Fig. 22 It is a schematic diagram of an application scenario of the cleaning robot control method provided in this application;
[0117] Fig.23 It is a schematic diagram of an application scenario of the cleaning robot control method provided in this application; DETAILED DESCRIPTION
[0118] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.
[0119] During the normal operation of the cleaning robot, obstacles are often encountered. The means in the related technology are generally to prevent the robot from touching the obstacle by changing the robot's movement posture through the robot's contact with the obstacle. However, for complex environments with many obstacles, the reliability of this method is still questionable. Moreover, the method of detecting obstacles by active touch also has great safety hazards. The accumulation of touch times will cause cumulative damage to the circuit structure inside the robot, reducing the service life of the robot. At the same time, the accuracy of the cleaning robot in detecting obstacles cannot be guaranteed.
[0120] Based on this, Figure 1 As shown, the present application provides a cleaning robot control method, comprising the following steps:
[0121] 01: Get the observed contour information of the obstacle;
[0122] 02: Determine the outer contour information of the obstacle based on the observed contour information;
[0123] 03: Determine the target motion path of the cleaning robot to avoid obstacles based on the outer contour information;
[0124] 04: Control the cleaning robot to move along the target motion path to avoid obstacles.
[0125] The present application also provides a cleaning robot control device, and the cleaning robot control method of the present application can be implemented by the cleaning robot control device. Specifically, the cleaning robot control device includes a contour observation module, a contour calculation module, a path generation module, and a motion control module, wherein the contour observation module is used to obtain the observed contour information of the obstacle, the contour calculation module is used to determine the outer contour information of the obstacle based on the observed contour information, the path generation module is used to determine the target motion path of the cleaning robot to avoid the obstacle based on the outer contour information, and the motion control module is used to control the cleaning robot to move along the target motion path to avoid the obstacle.
[0126] The present application also provides a cleaning robot, and the cleaning robot device includes a memory and a processor. The monitoring method of the present application can be implemented by the cleaning robot device of the present application. Specifically, the memory stores a cleaning robot program, and the processor is used to obtain the observed contour information of the obstacle, and to determine the outer contour information of the obstacle based on the observed contour information, and to determine the target motion path of the cleaning robot to avoid the obstacle based on the outer contour information, and to control the cleaning robot to move along the target motion path to avoid the obstacle.
[0127] Specifically, at the current position, the cleaning robot obtains the observed contour information of obstacles in the environment through an information acquisition device installed on the cleaning robot, such as relevant sensors. The observed contour information is generally expressed as an image marked with contour line markers, which is used to describe the contours of multiple positions on the obstacles observed by the cleaning robot.
[0128] Since there is still a certain error between the observed contour and the true contour, it is necessary to use the obtained observed contour information as the data basis to perform error elimination calculations and determine the outer contour information with higher accuracy. The outer contour information here can be approximately regarded as the true outer contour of the obstacle.
[0129] After the outer contour information is determined, a target motion path is planned based on the outer contour information to enable the cleaning robot to avoid obstacles. That is, the cleaning robot can avoid obstacles when moving along the target motion path, avoiding position conflicts and collisions with obstacles.
[0130] At the same time, the target motion path determined based on the highly accurate outer contour information can also maximize the robot's range of motion, that is, it can determine a customized target motion path that is suitable for the obstacle based on the highly accurate obstacle contour. After determining the target motion path, the cleaning robot is controlled to enter the target motion path based on the relevant parameters of the target motion path and move according to the parameters of the path, thereby achieving the purpose of avoiding obstacles.
[0131] In this way, the real outer contour of the obstacle is determined by the observed outer contour, and then the target motion path is planned based on the real outer contour. Finally, the cleaning robot is controlled to correctly enter the target motion path and move along the path, so as to achieve the edge avoidance of obstacles during the movement of the cleaning robot. Correction is made according to the contour data of the obstacle to obtain the precise outer contour of the obstacle, and the target motion path of the robot is determined according to the precise outer contour, which can improve the accuracy of edge avoidance and avoid using the same obstacle avoidance plan for obstacles with different contours. At the same time, by pre-designing the motion path, it can ensure that the cleaning robot can reduce unnecessary collisions while ensuring coverage during autonomous movement, thereby reducing the safety risks caused by collisions.
[0132] like Figure 2 , Figure 3 As shown, in some embodiments, step 01 includes:
[0133] 011: Based on the edge ranging sensor, obtain the first outline of the obstacle;
[0134] 012: Based on the laser radar, obtain the second outline of the obstacle;
[0135] 013: Based on the visual sensor, obtain the observed outer contour, the first observed contour and the second observed contour of the obstacle;
[0136] Under the above conditions, step 02 includes:
[0137] 021: Determine first outer contour information according to the first contour, the first observed contour and the observed outer contour;
[0138] 022: Determine second outer contour information according to the second contour, the second observed contour and the observed outer contour;
[0139] 023: Determine the outer contour information according to the first outer contour information and the second outer contour information.
[0140] In some embodiments, the contour observation module is used to obtain a first contour of an obstacle based on an edge ranging sensor, and to obtain a second contour of the obstacle based on a lidar, and to obtain an observed outer contour, a first observed contour, and a second observed contour of the obstacle based on a visual sensor; the contour calculation module is used to determine first outer contour information based on the first contour, the first observed contour, and the observed outer contour, and to determine second outer contour information based on the second contour, the second observed contour, and the observed outer contour, and to determine outer contour information based on the first outer contour information and the second outer contour information.
[0141] In some embodiments, the processor is used to obtain a first contour of an obstacle based on an edge ranging sensor, and to obtain a second contour of the obstacle based on a lidar, and to obtain an observed outer contour, a first observed contour, and a second observed contour of the obstacle based on a visual sensor, and to determine first outer contour information based on the first contour, the first observed contour, and the observed outer contour, and to determine second outer contour information based on the second contour, the second observed contour, and the observed outer contour, and to determine outer contour information based on the first outer contour information and the second outer contour information.
[0142] Specifically, the following describes a method for obtaining observed contour information and determining outer contour information using three sets of information acquisition devices, namely, edge distance measurement sensors, laser radars, and visual sensors. Figure 4As shown, the cleaning robot obtains the first contour and the second contour on the obstacle through the edge ranging sensor and the laser radar respectively, and then obtains the contour of the most protruding position on the obstacle through the visual sensor, that is, the observed outer contour, and then obtains the contours of the first contour and the second contour at corresponding positions on the image obtained by the visual sensor according to the installation heights of the edge ranging sensor and the laser radar on the robot, that is, the first observed contour and the second observed contour.
[0143] On this basis, the contour error correction calculation is performed based on the above five contour information obtained as the data basis. In some examples, the observed outer contour is calculated with the first contour obtained by the edge ranging sensor as the reference and the first observed contour obtained by the visual sensor as the data basis, so that the true contour information of the obstacle corrected based on the edge ranging sensor data can be determined. In other examples, the observed outer contour is calculated with the second contour obtained by the lidar as the reference and the second observed contour obtained by the visual sensor as the data basis, so that the true contour information of the obstacle corrected based on the lidar data can be determined. Error correction of the observed outer contour obtained by the visual sensor can effectively reduce the visual error caused by the horizontal and vertical field of view angles of the visual sensor and the flattening of the contour image.
[0144] In this way, the contour information of the obstacle can be acquired based on the visual sensor, edge ranging sensor and laser radar installed on the cleaning robot, and the real contour information of the obstacle can be determined based on the acquired contour information.
[0145] like Figure 5 As shown, in some embodiments, step 021 includes:
[0146] 0211: Determine the difference between the observed outer contour spacing and the first observed spacing;
[0147] 0212: Determine the sum of the difference value and the first spacing as a first sum value, and determine the first sum value as first outer contour information;
[0148] The first spacing is the distance between the first contour and the geometric center of the cleaning robot, the observed outer contour spacing is the distance between the observed outer contour and the geometric center, and the first observed spacing is the distance between the first observed contour and the geometric center.
[0149] In some embodiments, the contour calculation module is used to determine the difference between the observed outer contour spacing and the first observed spacing, and to determine the sum of the difference and the first spacing as a first sum value, and determine the first sum value as the first outer contour information.
[0150] In some embodiments, the processor is used to determine the difference between the observed outer contour spacing and the first observed spacing, and to determine the sum of the difference and the first spacing as a first sum value, and determine the first sum value as the first outer contour information.
[0151] Specifically, the following describes a method for correcting obstacle contour information using edge ranging sensor data. Figure 6 As shown, first, taking the geometric center of the robot as a reference, the first contour, the first observed contour and the observed outer contour are converted into the distance between the contour line and the geometric center of the robot, specifically: the minimum distance between the first contour and the geometric center of the robot is determined as the first spacing, the minimum distance between the first observed contour and the geometric center of the robot is determined as the first observation spacing, and the minimum distance between the observed outer contour and the geometric center of the robot is determined as the observed outer contour spacing.
[0152] As in Figure 6 In , v_contour corresponds to the observed outer contour distance, v_side_dist_contour corresponds to the first observed distance, and side_dist_contour corresponds to the first distance. Figure 6 From the positional relationship shown, it can be seen that the first sum value, that is, the first outer contour information contour_1, satisfies the following equation:
[0153] contour_1=side_dist_contour+(v_contour-v_side_dist_contour),
[0154] That is, by subtracting the observed outer contour spacing corresponding to the observed outer contour obtained by the visual sensor from the first observed spacing corresponding to the first observed contour, that is, using the difference between two groups of distances with horizontal and vertical field of view angle errors, the errors caused by the horizontal and vertical field of view angles are eliminated, and then added to the first spacing with higher accuracy obtained by the edge ranging sensor, the first outer contour information with higher accuracy can be obtained.
[0155] In this way, the first outer contour information of the obstacle can be determined based on the position of the robot and the contour information obtained based on the edge ranging sensor and the visual sensor by calculating and removing errors.
[0156] like Figure 7 As shown, in some embodiments, step 022 includes:
[0157] 0221: Determine the difference between the observed outer contour spacing and the second observed spacing;
[0158] 0222: Determine the sum of the difference value and the second spacing as a second sum value, and determine the second sum value as second outer contour information;
[0159] The second spacing is the distance between the second contour and the geometric center of the cleaning robot, the observed outer contour spacing is the distance between the observed outer contour and the geometric center, and the second observed spacing is the distance between the second observed contour and the geometric center.
[0160] In some embodiments, the contour calculation module is used to determine the difference between the observed outer contour spacing and the second observed spacing, and to determine the sum of the difference and the second spacing as a second sum, and determine the second sum as the second outer contour information.
[0161] In some embodiments, the processor is used to determine the difference between the observed outer contour spacing and the second observed spacing, and to determine the sum of the difference and the second spacing as a second sum value, and determine the second sum value as the second outer contour information.
[0162] Specifically, the following describes a method for correcting obstacle contour information using laser radar data. Figure 6 As shown, first, taking the geometric center of the robot as a reference, the second contour, the second observed contour and the observed outer contour are converted into the distance between the contour line and the geometric center of the robot, specifically: the minimum distance between the second contour and the geometric center of the robot is determined as the second spacing, the minimum distance between the second observed contour and the geometric center of the robot is determined as the second observation spacing, and the minimum distance between the observed outer contour and the geometric center of the robot is determined as the observed outer contour spacing.
[0163] As in Figure 6 In the figure, v_contour corresponds to the observed outer contour spacing, v_lidar_contour corresponds to the second observed spacing, and side_dist_contour corresponds to the second spacing.
[0164] Next, according to Figure 6 From the positional relationship shown, it can be seen that the second sum value, that is, the second outer contour information contour_2, satisfies the following equation:
[0165] contour_2=lidar_contour+(v_contour-v_lidar_contour),
[0166] That is, by subtracting the observed outer contour spacing corresponding to the observed outer contour obtained by the visual sensor from the second observed spacing corresponding to the second observed contour, that is, using the difference between two sets of distances with horizontal and vertical field of view angle errors, the errors caused by the horizontal and vertical field of view angles are eliminated, and then added to the second spacing with higher accuracy obtained by the lidar, the second outer contour information with higher accuracy can be obtained.
[0167] In this way, the second outer contour information of the obstacle can be determined based on the position of the robot and the contour information obtained based on the laser radar and the visual sensor, and the error can be removed through calculation.
[0168] like Figure 8 As shown, in some embodiments, step 023 includes:
[0169] 0231: Determine the difference between the observed outer contour spacing and the first observed spacing as a first difference value, and then determine the sum of the first difference value and the first spacing as a first sum value;
[0170] 0232: Determine the difference between the observed outer contour spacing and the second observed spacing as a second difference value, and then determine the sum of the second difference value and the second spacing as a second sum value;
[0171] 0233: Determine the smaller one of the first sum value and the second sum value as the outer contour information;
[0172] The first spacing is the distance between the first contour and the geometric center of the cleaning robot, the observed outer contour spacing is the distance between the observed outer contour and the geometric center, the first observation spacing is the distance between the first observed contour and the geometric center, the second spacing is the distance between the second contour and the geometric center of the cleaning robot, and the second observation spacing is the distance between the second observed contour and the geometric center.
[0173] In some embodiments, the contour calculation module is used to determine the difference between the observed outer contour spacing and the first observed spacing as a first difference, and then determine the sum of the first difference and the first spacing as a first sum, and to determine the difference between the observed outer contour spacing and the second observed spacing as a second difference, and then determine the sum of the second difference and the second spacing as a second sum, and to determine the smaller one of the first sum and the second sum as the outer contour information.
[0174] In some embodiments, the processor is used to determine the difference between the observed outer contour spacing and the first observed spacing as a first difference, and then determine the sum of the first difference and the first spacing as a first sum, and to determine the difference between the observed outer contour spacing and the second observed spacing as a second difference, and then determine the sum of the second difference and the second spacing as a second sum, and to determine the smaller one of the first sum and the second sum as the outer contour information.
[0175] Specifically, the following describes a method for correcting obstacle contour information by integrating edge ranging sensor data and laser radar data. Figure 6As shown, first, taking the geometric center of the robot as a reference, the first contour, the first observed contour, the second contour, the second observed contour and the observed outer contour are converted into the distance between the contour line and the geometric center of the robot, specifically: the minimum distance between the first contour and the geometric center of the robot is determined as the first spacing, the minimum distance between the first observed contour and the geometric center of the robot is determined as the first observation spacing, the minimum distance between the second contour and the geometric center of the robot is determined as the second spacing, the minimum distance between the second observed contour and the geometric center of the robot is determined as the second observation spacing, and the minimum distance between the observed outer contour and the geometric center of the robot is determined as the observed outer contour spacing.
[0176] As in Figure 6 In the figure, v_contour corresponds to the observed outer contour spacing, v_side_dist_contour corresponds to the first observed spacing, side_dist_contour corresponds to the first spacing, v_lidar_contour corresponds to the second observed spacing, and side_dist_contour corresponds to the second spacing.
[0177] Next, according to Figure 6 From the position relationship shown, it can be seen that the first sum value contour_1 satisfies the following relationship:
[0178] contour_1=side_dist_contour+(v_contour-v_side_dist_contour),
[0179] In addition, the second sum contour_2 satisfies the following relationship:
[0180] contour_2=lidar_contour+(v_contour-v_lidar_contour),
[0181] By subtracting the observed outer contour spacing corresponding to the observed outer contour obtained by the visual sensor from the first observed spacing corresponding to the first observed contour, and by subtracting the observed outer contour spacing corresponding to the observed outer contour obtained by the visual sensor from the second observed spacing corresponding to the second observed contour, that is, by subtracting two sets of distances with horizontal and vertical field of view angle errors, the errors caused by the horizontal and vertical field of view angles are eliminated. Then, the obtained difference is summed with the first spacing and the second spacing, respectively, so that two sets of alternative real contour data with higher accuracy can be obtained.
[0182] Since the first sum and the second sum are determined by the edge ranging sensor and the laser radar respectively, and there is a principle difference between the edge ranging sensor and the laser radar in determining the contour, the data tendencies obtained by the two may also be different. In order to maximize the range of motion of the robot within a limited range, it is necessary to select a relatively small value from the two alternative real contour data, the first sum and the second sum, to ensure that the determined real contour is closer to the robot. Therefore, the first sum contour_1 and the second sum contour_2 are compared, and the smaller one is taken as the distance contour between the real contour of the obstacle and the robot, that is, the outer contour information is determined. In particular, when the first sum contour_1 and the second sum contour_2 are the same size, either of them can be selected.
[0183] In this way, the error can be removed by calculation based on the position of the robot and the contour information obtained based on the edge ranging sensor, lidar and visual sensor, and a set of data that better meets the requirements can be selected from the two sets of results as the true contour information of the obstacle.
[0184] like Fig. 9 As shown, in some embodiments, step 01 includes:
[0185] 014: Based on the edge ranging sensor, obtain the first outline of the obstacle;
[0186] 015: Based on the visual sensor, obtain the observed outer contour and the first observed contour of the obstacle.
[0187] On this basis, step 02 includes:
[0188] 024: Determine outer contour information according to the first contour, the first observed contour and the observed outer contour.
[0189] In some embodiments, the contour observation module is used to obtain a first contour of an obstacle based on an edge ranging sensor, and is used to obtain an observed outer contour and a first observed contour of the obstacle based on a visual sensor, and the contour calculation module is used to determine outer contour information based on the first contour, the first observed contour, and the observed outer contour.
[0190] In some embodiments, the processor is used to obtain a first outline of an obstacle based on an edge ranging sensor, and to obtain an observed outer contour and a first observed contour of the obstacle based on a visual sensor, and to determine the outer contour information based on the first contour, the first observed contour, and the observed outer contour.
[0191] Specifically, the following describes a method for obtaining observed contour information and determining outer contour information using two sets of information acquisition devices, namely, edge distance sensors and visual sensors. In some examples, the laser radar installed on the cleaning robot may have an abnormal working condition, or the laser radar cannot receive valid contour data due to the special shape of the obstacle. In this case, the true contour information of the obstacle can only be determined based on the data obtained by the edge distance sensors and visual sensors. Figure 4 As shown, Figure 4 If the laser radar fails in this embodiment, the cleaning robot obtains the first contour on the obstacle through the edge ranging sensor, and obtains the contour of the most protruding position on the obstacle through the visual sensor, that is, observes the outer contour, and then obtains the contour of the first contour at the corresponding position on the image obtained by the visual sensor according to the installation height of the edge ranging sensor on the robot, that is, the first observed contour.
[0192] On this basis, the contour error correction calculation is performed based on the above three contour information obtained as the data basis. In some examples, the error correction calculation of the observed outer contour is performed based on the first contour obtained by the edge ranging sensor and the first observed contour obtained by the visual sensor, so that the true contour information of the obstacle corrected based on the edge ranging sensor data can be determined. Error correction of the observed outer contour obtained by the visual sensor can effectively reduce the visual error caused by the horizontal and vertical field of view of the visual sensor and the flattening of the contour image.
[0193] In this way, the contour information of the obstacle can be acquired only based on the visual sensor and the edge ranging sensor installed on the cleaning robot, and the real contour information of the obstacle can be determined based on the acquired contour information.
[0194] like Fig.10 As shown, in some embodiments, step 024 includes:
[0195] 0241: Determine the difference between the observed outer contour spacing and the first observed spacing;
[0196] 0242: Determine the sum of the difference value and the first spacing as a first sum value, and determine the first sum value as outer contour information;
[0197] Among them, the first spacing is the distance between the first contour and the geometric center of the cleaning robot, the observed outer contour spacing is the distance between the observed outer contour and the geometric center, and the first observation spacing is the distance between the first observed contour and the geometric center.
[0198] In some embodiments, the contour calculation module is used to determine the difference between the observed outer contour spacing and the first observed spacing, and to determine the sum of the difference and the first spacing as a first sum value, and determine the first sum value as the outer contour information.
[0199] In some embodiments, the processor is used to determine the difference between the observed outer contour spacing and the first observed spacing, and to determine the sum of the difference and the first spacing as a first sum value, and determine the first sum value as the outer contour information.
[0200] Specifically, the following describes a method for correcting obstacle contour information and determining outer contour information using edge ranging sensor data. Figure 6 As shown, first, taking the geometric center of the robot as a reference, the first contour, the first observed contour and the observed outer contour are converted into the distance between the contour line and the geometric center of the robot, specifically: the minimum distance between the first contour and the geometric center of the robot is determined as the first spacing, the minimum distance between the first observed contour and the geometric center of the robot is determined as the first observation spacing, and the minimum distance between the observed outer contour and the geometric center of the robot is determined as the observed outer contour spacing.
[0201] As in Figure 6 In , v_contour corresponds to the observed outer contour distance, v_side_dist_contour corresponds to the first observed distance, and side_dist_contour corresponds to the first distance. Figure 6 From the position relationship shown, it can be seen that the first sum value, that is, the outer contour information contour, satisfies the following equation:
[0202] contour=side_dist_contour+(v_contour-v_side_dist_contour),
[0203] That is, by subtracting the observed outer contour spacing corresponding to the observed outer contour obtained by the visual sensor from the first observed spacing corresponding to the first observed contour, that is, using the difference between two groups of distances with horizontal and vertical field of view angle errors, the errors caused by the horizontal and vertical field of view angles are eliminated, and then added to the first spacing with higher accuracy obtained by the edge ranging sensor, higher-precision outer contour information can be obtained.
[0204] In this way, the true contour information of the obstacle can be determined based on the position of the robot and only in combination with the contour information obtained based on the edge ranging sensor and the visual sensor by calculation to remove errors.
[0205] like Fig.11 As shown, in some embodiments, step 01 includes:
[0206] 016: Based on the laser radar, obtain the second outline of the obstacle;
[0207] 017: Based on the visual sensor, obtain the observed outer contour and the second observed contour of the obstacle;
[0208] On this basis, step 02 includes:
[0209] 025: Determine the outer contour information according to the second contour, the second observed contour and the observed outer contour.
[0210] In some embodiments, the contour observation module is used to obtain the second contour of the obstacle based on a laser radar, and is used to obtain the observed outer contour and the second observed contour of the obstacle based on a visual sensor, and the contour calculation module is used to determine the outer contour information based on the second contour, the second observed contour, and the observed outer contour.
[0211] In some embodiments, the processor is used to obtain a second contour of the obstacle based on a lidar, and to obtain an observed outer contour and a second observed contour of the obstacle based on a visual sensor, and to determine outer contour information based on the second contour, the second observed contour, and the observed outer contour.
[0212] Specifically, the following describes a method for using two sets of information acquisition devices, namely, a laser radar and a visual sensor, to obtain observed contour information and determine outer contour information. In some examples, the edge distance sensor installed on the cleaning robot may have an abnormal working condition, or the edge distance sensor cannot receive valid contour data due to the special shape of the obstacle. In this case, the true contour information of the obstacle can only be determined based on the data obtained by the laser radar and the visual sensor. Figure 4 As shown, Figure 4 If the middle edge ranging sensor fails in this embodiment, the cleaning robot obtains the second contour on the obstacle through the laser radar, and obtains the contour of the most protruding position on the obstacle through the visual sensor, that is, the observed outer contour, and then obtains the contour of the second contour at the corresponding position on the image obtained by the visual sensor according to the installation height of the laser radar on the robot, that is, the second observed contour.
[0213] On this basis, the contour error correction calculation is performed based on the above three contour information obtained as the data basis. In some examples, the error correction calculation of the observed outer contour is performed based on the second contour obtained by the laser radar and the second observed contour obtained by the visual sensor, so that the true contour information of the obstacle corrected based on the laser radar data can be determined. Error correction of the observed outer contour obtained by the visual sensor can effectively reduce the visual error caused by the horizontal and vertical field of view angles of the visual sensor and the flattening of the contour image.
[0214] In this way, the contour information of the obstacle can be acquired only based on the visual sensor and the laser radar installed on the cleaning robot, and the real contour information of the obstacle can be determined based on the acquired contour information.
[0215] like Fig.12 As shown, in some embodiments, step 025 includes:
[0216] 0251: Determine the difference between the observed outer contour spacing and the second observed spacing;
[0217] 0252: Determine the sum of the difference value and the second spacing as a second sum value, and determine the second sum value as outer contour information;
[0218] The second spacing is the distance between the second contour and the geometric center of the cleaning robot, the observed outer contour spacing is the distance between the observed outer contour and the geometric center, and the second observed spacing is the distance between the second observed contour and the geometric center.
[0219] In some embodiments, the contour calculation module is used to determine the difference between the observed outer contour spacing and the second observed spacing, and to determine the sum of the difference and the second spacing as a second sum value, and determine the second sum value as the outer contour information.
[0220] In some embodiments, the processor is used to determine the difference between the observed outer contour spacing and the second observed spacing, and to determine the sum of the difference and the second spacing as a second sum value, and determine the second sum value as the outer contour information.
[0221] Specifically, the following describes a method for correcting obstacle contour information and determining outer contour information using laser radar data. Figure 6 As shown, first, taking the geometric center of the robot as a reference, the second contour, the second observed contour and the observed outer contour are converted into the distance between the contour line and the geometric center of the robot, specifically: the minimum distance between the second contour and the geometric center of the robot is determined as the second spacing, the minimum distance between the second observed contour and the geometric center of the robot is determined as the second observation spacing, and the minimum distance between the observed outer contour and the geometric center of the robot is determined as the observed outer contour spacing.
[0222] As in Figure 6 In , v_contour corresponds to the observed outer contour spacing, v_lidar_contour corresponds to the second observed spacing, and lidar_contour corresponds to the second spacing. Figure 6 From the positional relationship shown, it can be seen that the second sum value, that is, the outer contour information contour, satisfies the following equation:
[0223] contour=lidar_contour+(v_contour-v_lidar_contour),
[0224] That is, by subtracting the observed outer contour spacing corresponding to the observed outer contour obtained by the visual sensor from the second observed spacing corresponding to the second observed contour, that is, using the difference between two sets of distances with horizontal and vertical field of view angle errors, the errors caused by the horizontal and vertical field of view angles are eliminated, and then added to the second spacing with higher accuracy obtained by the lidar, higher-precision outer contour information can be obtained.
[0225] In this way, the true contour information of the obstacle can be determined based on the position of the robot and by removing errors through calculation based on the contour information obtained by the laser radar and the visual sensor.
[0226] In addition, it can be understood that in the above embodiment, since the visual sensor has a horizontal field of view angle and a vertical field of view angle, the laser radar has a horizontal field of view angle, and the edge ranging sensor is only a single point ranging and does not have a horizontal or vertical field of view angle. Therefore, there may be a situation where the visual sensor is visible, the edge ranging sensor and the laser radar are visible or invisible to the same obstacle. Figure 6 It can be seen that due to the limitations of different sensors, the completeness of the obstacle contour description is also different. In particular, for some obstacles with special outer contours, such as obstacles whose sides are not perpendicular to the ground, the three may obtain different contour descriptions. Figure 6 As shown in the figure, the completeness of the obstacle contour description is from high to low: v_contour>lidar_contour>side_dist_contour. Therefore, the comprehensive consideration of the data of the three can make up for the limitations of the integrity of the edge ranging sensor and lidar to a certain extent.
[0227] In terms of the accuracy of the obtained contour information, by fusing the real-time data of the edge ranging sensor and / or the laser radar with the perception result of the visual sensor on the obstacle contour, the planes where the height of the edge ranging sensor and / or the laser radar sensor is located can be cut out from the obstacle contour information obtained by the visual sensor, and the virtual obstacle contour (v_side_dis_contour) measured by the edge ranging sensor and the virtual obstacle contour (v_lidar_contour) measured by the laser radar under visual measurement can be obtained to obtain more accurate contour information, which can effectively eliminate the absolute measurement error of the visual sensor, especially the binocular sensor, at the physical level. The above-mentioned implementation method provided by the present application can make the advantages of the edge ranging sensor, the laser radar and the visual sensor complement each other, and can find the outer contour of the most protruding part of the obstacle through the large field of view of the visual sensor, and can correct the contour obtained by the visual sensor through the high-precision observation of the edge ranging sensor and the laser radar to improve the accuracy, thereby realizing accurate perception of the obstacle contour. In particular, when facing obstacles with irregular side shapes, more accurate contour information can be obtained to improve the accuracy of the robot's route when avoiding obstacles along the edge, avoid collisions between the robot and obstacles, and reduce missed scanning areas.
[0228] In some embodiments, step 01 includes:
[0229] Based on the visual sensor, the observed outer contour of the obstacle is obtained;
[0230] On this basis, step 02 includes:
[0231] The distance between the observed outer contour and the geometric center of the cleaning robot is determined as the outer contour information.
[0232] In some embodiments, the contour observation module is used to obtain the observed outer contour of the obstacle, and the contour calculation module is used to determine the distance between the observed outer contour and the geometric center of the cleaning robot as the outer contour information.
[0233] In certain embodiments, the processor is used to obtain an observed outer contour of the obstacle, and to determine a distance between the observed outer contour and a geometric center of the cleaning robot as outer contour information.
[0234] Specifically, in some examples, due to the special shapes of some obstacles, the laser radar and edge ranging sensors installed on the cleaning robot cannot obtain effective contour information. In this case, the real contour information of the obstacle can only be determined by the data obtained by the visual sensor. Figure 4As shown, the edge distance sensor and the laser radar fail in this embodiment, and the cleaning robot obtains the contour of the most protruding position on the obstacle through the visual sensor, that is, the observed outer contour. Since no other sensor data can be used to correct the observed outer contour, the observed outer contour can be directly used as the outer contour information.
[0235] In this way, the outline information of the obstacle can be acquired only based on the visual sensor installed on the cleaning robot.
[0236] like Fig.13 As shown, in some embodiments, step 03 includes:
[0237] 031: Obtain semantic information of obstacles;
[0238] 032: Determine the first distance of the obstacle based on the semantic information;
[0239] 033: Determine an expansion contour of the obstacle according to the outer contour information, the first distance, and the size information of the cleaning robot;
[0240] 034: Determine the target motion path based on the expansion contour.
[0241] In some embodiments, the path generation module is used to obtain semantic information of an obstacle, and to determine a first distance of the obstacle based on the semantic information, and to determine an expanded contour of the obstacle based on the outer contour information, the first distance, and size information of the cleaning robot, and to determine a target motion path based on the expanded contour.
[0242] In some embodiments, the processor is used to obtain semantic information of an obstacle, and to determine a first distance of the obstacle based on the semantic information, and to determine an expanded contour of the obstacle based on the outer contour information, the first distance, and size information of the cleaning robot, and to determine a target motion path based on the expanded contour.
[0243] Specifically, after determining the true contour information of the obstacle, the next step is to plan the target motion path according to the true contour information, so that the robot can avoid collision with the obstacle while maintaining the maximum motion range when moving along the target motion path.
[0244] First, the cleaning robot obtains semantic information of the obstacle. Semantic information refers to information with a certain meaning that can eliminate the uncertainty of things. Specifically in the implementation of the present application, it can be expressed as the attribute or category of the obstacle. For example, the semantic information "toy" indicates that the obstacle belongs to the toy category, and the semantic information "special obstacle" indicates the attribute that the side of the obstacle is not perpendicular to the ground. Regarding the acquisition of semantic information, in some examples, the cleaning robot obtains obstacle information in the environment at the current position through an information acquisition device installed on the cleaning robot, such as a related sensor. The form of the obstacle information includes but is not limited to images, videos, point clouds, etc., which mainly describe the size, shape, type, etc. of the obstacle. Then, the obstacle is identified based on the acquired obstacle information to determine the semantic information corresponding to the obstacle.
[0245] Then, after the semantic information is determined, different obstacles will have different classifications or different names. In order to correspond this distinction in classification or name to the planning of the motion path, in some examples, the edge distance corresponding to the semantic information is set at the corresponding semantic information in the preset semantic information library, that is, the first distance. The edge distance refers to the distance between the outer edge of the cleaning robot and the outer contour of the obstacle when the robot moves along the edge of the obstacle. For example, in some examples, the edge distance corresponding to each piece of semantic information has been pre-set in the preset semantic information library, such as the edge distance corresponding to the semantic information "trash can" is 3 cm, and the edge distance corresponding to the semantic information "feces" is 10 cm. In some examples, an obstacle may have multiple semantic information at the same time, then the largest one of the edge distances corresponding to these semantic information is taken as the first distance, so as to minimize the collision between the robot and the obstacle. In some examples, the robot determines that the semantic information of an obstacle includes "floor lamp" and "special obstacle", and the edge distance corresponding to the semantic information "floor lamp" in the preset semantic information library is 3 cm, and the edge distance corresponding to the semantic information "special obstacle" is 5 cm. The robot takes 5 cm as the edge distance of the obstacle.
[0246] Next, after determining the distance along the edge, the outer contour information obtained in the aforementioned implementation - that is, the distance from the outer contour of the obstacle to the geometric center of the robot, the distance along the edge, and the size information of the cleaning robot itself, can be used to calculate the expanded contour of the obstacle through geometric relationships. It is understandable that since the motion calculation of the cleaning robot is generally based on its geometric center, in order to determine the target motion path, in addition to the distance along the edge of the obstacle, it is also necessary to add the size information of the cleaning robot to determine the expansion radius of the obstacle. The size information of the cleaning robot is generally expressed as the radius of the cleaning robot. The expansion radius refers to the distance between the center of the cleaning robot and the outer contour of the obstacle when the cleaning robot is running to avoid obstacles. In some examples, such as Fig.14As shown in the figure, the radius of the robot is 25 cm, the semantic information of the obstacle is "car model", and the corresponding distance along the edge is 3 cm, so the expansion radius is confirmed to be 28 cm. Then, after determining the expansion radius, confirm the distance between the outer contour of the obstacle and the geometric center of the robot - that is, the outer contour information - to locate the obstacle, and finally expand the outer contour of the obstacle outward by the expansion radius mentioned above, and the shape needs to be kept unchanged and the continuity of the curve needs to be maintained. The curve obtained in this way is the expansion contour. The expansion contour is the original state of the target motion trajectory, and the expansion contour can be converted into the target motion trajectory after multiple processing steps.
[0247] In this way, the basic data of the avoidance path can be determined according to the obstacle category based on the acquired semantic information of the obstacle, and the path for the robot to avoid the obstacle can be determined in combination with the robot's own appearance characteristics.
[0248] like Fig.15 As shown, in some embodiments, step 034 includes:
[0249] 0341: When there are multiple obstacles and the ranges of multiple expansion contours overlap, multiple expansion contours are merged to determine the original target motion path;
[0250] 0342: Determine the target motion path according to the original target motion path.
[0251] In some embodiments, the path generation module is used to merge multiple expansion contours to determine the original target motion path when there are multiple obstacles and the ranges of the multiple expansion contours overlap, and to determine the target motion path based on the original target motion path.
[0252] In some embodiments, the processor is used to merge multiple expansion contours to determine the original target motion path when there are multiple obstacles and the ranges of the multiple expansion contours overlap, and to determine the target motion path based on the original target motion path.
[0253] Specifically, when there are multiple obstacles in the environment where the cleaning robot is located, there will be overlap between the multiple expanded contours obtained after the outer contours of the multiple obstacles are expanded. When the size and relative distance of the obstacles are within a certain range, the expanded contour of obstacle A will pass through obstacle B. At this time, if the cleaning robot moves along the expanded contour of obstacle A, it will inevitably collide with obstacle B. Therefore, in this case, it is necessary to plan a path that can avoid multiple obstacles. Since the expanded contours with overlapping ranges intersect, multiple expanded contours are merged, and only the outermost contours after the merger are retained, and the other parts are deleted to obtain multiple original target motion paths. In some examples, such as Fig.16 As shown in FIG. 1 , the thick solid line represents an expansion contour retained after merging. The original target motion path is the intermediate data determined based on the expansion contour, and further data processing is required to finally determine the target motion path.
[0254] In this way, when there are multiple obstacles and the distance between the obstacles is relatively close, the edge contours of the obstacles can be integrated to determine a complete and continuous obstacle avoidance path.
[0255] like Fig.17 As shown, in some embodiments, step 034 also includes:
[0256] 0343: Obtain a second distance between the expanded contour and the cleaning robot;
[0257] 0344: Determine that the expansion contour whose second distance satisfies a preset condition is the original target motion path;
[0258] 0345: Determine the target motion path according to the original target motion path.
[0259] In some embodiments, the path generation module is used to obtain a second distance between the expanded contour and the cleaning robot, and to determine that the expanded contour whose second distance meets preset conditions is the original target motion path, and to determine the target motion path based on the original target motion path.
[0260] In some embodiments, the processor is used to obtain a second distance between the expanded contour and the cleaning robot, and to determine that the expanded contour whose second distance meets preset conditions is the original target motion path, and to determine the target motion path based on the original target motion path.
[0261] Specifically, in some examples, there may be multiple expansion contours obtained by expanding the obstacle, and there are differences in the distance between each expansion contour and the current position of the cleaning robot. Therefore, the minimum distance between the expansion contour and the cleaning robot, that is, the second distance, is first obtained. One way is to make multiple circles with different radii with the current position of the geometric center of the cleaning robot as the center. When the circle made in this way is circumscribed with an expansion contour or only intersects with the nearest endpoint of the expansion contour, the radius of the circle is the second distance, that is, the minimum distance from the geometric center of the robot to the expansion contour. After obtaining multiple minimum distances, in order to enable the cleaning robot to perform avoidance movements more efficiently, the smallest of the above minimum distances is selected, and the corresponding expansion contour is determined as the original target motion path. In this way, the cleaning robot is closest to the selected expansion path, and the efficiency of entering the target motion path for edge avoidance movements is the highest. Then, the original target motion path is processed to finally determine the target motion path.
[0262] In some examples, such as Fig.18 As shown, the thick solid line and the thick dotted line respectively represent the two expanded contours retained after the merger. A circle is drawn with the geometric center of the cleaning robot as the center. According to the above standards, it is determined that the expanded contour represented by the thick solid line corresponds to the second distance A, and the expanded contour represented by the thick dotted line corresponds to the second distance B. Since the second distance A is smaller than the second distance B, the cleaning robot determines the expanded contour represented by the thick solid line as the original target motion path.
[0263] In this way, it is possible to use the current position of the robot as a reference, select an expanded contour that meets the conditions according to the distance between the robot and the expanded obstacle contour, and perform further processing to determine the path for the robot to avoid the obstacle.
[0264] like Fig.19 As shown, in some embodiments, step 0345 includes:
[0265] 03451: Determine the direction of travel of the original target motion path
[0266] 03452: Determine the starting point of the cleaning robot on the target motion path according to the current position of the cleaning robot and the original target motion path;
[0267] 03453: Determine the target motion path according to the direction and starting point of the original target motion path.
[0268] In some embodiments, the path generation module is used to determine the direction of travel of the original target motion path, and to determine the starting point of the cleaning robot on the target motion path based on the current position of the cleaning robot and the original target motion path, and to determine the target motion path based on the direction of travel and the starting point of the original target motion path.
[0269] In some embodiments, the processor is used to determine the direction of travel of the original target motion path, and to determine the starting point of the cleaning robot on the target motion path based on the current position of the cleaning robot and the original target motion path, and to determine the target motion path based on the direction of travel and the starting point of the original target motion path.
[0270] Specifically, after determining the original target motion path, it is first necessary to determine the direction of travel of the cleaning robot along the path. The direction of travel can be determined according to the characteristics of the environment, the current motion direction of the robot and other relevant requirements. For example, in some examples, the current motion direction of the cleaning robot is clockwise relative to the obstacle, so the direction of travel of the original target motion path is determined to be clockwise. For example, in other examples, in the environment where the obstacle is located, if the obstacle is avoided clockwise, it is very likely to collide with other obstacles, then the direction of travel of the original target motion path is determined to be counterclockwise. Then, multiple circles with different radii are made with the geometric center of the cleaning robot as the center. When the circle made in this way is tangent to an expanded contour, the tangent point is the point on the original target motion path that is closest to the current position of the cleaning robot. In order to make the cleaning robot's entry distance shorter and the entry efficiency higher, this point is used as the starting point of the cleaning robot on the target motion path. The above-mentioned direction of travel and starting point are the basic geometric elements for generating the target motion path based on the original target motion path.
[0271] In this way, the starting point and the direction of travel on the obstacle avoidance path can be determined according to the current position of the robot.
[0272] like Fig. 20 As shown, in some embodiments, step 03453 includes:
[0273] 03001: Determine whether the distance between the current position of the cleaning robot and the starting point is greater than a preset threshold, if not, proceed to step 03002;
[0274] 03002: Taking the starting point as the initial reference point, according to the moving direction of the original target motion path and the preset spacing threshold range, determine multiple reference points on the original target motion path;
[0275] 03003: Take the starting point as the initial reference point, connect all reference points in sequence with line segments along the direction of the original target motion path, and determine the target motion path.
[0276] In certain embodiments, the path generation module is used to determine whether the distance between the current position of the cleaning robot and the starting point is greater than a preset threshold, and is used to determine multiple reference points on the original target motion path based on the travel direction of the original target motion path and a preset spacing threshold range, with the starting point as the initial reference point, and to determine the target motion path by connecting all reference points in sequence with line segments along the travel direction of the original target motion path with the starting point as the initial reference point.
[0277] In certain embodiments, the processor is used to determine whether the distance between the current position of the cleaning robot and the starting point is greater than a preset threshold, and is used to determine multiple reference points on the original target motion path based on the travel direction of the original target motion path and a preset spacing threshold range, with the starting point as the initial reference point, and is used to determine the target motion path by connecting all reference points in sequence with line segments along the travel direction of the original target motion path with the starting point as the initial reference point.
[0278] Specifically, after determining the starting point and direction of the original target motion path, it is necessary to determine the shortest distance between the cleaning robot and the original target motion path. The shortest distance is the radius of the circle with the geometric center of the cleaning robot as the center and circumscribed to the original target motion path in the method for determining the starting point in the above embodiment. If the distance is too large, it means that the distance between the corresponding obstacle and the cleaning robot is far. On the one hand, it may be because the cleaning robot is currently far away from the obstacle, and on the other hand, it may be because the corresponding obstacle is not the obstacle that needs to be avoided the most. Therefore, a threshold is set. When the radius of the above circle is less than or equal to the threshold, it can be determined that the corresponding obstacle is the one that the cleaning robot needs to avoid the most. In this case, the original target motion path continues to be processed. The specific processing method is to thin out the original target motion path according to the starting point and the direction of travel. The specific method is as follows:
[0279] In some examples, the starting point is used as the initial reference point, and multiple discrete reference points are selected at certain intervals in the direction of travel of the original target motion path. The interval length between the reference points is within a threshold range. Since the processing object is an image, the threshold range is a pixel range, such as a range between 3px and 8px. The distance between adjacent reference points is between 3px and 8px. The specific length corresponding to 1px can be determined according to the image obtained by the cleaning robot. The reason for setting the threshold range is that since the original target motion path is a curve, if the distances between adjacent reference points are equal, the various reference points may be unevenly distributed. In order to avoid this situation, a variable range is set to provide flexible space for the uniform distribution setting of the reference points. Then, after all the reference points are determined, the starting point is used as the starting point, and all the reference points are connected in sequence along the direction of travel with line segments to form a closed polygon, and the target motion path required for the actual edge movement of the cleaning robot is obtained.
[0280] The main purpose of thinning the original target motion path is to reduce the number of points on the path by setting reference points, thereby reducing the amount of calculation when the cleaning robot performs avoidance motion along the path to improve efficiency. At the same time, it also facilitates the robot to calculate the posture of entering the target motion path for motion.
[0281] In this way, when the original target motion path meets the conditions, the original target motion path can be thinned to determine the target motion path, so that the robot can perform obstacle avoidance motion.
[0282] like Fig. 20 As shown, in some embodiments, step 03453 also includes:
[0283] 03001: Determine whether the distance between the current position of the cleaning robot and the starting point is greater than a preset threshold. If so, go to step 031.
[0284] In some embodiments, the path generation module is used to determine whether the distance between the current position of the cleaning robot and the starting point is greater than a preset threshold.
[0285] In some embodiments, the processor is used to determine whether the distance between the current position of the cleaning robot and the starting point is greater than a preset threshold.
[0286] Specifically, after determining the starting point and direction of the original target motion path, it is necessary to determine the shortest distance between the cleaning robot and the original target motion path. The shortest distance is the radius of the circle with the geometric center of the cleaning robot as the center and circumscribed to the original target motion path in the method for determining the starting point in the above embodiment. If the distance is too large, it means that the distance between the corresponding obstacle and the cleaning robot is far. On the one hand, it may be because the cleaning robot is currently far away from the obstacle, and on the other hand, it may be because the corresponding obstacle is not the obstacle that needs to be avoided the most. Therefore, a threshold is set. When the radius of the circle is greater than the threshold, it means that the current obstacle is not an obstacle that needs to be avoided or there may be an error in the process of determining the path. Therefore, the initial state is returned to re-acquire the semantic information of the obstacle and re-plan the motion path to correct potential errors.
[0287] In this way, the present application can also realize looping and re-acquiring the semantic information of the obstacle when the original target motion path does not meet the conditions.
[0288] like Fig.21 As shown, in some embodiments, step 04 includes:
[0289] 041: Obtain the distance between the current position of the cleaning robot and the starting point, and determine it as the adjustment distance;
[0290] 042: Determine, according to the starting point, an angle between an original moving direction of the cleaning robot and a moving direction of the target motion path, and determine the angle as an adjustment angle;
[0291] 043: Control the movement of the cleaning robot so that the adjustment distance is smaller than a preset value and the adjustment angle is smaller than a preset value.
[0292] In some embodiments, the motion control module is used to obtain the distance between the current position of the cleaning robot and the starting point, which is determined as the adjustment distance; and is used to determine the angle between the current moving direction of the cleaning robot and the moving direction of the target motion path based on the starting point, which is determined as the adjustment angle; and is used to control the movement of the cleaning robot so that the adjustment distance is less than a preset value and the adjustment angle is less than a preset value.
[0293] In some embodiments, the processor is used to obtain the distance between the current position of the cleaning robot and the starting point, which is determined as the adjustment distance; and is used to determine the angle between the current moving direction of the cleaning robot and the moving direction of the target motion path based on the starting point, which is determined as the adjustment angle; and is used to control the movement of the cleaning robot so that the adjustment distance is less than a preset value and the adjustment angle is less than a preset value.
[0294] Specifically, after determining the target motion path, the robot needs to be able to accurately enter the target motion path to perform obstacle avoidance movement along the edge. Therefore, in order to ensure the accuracy of entering the track, two parameters, adjustment distance and adjustment angle, need to be introduced. These two parameters are related to the current position, starting point, and travel direction of the target motion path of the cleaning robot. The adjustment distance is the minimum distance for the cleaning robot to enter the track, that is, the distance between the current position of the robot and the starting point. The adjustment angle is related to two directions. On the one hand, it is the travel direction of the target motion path, which is specifically manifested as the travel direction at the starting point on the target motion path. On the other hand, it is the travel direction of the robot itself. It can take the vector direction starting from the current position of the robot and ending at the starting point, or it can take the current travel direction of the robot. In some examples, the latter - that is, the current travel direction of the robot - is calculated with the travel direction of the target motion path to determine the adjustment angle.
[0295] After that, the robot movement is controlled with the goal of controlling the adjustment distance and the adjustment angle to be reduced to below the preset value. When the adjustment distance and the adjustment angle are both reduced to below the preset value, it means that the robot has accurately entered the target motion path within an acceptable error range. In some examples, the preset value of the adjustment distance can be set to a length value less than 0.2 cm, and the preset value of the adjustment angle can be set to an angle value less than 1 arc second. The preset value should be as close to 0 as possible, and the closer to 0 it is, the more accurately the cleaning robot enters the target motion path. The adjustment distance close to 0 means that the distance between the current position of the cleaning robot and the starting point is close to 0, and the adjustment angle close to 0 means that the current motion direction of the robot is closer to the direction of travel of the target motion path. When the adjustment distance is 0 and the adjustment angle is 0, it means that the robot enters the target motion path completely and accurately.
[0296] In some examples, for the determination process of adjusting the angle, since the target motion path is obtained by thinning the original target motion path and connecting the end to the end with line segments, there is a slight difference between the direction of travel of the target motion path and the tangent direction of the original target motion path before thinning, so the direction of travel of the target motion path needs to be further determined. In some examples, since the cleaning robot starts from the starting point on the target motion path, the calculation of the direction of travel of the target motion path starts with the starting point. In addition, in order to reduce the amount of calculation, it is better to only take the reference point adjacent to the starting point to calculate the vector direction. At the same time, since the original target motion path has a direction of travel, the target motion path can refer to the direction of the original target motion path to take the reference point adjacent to the starting point. The calculation of the direction of travel of the target motion path ends with this reference point, then the vector direction starting from the starting point and ending with the reference point adjacent to the starting point can be determined as the direction of travel of the target motion path, and then the angle is taken by the current direction of travel of the robot and the direction of travel of the target motion path, so as to determine the adjustment angle.
[0297] For example, in some examples, such as Fig. 22 As shown in the figure, the thick dotted line represents the original target motion path, the thin solid line represents the target motion path, and the reference point A is the reference point adjacent to the starting point in the direction of the target motion path. The angle between the vector with the starting point as the beginning and the reference point A as the end and the robot's current direction vector is the adjustment angle ( Fig.16 The length of the line connecting the geometric center of the cleaning robot and the starting point is the adjustment distance. The scene in which the cleaning robot is finally controlled to accurately enter the target motion path is as follows: Fig.23 shown.
[0298] In this way, the robot can be controlled to move along the target motion path according to the starting point and the travel direction of the target motion path according to the relevant parameter values to avoid obstacles.
[0299] The present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by one or more processors, the cleaning robot control method as described in the above embodiment is implemented.
[0300] In the description of this specification, the descriptions with reference to the terms "certain embodiments", "in an example", "exemplarily", etc., mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0301] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0302] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A cleaning robot control method, characterized in that: The method comprises: Obtain the observed contour information of obstacles; Determining outer contour information of the obstacle according to the observed contour information; Determining, according to the outer contour information, a target motion path for the cleaning robot to move in order to avoid the obstacle; The cleaning robot is controlled to move along the target motion path to avoid the obstacle.
2. The method according to claim 1, characterized in that The obtaining of the observed profile information of the obstacle includes: Acquire a first outline of the obstacle based on an edge ranging sensor; Based on the laser radar, obtaining a second outline of the obstacle; Based on the visual sensor, the observed outer contour, the first observed contour and the second observed contour of the obstacle are obtained, The observed outer contour is the contour corresponding to the outer contour of the obstacle in the field of view of the visual sensor, the first observed contour is the contour corresponding to the first contour in the field of view of the visual sensor, and the second observed contour is the contour corresponding to the second contour in the field of view of the visual sensor; Determining the outer contour information of the obstacle according to the observed contour information includes: Determine first outer contour information according to the first contour, the first observed contour, and the observed outer contour; Determine second outer contour information according to the second contour, the second observed contour, and the observed outer contour; The outer contour information is determined according to the first outer contour information and the second outer contour information.
3. The method according to claim 2, characterized in that The determining first outer contour information according to the first contour, the first observed contour and the observed outer contour comprises: Determine the difference between the observed outer contour spacing and the first observed spacing; Determine the sum of the difference and the first distance as the first sum value, and determine the first sum value as the first outer contour information, wherein the first distance is the distance between the first contour and the geometric center of the cleaning robot, the observed outer contour distance is the distance between the observed outer contour and the geometric center, and the first observed distance is the distance between the first observed contour and the geometric center.
4. The method according to claim 2, characterized in that: The determining of second outer contour information according to the second contour, the second observed contour and the observed outer contour comprises: Determine the difference between the observed outer contour spacing and the second observed spacing; Determine the sum of the difference and the second distance as the second sum value, and determine the second sum value as the second outer contour information, wherein the second distance is the distance between the second contour and the geometric center of the cleaning robot, the observed outer contour distance is the distance between the observed outer contour and the geometric center, and the second observed distance is the distance between the second observed contour and the geometric center.
5. The method according to claim 2, characterized in that: The determining the outer contour information according to the first outer contour information and the second outer contour information includes: Determine the difference between the observed outer contour spacing and the first observed spacing as a first difference, and then determine the sum of the first difference and the first spacing as a first sum, wherein the first spacing is the distance between the first contour and the geometric center of the cleaning robot, the observed outer contour spacing is the distance between the observed outer contour and the geometric center, and the first observed spacing is the distance between the first observed contour and the geometric center; Determine the difference between the observed outer contour spacing and the second observed spacing as a second difference, and then determine the sum of the second difference and the second spacing as a second sum, wherein the second spacing is the distance between the second contour and the geometric center of the cleaning robot, and the second observed spacing is the distance between the second observed contour and the geometric center; The smaller one of the first sum value and the second sum value is determined as the outer contour information.
6. The method according to claim 1, characterized in that The obtaining of the observed profile information of the obstacle includes: Acquire a first outline of the obstacle based on an edge ranging sensor; Based on the visual sensor, an observed outer contour and a first observed contour of the obstacle are obtained, wherein the observed outer contour is a contour corresponding to the outer contour of the obstacle in the field of view of the visual sensor, and the first observed contour is a contour corresponding to the first contour in the field of view of the visual sensor; Determining the outer contour information of the obstacle according to the observed contour information includes: The outer contour information is determined according to the first contour, the first observed contour, and the observed outer contour.
7. The method according to claim 6, characterized in that Determining the outer contour information according to the first contour, the first observed contour, and the observed outer contour includes: Determine the difference between the observed outer contour spacing and the first observed spacing; Determine the sum of the difference and the first distance as the first sum value, and determine the first sum value as the outer contour information, wherein the first distance is the distance between the first contour and the geometric center of the cleaning robot, the observed outer contour distance is the distance between the observed outer contour and the geometric center, and the first observed distance is the distance between the first observed contour and the geometric center.
8. The method according to claim 1, characterized in that The obtaining of the observed profile information of the obstacle includes: Based on the laser radar, obtaining a second outline of the obstacle; Based on the visual sensor, acquiring an observed outer contour and a second observed contour of the obstacle, wherein the observed outer contour is a contour corresponding to the outer contour of the obstacle in the field of view of the visual sensor, and the second observed contour is a contour corresponding to the second contour in the field of view of the visual sensor; Determining the outer contour information of the obstacle according to the observed contour information includes: The outer contour information is determined according to the second contour, the second observed contour, and the observed outer contour.
9. The method according to claim 8, characterized in that Determining the outer contour information according to the second contour, the second observed contour, and the observed outer contour includes: Determine the difference between the observed outer contour spacing and the second observed spacing; Determine the sum of the difference and the second distance as the second sum value, and determine the second sum value as the outer contour information, wherein the second distance is the distance between the second contour and the geometric center of the cleaning robot, the observed outer contour distance is the distance between the observed outer contour and the geometric center, and the second observed distance is the distance between the second observed contour and the geometric center.
10. The method according to claim 1, characterized in that The obtaining of the observed profile information of the obstacle includes: Based on the visual sensor, obtaining the observed outer contour of the obstacle; Determining the outer contour information of the obstacle according to the observed contour information includes: The distance between the observed outer contour and the geometric center of the cleaning robot is determined as the outer contour information.
11. The method according to any one of claims 1 to 10, characterized in that: The step of determining, based on the outer contour information, a target motion path for the cleaning robot to avoid the obstacle comprises: Acquiring semantic information of the obstacle; Determining a first distance of the obstacle according to the semantic information; Determining an expansion contour of the obstacle according to the outer contour information, the first distance, and the size information of the cleaning robot; The target motion path is determined according to the expansion profile.
12. The method according to claim 11, characterized in that The step of determining the target motion path according to the expansion profile includes: In the case that there are multiple obstacles and the ranges of the multiple expansion contours overlap, merging the multiple expansion contours to determine the original target motion path; The target motion path is determined according to the original target motion path.
13. The method according to claim 11, characterized in that The step of determining the target motion path according to the expansion profile includes: acquiring a second distance between the expansion profile and the cleaning robot; Determine that the expansion contour whose second distance satisfies a preset condition is the original target motion path; The target motion path is determined according to the original target motion path.
14. The method according to claim 13, characterized in that The step of determining the target motion path according to the original target motion path includes: Determining the direction of travel of the original target motion path; Determining a starting point of the cleaning robot on the target motion path according to the current position of the cleaning robot and the original target motion path; The target motion path is determined according to the moving direction of the original target motion path and the starting point.
15. The method according to claim 14, characterized in that The step of determining the target motion path according to the moving direction and the starting point of the original target motion path includes: In the case where the distance between the current position of the cleaning robot and the starting point is less than or equal to a preset threshold, taking the starting point as the initial reference point, and according to the travel direction of the original target motion path and a preset spacing threshold range, determining a plurality of reference points on the original target motion path, wherein the spacing between adjacent reference points is within the preset spacing threshold range; Taking the starting point as the initial reference point, all the reference points are connected in sequence with line segments along the direction of travel of the original target motion path to determine the target motion path.
16. The method according to claim 15, characterized in that The method further comprises: When the distance between the current position of the cleaning robot and the starting point is less than or equal to a preset threshold or greater than a preset threshold, the semantic information of the obstacle is acquired.
17. The method according to claim 15, characterized in that The controlling the cleaning robot to move along the target motion path comprises: Obtaining the distance between the current position of the cleaning robot and the starting point, and determining it as the adjustment distance; According to the starting point, determining an angle between the original moving direction of the cleaning robot and the moving direction of the target motion path, and determining the angle as an adjustment angle; The cleaning robot is controlled to move so that the adjustment distance is smaller than a preset value and the adjustment angle is smaller than a preset value.
18. A cleaning robot, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the cleaning robot control method as described in any one of claims 1-17.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the cleaning robot control method according to any one of claims 1 to 17 is implemented.
Citation Information
Cited By
Automatic obstacle avoiding and detouring method for mobile robot
CN119759033A
