Slope gradient calculation method, robot control method, robot and chip

The laser sensor is used to calculate the slope of the slope, which solves the problem of the risk of the robot tipping when climbing, improves safety and cost-effectiveness, and simplifies the calculation process.

CN118778653AInactive Publication Date: 2024-10-15AMICRO SEMICONDUCTOR CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410863153.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-29
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively prevent the risk of household robots tipping over during climbing, especially for large robots. Existing solutions have structural design requirements and safety issues.

Method used

Two laser sensors are used to obtain point cloud data on the slope. By calculating the horizontal and vertical distances of the point cloud, combined with the sine theorem and the inverse sine function, the slope slope is calculated, thereby judging the slope angle in advance and preventing the robot from climbing.

Benefits of technology

It improves the safety of the robot when climbing, reduces costs, simplifies the calculation process, and avoids the need for additional structural design and additional sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778653A_ABST
    Figure CN118778653A_ABST
Patent Text Reader

Abstract

The invention provides a slope gradient calculation method, a robot control method, a robot and a chip, a first point cloud and a second point cloud hit on a slope are obtained through two laser sensors, then the horizontal distance between the first point cloud and the second point cloud and the slope distance are calculated, and then the horizontal distance and the slope distance form a right triangle together with the known vertical distance. In the right triangle, the slope gradient can be obtained only by applying the sine theorem and the arcsine function once, the calculation difficulty is extremely low, and the efficiency is extremely high. According to the slope gradient calculation method, the robot can know the degree of the slope in advance without colliding or climbing up the slope, so that the safety is greatly improved. And on the robot provided with the laser sensor, the laser sensor does not need to be added or only one laser sensor needs to be added, so that the cost is relatively low and the practicability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent mobile robots, and in particular to a slope gradient calculation method, a robot control method, a robot and a chip. Background Art

[0002] At present, the size of household robots is getting bigger and bigger, and the center of gravity of the robots is getting higher and higher, which leads to an increase in the risk of tipping over when the robots are climbing. At present, there are mainly two solutions to prevent robots from climbing dangerous slopes: 1. Restricting the robot from climbing by structure, but this requires additional design of corresponding structures and requires additional space for installation, which is not applicable in some cases, and sometimes this solution cannot be adopted in order to meet the user's requirements for appearance design or structure; 2. After the robot climbs up the slope, the slope angle is obtained by a gyroscope or other sensor to determine the degree. Since the robot is already on the slope at this time, this method is very dangerous for large robots. The Chinese invention patent with announcement number CN111352106B - Sweeping robot slope recognition method, device, chip and sweeping robot discloses a method for detecting the slope of a slope using millimeter wave radar. Although the slope can be accurately identified, the recognition process is still relatively cumbersome. There is an urgent need for a simple and convenient method to prevent robots from climbing dangerous slopes. Summary of the invention

[0003] The present application provides a slope gradient calculation method, a robot control method, a robot and a chip. The specific technical solutions are as follows: A slope gradient calculation method, the slope gradient calculation method comprising the following steps: step S1, when there is a slope in front of a robot, the robot records a first point cloud hit by a first laser sensor on the slope and a second point cloud hit by a second laser sensor on the slope, and then calculates the horizontal distance between the first point cloud and the second point cloud based on the first distance measured by the first laser sensor and the second distance measured by the second laser sensor, wherein the horizontal distance refers to the distance between the first point cloud and the second point cloud in the horizontal direction; step S2, based on the horizontal distance and the vertical distance between the first point cloud and the second point cloud, calculates the slope distance between the first point cloud and the second point cloud, wherein the vertical distance refers to the distance between the first point cloud and the second point cloud in the vertical direction, and the slope distance refers to the distance between the first point cloud and the second point cloud on the slope; step S3, based on the sine theorem and the inverse sine function, calculates the slope gradient, wherein the line segments corresponding to the horizontal distance, the vertical distance and the slope distance form a right triangle.

