Obstacle positioning method, device and sports equipment

By using a time-of-flight TOF sensor with a field of view of less than 5° on sports equipment, and using its installation position information, angle and beam propagation duration, the problem of line laser positioning being susceptible to interference is solved and accurate position identification of obstacles is achieved. and low-cost positioning.

CN114903375BActive Publication Date: 2024-10-15MIDEA ROBOZONE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210520023.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2024-10-15
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

When existing sports equipment (such as sweeping robots) uses line laser to determine the location of obstacles, it is susceptible to multi-path reflection interference, resulting in the inability to effectively distinguish secondary reflection scenes and difficulty in obtaining accurate position information.

Method used

Using a time-of-flight TOF sensor, the field of view angle is less than 5°, and the position information of the obstacle is determined through the installation position information, installation angle, beam speed and propagation duration of the TOF sensor.

Benefits of technology

It achieves accurate positioning of obstacles, improves the success rate of obstacle avoidance actions, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114903375B_ABST
    Figure CN114903375B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of positioning technology, and provides an obstacle positioning method, device and sports equipment. The obstacle positioning method is applied to sports equipment, and the field of view angle of the flight time TOF sensor installed on the sports equipment is less than 5°. The obstacle positioning method includes: if the TOF sensor detects an obstacle, the position information of the obstacle is determined according to the installation position information, installation angle, light beam speed and propagation time of the TOF sensor. Through the above method, accurate obstacle position information can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of positioning technology, and in particular, relates to an obstacle positioning method, device, motion equipment, and computer-readable storage medium. Background Art

[0002] With the development of technology, some of the work done by humans can be done by sports equipment. For example, sweeping robots can perform cleaning work instead of humans.

[0003] When the motion device is moving, it needs to identify the location of obstacles and perform corresponding obstacle avoidance actions.

[0004] In existing methods, motion devices (such as sweeping robots) use line lasers to determine the location of obstacles. However, if positioning is performed using line lasers, it is susceptible to interference from multipath reflections and cannot effectively distinguish secondary reflection scenes. That is, when using line lasers to locate obstacles, it is difficult to obtain accurate location information. Summary of the invention

[0005] The embodiments of the present application provide an obstacle positioning method, device and motion equipment to solve the problem that it is difficult to obtain accurate position information when the existing method determines the position of the obstacle through a line laser.

[0006] In a first aspect, an embodiment of the present application provides an obstacle positioning method, which is applied to a sports device, wherein the field of view angle of a time-of-flight TOF sensor installed on the sports device is less than 5°, and the obstacle positioning method includes:

[0007] If the TOF sensor detects an obstacle, the position information of the obstacle is determined according to the installation position information and the installation angle of the TOF sensor, the speed of the light beam, and the propagation time of the light beam.

[0008] In a second aspect, an embodiment of the present application provides an obstacle locating device, which is applied to a sports device, wherein the field of view angle of a time-of-flight TOF sensor installed on the sports device is less than 5°, and the obstacle locating device comprises:

[0009] The position information determination module is used to determine the position information of the obstacle according to the installation position information and installation angle of the TOF sensor, the speed of the light beam and the propagation time of the light beam if the TOF sensor detects the obstacle.

[0010] In a third aspect, an embodiment of the present application provides a sports device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0012] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a sports device, enables the sports device to execute the method described in the first aspect above.

[0013] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0014] In the embodiment of the present application, since the FOV of the TOF sensor is less than 5°, that is, the divergence of the light beam emitted by the TOF sensor is small, that is, the installation angle corresponding to the TOF sensor that detects the obstacle can reflect the angle of the obstacle relative to the TOF sensor, and the distance between the TOF sensor and the obstacle can be determined according to the speed of the light beam of the TOF sensor and the propagation time of the light beam. Therefore, according to the installation position information, installation angle, speed of the light beam and the propagation time of the light beam of the TOF sensor, the position information of the obstacle can be accurately determined. That is, since the FOV of the TOF sensor in the embodiment of the present application is less than 5°, the TOF sensor can not only determine the distance between it and the obstacle, but also determine the relative angle between it and the obstacle, and since the cost of the TOF sensor is low, the TOF sensor can locate the obstacle at a low cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0016] Figure 1 is a flow chart of an obstacle locating method provided by an embodiment of the present application;

