A local path planning method and device for intelligent mobile device

By planning the global path and selecting local paths, combined with depth camera and lidar detection and A* algorithm, it solves the problem of difficulty for smart mobile devices to accurately reach the target point in complex environments, improves movement accuracy and efficiency, and avoids collisions with obstacles. .

CN111796586BActive Publication Date: 2024-08-27BEIJING QIHOOD TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910208668.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-03-19
Publication Date
2024-08-27
Estimated Expiration
2039-03-19

AI Technical Summary

Technical Problem

It is difficult for smart mobile devices such as sweeping robots to accurately reach the target point in complex environments. A single movement mode leads to low efficiency and low control accuracy, and it is easy to deviate from the planned path.

Method used

By determining the current position of the tracking object, planning the global path, and selecting a local path from the preset trajectory set according to the current speed of the smart mobile device, using depth cameras and lidar for detection, and combining the A* algorithm and evaluation function to optimize the trajectory. Select and adjust local paths in time to avoid obstacles.

Benefits of technology

It improves the movement accuracy and efficiency of smart mobile devices, ensures that the device can accurately reach the target point, avoids collision with obstacles, and extends the life of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111796586B
    Figure CN111796586B
Patent Text Reader

Abstract

The present invention discloses a local path planning method and device for an intelligent mobile device. The local path planning method for an intelligent mobile device of the present invention tracks the tracking object by determining a tracking object, determining a target point according to the current position of the tracking object, and planning a path from the current position of the intelligent mobile device to the target point as a global path. According to the current speed of the intelligent mobile device and the global path, a trajectory line is selected from a preset trajectory line set as a local path. Before starting tracking, the direction of travel of the intelligent mobile device is first determined so that the intelligent mobile device has a basis for travel, thereby avoiding the tracking object moving too fast and causing loss. Moreover, the local path can realize precise control of the movement of the intelligent mobile device, improve the travel accuracy of the intelligent mobile device, and to a certain extent improve the travel efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent mobile device control, and in particular to a local path planning method and device for an intelligent mobile device. Background Art

[0002] In the prior art, smart mobile devices such as sweeping robots generally move along a planned path and can only move in a single movement mode. This will affect the movement efficiency of the smart mobile device to a certain extent. Moreover, in complex situations, a single movement mode can easily cause the smart mobile device to deviate from the planned path, so that the smart mobile device cannot move to the target point. Moreover, if the movement of the smart mobile device is not adjusted during the movement process, it will also affect the control accuracy of the smart mobile device, causing the smart mobile device to be unable to work accurately. Therefore, a corresponding solution is needed. Summary of the invention

[0003] In view of the above problems, the present invention is proposed to provide a method and device for local path planning of an intelligent mobile device that overcomes the above problems or at least partially solves the above problems.

[0004] According to one aspect of the present invention, a local path planning method for an intelligent mobile device is provided, comprising:

[0005] Determine the tracking object;

[0006] Determine a target point according to the current position of the tracked object, plan a path from the current position of the smart mobile device to the target point as a global path, and track the tracked object;

[0007] According to the current speed of the intelligent mobile device and the global path, a trajectory line is selected from a preset trajectory line set as a local path.

[0008] Optionally, determining the tracking object includes:

[0009] Detection is performed through a depth camera and / or a lidar, and objects that meet preset features are determined as tracking objects.

[0010] Optionally, planning a path from the current position of the smart mobile device to the target point includes:

[0011] A trajectory line from the current position of the smart mobile device to the target point is searched based on the A* algorithm.

[0012] Optionally, the method further comprises:

[0013] Setting a plurality of sampling speeds according to the parameters of the intelligent mobile device;

[0014] The trajectory lines of the intelligent mobile device at each sampling speed are generated respectively and put into the preset trajectory line set.

[0015] Optionally, the selecting a trajectory line from a preset trajectory line set as a local path comprises:

[0016] For each trajectory line in the preset trajectory line set, an evaluation value related to the current speed and the global path is calculated according to a preset evaluation function;

[0017] The trajectory line with the best evaluation value is selected as the local path.

[0018] Optionally, for each trajectory line in the preset trajectory line set, calculating the evaluation value related to the current speed and the global path according to a preset evaluation function comprises:

[0019] According to the preset evaluation function, the evaluation value is calculated based on the deviation between the sampling speed corresponding to each trajectory line and the current speed, the angle deviation between each trajectory line and the global path, and the position deviation between each trajectory line and the global path.

[0020] Optionally, the method further comprises:

[0021] Obstacle detection during tracking;

[0022] When an obstacle is detected, the local path is adjusted according to the detected obstacle location.

[0023] Optionally, the intelligent mobile device is a sweeping robot, and the tracking object is a human body.

[0024] According to another aspect of the present invention, a local path planning device for a smart mobile device is provided, comprising:

[0025] a determination unit, adapted to determine a tracking object;

[0026] A global path unit, adapted to determine a target point according to a current position of the tracked object, plan a path from the current position of the intelligent mobile device to the target point as a global path, and track the tracked object;

[0027] The local path unit is adapted to select a trajectory line from a preset trajectory line set as a local path according to the current speed of the intelligent mobile device and the global path.

[0028] Optionally, the determination unit is adapted to perform detection through a depth camera and / or a laser radar, and determine a detected object meeting preset characteristics as a tracking object.

[0029] Optionally, the global path unit is adapted to search for a trajectory line from the current position of the intelligent mobile device to the target point based on an A* algorithm.

[0030] Optionally, the device further comprises:

[0031] A trajectory unit, adapted to set a number of sampling speeds according to the parameters of the intelligent mobile device;

[0032] The trajectory lines of the intelligent mobile device at each sampling speed are generated respectively and put into the preset trajectory line set.

[0033] Optionally, the local path unit is adapted to calculate, for each trajectory line in the preset trajectory line set, an evaluation value related to the current speed and the global path according to a preset evaluation function;

[0034] The trajectory line with the best evaluation value is selected as the local path.

[0035] Optionally, the local path unit is further suitable for calculating the evaluation value according to the preset evaluation function, based on the deviation of the sampling speed corresponding to each trajectory line and the current speed, the angular deviation of each trajectory line and the global path, and the position deviation of each trajectory line and the global path.

