Robot control method and device

By dynamically adjusting the sampling density of robot control variables and planning paths according to the complexity of the environment, the problem of inaccurate path planning caused by fixed sampling density is solved, and the accuracy of path planning and search success rate are improved.

CN115494833BActive Publication Date: 2024-10-22GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110680064.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-18
Publication Date
2024-10-22
Estimated Expiration
2041-06-18

AI Technical Summary

Technical Problem

The fixed sampling density of robots in the existing technology leads to inaccurate path planning and the inability to adapt to environmental information, resulting in a low path search success rate or an inability to search for paths in complex scenarios.

Method used

By obtaining the complexity parameters of the robot environment, the sampling density of the control volume is dynamically adjusted, the target sampling density parameters are determined according to the environment parameters, and adaptive sampling is performed to plan the path.

Benefits of technology

It improves the accuracy and search success rate of path planning, reduces the amount of calculation, and realizes real-time path planning in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115494833B_ABST
    Figure CN115494833B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method and device for a robot. The method comprises: obtaining environmental parameters of the robot, wherein the environmental parameters are used to indicate the complexity of the environment in which the robot is located; determining a target sampling density parameter for sampling the control amount of the robot according to the environmental parameters, wherein the target sampling density parameter is used to indicate the density of sampling; sampling the control amount of the robot according to the target sampling density parameter, and planning the path of the robot according to the control amount obtained by sampling. The present invention solves the technical problem in the prior art that the sampling density of the robot is fixed, resulting in inaccurate path planning of the robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent robots, and in particular to a control method and device for a robot. Background Art

[0002] At present, in order to make the searched path more in line with the kinematic constraints of robots, researchers in the field of robots have proposed the hybrid A× algorithm, which can obtain a path that can enable the robot to execute directly by sampling the control amount of the robot. However, the current hybrid A× algorithm is constant in sampling the robot's control amount and time, and cannot adapt to environmental information. If the robot's control amount is too dense, it will lead to too many sampling paths, making the calculation amount of the path too large, so that the purpose of real-time operation cannot be achieved. If the robot's control amount is too sparse, in a scenario with a more complex environment, it is easy to have a low success rate of robot path search, and even the path cannot be searched. Therefore, the robot's sampling density is fixed, resulting in inaccurate path planning of the robot.

[0003] With respect to the problem in the prior art that the sampling density of the robot is fixed, which leads to inaccurate path planning of the robot, no effective solution has been proposed so far. Summary of the invention

[0004] The embodiments of the present invention provide a robot control method and device to at least solve the technical problem in the prior art that the sampling density of the robot is fixed, resulting in inaccurate path planning of the robot.

[0005] According to an aspect of an embodiment of the present invention, a control method of a robot is provided, including: obtaining the environmental parameters of the robot, wherein the environmental parameters are used to represent the complexity of the environment in which the robot is located; determining the target sampling density parameter for sampling the control amount of the robot based on the environmental parameters, wherein the target sampling density parameter is used to represent the density of the sampling; sampling the control amount of the robot based on the target sampling density parameter, and path planning the robot based on the control amount obtained by sampling.

[0006] According to an aspect of an embodiment of the present invention, a control device of a robot is provided, including: a acquisition unit for obtaining environmental parameters of the robot, wherein the environmental parameters are used to represent the complexity of the environment in which the robot is located; a determination unit is used to determine the target sampling density parameter for sampling the control amount of the robot based on the environmental parameters, wherein the target sampling density parameter is used to represent the sampling density degree; a planning unit is used to sample the control amount of the robot based on the target sampling density parameter, and to plan the robot path according to the control amount obtained by sampling.

[0007] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which stores a plurality of instructions suitable for being loaded by a processor and executing the robot control method of an embodiment of the present invention.

[0008] According to another aspect of an embodiment of the present invention, there is also provided an intelligent interactive tablet, comprising: a processor and a memory, wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the robot control method of an embodiment of the present invention.