[0017] Figure 2 is a schematic diagram of a sports device equipped with a radar and a TOF sensor provided by an embodiment of the present application;

[0018] Figure 3 It is a schematic diagram of a three-dimensional structure of a sweeping robot, a TOF sensor and an obstacle provided in one embodiment of the present application;

[0019] Figure 4 This is provided by an embodiment of the present application Figure 3 The corresponding geometric diagram;

[0020] Figure 5is a schematic diagram of a sports device with a cross-layout of TOF sensors provided by an embodiment of the present application;

[0021] Figure 6 It is a schematic diagram of disposing a plurality of TOF sensors around the head of a sports device according to an embodiment of the present application;

[0022] Figure 7 is a structural block diagram of an obstacle locating device provided in one embodiment of the present application;

[0023] Figure 8 It is a structural schematic diagram of a sports equipment provided in one embodiment of the present application. DETAILED DESCRIPTION

[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0025] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0026] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0027] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0028] References to "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that one or more embodiments of the present application include a particular feature, structure or characteristic described in conjunction with the embodiment. That is, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in the specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.

[0029] Embodiment 1:

[0030] Line lasers measure the position of obstacles based on the principle of triangulation. Since the position information measured by line lasers is easily interfered by multipath reflection, it is impossible to effectively distinguish secondary reflection scenes, resulting in errors in the position information of obstacles measured. In other words, if sports equipment (such as sweeping robots, line patrol robots, automatic guided vehicles, and self-driving cars) uses line lasers to locate obstacles, the accuracy of the obtained position information will be low.

[0031] In order to improve the accuracy of the obtained position information, an embodiment of the present application provides an obstacle positioning method. In the obstacle positioning method, a motion device locates an obstacle using a time of flight (TOF) sensor with a small field of view (FOV).

[0032] The obstacle locating method provided in the embodiment of the present application is described below with reference to the accompanying drawings.

[0033] Figure 1 A flowchart of an obstacle positioning method provided in an embodiment of the present application is shown. The obstacle positioning method is applied to a sports device, the sports device is equipped with a TOF sensor, and the FOV of the TOF sensor is less than 5° (for example, 2°), as described in detail as follows:

[0034] Step S11, detecting whether there is an obstacle by using a TOF sensor.

[0035] Step S12: If there is an obstacle, the position information of the obstacle is determined according to the installation position information and installation angle of the TOF sensor, the speed of the light beam and the propagation time of the light beam.

[0036] Among them, the TOF sensor uses the flight time of a data signal traveling back and forth between a pair of transceivers to measure the distance between two points.

[0037] In an embodiment of the present application, a TOF sensor is installed on the side of a sports device. In some embodiments, considering that the sports device only needs to pay attention to whether there are obstacles in its direction of movement, the TOF sensor is installed on the side of the sports device in the direction of movement. For example, if the direction of movement of the sports device is the direction in which its head is pointing, the TOF sensor is installed on the side around the head of the sports device, so that when the sports device moves in the direction of its head, the light beam emitted by the TOF sensor can detect whether there are obstacles in the direction of movement of the sports device.

[0038] In the embodiment of the present application, a coordinate system is established with a moving device to obtain a moving device coordinate system. After the moving device is installed with a TOF sensor, the coordinates of the position of the TOF sensor on the moving device coordinate system are the installation position information of the embodiment of the present application, and the angle between the installed TOF sensor and the specified ray is the installation angle of the embodiment of the present application. After the light beam emitted by the TOF sensor detects an obstacle, the time corresponding to the moment when the light beam is emitted to the moment when the returned light beam is received is the propagation time of the light beam in the embodiment of the present application.

[0039] In the embodiment of the present application, since the FOV of the TOF sensor is less than 5°, that is, the divergence of the light beam emitted by the TOF sensor is small, that is, the installation angle corresponding to the TOF sensor that detects the obstacle can reflect the angle of the obstacle relative to the TOF sensor, and the distance between the TOF sensor and the obstacle can be determined according to the speed of the light beam of the TOF sensor and the propagation time of the light beam. Therefore, according to the installation position information, installation angle, light beam speed and the propagation time of the above light beam of the TOF sensor, the position information of the obstacle can be accurately determined. That is, since the FOV of the TOF sensor in the embodiment of the present application is less than 5°, the TOF sensor can not only determine the distance between it and the obstacle, but also determine the relative angle between it and the obstacle, and since the cost of the TOF sensor is low, the TOF sensor can locate the obstacle at a low cost.