[0036] Optionally, the device further comprises:

[0037] An obstacle unit, suitable for obstacle detection during tracking;

[0038] When an obstacle is detected, the local path is adjusted according to the detected obstacle location.

[0039] Optionally, the intelligent mobile device is a sweeping robot, and the tracking object is a human body.

[0040] According to another aspect of the present invention, an electronic device is provided, comprising: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes any of the above methods.

[0041] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the one or more programs implement any of the methods described above.

[0042] As can be seen from the above, the technical solution of the present invention tracks the tracking object by determining the tracking object, determining the target point according to the current position of the tracking object, and planning the path from the current position of the intelligent mobile device to the target point as the global path. According to the current speed of the intelligent mobile device and the global path, a trajectory line is selected from the preset trajectory line set as the local path. Before starting the tracking, the direction of travel of the intelligent mobile device is first determined so that the intelligent mobile device has a basis for travel, avoiding the tracking object from moving too fast and causing loss. Moreover, the local path can realize precise control of the movement of the intelligent mobile device, improve the travel accuracy of the intelligent mobile device, and to a certain extent, improve the travel efficiency.

[0043] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0045] Figure 1 A schematic flow chart of a local path planning method for a smart mobile device according to an embodiment of the present invention is shown;

[0046] Figure 2 A schematic structural diagram of a local path planning device for an intelligent mobile device according to an embodiment of the present invention is shown;

[0047] Figure 3 A schematic diagram of the structure of an electronic device according to an embodiment of the present invention is shown;

[0048] Figure 4 A schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0049] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0050] Figure 1 FIG. 2 is a flow chart showing a method for local path planning of a smart mobile device according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0051] Step S110, determining a tracking object.

[0052] The tracking object has the ability to move and is an object that the smart mobile device needs to follow, such as a person.

[0053] Step S120, determining a target point according to the current position of the tracked object, planning a path from the current position of the smart mobile device to the target point as a global path, and tracking the tracked object.

[0054] Smart mobile devices can be any mobile smart devices, such as sweeping robots, unmanned mobile platforms, etc. Smart mobile devices need to predict the target point of the tracking object in advance and plan the path to the target point to achieve a better tracking effect. For example, if the tracking object is in front of the right side of the smart mobile device, the target point is determined to be in front of the right side and farther than the tracking object, and the planned path is used as the global path. In this way, the direction of travel of the smart mobile device can be determined before starting tracking, so that the smart mobile device has a basis for travel and avoids the tracking object moving too fast and causing loss.

[0055] Step S130 , selecting a trajectory line from a preset trajectory line set as a local path according to the current speed of the smart mobile device and the global path.

[0056] The global path is used to guide the direction of travel of the intelligent mobile device. During the travel process, a local trajectory line needs to be determined to assist it in traveling along the global path. The local trajectory line is the local path. The global path is long, which is not conducive to the control of the intelligent mobile device. If the intelligent mobile device only uses a single movement method to travel along the global path to the target point, it will affect the travel efficiency to a certain extent. Moreover, if the speed of the intelligent mobile device is too fast, when the road surface is uneven, it may deviate from the global path during the travel process, which is not conducive to the precision control of the intelligent mobile device. Therefore, the intelligent mobile device travels along the local path. Since the local path is short, it can achieve precise control of the movement of the intelligent mobile device and improve the travel accuracy of the intelligent mobile device. Different movement methods are used on different local paths to improve the travel efficiency. Moreover, after the intelligent mobile device completes the travel of a local path, it can also evaluate the travel results of this time to adjust the next local path. For example, if the current speed is fast, the shorter local path is adjusted. If the current speed is reduced, the local path can be extended accordingly. Moreover, if the current local path deviates from the direction of the global path, the direction of the next local path is adjusted accordingly.

[0057] The technical solution of the present invention tracks the object by determining the tracking object, determining the target point according to the current position of the tracking object, and planning the path from the current position of the intelligent mobile device to the target point as the global path. According to the current speed of the intelligent mobile device and the global path, a trajectory line is selected from a preset trajectory line set as a local path. Before starting the tracking, the direction of travel of the intelligent mobile device is first determined so that the intelligent mobile device has a basis for travel, thereby avoiding the tracking object moving too fast and causing loss. Moreover, the local path can realize precise control of the movement of the intelligent mobile device, improve the travel accuracy of the intelligent mobile device, and to a certain extent improve the travel efficiency.

[0058] In one embodiment of the present invention, Figure 1 In the method shown, determining the tracking object in step S110 includes: detecting through a depth camera and / or a laser radar, and determining the detected object that meets preset characteristics as the tracking object.

[0059] Depth cameras or lidars can perform scanning detection and be set on smart mobile devices to obtain detection results of the environment around the smart mobile devices.

[0060] In a specific example, a single-line laser is used to detect a human leg. Specifically, the surrounding environment of the intelligent mobile device is scanned by a single-line laser to obtain a plurality of scanning points. According to the distribution of the plurality of scanning points, one or more segments of curves that meet the arc characteristics formed by the scanning points are identified. It is determined whether each segment of the identified curve meets the characteristics of a human leg, and if so, the detected human body position is determined according to the corresponding curve.

[0061] The single-line laser is set on the smart mobile device, and the scanning point is obtained by emitting a laser for scanning. The scanning point can reflect the contour information of the object and the location information of the object. The single-line laser has high working efficiency. If the single-line laser is rotated, the scanning point of the object contour within the 360° range of the smart mobile device can be obtained to expand the scanning range. The smart mobile device of this embodiment needs to detect people in the surrounding environment, so the human body information in the surrounding environment is obtained through single-line laser scanning.

[0062] The scanning points are processed and analyzed to obtain specific information about the surrounding environment. For example, the scanning points are connected in sequence to obtain the outline of the object, and the object attributes are judged by the outline to determine whether there are people in the surrounding environment. The human body contour is mostly curved and lacks sharp edges. By identifying whether there is a curve that meets the characteristics of a ring formed by one or more scanning points, it is possible to effectively identify whether there is a human body in the surrounding environment. To identify whether a curve meets the characteristics of an arc, the curvature of the curve can be changed. If the curvature changes and the change is large, it means that the curve meets the characteristics of an arc.