[0004] Furthermore, in step S1, based on the first distance measured by the first laser sensor and the second distance measured by the second laser sensor, the method for calculating the horizontal distance between the first point cloud and the second point cloud includes: when the laser emission port of the first laser sensor and the laser emission port of the second laser sensor are in the same vertical direction, subtracting the first distance from the second distance and taking the absolute value to obtain the horizontal distance between the first point cloud and the second point cloud, wherein the first laser sensor and the second laser sensor are arranged one above and one below on the robot and the emitted laser lines are parallel in the same direction.

[0005] Further, in step S1, the method for calculating the horizontal distance between the first point cloud and the second point cloud based on the first distance measured by the first laser sensor and the second distance measured by the second laser sensor includes: when the laser emission port of the first laser sensor and the laser emission port of the second laser sensor are not in the same vertical direction, and the upper laser sensor of the two laser sensors is located on the robot behind the lower laser sensor by a first preset length, firstly summing the distance measured by the lower laser sensor and the first preset length, and then subtracting the sum from the distance measured by the upper laser sensor and taking the absolute value to obtain the horizontal distance between the first point cloud and the second point cloud, wherein the first laser sensor and the second laser sensor are arranged one above and one below on the robot and the emitted laser lines are parallel in the same direction.

[0006] Furthermore, in step S1, the method for calculating the horizontal distance between the first point cloud and the second point cloud based on the first distance measured by the first laser sensor and the second distance measured by the second laser sensor includes: when the laser emission port of the first laser sensor and the laser emission port of the second laser sensor are not in the same vertical direction, and the laser sensor at the lower position of the two laser sensors is located on the robot behind the laser sensor at the upper position by a second preset length, firstly summing the distance measured by the laser sensor at the upper position and the second preset length, and then subtracting the sum from the distance measured by the laser sensor at the lower position and taking the absolute value to obtain the horizontal distance between the first point cloud and the second point cloud, wherein the first laser sensor and the second laser sensor are arranged one above and one below on the robot and the emitted laser lines are parallel in the same direction.

[0007] Furthermore, in step S2, the method for calculating the slope distance between the first point cloud and the second point cloud based on the horizontal distance and the vertical distance between the first point cloud and the second point cloud includes: calculating the sum of the squares of the horizontal distance and the vertical distance between the first point cloud and the second point cloud, and then taking the square root to obtain the slope distance between the first point cloud and the second point cloud, wherein the vertical distance between the first point cloud and the second point cloud is the distance between the first laser sensor and the second laser sensor in the vertical direction.

[0008] Furthermore, in the step S3, the method for calculating the slope gradient based on the sine theorem and the inverse sine function includes: step S31, based on the sine value of the right angle formed by the line segments corresponding to the horizontal distance and the vertical distance, the slope distance and the vertical distance, the sine value of the acute angle formed by the line segments corresponding to the horizontal distance and the slope distance can be obtained by the sine theorem; step S32, calculating the angle of the acute angle formed by the line segments corresponding to the horizontal distance and the slope distance by the inverse sine function, the angle of the acute angle being the slope gradient.

[0009] A robot control method, the robot control method includes the slope gradient calculation method, and the robot control method also includes: when there is a slope in front of the robot, the robot calculates the slope gradient, and then determines whether the slope gradient is greater than or equal to a preset rollover degree, if not, the robot crosses the slope, and if yes, the robot marks the slope as an obstacle.

[0010] A robot is used to implement the slope gradient calculation method or the robot control method, and the robot comprises a first laser sensor and a second laser sensor, wherein the first laser sensor and the second laser sensor are arranged one above and one below on the robot and the laser lines emitted are parallel in the same direction.

[0011] Furthermore, the first laser sensor and the second laser sensor are single-point TOF sensors.

[0012] A chip stores computer program code, and when the computer program code is executed, the slope gradient calculation method or the robot control method is implemented.

[0013] The slope gradient calculation method described in the present application obtains the first point cloud and the second point cloud on the slope through two laser sensors, and then calculates the horizontal distance and slope distance of the first point cloud and the second point cloud, and then forms a right triangle with the known vertical distance. In this right triangle, the slope gradient can be obtained by applying the sine theorem and the inverse sine function once, respectively, with extremely low calculation difficulty and high efficiency. The slope gradient calculation method enables the robot to know the degree of the slope in advance without collision or climbing the slope, greatly improving safety. On a robot that is already equipped with a laser sensor, there is no need to add a new laser sensor or only one laser sensor is needed, which is low in cost and highly practical. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A schematic diagram of the flow of a slope gradient calculation method according to an embodiment of the present application.