[0040] In some embodiments, after determining the position information of the obstacle according to the installation position information, the installation angle, the speed of the light beam, and the propagation time of the light beam of the TOF sensor, the following steps are included:

[0041] A1. Determine the obstacle avoidance range according to the field of view angle of the TOF sensor and the position information of the obstacle.

[0042] In the embodiment of the present application, considering that the larger the field of view angle of the TOF sensor, the lower the accuracy of the obstacle location information determined by the TOF sensor, it is necessary to determine an obstacle avoidance range in combination with the field of view angle of the TOF sensor and the obstacle location information. For example, the size of the obstacle avoidance range is set in direct proportion to the FOV of the TOF sensor, that is, when the field of view angle of the TOF sensor is larger, the determined obstacle avoidance range is also larger.

[0043] In some embodiments, the correspondence between the FOV of the TOF sensor and the amplified radius can be set. In this way, after the location information of an obstacle is determined, the corresponding amplified radius is found according to the FOV of the TOF sensor, and then an area range is determined with the location information of the obstacle as the center and the found amplified radius as the radius. This area range serves as the obstacle avoidance range of this embodiment.

[0044] A2. Perform obstacle avoidance actions according to the above obstacle avoidance range.

[0045] In the embodiment of the present application, when the motion device moves to the vicinity of the obstacle avoidance range, it will bypass the obstacle avoidance range, that is, it will not move within the obstacle avoidance range, so as to avoid the obstacles within the obstacle avoidance range. Since the accuracy of the determined obstacle position information is related to the size of the FOV of the TOF sensor, compared with directly performing the obstacle avoidance action based on the determined obstacle position information, determining an obstacle avoidance range based on the FOV of the TOF sensor and the obstacle position information, and then performing the obstacle avoidance action based on the obstacle avoidance range can improve the success rate of obstacle avoidance.

[0046] In some embodiments, the installation angle of the TOF sensor includes a horizontal angle and a vertical angle, and the vertical angle is greater than 0° and less than 90°.

[0047] Among them, the horizontal angle refers to the installation angle of the TOF sensor on the horizontal plane (that is, the angle formed by the projection of the ray where the light beam of the TOF sensor is located on the horizontal plane and the forward direction of the sweeping robot), and the vertical angle refers to the installation angle of the TOF sensor on the vertical plane (that is, the angle formed by the ray where the light beam of the TOF sensor is located and the projection on the horizontal plane).

[0048] In the embodiment of the present application, considering that the TOF sensor is a device with a three-dimensional structure, it is installed behind the sports equipment, and it has corresponding installation angles in the horizontal plane and the vertical plane. That is, the horizontal angle of the TOF sensor on the horizontal plane and the vertical angle on the vertical plane are determined respectively, and then the position information of the obstacle is determined according to the horizontal angle and the vertical angle, so that the accuracy of the obtained position information can be improved. In addition, since the vertical angle is set to be greater than 0° and less than 90°, that is, when the TOF sensor is installed, the TOF sensor is tilted downward so that the vertical angle of the TOF sensor is greater than 0° and less than 90°, and the TOF sensor tilted downward can detect obstacles above the ground at a height within the range of the installation height of the TOF sensor (if a radar is used to detect obstacles, since the device where the radar is located has a certain height, and since the radar needs to rotate 360°, it can only detect obstacles equal to its height, that is, it cannot detect obstacles below its height, such as Figure 2The device for emitting a straight line installed on the upper part of the moving device is the radar, and the emitting device corresponding to the tubular optical path on the side of the moving device is the TOF sensor). Therefore, in the embodiment of the present application, setting the vertical angle of the TOF sensor to be greater than 0° and less than 90° can expand the detection range of the TOF sensor.

[0049] In order to more clearly describe the process of how to determine the position information of an obstacle, the following description is given by taking the motion device as a sweeping robot and the TOF sensor of the sweeping robot detecting an obstacle as an example.

[0050] Figure 3 This is a schematic diagram of the three-dimensional structure of the sweeping robot, TOF sensor and obstacles. Figure 4 for Figure 3 The corresponding geometric diagram.