[0063] Of course, there may be other objects in the surrounding environment whose contours conform to arc features, such as cylindrical tables or chairs. Therefore, it is necessary to further determine whether the curve that conforms to the arc features conforms to the features of human legs, such as whether the width and curvature of the curve conform to the contour of human legs. Only when the curve conforms to the features of human legs, it is determined that the curve belongs to the curve of the contour of human legs, and the position of the curve is the position of the human body. After identifying the position of the human body, the intelligent mobile device can perform corresponding processing, such as avoiding the human body or tracking the human body. On the other hand, only judging whether the curve conforms to the features of human legs reduces certain data processing work, which can effectively improve recognition efficiency and work efficiency.

[0064] The technical solution of this embodiment combines the curve characteristics of the human body contour for identification and judgment, and can accurately identify the human body in the surrounding environment and obtain the location of the human body. At the same time, only the curve obtained by scanning is judged to be consistent with the characteristics of the human leg, which reduces a certain amount of data processing work and can effectively improve the recognition efficiency and work efficiency. Moreover, the use of a single-line laser for scanning can ensure the scanning efficiency and accuracy, while expanding the scanning range.

[0065] In a specific embodiment, the above-mentioned identifying one or more segments of curves consisting of scanning points that meet arc features according to the distribution of several scanning points includes: performing circle fitting according to the distribution of several scanning points to obtain one or more segments of curves consisting of scanning points.

[0066] In the above embodiment, the contour of the object is obtained by connecting the scanning points in sequence. However, the contour curve obtained by this method is a broken line with discontinuous curvature composed of multiple line segments, which does not conform to the objective law that the contour of the object is usually continuous. Therefore, it is necessary to smooth the broken line to make it more consistent with the objective law of the contour line. For a curve that conforms to the characteristics of an arc, such as a large change in curvature between several consecutive scanning points, a circle fitting is performed on it, that is, it is processed into a theoretical arc.

[0067] In a specific embodiment, the above-mentioned identification of one or more curves conforming to the arc characteristics composed of scanning points based on the distribution of a number of scanning points includes: when a curve conforming to the arc characteristics is identified, determining whether there are continuous scanning points on the straight lines corresponding to the two endpoints of the arc; if so, estimating the width of the detected object corresponding to the arc based on the continuous scanning points; if the width is greater than a preset value, discarding the identified curve conforming to the arc characteristics, and not identifying whether the continuous scanning points conform to the arc characteristics.

[0068] It can be seen from the above embodiment that the purpose of identifying a curve that meets the arc feature is to determine whether the curve meets the characteristics of a human leg. Considering that in practice, the width of a normal-sized human leg is generally between 10cm and 20cm. If the distance between the two endpoints of the curve exceeds 20cm or is less than 10cm, the width of the curve segment obviously does not meet the width of a human leg, so it is filtered to reduce the amount of data that needs to be determined, thereby improving the efficiency of the next step of determination.

[0069] On the other hand, there are measurement errors in the laser scanning process. For example, when scanning a wall, wavy scanning points may be obtained due to measurement errors. In this way, multiple continuous curves that meet the arc characteristics will be obtained. In order to avoid misjudging such arc-characteristic curves as curves that meet the characteristics of human legs, it is necessary to perform special processing on multiple continuous curves that meet the arc characteristics. Specifically, the two endpoints of the multiple arcs are connected to obtain the corresponding straight lines. In this way, there must be continuous scanning points in the middle of the straight line. Determine whether the width of the first arc in the multiple arcs meets the width of the human leg. If not, it means that the corresponding arc is not the curve obtained by scanning the human leg. Similarly, it can be known that all arc curves in the middle of the straight line are not the curves obtained by scanning the human leg. Therefore, the identified curves that meet the arc characteristics are discarded, and the continuous scanning points are not identified as meeting the arc characteristics, which reduces the amount of data processing and improves the recognition rate.

[0070] In a specific embodiment, the above-mentioned determination of whether each identified curve segment meets the human leg feature includes: determining whether the center angle corresponding to each curve segment is within a first preset angle range, and if so, determining that the corresponding curve meets the human leg feature.

[0071] When a smart mobile device performs laser scanning, it is equivalent to scanning at a fixed position. If a human leg is scanned, only a partial outline of the human leg can be obtained, and the entire closed circular outline cannot be obtained. Therefore, a curve that meets the characteristics of a human leg should have a certain fan angle. Since the curve can be considered as an arc, that is, by judging whether the center angle of the curve corresponding to the curve is within the first preset angle range, it is possible to effectively identify whether the corresponding curve meets the characteristics of a human leg. The first preset angle range is set in combination with the contour curve of the human leg.

[0072] Considering that the human leg contour curve is not theoretically a circle, in order to improve the accuracy of the determination, the first preset angle range is set to 60° to 120°. When the central angle corresponding to the curve is between 60°-120°, the curve is considered to be a curve that meets the characteristics of a human leg, and the object corresponding to the curve is identified as a human body. If the central angle corresponding to the curve is too large or too small, it is difficult to match the actual human leg contour curve, and the curve is determined not to meet the characteristics of a human leg.

[0073] In a specific embodiment, the above-mentioned determination of whether each identified curve segment meets the characteristics of a human leg includes: determining whether each curve segment meets the circular angle theorem, and if so, determining that the corresponding curve meets the characteristics of a human leg.

[0074] In addition to judging based on the center angle of the curve, the circumferential angle of the curve can also be judged. In actual operation, the contour curve of the human leg is considered to be a complete circle, so any arc obtained from the contour curve should comply with the circular angle theorem, that is, the circumferential angle of any point on the arc corresponding to the arc is equal. Therefore, any point on the curve other than the two endpoints of the curve is taken as the vertex, and the angle formed by the vertex and the two endpoints is considered to be the circumferential angle of the curve. If the angles of multiple circular angles are equal, it means that the curve complies with the circular angle theorem, and therefore it is determined that the curve meets the characteristics of a human leg.