[0015] Figure 2 A schematic diagram of a robot calculating a slope gradient according to an embodiment of the present application. DETAILED DESCRIPTION

[0016] 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.

[0017] It should be understood that when used in this application, the term "comprising" indicates the presence of the described features, integral bodies, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integral bodies, steps, operations, elements, components and / or their collections. It should also be understood that the term "and / or" used in this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0018] As used in this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0019] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance. The reference to "one embodiment" or "some embodiments" described in the specification of the present application means that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in the differences in this 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. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0020] At present, household robots are getting bigger and bigger, and their center of gravity is getting higher and higher, which increases the risk of tipping over when the robot is climbing. At present, there are two main solutions to prevent robots from climbing dangerous slopes: 1. Restricting the robot from climbing through structures, but this requires additional design of corresponding structures and requires additional space for installation, which is not applicable in some cases. Sometimes, this solution cannot be adopted in order to meet the user's requirements for appearance design or structure; 2. After the robot climbs up the slope, the slope angle is obtained through a gyroscope or other sensor to determine the degree. Since the robot is already on the slope at this time, this method is very dangerous for large robots. There is an urgent need for a simple and convenient method to prevent robots from climbing dangerous slopes.

[0021] In order to solve the above technical problems, an embodiment of the present application provides a slope gradient calculation method, which obtains a first point cloud and a second point cloud projected on the slope through two laser sensors, and then calculates the horizontal distance and slope distance of the first point cloud and the second point cloud, and then forms a right triangle together with the known vertical distance. In this right triangle, the slope gradient can be obtained by applying the sine theorem and the inverse sine function once, respectively, with extremely low calculation difficulty and extremely high efficiency. The slope gradient calculation method allows the robot to know the degree of the slope in advance without colliding or climbing the slope, greatly improving safety. On a robot that is already equipped with a laser sensor, there is no need to add a new laser sensor or only one laser sensor is needed, which is low in cost and highly practical.

[0022] Reference Figure 1 and Figure 2 , the slope gradient calculation method comprises the following steps: Step S1, when there is a slope in front of the robot, the robot records a first point cloud captured by the first laser sensor L1 on the slope and a second point cloud captured by the second laser sensor L2 on the slope, and then calculates a horizontal distance c between the first point cloud and the second point cloud based on a first distance a measured by the first laser sensor L1 and a second distance b measured by the second laser sensor L2, wherein the horizontal distance c refers to the distance between the first point cloud and the second point cloud in the horizontal direction; Step S2, calculating a slope distance e between the first point cloud and the second point cloud based on the horizontal distance c and the vertical distance d between the first point cloud and the second point cloud, wherein the vertical distance d refers to the distance between the first point cloud and the second point cloud in the vertical direction, and the slope distance e refers to the distance between the first point cloud and the second point cloud on the slope; Step S3, based on the sine theorem and the inverse sine function, the slope gradient is calculated, wherein the line segments corresponding to the horizontal distance c, the vertical distance d and the slope distance e form a right triangle.

[0023] As one embodiment, in step S1, based on the first distance a measured by the first laser sensor L1 and the second distance b measured by the second laser sensor L2, the method for calculating the horizontal distance c between the first point cloud and the second point cloud includes: when the laser emission port of the first laser sensor L1 and the laser emission port of the second laser sensor L2 are in the same vertical direction, subtracting the first distance a and the second distance b and taking the absolute value to obtain the horizontal distance c between the first point cloud and the second point cloud, wherein the first laser sensor L1 and the second laser sensor L2 are arranged one above and one below on the robot and the emitted laser lines are parallel in the same direction.