[0009] In an embodiment of the present invention, the environmental parameters of the robot are used to obtain, wherein the environmental parameters are used to indicate the complexity of the environment in which the robot is located; the target sampling density parameters are determined based on the environmental parameters, and the target sampling density parameters are used to indicate the density of the sampling; the control amount of the robot is sampled according to the target sampling density parameters, and the robot is path-planned according to the control amount obtained by sampling. That is to say, this application determines the target sampling density parameters for sampling the control amount of the robot based on the environmental complexity represented by the environment parameters of the robot, so as to sample the control amount of the robot according to the target sampling density parameters. In this way, different control amounts of the robot can be obtained according to the complexity of the environment, thereby achieving the purpose of path planning of the robot according to the complexity of the environment, and thus solving the technical problem of fixing the sampling density of the robot in the prior art, resulting in inaccurate path planning of the robot, and achieving the technical effect of improving the accuracy of planning the robot's path. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0011] Figure 1 is a flow chart of a robot control method according to an embodiment of the present invention;

[0012] Figure 2 is a schematic diagram of a control device of a robot according to an embodiment of the present invention;

[0013] Figure 3 It is a structural schematic diagram of a smart interactive tablet according to an embodiment of the present invention. DETAILED DESCRIPTION

[0014] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0015] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0016] Example 1

[0017] According to an embodiment of the present invention, an embodiment of a robot control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0018] Figure 1 1 is a flow chart of a robot control method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0019] Step S102, obtaining the environment parameters of the robot, wherein the environment parameters are used to indicate the complexity of the environment in which the robot is located.

[0020] In the technical solution provided in the above step S102 of the present invention, when obtaining the environmental parameters of the robot, the environmental parameters of the robot can be obtained by adopting a robot environment complexity description function, and the environmental parameters can be used to describe the complexity of the environment in which the robot is located.

[0021] In the above embodiment, the robot environment complexity description function can be represented by f. When the robot is in an extremely simple environment, the value output by f is 0. When the robot is in an extremely complex environment, the value output by f is close to 1. That is, the value range of f can be [0, 1).

[0022] Step S104, determining a target sampling density parameter for sampling the control amount of the robot according to the environmental parameters, wherein the target sampling density parameter is used to indicate the density of sampling.

[0023] In the technical solution provided in the above step S104 of the present invention, after the environmental parameters of the robot are acquired, a target sampling density parameter for sampling the control amount of the robot can be determined according to the environmental parameters, and the target sampling density parameter is an integer greater than 1.

[0024] In the above-mentioned embodiment, the target sampling density parameter may include forward velocity sampling density parameter, steering angle sampling density parameter, time sampling density parameter, etc. The speed sampling density parameter may be used to indicate the density of sampling the forward velocity of the robot, the steering angle sampling density parameter may be used to indicate the density of sampling the steering angle of the robot, and the time sampling density parameter may be used to indicate the density of sampling the motion time of the robot.

[0025] Step S106, sampling the control amount of the robot according to the target sampling density parameter, and planning the path of the robot according to the sampled control amount.

[0026] In the technical solution provided in the above step S106 of the present invention, after determining the target sampling density parameters for sampling the control quantity of the robot, the control quantity of the robot can be sampled according to the obtained target sampling density parameters, and after sampling the control quantity of the robot, the path of the robot can be planned according to the obtained control quantity.

[0027] In the above embodiment, the control quantity of the robot can be the forward speed of the robot, the steering angle of the robot, the movement time of the robot, etc., so that a movement path of the robot can be planned according to the forward speed, steering angle and movement time of the robot.