[0075] In a specific example, the two endpoints of the curve are M and N. Take any three non-overlapping points A, B, and C on the curve, and A, B, and C do not overlap with M and N, and form three circular angles ∠MAN, ∠MBN, and ∠MCN of the curve with the two endpoints M and N respectively. If the angles of the three circular angles are equal, then the curve segment conforms to the circular angle theorem.

[0076] In a specific embodiment, the above-mentioned determination of whether each curve segment conforms to the circular angle theorem includes: for a segment of the curve, along the first endpoint to the second endpoint of the segment of the curve, sequentially calculating the circular angle formed by each point on the curve and the first endpoint and the second endpoint; if the circular angle corresponding to each point has a changing trend of first decreasing and then increasing, it is determined that the segment of the curve does not conform to the circular angle theorem.

[0077] Considering that the contour curve of a human leg is not actually a theoretical circle, the curve obtained by scanning a human leg does not completely conform to the circular angle theorem. In other words, the circular angles may not be equal. In addition, during the laser scanning process, if a wall or other object with a right angle is scanned, a curve will also be obtained. In order to avoid misjudgment and improve the accuracy of the judgment, the judgment of the circular angle theorem is further optimized.

[0078] The curve obtained by scanning a right-angle wall or object has a certain rule for the change of its circular angle. For example, if one point on the curve is taken as a vertex along the first end point to the second end point of the curve, it forms a circular angle with the two end points. The closer the vertex is to the end point, the larger the circular angle is. Therefore, the circular angle formed by taking points as vertices in turn has a change rule of gradually decreasing and then gradually increasing.

[0079] As in the above specific example, the two endpoints of the curve are M and N. Starting from point M, a point is taken on the curve at a certain distance in turn to form a circular angle with the two endpoints. For example, A, B, C, and D are taken, and A, B, C, and D do not overlap with M and N, and they respectively form the circular angles ∠MAN, ∠MBN, ∠MCN, and ∠MDN of the four curves with the two endpoints M and N. The transformation law of the four circular angles is to decrease first and then increase, that is, ∠MAN>∠MBN, ∠MCN<∠MDN. When it is judged that the various circular angles conform to the change law of first becoming smaller and then becoming larger, it is considered that the curve is the curve obtained by scanning the right angle part. However, the contour curve of the human leg does not have a right-angle feature, so it is determined that the curve does not conform to the circular angle theorem, that is, it does not conform to the characteristics of the human leg.

[0080] In a specific embodiment, the above-mentioned determination of whether each curve segment conforms to the circular angle theorem includes: for a curve segment, along the first endpoint to the second endpoint of the curve segment, sequentially calculating the circular angle angles formed by each point on the curve and the first endpoint and the second endpoint; calculating the mean square error of each circular angle, and if the mean square error is greater than a preset value, determining that the curve segment does not conform to the circular angle theorem.

[0081] Considering that the contour curve of a human leg is not actually a theoretical circle, the curve obtained by scanning a human leg does not completely conform to the circular angle theorem, but each circular angle fluctuates within a certain angle range. By determining the mean square error of each circular angle, the degree of discreteness of the circular angle is obtained. If the degree of discreteness is within the preset range, it is considered that the curve conforms to the circular angle theorem.

[0082] Taking the above embodiment as an example, the two endpoints of the curve are M and N. Starting from point M, a point is taken on the curve at a certain distance in turn to form a circular angle with the two endpoints. For example, A, B, C, and D are taken, and A, B, C, and D do not overlap with M and N, and form the circular angles ∠MAN, ∠MBN, ∠MCN, and ∠MDN of the four curves with the two endpoints M and N respectively. The mean square error of the four circular angles is calculated. If the mean square error is less than the preset value, it means that the discrete degree of the four circular angles is small, and it is determined that the curve conforms to the circular angle theorem. If the mean square error is greater than the preset value, it means that the discrete degree of the four circular angles is large, and it is determined that the curve does not conform to the circular angle theorem. For example, if the preset value is 0.5, if the mean square error is 0, it means that the angles of the four circular angles are equal. If the mean square error is 2, which is greater than 0.5, the discrete degree of the four circular angles is large, and the curvature of the curve changes greatly, which does not conform to the contour curve characteristics of the human leg.

[0083] In a specific embodiment, the above-mentioned determining the detected human body position according to the corresponding curve includes: if the distance between two curve segments is less than a preset value, determining the same human body according to the two curve segments.

[0084] A person has two legs. During the laser scanning process, two curves that meet the characteristics of human legs are likely to be obtained. Considering that in reality, the distance between two legs generally does not exceed a certain value, the distance between the two curves is judged to confirm whether the two curves belong to the same person. For example, for an adult who walks normally, the distance between the two legs is 60cm. The preset value of the curve distance is set to 75cm. When the distance between the two curves is less than 75cm, it is judged that the two curves belong to the two legs of the same person, and the position of the human body is determined according to the position of the two curves. For example, one of the curves is 100cm away from the smart mobile device, and the other curve is 80cm away from the smart mobile device. Take the middle value of the two to determine that the human body is 90cm away from the smart mobile device.

[0085] Of course, there is a situation where only one curve that meets the characteristics of a human leg may be obtained during the scanning process. In this case, this curve is also considered to be the contour curve of the human leg, and the position of the human leg is determined based on the position of the curve. In the actual scanning process, two human legs may overlap, and two curves that meet the characteristics of human legs cannot be obtained. For example, when the smart mobile device is located on the side of the human body, when scanning from the side, the two legs of the human body overlap, and two curves cannot be obtained.

[0086] In a specific embodiment, the scanning of the surrounding environment of the smart mobile device by using a single-line laser includes: performing a 360° surround scan at a preset frequency by using a laser radar.

[0087] Single-line laser is a laser radar. In order to reduce a certain amount of data processing, during the actual scanning process, the laser radar does not scan continuously in real time, but scans at a preset frequency. For example, a scan is performed at intervals of 1s, 5s, or 8s to ensure that after each scan, a certain amount of time is left to process the scan results to ensure the accuracy of the results. The laser radar is set on a rotating platform of a smart mobile device. When the smart mobile device rotates or the laser radar is rotated alone, the laser radar can achieve a 360° surround scan and obtain the contour information of all objects in the surrounding environment.