[0024] It should be noted that the laser emission port of the first laser sensor L1 and the laser emission port of the second laser sensor L2 are in the same vertical direction, which means that the initial conditions of the first laser sensor L1 and the second laser sensor L2 are the same. For example, the point cloud of two laser sensors with emission ports in the same vertical direction projected on a flat wall is at the same distance from the emission ports of the laser sensors. Furthermore, the first laser sensor L1 and the second laser sensor L2 are arranged on the robot in an up-and-down manner, so that positions at different heights of the slope can be detected. In an embodiment of the present application, the first laser sensor L1 is arranged below the second laser sensor L2. In addition, the first laser sensor L1 and the second laser sensor L2 both emit straight ahead, and the two laser lines are parallel in the same direction, which is conducive to simplifying the subsequent calculation process.

[0025] As another embodiment, in the step S1, based on the first distance a measured by the first laser sensor L1 and the second distance b measured by the second laser sensor L2, the method for calculating the horizontal distance c between the first point cloud and the second point cloud includes: when the laser emission port of the first laser sensor L1 and the laser emission port of the second laser sensor L2 are not in the same vertical direction, and the upper laser sensor of the two laser sensors is located on the robot behind the lower laser sensor by a first preset length, firstly summing the distance measured by the lower laser sensor and the first preset length, and then subtracting the sum from the distance measured by the upper laser sensor and taking the absolute value to obtain the horizontal distance c between the first point cloud and the second point cloud, wherein the first laser sensor L1 and the second laser sensor L2 are arranged one above the other on the robot and the emitted laser lines are parallel in the same direction.

[0026] Reference Figure 2 , the first laser sensor L1 is set below the second laser sensor L2, but the laser emission port is no longer in the same vertical direction, and the second laser sensor L2 is located behind the first laser sensor L1 by a first preset length. The first preset length is determined when the two laser sensors are set up and is a known parameter. In this case, the initial conditions of the first laser sensor L1 and the second laser sensor L2 are different and need to be corrected. At this time, the correction can be achieved by adding the first preset length to the first distance a, or by subtracting the first preset length from the second distance b, thereby ensuring that the initial conditions of the first laser sensor L1 and the second laser sensor L2 are the same, and ensuring the accuracy of the horizontal distance c.

[0027] As another embodiment, in the step S1, based on the first distance a measured by the first laser sensor L1 and the second distance b measured by the second laser sensor L2, the method for calculating the horizontal distance c between the first point cloud and the second point cloud comprises: when the laser emission port of the first laser sensor L1 and the laser emission port of the second laser sensor L2 are not in the same vertical direction, and the laser sensor at the lower position of the two laser sensors is located on the robot by a second preset length relative to the position of the laser sensor at the upper position, first summing the distance measured by the upper laser sensor and the second preset length, and then subtracting the sum from the distance measured by the lower laser sensor and taking the absolute value to obtain the horizontal distance c between the first point cloud and the second point cloud, wherein the first laser sensor L1 and the second laser sensor L2 are arranged one above the other on the robot and the laser lines emitted are parallel in the same direction. The principle of the embodiment of the present application is the same as that of the previous embodiment, and correction is first performed to ensure the accuracy of the horizontal distance c.

[0028] As one of the implementation modes, in the step S2, the method for calculating the slope distance e between the first point cloud and the second point cloud based on the horizontal distance c and the vertical distance d between the first point cloud and the second point cloud includes: calculating the sum of the squares of the horizontal distance c and the vertical distance d between the first point cloud and the second point cloud, and then raising it to the square, to obtain the slope distance e between the first point cloud and the second point cloud, wherein the vertical distance d between the first point cloud and the second point cloud is the distance between the first laser sensor L1 and the second laser sensor L2 in the vertical direction, which is determined when the laser sensor is set up and is a known parameter.