[0028] Through the above steps S102 to S106, the environment parameters of the robot are obtained, wherein the environment parameters are used to indicate the complexity of the environment in which the robot is located; the target sampling density parameters for sampling the control amount of the robot are determined based on the environment parameters, wherein the target sampling density parameters are used to indicate the density of the sampling; the control amount of the robot is sampled according to the target sampling density parameters, and the robot is path-planned according to the control amount obtained by sampling. That is to say, this embodiment determines the target sampling density parameters for sampling the control amount of the robot based on the environmental complexity represented by the environment parameters of the robot, so as to sample the control amount of the robot according to the target sampling density parameters. In this way, different control amounts of the robot can be obtained according to the complexity of the environment, thereby achieving the purpose of path planning of the robot according to the complexity of the environment, and thus solving the technical problem of fixing the sampling density of the robot in the prior art, resulting in inaccurate path planning of the robot, and achieving the technical effect of improving the accuracy of planning the robot's path.

[0029] The above method of this embodiment is further described below.

[0030] As an optional implementation, step S102, obtaining environmental parameters of the robot, includes: obtaining a local range in the environment where the robot is located; obtaining a first area occupied by obstacles in the local range and a second area of ​​the local range; and determining a ratio of the first area to the second area as an environmental parameter.

[0031] In this embodiment, when obtaining the environmental parameters of the robot, the local range in the environment where the robot is located can be obtained first. The local range can be a local map centered on the robot, and then the first area occupied by obstacles in the local range and the second area of ​​the local range. For example, in the above-mentioned local map, the first area occupied by obstacles is represented by S_occ, and the second area of ​​the local map is represented by S, so the environment parameter of the robot can be f=S_occ / S, where f can be used to describe the robot's environment complexity degree.

[0032] As an optional implementation, step S104, determining a target sampling density parameter for sampling the control amount of the robot according to environmental parameters, includes: obtaining a preset maximum sampling density parameter; determining the target sampling density parameter according to the product of the environmental parameter and the maximum sampling density parameter.

[0033] In this embodiment, when determining the target sampling density parameters for sampling the control quantity of the robot based on the environmental parameters, the preset maximum sampling density parameters can be obtained first, and then the product of the environmental parameters and the maximum sampling density parameters can be obtained, and the obtained product can be processed using the rounding method to adaptively obtain the target sampling density parameters.

[0034] As an optional implementation, the target sampling density parameter is determined based on the product of the environmental parameter and the maximum sampling density parameter, including: rounding the product upward to obtain the smallest positive integer greater than the product; determining the smallest positive integer greater than the product as the target sampling density parameter.

[0035] In this embodiment, when determining the target sampling density parameter based on the product of the environmental parameters and the maximum sampling density parameter, the obtained product can be circled upwardly by using the circular integer method to obtain the smallest positive integer greater than the product, and the obtained minimum positive integer is determined as the target sampling density parameter. The target sampling density parameter can also be called the current sampling density.

[0036] For example, the maximum sampling density parameter of the robot's forward speed is k1_max, and the current sampling density is k1; the maximum sampling density parameter of the robot's steering angle is k2_max, and the current sampling density is k2; the maximum sampling density parameter of the robot's motion time is k3_max, and the current sampling density is k3. The process of adaptively acquiring the target sampling density parameters can be expressed as follows:

[0037] k1=k2=k3=1, if f=0;

[0038] K1 = round(f*k1_max);

[0039] K2 = round(f*k2_max);

[0040] K3 = round(f*k3_max);

[0041] Among them, round is the rounding method, and the output of round(x) is the smallest positive integer greater than the product.

[0042] As an optional implementation, obtaining a local range in the robot's environment includes: obtaining a preset length and obtaining a square local range with the robot as the center and the preset length as the side length; obtaining a preset length and obtaining a circular local range with the robot as the center and the preset length as the radius.

[0043] In this embodiment, when obtaining the local range in the robot's environment, the preset length can be obtained first, and then a square local range can be obtained with the robot as the center and the preset length as the side length, for example, a 2m×2m local map. The robot can also be used as the center and the preset length as the radius to obtain a circular local range, for example, a circular local map with the robot as the center and a radius of 2m.

[0044] As an optional embodiment, step S106 samples the control amount of the robot according to the target sampling density parameter, including: obtaining the maximum value of the control amount and obtaining the ratio of the maximum value to the target sampling density parameter; determining the ratio is a step size, and determining the sampling point between the minimum value and the maximum value of the control amount; when the control amount of the robot reaches the sampling point, the actual motion parameters of the robot are sampled.