[0088] In one embodiment of the present invention, Figure 1 In the method shown, planning a path from the current position of the smart mobile device to the target point in step S120 includes searching for a trajectory line from the current position of the smart mobile device to the target point based on an A* algorithm.

[0089] The A* algorithm is the most effective direct search method for solving the shortest path in a static road network, and is also an effective algorithm for solving many path search problems. Determine the current position of the smart mobile device and the target point position, and use the A* algorithm to quickly search for the trajectory between the two. The closer the distance estimate is to the actual distance value, the faster the final search speed. In this way, the tracking efficiency of the smart mobile device can be further improved.

[0090] In one embodiment of the present invention, Figure 1 In the method shown, the method also includes: setting a number of sampling speeds according to the parameters of the intelligent mobile device; generating the trajectory line of the intelligent mobile device at each sampling speed and putting it into a preset trajectory line set.

[0091] Set up different moving modes and trajectories corresponding to different sampling speeds to improve the travel efficiency or work efficiency of the intelligent mobile device. For example, the sampling speed of the intelligent mobile device is set to 0, 0.1, 0.2 and 0.3m / s. When the sampling speed is 0m / s, the corresponding intelligent mobile device rotates in place; when it is 0.1m / s, four travel directions are set, and each direction travels 0.5m, and it rotates with a radius of 0.1m while traveling, generating four trajectory lines. For the trajectory lines generated at other sampling speeds, refer to the generation method of 0.1m / s, and the travel distance and rotation radius can be set according to the specific situation. Store all generated trajectory lines to obtain a trajectory line set. In this way, when the intelligent mobile device needs to move, it directly selects the most suitable trajectory line from the trajectory line set to move, so as to improve the movement efficiency.

[0092] In one embodiment of the present invention, Figure 1 In the method shown, selecting a trajectory line from a preset trajectory line set as a local path includes: for each trajectory line in the preset trajectory line set, calculating an evaluation value related to the current speed and the global path according to a preset evaluation function; and selecting the trajectory line with the best evaluation value as the local path.

[0093] As in the above embodiment, the trajectory set contains multiple preset trajectory lines moving in different directions. How to select the most suitable trajectory line as the uniformly distributed path becomes an urgent problem to be solved. This embodiment sets an evaluation function, combines the current speed of the smart mobile device with the global path, evaluates each preset trajectory line, and obtains an evaluation value. The evaluation value reflects the correlation between the local path and the global path, as well as the correlation with the current state of the smart mobile device. Selecting the trajectory line with the best evaluation value as the local path can effectively improve the mobility efficiency of the smart mobile device.

[0094] In a specific example, the direction of global path planning is 30° east of the smart device by north. The trajectory set includes trajectory lines of the smart mobile device moving in four directions: east, south, west, and north. According to the evaluation function, the trajectory line moving east has the highest evaluation value, which is most consistent with the planning direction of the global path. Therefore, the trajectory line moving east is selected as the local path.

[0095] In one embodiment of the present invention, in the above method, for each trajectory line in the preset trajectory line set, calculating the evaluation value related to the current speed and the global path according to a preset evaluation function includes: calculating the evaluation value according to the preset evaluation function based on the deviation between the sampling speed corresponding to each trajectory line and the current speed, the angular deviation between each trajectory line and the global path, and the position deviation between each trajectory line and the global path.

[0096] This embodiment provides a specific implementation method for evaluating the preset trajectory line. There are two main aspects: comparative evaluation of the current speed of the smart mobile device and the sampling speed, and comparative evaluation of the trajectory line and the global path. The greater the deviation between the current speed of the smart device and the sampling speed, the lower the corresponding evaluation value; similarly, the greater the angular deviation between the trajectory line and the global path, the lower the corresponding evaluation value; the farther the position of the end point of the trajectory line is from the end point of the global path, that is, the position of the target point, the greater the evaluation value. Combining various evaluation values, the total evaluation value of the trajectory line can be obtained.

[0097] In one embodiment of the present invention, Figure 1 In the method shown, the method also includes: performing obstacle detection during the tracking process; when an obstacle is detected, adjusting the local path according to the detected obstacle position.

[0098] The adjustment of the local path also needs to be adjusted in combination with the location of the obstacle. For example, the global path indicates the moving direction is north, and the local path is to move 0.5m north. During the movement, it is detected that the obstacle is 0.4m away from the smart mobile device. The moving distance of the local path is adjusted to 0.3m, and the direction of the next local path is selected to the northeast, with a moving distance of 0.5m to avoid the obstacle. In this way, obstacles can be discovered in time, and the local path can be adjusted accordingly to avoid collisions between smart mobile devices and obstacles.

[0099] In one embodiment of the present invention, Figure 1 In the method shown, the intelligent mobile device is a sweeping robot and the tracking object is a human body.

[0100] The sweeping robot tracks the human body. In this way, the sweeping robot can perform cleaning work under the guidance of the person, thereby effectively avoiding collisions with obstacles, reducing the risk of damage to the sweeping robot, and extending the life of the sweeping robot. For example, there are generally many items placed in the living room. Under the guidance of the person, the sweeping robot will clean the area where people are active, effectively avoiding obstacles. At the same time, the sweeping robot does not need to escape and find a cleaning route, and the cleaning efficiency will be greatly improved.

[0101] Figure 2 FIG. 1 is a schematic diagram showing the structure of a local path planning device for an intelligent mobile device provided by an embodiment of the present invention. Figure 2 As shown, the device 200 includes:

[0102] The determination unit 210 is adapted to determine a tracking object.

[0103] The tracking object has the ability to move and is an object that the smart mobile device needs to follow, such as a person.

[0104] The global path unit 220 is adapted to determine a target point according to the current position of the tracked object, plan a path from the current position of the intelligent mobile device to the target point as a global path, and track the tracked object.