[0051] Assume that the installation position information of the TOF sensor is (x0, y0, z0,), its horizontal angle is α, and its vertical angle is β. When the TOF sensor detects an obstacle, the obstacle must be on the ray with (x0, y0, z0,) as the origin and installation angles of α and β respectively.

[0052] Assuming that the coordinates of the obstacle (i.e. the location information of the obstacle) are (x0+b, y0+d, z0+h,), the speed of the light beam is c, and the propagation time of the light beam (the time it takes for the light beam to be emitted to be received) is t, then L=c×t / 2, h=L×sinβ, L1=L×cosβ, b=L1×sinα=L×cosβ×sinα, d=L1×cosα=L×cosβ×coα.

[0053] In some embodiments, the approximate area where the obstacle is located can be estimated based on the relevant information of the TOF sensor, and the estimated area is used as the location information of the obstacle. At this time, the location information of the obstacle is determined based on the installation position information, installation angle, speed of the light beam, and propagation time of the light beam of the TOF sensor, including:

[0054] The position interval is determined according to the field of view angle of the TOF sensor, the installation position information and the installation angle of the TOF sensor, the speed of the light beam and the propagation time of the light beam, and the position information of the obstacle belongs to the position interval.

[0055] In the embodiment of the present application, a specified angle is added to the installation angle to obtain a first installation angle (for example, a specified angle is added to the horizontal angle and the vertical angle to obtain a first horizontal angle and a first vertical angle), and a specified angle is reduced from the installation angle to obtain a second installation angle, and then an upper limit range is determined based on the installation position information of the TOF sensor, the first installation angle, the speed of the light beam, and the propagation time of the above light beam, and a lower limit range is determined based on the installation position information of the TOF sensor, the second installation angle, the speed of the light beam, and the propagation time of the above light beam, and the interval corresponding to the upper limit range and the lower limit range is the above position interval. It should be pointed out that the above specified angle is related to the FOV of the TOF sensor.

[0056] In some embodiments, the aforementioned specified angle is F / 2, where F is the field of view angle of the TOF sensor.

[0057] Since the position information of the obstacle is related to the ray corresponding to the light beam emitted by the TOF sensor, and the size of the FOV will affect the position of the ray, and the horizontal angle and vertical angle involved in calculating the position information are different at different positions of the ray, therefore, determining the first installation angle and the second installation angle according to the FOV is equivalent to determining the upper limit angle and the lower limit angle corresponding to the installation angle, so that the position interval subsequently determined according to the upper limit angle (i.e., the first installation angle) and the lower limit angle (i.e., the second installation angle) must include the position information of the obstacle, thereby improving the accuracy of the determined position information.

[0058] In some embodiments, after determining the location interval where the location information of the obstacle is located, the method includes:

[0059] Obstacle avoidance actions are performed according to the above position intervals.

[0060] In the embodiment of the present application, when the motion device moves to the vicinity of the position interval, it will bypass the position interval, that is, it will not move within the position interval, so as to avoid obstacles within the position interval. Since the accuracy of the determined obstacle position information is related to the size of the FOV of the TOF sensor, compared with directly performing the obstacle avoidance action based on the determined obstacle position information, determining a position interval based on the FOV of the TOF sensor and then performing the obstacle avoidance action based on the position interval can improve the success rate of obstacle avoidance.

[0061] In some embodiments, the TOF sensor is a single-point TOF sensor, and the number of the TOF sensor is greater than one.

[0062] Among them, the single-point TOF sensor is a single-photon TOF sensor, which has no angle resolution capability. When assembling the single-point TOF sensor to the sports equipment through a specific installation method, considering the determination of the optical path of the TOF sensor, the FOV of the single-point TOF sensor can be reduced through the lens, for example, the field of view of the TOF sensor is made less than 5 degrees, preferably within 2 degrees, so that the light of the TOF sensor will be gathered as much as possible, so that a single TOF sensor can detect the angle direction of the obstacle.

[0063] In the embodiment of the present application, since the number of TOF sensors installed on the sports equipment is greater than 1, and one TOF sensor has one optical path, multiple TOF sensors will have multiple optical paths, and thus the presence of obstacles in multiple directions can be detected through the multiple optical paths. That is, by installing multiple TOF sensors on the sports equipment, the probability of detecting obstacles can be increased.

[0064] In some embodiments, when there are multiple TOF sensors, at least two TOF sensors have different horizontal angles.