[0029] As one of the implementation modes, in step S3, the method for calculating the slope gradient based on the sine theorem and the inverse sine function includes: step S31, based on the sine value of the right angle formed by the line segments corresponding to the horizontal distance c and the vertical distance d, the slope distance e and the vertical distance d, the sine value of the acute angle formed by the line segments corresponding to the horizontal distance c and the slope distance e can be obtained by the sine theorem; step S32, the angle of the acute angle formed by the line segments corresponding to the horizontal distance c and the slope distance e is calculated by the inverse sine function, and the angle of the acute angle is the slope gradient. The slope gradient can be obtained by applying the sine theorem and the inverse sine function once, respectively, with extremely low calculation difficulty and extremely high efficiency. The calculation formula of the sine theorem is e / sinE=c / sinC=d / sinD, wherein E, C, and D respectively represent the angles of the right triangles relative to the slope distance e, the horizontal distance c, and the vertical distance d. Obviously, E is equal to 90 degrees, so e / sinE is equivalent to a known number, based on which the sine values ​​of the other two angles can be calculated, and then the slope gradient can be obtained using the inverse sine function D=arcsin(sinD).

[0030] The embodiment of the present application provides a robot control method, the robot control method includes the slope gradient calculation method, and the robot control method further includes: when there is a slope in front of the robot, the robot calculates the slope gradient, and then determines whether the slope gradient is greater than or equal to a preset rollover degree, if not, the robot crosses the slope, and if yes, the robot marks the slope as an obstacle. The embodiment of the present application enables the robot to know the degree of the slope in advance without colliding or climbing the slope, which greatly improves safety.

[0031] The present application embodiment provides a robot, such as Figure 2 As shown, the robot is used to implement the slope calculation method or the robot control method, and the robot includes a first laser sensor L1 and a second laser sensor L2, wherein the first laser sensor L1 and the second laser sensor L2 are arranged one above the other on the robot and the laser lines emitted are parallel in the same direction. On the robot that has a laser sensor installed, there is no need to add another laser sensor or only one laser sensor needs to be added, which is low in cost and strong in practicality.

[0032] As one embodiment, the first laser sensor L1 and the second laser sensor L2 are single-point TOF sensors. In other alternatives, the first laser sensor L1 and the second laser sensor L2 can also use any sensor of laser radar or line laser. When the laser line segment hits the slope, only two corresponding point clouds need to be taken for calculation, which will not be described in detail here. Compared with laser radar or line laser, the cost of using a single-point TOF sensor is lower and the calculation is more convenient.

[0033] The embodiment of the present application provides a chip, wherein the chip stores a computer program code, and when the computer program code is executed, the slope gradient calculation method or the robot control method is implemented. The chip enables the robot to know the slope gradient in advance without collision or climbing the slope, thereby greatly improving safety.

[0034] It will be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the references to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory ROM, programmable memory PROM, electrically programmable memory DPROM, electrically erasable programmable memory DDPROM or flash memory. Volatile memory may include random access memory RAM or external cache memory.

[0035] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0036] The above embodiments only express several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.

Claims

1. A method for calculating a slope gradient, characterized in that: The slope gradient calculation method comprises the following steps: Step S1, when there is a slope in front of the robot, the robot records a first point cloud captured by a first laser sensor on the slope and a second point cloud captured by a second laser sensor on the slope, and then calculates a horizontal distance between the first point cloud and the second point cloud based on a first distance measured by the first laser sensor and a second distance measured by the second laser sensor, wherein the horizontal distance refers to a distance between the first point cloud and the second point cloud in the horizontal direction; Step S2, calculating a slope distance between the first point cloud and the second point cloud based on the horizontal distance and the vertical distance between the first point cloud and the second point cloud, wherein the vertical distance refers to the distance between the first point cloud and the second point cloud in the vertical direction, and the slope distance refers to the distance between the first point cloud and the second point cloud on the slope; Step S3, based on the sine theorem and the inverse sine function, the slope gradient is calculated, wherein the line segments corresponding to the horizontal distance, the vertical distance and the slope distance form a right triangle.

2. A slope gradient calculation method according to claim 1, characterized in that: In step S1, based on the first distance measured by the first laser sensor and the second distance measured by the second laser sensor, the method for calculating the horizontal distance between the first point cloud and the second point cloud includes: When the laser emission port of the first laser sensor and the laser emission port of the second laser sensor are in the same vertical direction, the first distance and the second distance are subtracted and the absolute value is taken to obtain the horizontal distance between the first point cloud and the second point cloud, wherein the first laser sensor and the second laser sensor are arranged one above and one below on the robot and the emitted laser lines are parallel in the same direction.