[0045] In this embodiment, when sampling the control amount of the robot according to the target sampling density parameters, the maximum value of the control amount can be obtained first, and then the ratio between the obtained maximum value and the target sampling density parameter is determined as a step size, so that the control amount is superimposed according to the step size. Each step size of the control amount can be sampled once. The sampling point can be determined between the minimum value and the maximum value of the control amount. When the control amount is superimposed to the determined sampling point, the actual motion parameters of the robot can be sampled to obtain the control amount of the robot.

[0046] For example, the control amount in this embodiment may be the forward speed of the robot, the maximum value of the forward speed may be v_max, the step length may be v_max / k1, and the sampling point may be determined between -v_max and v_max. Then, sampling the actual forward speed of the robot may be expressed as the following process:

[0047]

[0048] For another example, the control amount in this embodiment may be the motion time of the robot, the maximum value of the motion time may be t_max, the step length may be t_max / k3, the sampling point may be determined between -t_max and t_max, and the sampling of the actual motion time of the robot may be expressed as the following process:

[0049] for(t=-t_max;t<t_max;t+=t_max / k3){

[0050] T.add(t);

[0051] }

[0052] As an optional implementation, step S106, plans the path of the robot according to the control quantity obtained by sampling, including: substituting the actual motion parameters of the robot collected at the current moment into the iterative equation of the robot to obtain the motion parameters of the robot at the next moment; determining the position of the robot at the next moment according to the motion parameters of the robot at the next moment, so as to plan the path of the robot.

[0053] In this embodiment, when the robot is planned according to the control amount obtained by sampling, the actual motion parameters of the robot collected at the current moment can be substituted into the iterative equation of the robot. Through the iterative equation, the actual motion parameters of the robot collected at the current moment can be obtained. Then, the position of the robot at the next moment can be determined based on the motion parameters of the next moment. After determining the position of the robot at the two moments, the path of the robot between the two moments can be determined.

[0054] In the above embodiment, after determining the position of the robot at the next moment, the next moment can be determined as the current moment, and then the actual motion parameters of the robot at this moment are iteratively processed to obtain the motion parameters of the robot at the next moment. The above steps are repeated until the control amount of the robot reaches the determined sampling point, and the final operation path of the robot can be obtained.

[0055] In related technologies, in order to make the searched path more consistent with the robot's kinematic constraints, researchers in the field of robotics proposed the hybrid A× algorithm, which samples the robot's control variables to obtain a path that the robot can directly execute.

[0056] By sampling the control amount of the robot using the method in the above-mentioned related art, the motion model of the mobile robot can be first determined. The motion model can be expressed by the following formula:

[0057] v_x=v cos(θ);

[0058] v_y = v sin(θ);

[0059]

[0060] Among them, v can be used to represent the forward speed of the robot, It can be used to indicate the steering angle of the robot, l can be used to indicate the axle distance between the front wheel and the rear wheel of the robot, θ can be used to indicate the current yaw angle of the robot, and w can be used to indicate the current rotation angular velocity of the robot.

[0061] By integrating the above operation model, the iterative equation of the robot can be obtained, which can be expressed by the following formula:

[0062] x t+1 =x t +v_x*t;

[0063] y t+1 =y t +v_y*t;

[0064] yaw t+1 =yaw t +w*t;

[0065] Among them, x can be used to represent the x-axis coordinate of the robot, y can be used to represent the y-axis coordinate of the robot, t can be used to represent the sampling duration, and yaw can be used to represent the yaw angle of the robot.

[0066] In this related technology, after determining the motion model of the mobile robot, the control amount of the robot can be sampled. The control amount sampling of the robot can be sampling of the forward speed, steering angle and motion time of the robot, which can be specifically:

[0067] Assuming that the forward velocity sampling density is 1 / k1, the steering angle sampling density is 1 / k2, and the motion time sampling density is 1 / k3, assuming is the set of sampled control quantities, T is the set of sampling times, and the sampling process can be expressed as follows:

[0068]

[0069] Time sampling can be expressed as follows:

[0070] for(t=-t_max;t<t_max;t+=t_max / k3){

[0071] T.add(t);

[0072] }

[0073] After sampling the control quantity of the robot, the collected control quantity of the robot is substituted into the iterative equation of the robot obtained by integrating the operation model mentioned above, and the position of the robot at the next moment is obtained, so as to obtain the final motion path of the robot.

[0074] In the above-mentioned related technologies, since the sampling of the control amount and time of the robot is constant, and there is no adaptive sampling based on environmental information, if the sampling of the control amount is too dense, it will lead to too many sampling paths and the calculation amount is too large to meet the requirements of real-time operation. If the sampling of the control amount is too sparse, in a more complex environment, it is easy to have a low success rate of robot path search, and even the path cannot be searched.

[0075] The control method of the robot in this application evaluates the environment around the robot by increasing the robot environment complexity description function, and then uses the hybrid A× algorithm to sample. If the robot is in a complex environment, the sampling density of the hybird A× control quantity is increased. If the robot is in a simple environment, the sampling density of the hybrid A× control quantity is reduced, so as to reduce the calculation amount of the path search process, thereby realizing adaptive sampling of the robot's control quantity through the robot environment complexity description function, thereby increasing the path search speed while increasing the success rate of the path search.

[0076] Example 2

[0077] According to an embodiment of the present invention, a robot control device is also provided. It should be noted that the robot control device can be used to execute the robot control method in embodiment 1.

[0078] Figure 2 Schematic diagram of a robot control device according to an embodiment of the present invention. Figure 2 As shown, the control device 20 of the robot may include: an acquisition unit 21 , a determination unit 22 and a planning unit 23 .

[0079] The acquisition unit 21 is used to acquire the environmental parameters of the robot, wherein the environmental parameters are used to indicate the complexity of the environment in which the robot is located.

[0080] The determination unit 22 is used to determine a target sampling density parameter for sampling the control amount of the robot according to the environmental parameters, wherein the target sampling density parameter is used to indicate the density of sampling.

[0081] The planning unit 23 is used to sample the control amount of the robot according to the target sampling density parameter, and plan the path of the robot according to the sampled control amount.

[0082] As an optional implementation, the acquisition unit 21 includes: a first acquisition module, used to acquire a local range in the environment where the robot is located; a second acquisition module, used to acquire a first area occupied by obstacles in the local range and a second area of ​​the local range; a first determination module, used to determine the ratio of the first area to the second area as an environmental parameter.

[0083] As an optional implementation, the determination unit 22 includes: a third acquisition module, used to obtain a preset maximum sampling density parameter; and a second determination module, used to determine a target sampling density parameter according to the product of the environmental parameter and the maximum sampling density parameter.

[0084] As an optional implementation, the second determination module includes: a processing submodule, used to round up the product to obtain the smallest positive integer greater than the product; and a determination submodule, used to determine the smallest positive integer greater than the product as the target sampling density parameter.

[0085] As an optional embodiment, the first acquisition module includes: a first acquisition sub-module, used to obtain a preset length and obtain a square local range with the robot as the center and the preset length as the side length; a second acquisition sub-module, used to obtain the preset length and obtain a circular local range with the robot as the center and the preset length as the radius.

[0086] As an optional embodiment, the planning unit 23 includes: a fourth acquisition module for obtaining the maximum value of the control amount and obtaining the ratio of the maximum value to the target sampling density parameter; a third determination module for determining the ratio is step size and determining the sampling point between the minimum value and the maximum value of the control amount; a sampling module for sampling the actual motion parameters of the robot when the control amount of the robot reaches the sampling point.