[0065] In the embodiment of the present application, since the optical paths of the corresponding TOF sensors are necessarily different when the horizontal angles are different, setting at least two TOF sensors with different horizontal angles can increase the probability of detecting obstacles.

[0066] In some embodiments, Figure 5 As shown, when there are multiple TOF sensors, the multiple TOF sensors can be arranged crosswise on the sports device, that is, among the multiple TOF sensors, the optical paths of at least two TOF sensors are crossed. Since the optical paths of at least two TOF sensors are crossed, the detection blind area can be reduced, thereby increasing the probability of detecting obstacles.

[0067] In some embodiments, if the detection requirements for different directions are the same, the same TOF sensor is set in each direction, that is, multiple TOF sensors are arranged in a cross-shaped and symmetrical manner on the sports device.

[0068] In some embodiments, if the detection requirements for different directions are different, more TOF sensors are set in the direction with higher detection requirements, that is, a cross-asymmetric layout is performed on the sports device. For example, if the right side of the sports device needs to move against a wall, more TOF sensors can be set on the right side of the sports device, and fewer TOF sensors can be set on the left side of the sports device. For another example, since the sports device usually moves forward, more TOF sensors can be set on the side around the head of the sports device, and fewer TOF sensors can be set on the sides of both sides of the sports device, such as Figure 6 shown.

[0069] In some embodiments, if the TOF sensor detects an obstacle, determining the location information of the obstacle according to the installation location information, the installation angle, the speed of the light beam, and the propagation time of the light beam of the TOF sensor includes:

[0070] B1. If there are N TOF sensors detecting an obstacle, determine N candidate position information of the corresponding obstacle based on the installation position information, installation angle, light beam speed and propagation time of each TOF sensor, where N is a natural number greater than 1.

[0071] B2. Determine whether the N candidate position information corresponds to the same obstacle, and if they correspond to the same obstacle, determine the final position information of the obstacle.

[0072] In an embodiment of the present application, if multiple TOF sensors detect an obstacle at the same time, N candidate position information corresponding to the obstacles detected by the multiple TOF sensors are determined respectively, and then the N candidate position information are compared. If the distance of the N candidate position information is less than a preset distance threshold, it is determined that the N candidate position information corresponds to the same obstacle, and the average value of the N candidate position information can be taken as the final position information of the obstacle. Since the N candidate position information can reflect the actual position of the obstacle, after the N TOF sensors all detect the same obstacle, the final position information of the obstacle is determined based on the N candidate position information obtained by the N TOF sensors, which can improve the accuracy of the final position information obtained.

[0073] In some embodiments, if the N candidate position information do not correspond to the same obstacle, that is, different candidate position information correspond to different obstacles, then the different candidate position information is the final position information of the corresponding obstacle.

[0074] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0075] Embodiment 2:

[0076] Corresponding to the elevator joint control method of the above embodiment, Figure 7 A structural block diagram of an obstacle locating device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0077] The obstacle locating device 7 is applied to sports equipment, and the field of view angle of the TOF sensor installed in the sports equipment is less than 5°. The obstacle locating device 7 includes:

[0078] The obstacle detection module 71 is used to detect whether there is an obstacle through a TOF sensor.

[0079] The position information determination module 72 is used to determine the position information of the obstacle according to the installation position information and installation angle of the TOF sensor, the speed of the light beam and the propagation time of the light beam if there is an obstacle.

[0080] In an embodiment of the present application, a TOF sensor is installed on the side of a sports device. In some embodiments, considering that the sports device only needs to pay attention to whether there are obstacles in its direction of movement, the TOF sensor is installed on the side of the sports device in the direction of movement. For example, if the direction of movement of the sports device is the direction in which its head is pointing, the TOF sensor is installed on the side around the head of the sports device, so that when the sports device moves in the direction of its head, the light beam emitted by the TOF sensor can detect whether there are obstacles in the direction of movement of the sports device.

[0081] In the embodiment of the present application, a coordinate system is established with a moving device to obtain a moving device coordinate system. After the moving device is installed with a TOF sensor, the coordinates of the position of the TOF sensor on the moving device coordinate system are the installation position information of the embodiment of the present application, and the angle between the installed TOF sensor and the specified ray is the installation angle of the embodiment of the present application. After the light beam emitted by the TOF sensor detects an obstacle, the time corresponding to the moment when the light beam is emitted to the moment when the returned light beam is received is the propagation time of the light beam in the embodiment of the present application.