3. A slope gradient calculation method according to claim 1, characterized in that: In step S1, based on the first distance measured by the first laser sensor and the second distance measured by the second laser sensor, the method for calculating the horizontal distance between the first point cloud and the second point cloud includes: When the laser emission port of the first laser sensor and the laser emission port of the second laser sensor are not in the same vertical direction, and the upper laser sensor of the two laser sensors is located behind the lower laser sensor on the robot by a first preset length, firstly, the distance measured by the lower laser sensor and the first preset length are summed, and then the sum is subtracted from the distance measured by the upper laser sensor and the absolute value is taken to obtain the horizontal distance between the first point cloud and the second point cloud, wherein the first laser sensor and the second laser sensor are arranged one above and one below on the robot and the emitted laser lines are parallel in the same direction.

4. A slope gradient calculation method according to claim 1, characterized in that: In step S1, based on the first distance measured by the first laser sensor and the second distance measured by the second laser sensor, the method for calculating the horizontal distance between the first point cloud and the second point cloud includes: When the laser emission port of the first laser sensor and the laser emission port of the second laser sensor are not in the same vertical direction, and the lower laser sensor of the two laser sensors is located on the robot behind the upper laser sensor by a second preset length, firstly, the distance measured by the upper laser sensor and the second preset length are summed, and then the sum is subtracted from the distance measured by the lower laser sensor and the absolute value is taken to obtain the horizontal distance between the first point cloud and the second point cloud, wherein the first laser sensor and the second laser sensor are arranged one above and one below on the robot and the emitted laser lines are parallel in the same direction.

5. A slope gradient calculation method according to claim 1, characterized in that: In step S2, the method of calculating the slope distance between the first point cloud and the second point cloud based on the horizontal distance and the vertical distance between the first point cloud and the second point cloud includes: The horizontal distance and the sum of the squares of the vertical distances between the first point cloud and the second point cloud are calculated, and then the square is taken to obtain the slope distance between the first point cloud and the second point cloud, wherein the vertical distance between the first point cloud and the second point cloud is the distance between the first laser sensor and the second laser sensor in the vertical direction.

6. A slope gradient calculation method according to claim 1, characterized in that: In step S3, based on the law of sine and the inverse sine function, the method for calculating the slope gradient includes: Step S31, based on the sine value of the right angle formed by the line segments corresponding to the horizontal distance and the vertical distance, the slope distance and the vertical distance, the sine value of the acute angle formed by the line segments corresponding to the horizontal distance and the slope distance can be obtained by the sine theorem; Step S32, calculating the acute angle formed by the line segments corresponding to the horizontal distance and the slope distance by an inverse sine function, wherein the acute angle is the slope gradient.

7. A robot control method, characterized in that: The robot control method comprises the slope gradient calculation method according to any one of claims 1 to 6, and the robot control method further comprises: When there is a slope in front of the robot, the robot calculates the slope gradient and then determines whether the slope gradient is greater than or equal to a preset rollover degree. If not, the robot crosses the slope; if yes, the robot marks the slope as an obstacle.

8. A robot, characterized in that: The robot is used to implement the slope gradient calculation method described in any one of claims 1 to 6 or the robot control method described in claim 7, and the robot includes a first laser sensor and a second laser sensor, wherein the first laser sensor and the second laser sensor are arranged one above and one below on the robot and the emitted laser lines are parallel in the same direction.

9. A robot according to claim 8, characterized in that: The first laser sensor and the second laser sensor are single-point TOF sensors.

10. A chip storing computer program code, characterized in that: When the computer program code is executed, the slope gradient calculation method according to any one of claims 1 to 6 or the robot control method according to claim 7 is implemented.

Citation Information

Patent Citations

  • Slope measurement method

    CN109000615A

  • System for predicting ramp gradient and slope length in advance by using on-board pulsed laser radar

    CN109387855A

  • Robot jam release control method based on slope structure, chip and cleaning robot

    CN112641383A

  • Slope detection method, driving equipment and storage medium

    CN113093218A

  • Robot control method and device and robot

    CN116352696A