[0087] As an optional implementation, the planning unit 23 also includes: a substitution module, used to substitute the actual motion parameters of the robot collected at the current moment into the iterative equation of the robot to obtain the motion parameters of the robot at the next moment; a fourth determination module, used to determine the position of the robot at the next moment according to the motion parameters of the robot at the next moment, so as to perform path planning for the robot.

[0088] The control device of the robot in this embodiment determines the target sampling density parameters for sampling the robot's control amount based on the environmental complexity represented by the environment parameters of the robot, so as to sample the control amount of the robot according to the target sampling density parameters. In this way, different control amounts of the robot can be obtained according to the complexity of the environment, thereby achieving the purpose of path planning of the robot according to the complexity of the environment, thereby solving the technical problem of fixing the sampling density of the robot in the prior art, resulting in inaccurate path planning of the robot, and achieving the technical effect of improving the accuracy of planning the robot's path.

[0089] Example 3

[0090] According to an embodiment of the present invention, a computer-readable storage medium is further provided. The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing any one of the method steps in Embodiment 1.

[0091] In the embodiment of the present application, the storage medium stores a number of instructions so that the processor can load and execute the method of any one of the first embodiment to obtain the robot's environmental parameters, wherein the environmental parameters are used to indicate the complexity of the environment in which the robot is located; the target sampling density parameter for sampling the control amount of the robot is determined based on the environmental parameters, wherein the target sampling density parameter is used to indicate the density of the sampling; the control amount of the robot is sampled according to the target sampling density parameter, and the robot is path-planned according to the control amount obtained by sampling. The above solution determines the target sampling density parameters for sampling the robot's control amount based on the environmental complexity represented by the environment parameters of the robot, so as to sample the control amount of the robot according to the target sampling density parameters. In this way, different control amounts of the robot can be obtained according to the complexity of the environment, thereby achieving the purpose of path planning of the robot according to the complexity of the environment, and thus solving the technical problem of fixing the sampling density of the robot in the prior art, resulting in inaccurate path planning of the robot, and achieving the technical effect of improving the accuracy of planning the robot's path.

[0092] Example 4

[0093] According to an embodiment of the present invention, there is also provided an intelligent interactive tablet, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing any one of the method steps in Example 1.

[0094] Figure 3 is a schematic diagram of the structure of a smart interactive tablet according to an embodiment of the present invention, the smart interactive tablet comprises the above-mentioned interactive device body and touch frame, combined with Figure 3 As shown, the smart interactive tablet 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0095] The communication bus 302 is used to realize the connection and communication between these components.

[0096] The user interface 303 may include a display screen (Display) and a camera (Camera). The optional user interface 303 may also include a standard wired interface and a wireless interface.

[0097] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0098] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire intelligent interaction tablet 300 , and performs various functions and processing data of the intelligent interaction tablet 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305 , and invoking data stored in the memory 305 . Optionally, the processor 301 may be implemented in at least one hardware form of digital signal processing (DSP), field-Programmable Gate Array (FPGA), and programmable logic array (PLA). The processor 301 may integrate one or several combinations of a central processing unit (CPU), an image processor (GPU), a modem, etc. Among them, the CPU mainly processes operating systems, user interfaces, applications, etc.; the GPU is used to render and draw the content that needs to be displayed on the display screen; and the modem is used to handle wireless communication. It is understood that the above modem may not be integrated into the processor 301 and can be implemented separately by a chip.

[0099] Among them, the memory 305 may include Random Access Memory (RAM) or Read-Only Memory. Optionally, the memory 305 includes a non-transitory computer-readable storage medium. Memory 305 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 305 may include a storage program area and a storage data area, wherein the storage program area may store instructions for implementing the operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the storage data area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may also be at least one memory device located away from the aforementioned processor 301 . If Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application of the smart interactive tablet.

[0100] exist Figure 3In the smart interactive tablet 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 301 can be used to call the operating application of the smart interactive tablet stored in the memory 305, and specifically perform any one of the operations in Example 1.

[0101] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

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

[0103] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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 units or modules, which can be electrical or other forms.