[0082] In the embodiment of the present application, since the FOV of the TOF sensor is less than 5°, that is, the divergence of the light beam emitted by the TOF sensor is small, that is, the installation angle corresponding to the TOF sensor that detects the obstacle can reflect the angle of the obstacle relative to the TOF sensor, and the distance between the TOF sensor and the obstacle can be determined according to the speed of the light beam of the TOF sensor and the propagation time of the light beam. Therefore, according to the installation position information, installation angle, light beam speed and the propagation time of the above light beam of the TOF sensor, the position information of the obstacle can be accurately determined. That is, since the FOV of the TOF sensor in the embodiment of the present application is less than 5°, the TOF sensor can not only determine the distance between it and the obstacle, but also determine the relative angle between it and the obstacle, and since the cost of the TOF sensor is low, the TOF sensor can locate the obstacle at a low cost.

[0083] In some embodiments, the obstacle locating device 7 further includes:

[0084] The obstacle avoidance range determination module is used to determine the obstacle avoidance range according to the field of view angle of the TOF sensor and the position information of the obstacle.

[0085] In some embodiments, the correspondence between the FOV of the TOF sensor and the amplified radius can be set. In this way, after the location information of an obstacle is determined, the corresponding amplified radius is found according to the FOV of the TOF sensor, and then an area range is determined with the location information of the obstacle as the center and the found amplified radius as the radius. This area range serves as the obstacle avoidance range of this embodiment.

[0086] The first obstacle avoidance action execution module is used to execute the obstacle avoidance action according to the above obstacle avoidance range.

[0087] Since the accuracy of the determined obstacle position information is related to the size of the FOV of the TOF sensor, compared with directly performing obstacle avoidance actions based on the determined obstacle position information, determining an obstacle avoidance range based on the FOV of the TOF sensor and the obstacle position information, and then performing obstacle avoidance actions based on the obstacle avoidance range, can improve the success rate of obstacle avoidance.

[0088] In some embodiments, the installation angle of the TOF sensor includes a horizontal angle and a vertical angle, and the vertical angle is greater than 0° and less than 90°.

[0089] In the embodiment of the present application, considering that the TOF sensor is a device with a three-dimensional structure, therefore, it is installed after the sports equipment, and it has corresponding installation angles in the horizontal plane and the vertical plane. That is, the horizontal angle of the TOF sensor on the horizontal plane and the vertical angle on the vertical plane are determined respectively, and then the position information of the obstacle is determined according to the horizontal angle and the vertical angle, so that the accuracy of the obtained position information can be improved. In addition, since the vertical angle is set to be greater than 0° and less than 90°, that is, when the TOF sensor is installed, the TOF sensor is tilted downward so that the vertical angle of the TOF sensor is greater than 0° and less than 90°, and the TOF sensor tilted downward can detect obstacles above the ground with a height within the range of the installation height of the TOF sensor, therefore, in the embodiment of the present application, the vertical angle of the TOF sensor is set to be greater than 0° and less than 90°, which can expand the detection range of the TOF sensor.

[0090] In some embodiments, the location information determination module 72 is specifically used to:

[0091] The position interval is determined according to the field of view angle of the TOF sensor, the installation position information and the installation angle of the TOF sensor, the speed of the light beam and the propagation time of the light beam, and the position information of the obstacle belongs to the position interval.

[0092] In the embodiment of the present application, a specified angle is added to the installation angle to obtain a first installation angle (for example, a specified angle is added to the horizontal angle and the vertical angle to obtain a first horizontal angle and a first vertical angle), and a specified angle is reduced from the installation angle to obtain a second installation angle, and then an upper limit range is determined based on the installation position information of the TOF sensor, the first installation angle, the speed of the light beam, and the propagation time of the above light beam, and a lower limit range is determined based on the installation position information of the TOF sensor, the second installation angle, the speed of the light beam, and the propagation time of the above light beam, and the interval corresponding to the upper limit range and the lower limit range is the above position interval. It should be pointed out that the above specified angle is related to the FOV of the TOF sensor.

[0093] In some embodiments, the aforementioned specified angle is F / 2, where F is the field of view angle of the TOF sensor.