[0105] Smart mobile devices can be any mobile smart devices, such as sweeping robots, unmanned mobile platforms, etc. Smart mobile devices need to predict the target point of the tracking object in advance and plan the path to the target point to achieve a better tracking effect. For example, if the tracking object is in front of the right side of the smart mobile device, the target point is determined to be in front of the right side and farther than the tracking object, and the planned path is used as the global path. In this way, the direction of travel of the smart mobile device can be determined before starting tracking, so that the smart mobile device has a basis for travel and avoids the tracking object moving too fast and causing loss.

[0106] The local path unit 230 is adapted to select a trajectory line from a preset trajectory line set as a local path according to the current speed of the intelligent mobile device and the global path.

[0107] The global path is used to guide the direction of travel of the intelligent mobile device. During the travel process, a local trajectory line needs to be determined to assist it in traveling along the global path. The local trajectory line is the local path. The global path is long, which is not conducive to the control of the intelligent mobile device. If the intelligent mobile device only uses a single movement method to travel along the global path to the target point, it will affect the travel efficiency to a certain extent. Moreover, if the speed of the intelligent mobile device is too fast, when the road surface is uneven, it may deviate from the global path during the travel process, which is not conducive to the precision control of the intelligent mobile device. Therefore, the intelligent mobile device travels along the local path. Since the local path is short, it can achieve precise control of the movement of the intelligent mobile device and improve the travel accuracy of the intelligent mobile device. Different movement methods are used on different local paths to improve the travel efficiency. Moreover, after the intelligent mobile device completes the travel of a local path, it can also evaluate the travel results of this time to adjust the next local path. For example, if the current speed is fast, the shorter local path is adjusted. If the current speed is reduced, the local path can be extended accordingly. Moreover, if the current local path deviates from the direction of the global path, the direction of the next local path is adjusted accordingly.

[0108] The technical solution of the present invention tracks the object by determining the tracking object, determining the target point according to the current position of the tracking object, and planning the path from the current position of the intelligent mobile device to the target point as the global path. According to the current speed of the intelligent mobile device and the global path, a trajectory line is selected from a preset trajectory line set as a local path. Before starting the tracking, the direction of travel of the intelligent mobile device is first determined so that the intelligent mobile device has a basis for travel, thereby avoiding the tracking object moving too fast and causing loss. Moreover, the local path can realize precise control of the movement of the intelligent mobile device, improve the travel accuracy of the intelligent mobile device, and to a certain extent improve the travel efficiency.

[0109] In one embodiment of the present invention, Figure 2 In the device 200 shown, the determination unit 210 is adapted to detect through a depth camera and / or a laser radar, and determine a detected object meeting preset characteristics as a tracking target.

[0110] Depth cameras or lidars can perform scanning detection and be set on smart mobile devices to obtain detection results of the environment around the smart mobile devices.

[0111] Taking the tracking of a human body by a sweeping robot as an example, the sweeping robot uses a laser radar for detection and can detect part of a human leg. The feature of a human leg is a semicircle, and there is a certain distance between the two legs. In other words, when a single-line laser detects a human leg, it can obtain two semicircle features within a certain range of distance, or when a leg is detected, it can obtain a semicircle feature, thereby determining that the semicircle feature corresponds to a human body and taking it as the tracking object.

[0112] In one embodiment of the present invention, Figure 2 In the device 200 shown, the global path unit 220 is adapted to search for a trajectory line from the current position of the smart mobile device to the target point based on the A* algorithm.

[0113] The A* algorithm is the most effective direct search method for solving the shortest path in a static road network, and is also an effective algorithm for solving many path search problems. Determine the current position of the smart mobile device and the target point position, and use the A* algorithm to quickly search for the trajectory between the two. The closer the distance estimate is to the actual distance value, the faster the final search speed. In this way, the tracking efficiency of the smart mobile device can be further improved.

[0114] In one embodiment of the present invention, Figure 2 In the device 200 shown, the device 200 also includes: a trajectory unit, which is suitable for setting a number of sampling speeds according to the parameters of the intelligent mobile device; and generating trajectory lines of the intelligent mobile device at each sampling speed and putting them into a preset trajectory set.

[0115] Set several sampling speeds, and each sampling speed has a different moving mode and trajectory line to improve the travel efficiency or work efficiency of the intelligent mobile device. For example, the sampling speed of the intelligent mobile device is set to 0, 0.1, 0.2 and 0.3m / s. When the sampling speed is 0m / s, the corresponding intelligent mobile device rotates in place; when the sampling speed is 0.1m / s, four travel directions are set, and each direction travels 0.5m, and rotates with a radius of 0.1m while traveling, generating four trajectory lines. The trajectory lines generated at other sampling speeds can refer to the generation method of 0.1m / s, and the travel distance and rotation radius can be set according to the specific situation. Store all generated trajectory lines to obtain a trajectory line set. In this way, when the intelligent mobile device needs to move, it directly selects the most suitable trajectory line from the trajectory line set to move, so as to improve the movement efficiency.

[0116] In one embodiment of the present invention, in the above-mentioned device 200, the local path unit 230 is suitable for calculating the evaluation value related to the current speed and the global path for each trajectory line in the preset trajectory line set according to a preset evaluation function; and selecting the trajectory line with the best evaluation value as the local path.

[0117] As in the above embodiment, the trajectory set contains multiple preset trajectory lines moving in different directions. How to select the most suitable trajectory line as the uniformly distributed path becomes an urgent problem to be solved. This embodiment sets an evaluation function, combines the current speed of the smart mobile device with the global path, evaluates each preset trajectory line, and obtains an evaluation value. The evaluation value reflects the correlation between the local path and the global path, as well as the correlation with the current state of the smart mobile device. Selecting the trajectory line with the best evaluation value as the local path can effectively improve the mobility efficiency of the smart mobile device.

[0118] In a specific example, the direction of global path planning is 30° east of the smart device by north. The trajectory set includes trajectory lines of the smart mobile device moving in four directions: east, south, west, and north. According to the evaluation function, the trajectory line moving east has the highest evaluation value, which is most consistent with the planning direction of the global path. Therefore, the trajectory line moving east is selected as the local path.