[0104] 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0105] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0106] 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 technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0107] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A robot control method, characterized in that: include: Acquiring environmental parameters of the robot, wherein the environmental parameters are used to indicate the complexity of the environment in which the robot is located; Determine a target sampling density parameter for sampling the control amount of the robot according to the environmental parameter, wherein the target sampling density parameter is used to indicate the density of sampling; Sampling the control amount of the robot according to the target sampling density parameter, and performing path planning for the robot according to the sampled control amount; Wherein, obtaining the environmental parameters of the robot includes: obtaining a local range in the environment where the robot is located; obtaining a first area occupied by obstacles in the local range and a second area of ​​the local range; and determining a ratio of the first area to the second area as the environmental parameter; Wherein, determining the target sampling density parameter for sampling the control amount of the robot according to the environmental parameter includes: obtaining a preset maximum sampling density parameter; determining the target sampling density parameter according to the product of the environmental parameter and the maximum sampling density parameter; Wherein, determining the target sampling density parameter according to the product of the environmental parameter and the maximum sampling density parameter comprises: rounding the product upward to obtain a minimum positive integer greater than the product; determining the minimum positive integer greater than the product as the target sampling density parameter; Wherein, sampling the control amount of the robot according to the target sampling density parameter includes: Obtain the maximum value of the control amount, and obtain the ratio of the maximum value to the target sampling density parameter; determine the ratio as the step size, and determine the sampling point between the minimum value and the maximum value of the control amount; when the control amount of the robot reaches the sampling point, sample the actual motion parameters of the robot.

2. The method according to claim 1, characterized in that Obtaining the local range of the robot's environment, including: Obtaining a preset length, and obtaining a square local range with the robot as the center and the preset length as the side length; A preset length is obtained, and a circular local range with the robot as the center and the preset length as the radius is obtained.

3. The method according to claim 1, characterized in that: Performing path planning for the robot according to the control amount obtained by sampling includes: Substituting the actual motion parameters of the robot collected at the current moment into the iterative equation of the robot to obtain the motion parameters of the robot at the next moment; The position of the robot at the next moment is determined according to the motion parameters of the robot at the next moment, so as to perform path planning for the robot.

4. A robot control device, characterized in that: include: An acquisition unit, used for acquiring environmental parameters of the robot, wherein the environmental parameters are used to indicate the complexity of the environment in which the robot is located; A determination unit, configured to determine a target sampling density parameter for sampling a control amount of the robot according to the environmental parameter, wherein the target sampling density parameter is used to indicate a density of sampling; A planning unit, configured to sample the control amount of the robot according to the target sampling density parameter, and perform path planning for the robot according to the control amount obtained by sampling; The acquisition unit includes: a first acquisition module, which is used to acquire the environmental parameters of the robot, including: acquiring a local range in the environment where the robot is located; a second acquisition module, which is used to acquire a first area occupied by obstacles in the local range and a second area of ​​the local range; a first determination module, which is used to determine the ratio of the first area to the second area as the environmental parameter; Wherein, the determination unit includes: a third acquisition module, used to obtain a preset maximum sampling density parameter; a second determination module, used to determine the target sampling density parameter according to the product of the environmental parameter and the maximum sampling density parameter; The second determination module includes: a processing submodule, which rounds the product upward to obtain a minimum positive integer greater than the product; a determination submodule, which is used to determine the minimum positive integer greater than the product as the target sampling density parameter; Among them, the planning unit includes: a fourth acquisition module, used to obtain the maximum value of the control amount, and obtain the ratio of the maximum value to the target sampling density parameter; a third determination module, used to determine the ratio as the step size, and determine the sampling point between the minimum value and the maximum value of the control amount; a sampling module, used to sample the actual motion parameters of the robot when the control amount of the robot reaches the sampling point.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 3.

6. A smart interactive tablet, characterized in that: include: A processor and a memory, wherein the memory stores a computer program, the computer program being adapted to be loaded by the processor and to execute the method steps as claimed in any one of claims 1 to 3.