[0094] Since the position information of the obstacle is related to the ray corresponding to the light beam emitted by the TOF sensor, and the size of the FOV will affect the position of the ray, and the horizontal angle and vertical angle involved in calculating the position information are different at different positions of the ray, therefore, determining the first installation angle and the second installation angle according to the FOV is equivalent to determining the upper limit angle and the lower limit angle corresponding to the installation angle, so that the position interval subsequently determined according to the upper limit angle (i.e., the first installation angle) and the lower limit angle (i.e., the second installation angle) must include the position information of the obstacle, thereby improving the accuracy of the determined position information.

[0095] In some embodiments, the obstacle locating device 7 further includes:

[0096] The second obstacle avoidance action execution module is used to execute the obstacle avoidance action according to the above position interval.

[0097] In some embodiments, the TOF sensor is a single-point TOF sensor, and the number of the TOF sensor is greater than one.

[0098] Among them, the single-point TOF sensor is a single-photon TOF sensor, which has no angle resolution capability. The single-point TOF sensor is assembled into the sports equipment through a specific installation method. Since the optical path of the TOF sensor is determined, the FOV of the single-point TOF sensor can be reduced through the lens, for example, the field of view of the TOF sensor is less than 5 degrees, preferably within 2 degrees, so that the light of the TOF sensor will be gathered as much as possible, so that a single TOF sensor can detect the angle direction of the obstacle.

[0099] In the embodiment of the present application, since the number of TOF sensors installed on the sports equipment is greater than 1, and one TOF sensor has one optical path, multiple TOF sensors will have multiple optical paths, and thus the presence of obstacles in multiple directions can be detected through the multiple optical paths. That is, by installing multiple TOF sensors on the sports equipment, the probability of detecting obstacles can be increased.

[0100] In some embodiments, when there are multiple TOF sensors, at least two TOF sensors have different horizontal angles.

[0101] In the embodiment of the present application, since the optical paths of the corresponding TOF sensors are necessarily different when the horizontal angles are different, setting at least two TOF sensors with different horizontal angles can increase the probability of detecting obstacles.

[0102] In some embodiments, when there are multiple TOF sensors, the multiple TOF sensors may be arranged crosswise on the sports device, that is, among the multiple TOF sensors, the optical paths of at least two TOF sensors intersect. Since the optical paths of at least two TOF sensors intersect, the detection blind area can be reduced, thereby increasing the probability of detecting obstacles.

[0103] In some embodiments, if the detection requirements for different directions are the same, the same TOF sensor is set in each direction, that is, multiple TOF sensors are arranged in a cross-shaped and symmetrical manner on the sports device.

[0104] In some embodiments, if the detection requirements for different directions are different, more TOF sensors are set in the direction with higher detection requirements, that is, a cross-asymmetric layout is performed on the sports equipment. For example, if the right side of the sports equipment needs to move against the wall, more TOF sensors can be set on the right side of the sports equipment, and fewer TOF sensors can be set on the left side of the sports equipment. For another example, since the sports equipment usually moves forward, more TOF sensors can be set on the sides around the head of the sports equipment, and fewer TOF sensors can be set on the sides of both sides of the sports equipment.

[0105] In some embodiments, if the TOF sensor detects an obstacle, determining the location information of the obstacle according to the installation location information, the installation angle, the speed of the light beam, and the propagation time of the light beam of the TOF sensor includes:

[0106] If there are N TOF sensors detecting obstacles, then N candidate position information of the corresponding obstacles is determined according to the installation position information, installation angle, light beam speed and propagation time of each TOF sensor, where N is a natural number greater than 1;

[0107] Determine whether the N candidate position information corresponds to the same obstacle, and if they correspond to the same obstacle, determine the final position information of the obstacle.

[0108] In an embodiment of the present application, if multiple TOF sensors detect an obstacle at the same time, N candidate position information corresponding to the obstacles detected by the multiple TOF sensors are determined respectively, and then the N candidate position information are compared. If the distance of the N candidate position information is less than a preset distance threshold, it is determined that the N candidate position information corresponds to the same obstacle, and the average value of the N candidate position information can be taken as the final position information of the obstacle. Since the N candidate position information can reflect the actual position of the obstacle, after the N TOF sensors all detect the same obstacle, the final position information of the obstacle is determined based on the N candidate position information obtained by the N TOF sensors, which can improve the accuracy of the final position information obtained.