[0119] In one embodiment of the present invention, in the above-mentioned device 200, the local path unit is further suitable for calculating the evaluation value according to a preset evaluation function, based on the deviation between the sampling speed corresponding to each trajectory line and the current speed, the angular deviation between each trajectory line and the global path, and the position deviation between each trajectory line and the global path.

[0120] This embodiment provides a specific implementation method for evaluating the preset trajectory line. There are two main aspects: comparative evaluation of the current speed of the smart mobile device and the sampling speed, and comparative evaluation of the trajectory line and the global path. The greater the deviation between the current speed of the smart device and the sampling speed, the lower the corresponding evaluation value; similarly, the greater the angular deviation between the trajectory line and the global path, the lower the corresponding evaluation value; the farther the position of the end point of the trajectory line is from the end point of the global path, that is, the position of the target point, the greater the evaluation value. Combining various evaluation values, the total evaluation value of the trajectory line can be obtained.

[0121] In one embodiment of the present invention, Figure 2 In the device 200 shown, the device also includes: an obstacle unit, which is suitable for performing obstacle detection during tracking; when an obstacle is detected, adjusting the local path according to the detected obstacle position.

[0122] The adjustment of the local path also needs to be adjusted in combination with the location of the obstacle. For example, the global path indicates the moving direction is north, and the local path is to move 0.5m north. During the movement, it is detected that the obstacle is 0.4m away from the smart mobile device. The moving distance of the local path is adjusted to 0.3m, and the direction of the next local path is selected to the northeast, with a moving distance of 0.5m to avoid the obstacle. In this way, obstacles can be discovered in time, and the local path can be adjusted accordingly to avoid collisions between smart mobile devices and obstacles.

[0123] In one embodiment of the present invention, Figure 2 In the device 200 shown, the intelligent mobile device is a sweeping robot, and the tracking object is a human body.

[0124] The sweeping robot tracks the human body. In this way, the sweeping robot can perform cleaning work under the guidance of the person, thereby effectively avoiding collisions with obstacles, reducing the risk of damage to the sweeping robot, and extending the life of the sweeping robot. For example, there are generally many items placed in the living room. Under the guidance of the person, the sweeping robot will clean the area where people are active, effectively avoiding obstacles. At the same time, the sweeping robot does not need to escape and find a cleaning route, and the cleaning efficiency will be greatly improved.

[0125] In summary, the technical solution of the present invention tracks the object by determining the tracking object, determining the target point according to the current position of the tracking object, and planning the path from the current position of the intelligent mobile device to the target point as the global path. According to the current speed of the intelligent mobile device and the global path, a trajectory line is selected from a preset trajectory line set as a local path. Before starting the tracking, the direction of travel of the intelligent mobile device is first determined so that the intelligent mobile device has a basis for travel, thereby avoiding the tracking object moving too fast and causing loss. Moreover, the local path can realize precise control of the movement of the intelligent mobile device, improve the travel accuracy of the intelligent mobile device, and to a certain extent improve the travel efficiency.

[0126] It should be noted that:

[0127] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. Various general-purpose devices can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of device. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description of the above specific language is for the purpose of disclosing the best mode of the present invention.

[0128] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0129] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0130] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0131] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0132] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a local path planning device for an intelligent mobile device according to an embodiment of the present invention. The present invention may also be implemented as a device or device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0133] For example, Figure 3 A schematic diagram of the structure of an electronic device according to an embodiment of the present invention is shown. The electronic device includes a processor 310 and a memory 320 arranged to store computer executable instructions (computer readable program code). The memory 320 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 320 has a storage space 330 for storing a computer readable program code 331 for executing any method step in the above method. For example, the storage space 330 for storing computer readable program code may include various computer readable program codes 331 respectively used to implement various steps in the above method. The computer readable program code 331 can be read from or written to one or more computer program products. These computer program products include program code carriers such as a hard disk, a compact disk (CD), a memory card or a floppy disk. Such a computer program product is usually, for example Figure 4 The computer-readable storage medium. Figure 4 A schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present invention is shown. The computer-readable storage medium 400 stores a computer-readable program code 331 for executing the method steps according to the present invention, which can be read by the processor 310 of the electronic device 300. When the computer-readable program code 331 is executed by the electronic device 300, the electronic device 300 executes the various steps in the method described above. Specifically, the computer-readable program code 331 stored in the computer-readable storage medium can execute the method shown in any of the above embodiments. The computer-readable program code 331 can be compressed in an appropriate form.

[0134] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

[0135] The present invention provides A1, a local path planning method for an intelligent mobile device, comprising:

[0136] Determine the tracking object;

[0137] Determine a target point according to the current position of the tracked object, plan a path from the current position of the smart mobile device to the target point as a global path, and track the tracked object;

[0138] According to the current speed of the intelligent mobile device and the global path, a trajectory line is selected from a preset trajectory line set as a local path.

[0139] A2. The method as described in A1, wherein determining the tracking object comprises:

[0140] Detection is performed through a depth camera and / or a lidar, and objects that meet preset features are determined as tracking objects.

[0141] A3. The method as described in A1, wherein planning a path from the current position of the smart mobile device to the target point comprises:

[0142] A trajectory line from the current position of the smart mobile device to the target point is searched based on the A* algorithm.

[0143] A4. The method as described in A1, wherein the method further comprises:

[0144] Setting a plurality of sampling speeds according to the parameters of the intelligent mobile device;

[0145] The trajectory lines of the intelligent mobile device at each sampling speed are generated respectively and put into the preset trajectory line set.

[0146] A5. The method as described in A1, wherein selecting a trajectory line from a preset trajectory line set as a local path comprises:

[0147] For each trajectory line in the preset trajectory line set, an evaluation value related to the current speed and the global path is calculated according to a preset evaluation function;

[0148] The trajectory line with the best evaluation value is selected as the local path.

[0149] A6. The method as described in A5, wherein for each trajectory line in the preset trajectory line set, calculating the evaluation value related to the current speed and the global path according to a preset evaluation function comprises:

[0150] According to the preset evaluation function, the evaluation value is calculated based on the deviation between the sampling speed corresponding to each trajectory line and the current speed, the angle deviation between each trajectory line and the global path, and the position deviation between each trajectory line and the global path.