[0109] In some embodiments, if the N candidate position information do not correspond to the same obstacle, that is, different candidate position information correspond to different obstacles, then the different candidate position information is the final position information of the corresponding obstacle.

[0110] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0111] Embodiment three:

[0112] Figure 8 This is a schematic diagram of the structure of a sports device provided by an embodiment of the present application. Figure 8 As shown, the sports device 8 of this embodiment includes: at least one processor 80 ( Figure 8 Only one processor is shown in the figure), a memory 81, and a computer program 82 stored in the memory 81 and executable on at least one processor 80. When the processor 80 executes the computer program 82, the steps in any one of the above method embodiments are implemented.

[0113] The sports device 8 may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that Figure 8 It is only an example of the sports device 8 and does not constitute a limitation of the sports device 8. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. In a scenario, it may also include input and output devices, network access devices, etc.

[0114] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0115] In some embodiments, the memory 81 may be an internal storage unit of the sports device 8, such as a hard disk or memory of the sports device 8. In other embodiments, the memory 81 may also be an external storage device of the sports device 8, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the sports device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the sports device 8. The memory 81 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs. The memory 81 may also be used to temporarily store data that has been output or is to be output.

[0116] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0117] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.

[0118] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0119] An embodiment of the present application provides a computer program product. When the computer program product is run on a sports device, the sports device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0121] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0122] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0123] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0124] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0125] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An obstacle positioning method, characterized in that: Applied to sports equipment, the field of view angle of a time-of-flight TOF sensor installed on the sports equipment is less than 5°, and the obstacle locating method includes: Detect whether there is an obstacle through the TOF sensor; If there is an obstacle, the location information of the obstacle is determined based on the installation position information, installation angle, speed of the light beam and propagation time of the TOF sensor, wherein the angle between the installed TOF sensor and the specified ray is the installation angle, and the installation angle includes a horizontal angle and a vertical angle.

2. The obstacle locating method according to claim 1, characterized in that: After determining the position information of the obstacle according to the installation position information, the installation angle, the speed of the light beam, and the propagation time of the light beam of the TOF sensor, the method further includes: Determine an obstacle avoidance range according to the field of view angle of the TOF sensor and the position information of the obstacle; An obstacle avoidance action is performed according to the obstacle avoidance range.

3. The obstacle locating method according to claim 1, characterized in that: The installation angle of the TOF sensor includes a horizontal angle and a vertical angle, and the vertical angle is greater than 0° and less than 90°.

4. The obstacle locating method according to claim 3, characterized in that: The determining the position information of the obstacle according to the installation position information, the installation angle, the speed of the light beam and the propagation time of the light beam of the TOF sensor includes: The position interval is determined according to the field of view angle of the TOF sensor, the installation position information of the TOF sensor, the installation angle, the speed of the light beam, and the propagation time of the light beam, and the position information of the obstacle belongs to the position interval.

5. The obstacle locating method according to claim 4, characterized in that: After determining the location interval where the location information of the obstacle is located, the method further includes: An obstacle avoidance action is performed according to the position interval.

6. The obstacle locating method according to any one of claims 1 to 5, characterized in that: The TOF sensor is a single-point TOF sensor, and the number of the TOF sensors is greater than one.

7. The obstacle locating method according to claim 6, characterized in that: If the TOF sensor detects an obstacle, the location information of the obstacle is determined according to the installation position information, the installation angle, the speed of the light beam, and the propagation time of the light beam of the TOF sensor, including: If there are N TOF sensors detecting obstacles, then determine N candidate position information of the corresponding obstacles according to the installation position information, installation angle, light beam speed and propagation time of each TOF sensor, where N is a natural number greater than 1; Determine whether the N candidate position information corresponds to the same obstacle, and if they correspond to the same obstacle, determine the final position information of the obstacle.

8. An obstacle locating device, characterized in that: Applied to sports equipment, the field of view angle of the TOF sensor installed on the sports equipment is less than 5°, and the obstacle locating device comprises: Obstacle detection module, used to detect whether there is an obstacle through the TOF sensor; A position information determination module is used to determine the position information of the obstacle if there is an obstacle based on the installation position information, installation angle, speed of the light beam and propagation time of the TOF sensor, wherein the angle between the installed TOF sensor and the specified ray is the installation angle, and the installation angle includes a horizontal angle and a vertical angle.

9. A sports device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.