[0151] A7. The method as described in A1, wherein the method further comprises:

[0152] Obstacle detection during tracking;

[0153] When an obstacle is detected, the local path is adjusted according to the detected obstacle location.

[0154] A8. The method as described in A1, wherein the intelligent mobile device is a sweeping robot and the tracking object is a human body.

[0155] The present invention also provides B9, a local path planning device for an intelligent mobile device, comprising:

[0156] a determination unit, adapted to determine a tracking object;

[0157] A global path unit, adapted to determine a target point according to a current position of the tracked object, plan a path from the current position of the intelligent mobile device to the target point as a global path, and track the tracked object;

[0158] The local path unit is adapted to select a trajectory line from a preset trajectory line set as a local path according to the current speed of the intelligent mobile device and the global path.

[0159] B10. A device as described in B9, wherein the determination unit is suitable for detecting through a depth camera and / or a laser radar, and determining a detected object that meets preset characteristics as a tracking object.

[0160] B11. A device as described in B9, wherein the global path unit is suitable for searching a trajectory line from the current position of the intelligent mobile device to the target point based on an A* algorithm.

[0161] B12. The device as described in B9, wherein the device further comprises:

[0162] A trajectory unit, adapted to set a number of sampling speeds according to the parameters of the intelligent mobile device;

[0163] The trajectory lines of the intelligent mobile device at each sampling speed are generated respectively and put into the preset trajectory line set.

[0164] B13. The device as described in B9, wherein the local path unit is adapted to calculate, for each trajectory line in the preset trajectory line set, an evaluation value related to the current speed and the global path according to a preset evaluation function;

[0165] The trajectory line with the best evaluation value is selected as the local path.

[0166] B14. An apparatus as described in B13, wherein the local path unit is further suitable for calculating an evaluation value according to the preset evaluation function, based on the deviation between the sampling speed corresponding to each trajectory line and the current speed, the angular deviation between each trajectory line and the global path, and the position deviation between each trajectory line and the global path.

[0167] B15. The device as described in B9, wherein the device further comprises:

[0168] An obstacle unit, suitable for obstacle detection during tracking;

[0169] When an obstacle is detected, the local path is adjusted according to the detected obstacle location.

[0170] B16. The device as described in B9, wherein the intelligent mobile device is a sweeping robot and the tracking object is a human body.

[0171] The present invention also provides C17, an electronic device, wherein the electronic device comprises: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to execute a method as described in any one of A1-A8.

[0172] The present invention also provides D18, a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, implement the method as described in any one of A1-A8.

Claims

1. A local path planning method for an intelligent mobile device, comprising: Determine the tracking object; Determine a target point according to the current position of the tracked object, plan a path from the current position of the smart mobile device to the target point as a global path, and track the tracked object; According to the current speed of the intelligent mobile device and the global path, a trajectory line is selected from a preset trajectory line set as a local path; The method further includes: setting a plurality of sampling speeds according to the parameters of the intelligent mobile device; respectively generating the trajectory lines of the intelligent mobile device at each sampling speed and putting them into the preset trajectory line set; The step of selecting a trajectory line from a preset trajectory line set as a local path includes: calculating an evaluation value related to the current speed and the global path according to a preset evaluation function for each trajectory line in the preset trajectory line set; and selecting a trajectory line with the best evaluation value as the local path.

2. The method of claim 1, wherein: Determining the tracking object includes: Detection is performed through a depth camera and / or a lidar, and objects that meet preset features are determined as tracking objects.

3. The method of claim 1, wherein: The planning of a path from the current position of the smart mobile device to the target point includes: A trajectory line from the current position of the smart mobile device to the target point is searched based on the A* algorithm.

4. The method of claim 1, wherein: The step of calculating, for each trajectory line in the preset trajectory line set, an evaluation value related to the current speed and the global path according to a preset evaluation function comprises: According to the preset evaluation function, the evaluation value is calculated based on the deviation between the sampling speed corresponding to each trajectory line and the current speed, the angle deviation between each trajectory line and the global path, and the position deviation between each trajectory line and the global path.

5. The method of claim 1, wherein: The method further includes: Obstacle detection during tracking; When an obstacle is detected, the local path is adjusted according to the detected obstacle location.

6. The method of claim 1, wherein: The intelligent mobile device is a sweeping robot, and the tracking object is a human body.

7. A local path planning device for an intelligent mobile device, comprising: a determination unit, adapted to determine a tracking object; A global path unit, adapted to determine a target point according to a current position of the tracked object, plan a path from the current position of the intelligent mobile device to the target point as a global path, and track the tracked object; A local path unit, adapted to select a trajectory line from a preset trajectory line set as a local path according to the current speed of the intelligent mobile device and the global path; A trajectory unit, adapted to set a plurality of sampling speeds according to the parameters of the intelligent mobile device; and to generate the trajectory of the intelligent mobile device at each sampling speed and put it into the preset trajectory set; The local path unit is also suitable for calculating the evaluation value related to the current speed and the global path according to a preset evaluation function for each trajectory line in the preset trajectory line set; and selecting the trajectory line with the best evaluation value as the local path.

8. The device according to claim 7, wherein: The determination unit is adapted to perform detection through a depth camera and / or a laser radar, and determine a detected object meeting preset characteristics as a tracking object.

9. The device according to claim 7, wherein: The global path unit is adapted to search for a trajectory line from the current position of the intelligent mobile device to the target point based on an A* algorithm.

10. The device according to claim 7, wherein: The local path unit is further suitable for calculating the evaluation value according to the preset evaluation function, based on the deviation of the sampling speed corresponding to each trajectory line and the current speed, the angular deviation of each trajectory line and the global path, and the position deviation of each trajectory line and the global path.

11. The device according to claim 7, wherein: The device also includes: An obstacle unit, suitable for obstacle detection during tracking; When an obstacle is detected, the local path is adjusted according to the detected obstacle location.

12. The device of claim 7, wherein: The intelligent mobile device is a sweeping robot, and the tracking object is a human body.

13. An electronic device, wherein: The electronic device comprises: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the method according to any one of claims 1 to 6.

14. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method according to any one of claims 1 to 6 is implemented.