WO2024031959A1 - Obstacle avoidance robot, control method and control device thereof, and readable storage medium - Google Patents

Obstacle avoidance robot, control method and control device thereof, and readable storage medium Download PDF

Info

Publication number
WO2024031959A1
WO2024031959A1 PCT/CN2023/077991 CN2023077991W WO2024031959A1 WO 2024031959 A1 WO2024031959 A1 WO 2024031959A1 CN 2023077991 W CN2023077991 W CN 2023077991W WO 2024031959 A1 WO2024031959 A1 WO 2024031959A1
Authority
WO
WIPO (PCT)
Prior art keywords
obstacle avoidance
robot
obstacle
avoidance robot
control
Prior art date
Application number
PCT/CN2023/077991
Other languages
French (fr)
Chinese (zh)
Inventor
曹开发
刘冬
Original Assignee
美的集团(上海)有限公司
美的集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 美的集团(上海)有限公司, 美的集团股份有限公司 filed Critical 美的集团(上海)有限公司
Publication of WO2024031959A1 publication Critical patent/WO2024031959A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0214Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0221Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process

Definitions

  • the present application belongs to the field of obstacle avoidance robots. Specifically, it relates to an obstacle avoidance robot and its control method, control device, readable storage medium and computer program product.
  • This application aims to solve one of the technical problems existing in the existing technology or related technology.
  • the first aspect of this application proposes a control method for an obstacle avoidance robot.
  • the second aspect of this application proposes a control device for an obstacle avoidance robot.
  • the third aspect of this application proposes a control device for an obstacle avoidance robot.
  • a fourth aspect of the application proposes a readable storage medium.
  • the fifth aspect of this application proposes an obstacle avoidance robot.
  • a sixth aspect of the application proposes a computer program product.
  • a control method for an obstacle avoidance robot includes: receiving map information of the environment where the obstacle avoidance robot is located; and obtaining the initial trajectory and initial trajectory of the obstacle avoidance robot based on the map information. Initial boundary of the trajectory; detect obstacle information within the initial boundary, determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information, and generate control instructions; control the movement of the obstacle avoidance robot according to the control instructions.
  • the map information of the environment where the obstacle avoidance robot is located is received, the obstacle information within the initial boundary is detected, and the target trajectory of the obstacle avoidance robot is determined based on the initial boundary, initial trajectory and obstacle information.
  • control instructions controls the obstacle avoidance robot to move according to the control instructions, and can control the obstacle avoidance robot to avoid obstacles at a long distance, thereby reducing the possibility of collision between the obstacle avoidance robot and obstacles, and reserving a certain amount of time in advance. Time allows the obstacle avoidance robot to respond promptly to unexpected situations and avoid risks, making the obstacle avoidance robot's movement trajectory smoother.
  • the second aspect of the present application provides a control device for an obstacle avoidance robot.
  • the obstacle avoidance robot includes a housing, a detection component and a moving component.
  • the control device includes a detection unit and a moving unit.
  • the detection unit is used to control the detection component to detect objects outside the housing. Obstacle information; the mobile unit is used to control the moving parts to control the movement of the obstacle avoidance robot.
  • the third aspect of the present application provides a control device for an obstacle avoidance robot.
  • the control device includes a memory and a processor.
  • the memory stores programs or instructions that can be run on the processor. When the program or instructions are executed by the processor, any of the above are implemented.
  • the steps of the control method of the obstacle avoidance robot of a technical solution therefore have all the beneficial technical effects of the control method of the obstacle avoidance robot of any of the above technical solutions.
  • the fourth aspect of the present application provides a readable storage medium on which a program or instructions are stored.
  • the program or instructions are executed by a processor, the steps of the control method of the obstacle avoidance robot according to any of the above technical solutions are implemented. Therefore, it has All the beneficial technical effects of the control method of the obstacle avoidance robot of any of the above technical solutions.
  • the fifth aspect of the present application provides an obstacle avoidance robot, including the control device of the obstacle avoidance robot of the second aspect; or the control device of the obstacle avoidance robot of the third aspect; or a readable storage medium of the fourth aspect, thus having the above All the beneficial technical effects of the control method of the obstacle avoidance robot of any technical solution.
  • the sixth aspect of the present application provides a computer program product, including a computer program/instruction.
  • the computer program/instruction is executed by a processor, the steps of the control method of the obstacle avoidance robot of any of the above technical solutions are implemented, and thus has any of the above features. All the beneficial technical effects of the control method of the obstacle avoidance robot in one technical solution.
  • Figure 1 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application
  • Figure 2 shows a schematic diagram of the initial trajectory and initial boundaries of the obstacle avoidance robot in the embodiment shown in Figure 1;
  • Figure 3 shows a schematic diagram of the target trajectory and target boundaries of the obstacle avoidance robot in the embodiment shown in Figure 1;
  • Figure 4 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application
  • Figure 5 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application
  • Figure 6 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application
  • Figure 7 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application
  • Figure 8 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application
  • Figure 9 shows a control schematic diagram of a control method for an obstacle avoidance robot according to an embodiment of the present application.
  • Figure 10 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application
  • Figure 11 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application
  • Figure 12 shows a control schematic diagram of the obstacle avoidance model according to an embodiment of the present application.
  • Figure 13 shows a structural block diagram of a control device of an obstacle avoidance robot according to an embodiment of the present application.
  • obstacle avoidance robot 100 obstacle avoidance robot, 102 initial trajectory, 104 initial boundary, 106 target trajectory, 108 target boundary, 110 obstacles, 112 theoretical system, 114 actual system, 116 Gaussian process, 118 estimation model, 120 obstacle avoidance model, 200 obstacle avoidance robot Control device, 202 memory, 204 processor.
  • the following describes a control method for an obstacle avoidance robot, a control device 200 for an obstacle avoidance robot, a readable storage medium, and an obstacle avoidance robot according to some embodiments of the present application with reference to FIGS. 1 to 13 .
  • one embodiment of the present application provides a control method for an obstacle avoidance robot.
  • the control method includes:
  • S106 detect obstacle information within the initial boundary, determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information, and generate control instructions;
  • the map information is received, the feasible road of the obstacle avoidance robot 100 is determined based on the map information, and the road width of the feasible road is obtained, and a collision-free initial trajectory is determined based on the feasible road and the width of the feasible road in the map information. 102. It can be understood that the initial boundaries 104 are set on both sides of the initial trajectory 102, thereby determining the feasible range of the obstacle avoidance robot 100.
  • the information of the obstacle 110 is confirmed, and whether the obstacle 110 affects the movement of the obstacle avoidance robot 100 is determined, thereby determining the target trajectory 106, and generating control instructions to control the movement of the obstacle avoidance robot 100 according to the control instructions.
  • the practical feasible range of the obstacle avoidance robot 100 is increased, thereby improving the adaptability of the obstacle avoidance robot 100 to multiple usage scenarios such as household, commercial, and industrial use.
  • the obstacle avoidance robot 100 can be predicted in advance before a collision occurs, and risks can be avoided at a relatively long distance, thereby improving the safety of the movement of the obstacle avoidance robot 100, so that the time of the obstacle avoidance robot 100 matches the control instructions at that time, and avoids correlation
  • the obstacle avoidance robot has a large delay, resulting in untimely response and collision with the obstacle 110. This makes the obstacle avoidance robot 100's moving trajectory smoother and ensures the safety of the obstacle avoidance robot 100's entire obstacle avoidance process. stability and stability, improve the user experience of the obstacle avoidance robot 100, and further increase the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
  • control method includes:
  • S402 Receive map information of the environment where the obstacle avoidance robot is located
  • S412 Determine the control instructions of the obstacle avoidance robot at the current moment based on the target trajectory, target boundary, first coordinate and second coordinate;
  • the information of the obstacle 110 is confirmed, and whether the obstacle 110 affects the movement of the obstacle avoidance robot 100 is determined, thereby ensuring that there is no obstacle in the target trajectory 106 and the target boundary 108 that will hinder the movement of the obstacle avoidance robot 100.
  • obstacles 110 and then determine the collision-free feasible range of the obstacle avoidance robot 100, and plan the movement trajectory of the obstacle avoidance robot 100.
  • This application determines the movement trajectory and movement boundary of the obstacle avoidance robot 100 by combining the obstacle information. Compared with related Directly increasing the expansion radius in the technology increases the practical feasible range of the obstacle avoidance robot 100, thereby improving the adaptability of the obstacle avoidance robot 100 to multiple usage scenarios such as home, commercial, and industrial use.
  • the obstacle information includes the space occupied by the obstacle 110 within the initial boundary 104 , so that the target trajectory 106 and the target boundary 108 can be determined according to the space occupied by the obstacle 110 , the initial boundary 104 and the initial trajectory 102 .
  • the space occupied by the obstacle 110 may be displayed as a circle, rectangle, triangle or other shape on the initial boundary 104. According to the shape formed by the space occupied by the obstacle 110, it is similar to one of the two initial boundaries 104. 104 and the shortest distance between the endpoints of the shape formed by the space occupied by the obstacle 110 and the adjacent initial boundary 104 form the target boundary 108 .
  • risk avoidance begins at a relatively long distance, thereby improving the safety of movement, so that the time of the obstacle avoidance robot 100 matches the control instructions at that time, and avoids untimely response caused by the large delay of the obstacle avoidance robot in related technologies.
  • the phenomenon of collision with the obstacle 110 occurs, and at the same time, the obstacle avoidance robot 100 starts to avoid the obstacle 110 at a longer distance, thereby reducing the possibility of encountering the obstacle 110 during the obstacle avoidance process, and making the obstacle avoidance robot 100
  • the movement trajectory is smoother, thereby avoiding the phenomenon that the obstacle avoidance robot 100 cannot avoid the obstacle 110 at a long distance.
  • the obstacle avoidance robot 100 is affected by inertia and collides with the obstacle 110 during an emergency stop.
  • the gradient descent method is used to smooth the initial trajectory 102, so that the movement trajectory of the obstacle avoidance robot 100 can be smoother, so that the obstacle avoidance robot 100 moves along a smooth movement trajectory, and the entire obstacle avoidance process can be more complete and smoother. Improve the user experience of obstacle avoidance robot 100.
  • control method includes:
  • S502 Receive map information of the environment where the obstacle avoidance robot is located
  • S512 Determine the control instructions of the obstacle avoidance robot at the current moment based on the target trajectory, target boundary, first coordinate, second coordinate and obstacle avoidance model;
  • the obstacle avoidance robot is jointly determined based on the risk-avoided target trajectory 106 and target boundary 108 as well as the immediately acquired first coordinates, the immediately acquired second coordinates and the pre-set obstacle avoidance model 120 100 corresponding control instructions at the current moment, so that the obstacle avoidance model 120 can be used to improve the precise control of the obstacle avoidance robot 100, and the control problem of the obstacle avoidance robot 100 can be transformed into an optimization problem of the obstacle avoidance model 120, so that the obstacle avoidance model 120 can be used in advance.
  • the optimization of the obstacle avoidance model 120 determines whether the obstacle avoidance robot 100 can be implemented.
  • the obstacle avoidance model 120 by optimizing the control of the obstacle avoidance model 120, it is determined in advance whether the target trajectory 106 is feasible, thereby controlling the obstacle avoidance robot 100 to avoid obstacles. On the one hand, it saves efficiency and facilitates the control of the obstacle avoidance robot 100. On the other hand, it can avoid The obstacle avoidance robot 100 makes unnecessary movements to improve the user experience of the obstacle avoidance robot 100, thereby increasing the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
  • the obstacle avoidance model 120 is specifically a mathematical model that transforms the motion process of the obstacle avoidance robot 100.
  • f normal (x k , u k ) represents the modeling state equation of the obstacle avoidance model 120
  • x represents the state quantity
  • x k represents the state quantity of the obstacle avoidance model 120 at time k
  • u k represents the obstacle avoidance model at time k.
  • the output of 120, f true (x k , uk ) represents the data collection state equation of the obstacle avoidance model.
  • f normal (x k , u k ) represents the theoretical relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 .
  • This theoretical relationship can be based on the relationship between the state quantity and the output quantity of the obstacle avoidance model 120
  • the historical relational expression and the relational expression between the state quantity and the output quantity used in the obstacle avoidance model 120 in the prior art are determined.
  • f true (x k , u k ) represents the actual relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 .
  • the actual relationship equation can be calculated based on the actual state quantity and the actual output quantity of the obstacle avoidance model 120 . determined after variable analysis.
  • the state quantity of the obstacle avoidance model 120 may be the coordinates of the obstacle avoidance robot 100
  • the output quantity of the obstacle avoidance model 120 may be the speed or angular velocity of the obstacle avoidance robot 100 .
  • k+1 can be determined based on the state quantity and input quantity obtained at time k.
  • the state quantity at the time is thus obtained in advance according to the obstacle avoidance model 120, and then the obstacle avoidance robot 100 is controlled.
  • ⁇ N(u, ⁇ ), ⁇ represents the compensation value of the obstacle avoidance model 120
  • u is the mean value of the input amount collected in advance by the obstacle avoidance model 120
  • is the input of the pre-fitting training in the obstacle avoidance model 120 quantity covariance.
  • the obstacle avoidance model 120 is specifically a mathematical model of the motion process transformation of the obstacle avoidance robot 100. Specifically, it can be expressed as:
  • st represents subject to (subject to)
  • represents the compensation value of the obstacle avoidance model 120
  • x t represents the state quantity of the obstacle avoidance model 120 at time t
  • x start is The state quantity of the obstacle avoidance model 120 at the beginning time
  • x t+N represents the state quantity of the obstacle avoidance model 120 at time t+N
  • x end is the state quantity at the end time of the obstacle avoidance model 120
  • x state represents the abscissa coordinate of the obstacle avoidance robot 100 within the moving boundary
  • x obstacle represents the abscissa coordinate of the obstacle 110 within the moving boundary
  • y state represents the ordinate coordinate of the obstacle avoidance robot 100 within the moving boundary
  • y Obstacle represents the ordinate of the obstacle 110 within the movement boundary
  • R represents the distance between the obstacle avoidance robot 100 and the obstacle 110 before the obstacle avoidance robot 100 moves.
  • x t+k represents the state quantity of the obstacle avoidance model 120 at time t+k
  • u t+k represents the input quantity of the obstacle avoidance model 120 at time t+k
  • x represents the obstacle avoidance model 120 at time t+k.
  • the state quantity of the model 120, u represents the input quantity of the obstacle avoidance model 120.
  • the control obstacle constraint function can be represented by the linear differential function h(x t+k ).
  • the obstacle robot 100 approaches the obstacle 110.
  • J in represents the total cost function of the obstacle avoidance model 120
  • minp(x t+N ) represents the cost function of the state quantity at time t+N
  • control method includes:
  • S602 Receive map information of the environment where the obstacle avoidance robot is located
  • S606 detect obstacle information within the initial boundary, and determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information;
  • S608 determine the target boundary based on the target trajectory and obstacle information
  • S618 Control the obstacle avoidance robot to move according to the control instructions.
  • the distance compensation value is used to compensate the first constraint value, thereby improving the accuracy of the obstacle avoidance model 120 and thereby improving the accuracy of controlling the obstacle avoidance robot 100 .
  • the distance compensation value can be expressed as R, and R represents the distance maintained between the obstacle avoidance robot 100 and the obstacle 110. It can be understood that R is a fixed value, which is the obstacle avoidance robot 100 before the obstacle avoidance robot 100 outputs the control command. The distance maintained from the obstacle 110 is used to compensate the obstacle avoidance model 120 with a fixed value, thereby improving the accuracy of the obstacle avoidance model 120 and thereby improving the accuracy of controlling the obstacle avoidance robot 100 .
  • the delay of the obstacle avoidance model 120 is solved. problem, to avoid the phenomenon in related technologies that the obstacle avoidance robot 100 has a large delay, resulting in untimely response and collision with the obstacle 110, thereby making the obstacle avoidance process of the entire obstacle avoidance robot 100 smoother and improving the performance of the obstacle avoidance robot 100.
  • the user experience increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
  • the first constraint value is a constant value in the obstacle avoidance model 120 that satisfies an inequality relationship based on the control obstacle constraint function and the differential function obtained by the control obstacle constraint function.
  • determining the control instructions of the obstacle avoidance robot 100 at the current moment according to the obstacle avoidance model 120 includes: setting the upper limit threshold and the lower limit threshold of the first control output condition, specifically, setting the upper limit threshold is 1, set the lower threshold to 0.
  • the first constraint value when the first constraint value is in the range of greater than the lower limit threshold and less than or equal to the upper threshold, it is determined that the first constraint value satisfies the first control output condition.
  • the first constraint value When the first constraint value is not in the range of greater than the lower threshold and less than or equal to the upper threshold.
  • the obstacle avoidance model 120 When within the range, it means that the obstacle avoidance model 120 is invalid for the obstacle constraints of the obstacle avoidance robot 100, so the initial trajectory 102 and the initial boundary 104 of the obstacle avoidance robot 100 are re-determined, and the movement trajectory of the obstacle avoidance robot 100 is re-planned.
  • control method includes:
  • S702 Receive map information of the environment where the obstacle avoidance robot is located
  • the model compensation value is obtained, and the theoretical obstacle avoidance model is compensated according to the model compensation value, thereby increasing the obstacle avoidance
  • the degree of matching between the model 120 and the actual obstacle avoidance model reduces the impact of errors, losses, noise and other factors of the obstacle avoidance model 120 on the obstacle avoidance model 120 and the impact of model uncertainty, complex nonlinearity and other factors, and improves
  • the accuracy and robustness of the obstacle avoidance model 120 improves the accuracy of controlling the obstacle avoidance robot 100, improves the user experience of the obstacle avoidance robot 100, and increases the suitability of the obstacle avoidance robot 100 for various usage scenarios such as homes, shopping malls, and factories.
  • the degree of matching is obtained, and the theoretical obstacle avoidance model is compensated according to the model compensation value, thereby increasing the obstacle avoidance
  • the degree of matching between the model 120 and the actual obstacle avoidance model reduces the impact of errors, losses, noise and other factors of the obstacle avoidance model 120 on the obstacle avoidance model 120 and the impact of model uncertainty, complex nonlinearity and other factors,
  • the model compensation value is the result of compensation according to the Gaussian process 116.
  • the Gaussian process 116 is a combination of random variables in the obstacle avoidance model 120 within the exponential set, which is determined by the mathematical expectation and covariance function, and can be expressed as: ⁇ N(u, ⁇ );
  • can be expressed as the model compensation value
  • u is the mathematical expectation, specifically in the obstacle avoidance model 120, it represents the mean value of the input quantity collected in advance
  • is the covariance, specifically in the obstacle avoidance model 120 it represents the pre-fitting training.
  • k represents the moment at time k
  • k+1 represents the moment at time k+1
  • x k represents the state quantity of the obstacle avoidance model 120 at time k
  • u k represents the output quantity of the obstacle avoidance model 120 at time k
  • f normal represents the theoretical relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120
  • x represents the state quantity of the obstacle avoidance model 120 .
  • x k represents the state quantity of the obstacle avoidance model 120 at time k
  • u k represents the output quantity of the obstacle avoidance model 120 at time k
  • f true represents the actual difference between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120
  • x represents the state quantity of the obstacle avoidance model 120.
  • f normal (x k , u k ) represents the theoretical relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 .
  • This theoretical relationship can be based on the relationship between the state quantity and the output quantity of the obstacle avoidance model 120
  • the historical relational expression and the relational expression between the state quantity and the output quantity used in the obstacle avoidance model 120 in the prior art are determined.
  • f true (x k , u k ) represents the actual relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 .
  • the actual relationship equation can be calculated based on the actual state quantity and the actual output quantity of the obstacle avoidance model 120 . determined after variable analysis.
  • k represents the moment at time k
  • k+1 represents the moment at time k+1
  • x k represents the state quantity of the obstacle avoidance model 120 at time k
  • u k represents the output quantity of the obstacle avoidance model 120 at time k
  • f normal represents the theoretical relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120
  • represents the model compensation value
  • x represents the state quantity of the obstacle avoidance model 120 .
  • the model compensation value can be changed periodically, and the change period can be set according to the loss of the obstacle avoidance model 120.
  • the algorithm of the obstacle avoidance model 120 in the related art uses a linearized model and ignores the uncertainty of the model. factors, so the process of establishing a complex nonlinear model is very difficult, and during use of the obstacle avoidance robot 100, many parameters change due to usage losses, such as tire friction coefficient, etc., and the Gaussian process 116 is introduced to compensate for the obstacle avoidance model.
  • the uncertainty of 120 makes the algorithm accuracy and robustness of the obstacle avoidance model 120 higher.
  • control method includes:
  • S802 Receive map information of the environment where the obstacle avoidance robot is located
  • S826 Control the obstacle avoidance robot to move according to the control instructions.
  • the second constraint value represents the result obtained by controlling the obstacle constraint function of the obstacle avoidance model 120.
  • x state represents the center abscissa of the obstacle avoidance robot 100 at the current moment
  • x obstacle represents the center abscissa of the obstacle 110 at the current moment
  • y state represents the center abscissa of the obstacle avoidance robot 100 at the current moment
  • y obstacle represents The center abscissa of the obstacle 110 at the current moment
  • R represents the distance between the obstacle avoidance robot 100 and the obstacle 110 before the obstacle avoidance robot 100 moves.
  • the third constraint value is the result of differentiating the obstacle constraint function of the obstacle avoidance model 120, expressed as ⁇ h
  • the first constraint value is a constant representing the convergence speed in the obstacle avoidance model 120, which can be expressed as r, at 0
  • the first constraint value, the second constraint value and the third constraint value satisfy the following relationship: ⁇ h(x t+k ,u t+k )+rh(x t+k ) ⁇ 0;
  • the inequality constraint of the obstacle avoidance model 120 by the control obstacle constraint function is realized, thereby increasing the feasible set range of the obstacle avoidance robot 100, where, h(x t +k ) represents the second constraint value at the t+kth time, and ⁇ h(x t+k , u t+k ) is the third constraint value obtained by differentiating the second constraint value at the t+kth time.
  • the accuracy of the obstacle avoidance model 120 is improved, and the feasible set range of the obstacle avoidance model 120 is increased, so that the obstacle avoidance robot can 100 can start to avoid obstacles 110 at a longer distance, reducing the possibility of encountering obstacles 110 during the obstacle avoidance process, thereby preventing the obstacle avoidance robot 100 from being unable to avoid obstacles 110 at a long distance.
  • the obstacle avoidance robot 100 is affected by inertia and collides with the obstacle 110.
  • control method includes:
  • S902 Receive map information of the environment where the obstacle avoidance robot is located
  • S928 Determine whether the control instruction of the obstacle avoidance robot at the current moment meets the second control output condition. If yes, execute S930; if not, execute S904;
  • S930 Use the control instruction of the obstacle avoidance robot at the current moment as an optimization control instruction, and control the movement of the obstacle avoidance robot according to the optimization control instruction.
  • control instruction of the obstacle avoidance robot 100 at the current moment satisfies the second control output condition, it is determined that the control instruction of the obstacle avoidance robot 100 at the current moment has been optimized, and the control instruction at the current moment is used as the optimized control instruction.
  • controlling the movement of the obstacle avoidance robot 100 according to the optimized control instructions includes: extracting the movement parameters in the control instructions, Perform data processing on movement parameters.
  • the movement parameters include the speed of the obstacle avoidance robot 100, the acceleration of the obstacle avoidance robot 100, the displacement of the obstacle avoidance robot 100, the position error of the obstacle avoidance robot 100, the speed of the obstacle 110, the acceleration of the obstacle 110, the obstacle The displacement of 110, the position error of obstacle 110, etc.
  • the speed of the obstacle avoidance robot 100 determines whether the position error of the obstacle avoidance robot 100 has a relative minimum value in the obstacle avoidance model 120.
  • the movement parameter has a relative minimum value in the obstacle avoidance model 120, it is determined that the movement trajectory of the obstacle avoidance robot 100 is the optimal one at the current moment.
  • the cost function relationship in the obstacle avoidance model 120 can be used to perform data processing on the movement parameters, which can be expressed as:
  • p(x t+N ) represents the movement parameter at time t+N
  • the movement parameters are the optimal values, and the obstacle avoidance robot is controlled to move the minimum Movement amount to achieve optimal control of the obstacle avoidance robot 100, avoid unnecessary movements of the obstacle avoidance robot 100, improve the control efficiency of the obstacle avoidance robot 100, improve the intelligence and energy saving of the obstacle avoidance robot 100, and improve obstacle avoidance
  • the user experience of the robot 100 increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
  • the second control output condition is to set a minimum value output instruction in the optimizer.
  • the above functional equation relationship is obtained by solving the optimizer. When there is a minimum value in the cost function relationship, the optimizer outputs the minimum value of the cost function. , determine the movement parameters at the current moment as the minimum movement parameters, determine the control instructions at the current moment as the optimization control instructions, and control the obstacle avoidance robot to move according to the optimization control instructions.
  • the control instruction at the current moment is not an optimized control instruction, and the obstacle avoidance robot 100 cannot avoid obstacles with the minimum movement parameters, so the obstacle avoidance robot 100 can re-plan its movement trajectory.
  • a control method provided by an embodiment of the present application includes:
  • S1002 receive map information of the environment where the obstacle avoidance robot is located
  • S1030 use the control instructions of the obstacle avoidance robot at the current moment as the optimization control instructions, and control the movement of the obstacle avoidance robot according to the optimization control instructions;
  • S1032 Set the time when the obstacle avoidance robot stops moving according to the optimization control instruction as the first time, and obtain the fourth coordinates of the obstacle avoidance robot at the first time.
  • the delay problem of the obstacle avoidance robot 100 can be solved, and the phenomenon in related technologies that the obstacle avoidance robot 100 has a large delay resulting in untimely response and collision with obstacles can be avoided, thereby making the obstacle avoidance robot 100 more efficient.
  • the obstacle safety performance is higher, the user experience of the obstacle avoidance robot 100 is improved, and the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories is increased.
  • control methods provided by this application include:
  • S1136, determine that the control command at the current moment meets the second control output condition, use the control command of the obstacle avoidance robot at the current moment as the optimized control command, and control the movement of the obstacle avoidance robot according to the optimized control command;
  • S11308 set the moment when the obstacle avoidance robot stops moving according to the optimization control instruction as the first moment, and obtain the fourth coordinate of the obstacle avoidance robot at the first moment;
  • S1150 Determine the optimal control instruction of the obstacle avoidance robot at the first moment based on the final trajectory, the final boundary, the sixth coordinate and the seventh coordinate, until the obstacle avoidance robot is controlled to reach the eighth coordinate of the end point of the final trajectory according to the optimization control instruction.
  • the A*(A-Star) algorithm may be used to obtain the initial trajectory 102.
  • the A* algorithm sets multiple grid points between the initial position of the obstacle avoidance robot 100 and the target position of the obstacle avoidance robot 100, thereby converting the distance problem between the initial position and the target position into multiple points.
  • the conversion problem improves the accuracy of controlling the obstacle avoidance robot 100 during its movement from the initial position to the target position.
  • F(n) represents the cost relationship from the initial position of the obstacle avoidance robot 100 to the target position
  • G(n) represents the cost relationship from the initial position to the next grid point in the A* algorithm
  • H(n) Expressed as the cost relationship from the next grid point to the target position in the A* algorithm.
  • the A* algorithm is used to search for feasible routes of the obstacle avoidance robot 100 and generate a list of feasible routes.
  • the optimal trajectory is searched for in the list of feasible routes, and the optimal trajectory is used as the initial trajectory 102 .
  • control instructions include movement parameters of the speed and angular velocity of the obstacle avoidance robot 100 .
  • the obstacle avoidance robot 100 has reached the target position, thereby determining that the obstacle avoidance robot 100 has completed the complete obstacle avoidance process, and the obstacle avoidance robot 100 is controlled to stop, and the obstacle avoidance process is safe and smooth, thereby improving the performance of the obstacle avoidance robot 100.
  • the user experience increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
  • the obstacle information is reacquired; and the final trajectory and final boundary are determined.
  • the movement trajectory and movement boundary of the obstacle avoidance robot 100 can be redetermined, so that the movement of the obstacle avoidance robot 100 can be determined based on the time.
  • the trajectory and movement boundary are dynamically planned, so that a collision-free movement trajectory of the obstacle avoidance robot 100 can be planned from a long distance, to avoid the impact of the movement of the obstacle 110 on the obstacle avoidance robot 100, and to reduce the obstacles encountered during the obstacle avoidance process.
  • 110 possibility making the movement trajectory of the obstacle avoidance robot 100 smoother, and avoiding the obstacle avoidance robot 100 in related technologies that cannot avoid the obstacle 110 at a long distance.
  • the influence of inertia causes the occurrence of dangerous collisions with obstacles 110, which improves the user experience of the obstacle avoidance robot 100 and increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
  • the sixth and seventh coordinates are obtained; the optimization control instructions are redetermined, and the obstacle avoidance robot is controlled to move by determining and outputting the optimization control instructions corresponding to the time, thus solving the delay control problem of the obstacle avoidance robot until
  • the eighth coordinate of the obstacle avoidance robot 100 ensures the safety and stability of the entire obstacle avoidance process of the obstacle avoidance robot 100, improves the user experience of the obstacle avoidance robot 100, and further increases the impact of the obstacle avoidance robot 100 on families, shopping malls, factories, etc. The degree of adaptability to various usage scenarios.
  • the initial trajectory 102 is obtained through the A* algorithm, and the initial trajectory 102 is smoothed to make the motion trajectory of the obstacle avoidance robot 100 smoother.
  • the initial boundary 104 and the smoothed initial trajectory are 102 performs dynamic planning to determine the target trajectory 106 and target boundary 108, control the movement trajectory of the obstacle avoidance robot 100 in combination with the time, and solve the obstacle avoidance model 120 according to the first control output condition and the second control output condition.
  • the obstacle avoidance model 120 by determining whether the obstacle avoidance model 120 has a solution, and judging whether the planned movement trajectory of the obstacle avoidance robot 100 is feasible, so that the obstacle avoidance robot 100 can avoid the obstacle 110 from a long distance, and controlling the obstacle avoidance robot 100 at all times solves the problem
  • the obstacle avoidance robot 100 is not controlled in a timely manner to avoid the delay control of the obstacle avoidance robot 100 causing the obstacle avoidance robot 100 to collide with the obstacle 110 due to the influence of inertia during emergency stop.
  • the feasible set range of the obstacle avoidance model 120 is increased.
  • the obstacle avoidance model 120 is made more accurate and robust, which facilitates the control of the obstacle avoidance robot 100 and improves the obstacle avoidance robot. 100% usage experience further increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls and factories.
  • the movement trajectory of the obstacle avoidance robot 100 is determined whether the movement trajectory of the obstacle avoidance robot 100 will be interfered by the obstacle 110, thereby avoiding the occurrence of collisions between the two, and thereby predicting risks in advance before the collision occurs.
  • the delay problem of the obstacle avoidance model 120 is solved, which facilitates the optimal control of the obstacle avoidance model 120, and because constraints are added to the obstacle avoidance model 120 and compensation, while increasing the feasible set range of the obstacle avoidance model 120, it also improves the accuracy and robustness of the obstacle avoidance model 120, thereby improving the response speed of the obstacle avoidance model 120 and enhancing the adaptability of the obstacle avoidance model 120 and the obstacle avoidance robot 100.
  • the delay problem of the obstacle avoidance robot 100 is solved, and the time corresponds to the control command.
  • avoidance robot 100 can respond to the target at a remote location.
  • Obstacles 110 are avoided, and a collision-free and smooth movement trajectory is dynamically planned, thereby making the entire movement process smoother, and improving the accuracy of controlling the obstacle avoidance robot 100, and controlling the obstacle avoidance robot 100 to start from a longer distance.
  • Avoid obstacles 110 detect obstacle information in real time, control in advance, and adjust and control the movement of the obstacle avoidance robot 100 based on feedback, so that the obstacle avoidance robot 100 can reach the target position safely and without collision, improving the performance of the obstacle avoidance robot 100.
  • the user experience further increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls and factories.
  • an actual system 114 and a theoretical system 112 are preset.
  • the actual system 114 and the theoretical system 112 form an estimation model 118 based on the feedback value of the system.
  • the Gaussian process 116 is in the obstacle avoidance model 120, and the estimation model is 118 is compensated.
  • the obstacle avoidance model 120 constrains and optimizes the estimated model 118, the actual system 114 and the theoretical system 112 are optimized and controlled.
  • the obstacle avoidance robot 100 is composed of a housing, a detection component and a moving component.
  • the control device is composed of a detection unit and a moving unit.
  • the detection component is controlled by the detection unit. , detecting obstacles that may hinder the movement of the obstacle avoidance robot 100; the moving parts are controlled by the mobile unit and can make the obstacle avoidance robot 100 move.
  • the control device includes a detection unit and a moving unit.
  • the detection unit can control the detection components of the obstacle avoidance robot 100 to detect obstacle information outside the housing of the obstacle avoidance robot 100.
  • the mobile unit can control the moving components of the obstacle avoidance robot 100.
  • the obstacle avoidance robot 100 is moved, so that the obstacle avoidance robot 100 can avoid the obstacle 110 and move, thereby completing the complete motion process of obstacle avoidance, improving the use experience of the obstacle avoidance robot 100, and increasing the impact of the obstacle avoidance robot 100 on household, commercial and industrial applications.
  • the detection component may include a sensor. This application does not limit the type of the sensor.
  • the moving component may include a motor and a tire. This application does not specifically limit the type of the motor, the type of the tire, and the way the motor drives the tire.
  • one embodiment of the present application provides a control device 200 for an obstacle avoidance robot.
  • the control device includes a memory 202 and a processor 204.
  • the memory 202 stores programs or instructions, and the processor 204 can execute the stored program. or instructions to implement the steps of the control method in any of the above embodiments.
  • One embodiment of the present application provides a readable storage medium storing programs or instructions to implement the steps of the control method in any of the above embodiments.
  • One embodiment of the present application provides an obstacle avoidance robot 100, including the control device of the above embodiment; or the control device 200 of the obstacle avoidance robot of the above embodiment; or the readable storage medium of the above embodiment.
  • the obstacle avoidance robot 100 includes a display device that can display the movement parameters, movement trajectories, movement boundaries and obstacle information in the control instructions of the obstacle avoidance robot 100 at each moment during the obstacle avoidance movement.
  • the obstacle avoidance robot 100 also includes a display device, which displays the movement parameters, movement trajectories, movement boundaries and obstacle information in the control instructions during the movement of the obstacle avoidance robot 100, thereby increasing the user's understanding of the obstacle avoidance robot 100's avoidance. understanding of the failure process, thereby improving the user experience.
  • the obstacle avoidance robot 100 includes a receiving device, a map conversion device, a detection processing device and a mobile device.
  • the receiving device is used to receive map information of the environment where the obstacle avoidance robot 100 is located;
  • the map conversion device is used to obtain the initial trajectory 102 of the obstacle avoidance robot 100 and the initial boundary 104 of the initial trajectory 102 based on the map information;
  • the detection processing device is used to detect the obstacle information within the initial boundary 104, and obtain the initial trajectory 102 based on the initial boundary 104 and the initial trajectory.
  • 102 and obstacle information determine the target trajectory 106 of the obstacle avoidance robot 100, and generate control instructions;
  • the mobile device is used to control the movement of the obstacle avoidance robot 100 according to the control instructions.
  • the receiving device may have a GPS (Global Positioning System), and receive map information of the environment where the obstacle avoidance robot 100 is located at the current moment based on positioning.
  • GPS Global Positioning System
  • the map conversion device can convert the map information of the receiving device into movement trajectories and movement boundaries.
  • the detection and processing device can detect obstacle information, determine whether the obstacle information will affect the movement trajectory and movement boundaries, and then plan the movement trajectory and generate control instructions.
  • the mobile device controls movement according to the control instructions until the movement reaches the end point.
  • the receiving device, the map conversion device, the detection processing device and the mobile device interact to jointly realize the control method of any of the above embodiments, and therefore have all the beneficial technical effects of the control method of the obstacle avoidance robot 100 of any of the above embodiments.
  • One embodiment of the present application provides a computer program product, which includes a computer program/instruction that implements the steps of the control method of any of the above embodiments when executed by a processor. Therefore, it has all the beneficial technical effects of the control method of the obstacle avoidance robot 100 in any of the above embodiments.
  • first and second features in the description and claims of this application may include one or more of these features, either explicitly or implicitly.
  • plural means two or more than two.
  • and/or in the description and claims indicates at least one of the connected objects, and the character “/” generally indicates that the related objects are in an “or” relationship.
  • connection should be understood in a broad sense.
  • it can be a fixed connection, It can also be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be internal to two components. Connected.
  • connection should be understood in a broad sense.
  • it can be a fixed connection, It can also be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be internal to two components. Connected.
  • the specific meanings of the above terms in this application can be understood on a case-by-case basis.
  • connection can be a fixed connection between multiple objects, or it can be a fixed connection between multiple objects.
  • Detachable connection or integral connection; it can be a direct connection between multiple objects, or an indirect connection between multiple objects through an intermediate medium.
  • Detachable connection or integral connection; it can be a direct connection between multiple objects, or an indirect connection between multiple objects through an intermediate medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manipulator (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

An obstacle avoidance robot, a control method and control device thereof, a readable storage medium, and a computer program product. The control method comprises: receiving map information of an environment where an obstacle avoidance robot is located (S102); acquiring an initial path of the obstacle avoidance robot and an initial boundary of the initial path according to the map information (S104); detecting obstacle information in the initial boundary, determining a target path of the obstacle avoidance robot according to the initial boundary, the initial path, and the obstacle information, and generating a control instruction (S106); and according to the control instruction, controlling the obstacle avoidance robot to move (S108).

Description

避障机器人及其控制方法、控制装置和可读存储介质Obstacle avoidance robot and control method, control device and readable storage medium thereof
本申请要求于2022年08月10日提交到中国国家知识产权局、申请号为“202210957649.7”,申请名称为“避障机器人及其控制方法、控制装置和可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application is required to be submitted to the State Intellectual Property Office of China on August 10, 2022, with the application number "202210957649.7" and the application name of the Chinese patent application "Obstacle Avoidance Robot and Its Control Method, Control Device and Readable Storage Medium" priority, the entire contents of which are incorporated into this application by reference.
技术领域Technical field
本申请属于避障机器人领域,具体而言,涉及一种避障机器人及其控制方法、控制装置、可读存储介质和计算机程序产品。The present application belongs to the field of obstacle avoidance robots. Specifically, it relates to an obstacle avoidance robot and its control method, control device, readable storage medium and computer program product.
背景技术Background technique
目前的避障机器人为了避免碰撞,通常为障碍物添加膨胀半径,但并不能使避障机器人从比较远的距离就开始规避障碍物,往往因反应时间不够而造成危险。In order to avoid collisions, current obstacle avoidance robots usually add an expansion radius to obstacles, but this does not allow the obstacle avoidance robot to start avoiding obstacles from a relatively long distance, and often causes danger due to insufficient reaction time.
申请内容Application content
本申请旨在解决现有技术或相关技术中存在的技术问题之一。This application aims to solve one of the technical problems existing in the existing technology or related technology.
为此,本申请的第一方面提出了一种避障机器人的控制方法。To this end, the first aspect of this application proposes a control method for an obstacle avoidance robot.
本申请的第二方面提出了一种避障机器人的控制装置。The second aspect of this application proposes a control device for an obstacle avoidance robot.
本申请的第三方面提出了一种避障机器人的控制装置。The third aspect of this application proposes a control device for an obstacle avoidance robot.
本申请的第四方面提出了一种可读存储介质。A fourth aspect of the application proposes a readable storage medium.
本申请的第五方面提出了一种避障机器人。The fifth aspect of this application proposes an obstacle avoidance robot.
本申请的第六方面提出了一种计算机程序产品。A sixth aspect of the application proposes a computer program product.
有鉴于此,根据本申请的第一方面提出了一种避障机器人的控制方法,控制方法包括:接收避障机器人所处环境的地图信息;根据地图信息,获取避障机器人的初始轨迹和初始轨迹的初始边界;检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹,并生成控制指令;根据控制指令控制避障机器人移动。In view of this, according to the first aspect of the present application, a control method for an obstacle avoidance robot is proposed. The control method includes: receiving map information of the environment where the obstacle avoidance robot is located; and obtaining the initial trajectory and initial trajectory of the obstacle avoidance robot based on the map information. Initial boundary of the trajectory; detect obstacle information within the initial boundary, determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information, and generate control instructions; control the movement of the obstacle avoidance robot according to the control instructions.
根据本申请提供的避障机器人的控制方法,接收避障机器人所处环境的地图信息,检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹,并生成控制指令,根据控制指令控制避障机器人移动,能够在较远的距离控制避障机器人躲避障碍物,从而降低避障机器人与障碍物发生碰撞的可能性,并提前预留出一定的时间以备避障机器人面对突发状况能够及时反应,规避风险,使得避障机器人的移动轨迹更平滑。According to the control method of the obstacle avoidance robot provided by this application, the map information of the environment where the obstacle avoidance robot is located is received, the obstacle information within the initial boundary is detected, and the target trajectory of the obstacle avoidance robot is determined based on the initial boundary, initial trajectory and obstacle information. , and generates control instructions, controls the obstacle avoidance robot to move according to the control instructions, and can control the obstacle avoidance robot to avoid obstacles at a long distance, thereby reducing the possibility of collision between the obstacle avoidance robot and obstacles, and reserving a certain amount of time in advance. Time allows the obstacle avoidance robot to respond promptly to unexpected situations and avoid risks, making the obstacle avoidance robot's movement trajectory smoother.
本申请的第二方面提供了一种避障机器人的控制装置,避障机器人包括壳体、检测部件和移动部件,控制装置包括检测单元和移动单元,检测单元用于控制检测部件检测壳体外的障碍物信息;移动单元用于控制移动部件控制避障机器人移动。The second aspect of the present application provides a control device for an obstacle avoidance robot. The obstacle avoidance robot includes a housing, a detection component and a moving component. The control device includes a detection unit and a moving unit. The detection unit is used to control the detection component to detect objects outside the housing. Obstacle information; the mobile unit is used to control the moving parts to control the movement of the obstacle avoidance robot.
本申请的第三方面提供了一种避障机器人的控制装置,控制装置包括存储器和处理器,存储器存储可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如上述任一技术方案的避障机器人的控制方法的步骤,因而具有上述任一技术方案的避障机器人的控制方法的全部有益技术效果。The third aspect of the present application provides a control device for an obstacle avoidance robot. The control device includes a memory and a processor. The memory stores programs or instructions that can be run on the processor. When the program or instructions are executed by the processor, any of the above are implemented. The steps of the control method of the obstacle avoidance robot of a technical solution therefore have all the beneficial technical effects of the control method of the obstacle avoidance robot of any of the above technical solutions.
本申请的第四方面提供了一种可读存储介质,其上存储有程序或指令,程序或指令被处理器执行时实现如上述任一技术方案的避障机器人的控制方法的步骤,因而具有上述任一技术方案的避障机器人的控制方法的全部有益技术效果。The fourth aspect of the present application provides a readable storage medium on which a program or instructions are stored. When the program or instructions are executed by a processor, the steps of the control method of the obstacle avoidance robot according to any of the above technical solutions are implemented. Therefore, it has All the beneficial technical effects of the control method of the obstacle avoidance robot of any of the above technical solutions.
本申请的第五方面提供了一种避障机器人,包括第二方面的避障机器人的控制装置;或第三方面的避障机器人的控制装置;或第四方面可读存储介质,因而具有上述任一技术方案的避障机器人的控制方法的全部有益技术效果。The fifth aspect of the present application provides an obstacle avoidance robot, including the control device of the obstacle avoidance robot of the second aspect; or the control device of the obstacle avoidance robot of the third aspect; or a readable storage medium of the fourth aspect, thus having the above All the beneficial technical effects of the control method of the obstacle avoidance robot of any technical solution.
本申请的第六方面提供了一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述任一技术方案的避障机器人的控制方法的步骤,因而具有上述任一技术方案的避障机器人的控制方法的全部有益技术效果。The sixth aspect of the present application provides a computer program product, including a computer program/instruction. When the computer program/instruction is executed by a processor, the steps of the control method of the obstacle avoidance robot of any of the above technical solutions are implemented, and thus has any of the above features. All the beneficial technical effects of the control method of the obstacle avoidance robot in one technical solution.
本申请的附加方面和优点将在下面的描述部分中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the invention will be apparent from the description which follows, or may be learned by practice of the invention.
附图说明Description of drawings
本申请的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the description of the embodiments in conjunction with the following drawings, in which:
图1示出了本申请的一个实施例的避障机器人的控制方法的流程示意图; Figure 1 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application;
图2示出了图1所示实施例的避障机器人的初始轨迹和初始边界示意图;Figure 2 shows a schematic diagram of the initial trajectory and initial boundaries of the obstacle avoidance robot in the embodiment shown in Figure 1;
图3示出了图1所示实施例的避障机器人的目标轨迹和目标边界示意图;Figure 3 shows a schematic diagram of the target trajectory and target boundaries of the obstacle avoidance robot in the embodiment shown in Figure 1;
图4示出了本申请的一个实施例的避障机器人的控制方法的流程示意图;Figure 4 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application;
图5示出了本申请的一个实施例的避障机器人的控制方法的流程示意图;Figure 5 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application;
图6示出了本申请的一个实施例的避障机器人的控制方法的流程示意图;Figure 6 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application;
图7示出了本申请的一个实施例的避障机器人的控制方法的流程示意图;Figure 7 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application;
图8示出了本申请的一个实施例的避障机器人的控制方法的流程示意图;Figure 8 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application;
图9示出了本申请的一个实施例的避障机器人的控制方法的控制示意图;Figure 9 shows a control schematic diagram of a control method for an obstacle avoidance robot according to an embodiment of the present application;
图10示出了本申请的一个实施例的避障机器人的控制方法的流程示意图;Figure 10 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application;
图11示出了本申请的一个实施例的避障机器人的控制方法的流程示意图;Figure 11 shows a schematic flowchart of a control method for an obstacle avoidance robot according to an embodiment of the present application;
图12示出了本申请的一个实施例的避障模型的控制示意图;Figure 12 shows a control schematic diagram of the obstacle avoidance model according to an embodiment of the present application;
图13示出了本申请的一个实施例的避障机器人的控制装置的结构框图。Figure 13 shows a structural block diagram of a control device of an obstacle avoidance robot according to an embodiment of the present application.
其中,图1至图13中附图标记与部件名称之间的对应关系为:Among them, the corresponding relationship between the reference signs and component names in Figures 1 to 13 is:
100避障机器人,102初始轨迹,104初始边界,106目标轨迹,108目标边界,110障碍物,112理论系统,114实际系统,116高斯过程,118估计模型,120避障模型,200避障机器人的控制装置,202存储器,204处理器。100 obstacle avoidance robot, 102 initial trajectory, 104 initial boundary, 106 target trajectory, 108 target boundary, 110 obstacles, 112 theoretical system, 114 actual system, 116 Gaussian process, 118 estimation model, 120 obstacle avoidance model, 200 obstacle avoidance robot Control device, 202 memory, 204 processor.
具体实施方式Detailed ways
为了能够更清楚地理解本申请的上述目的、特征和优点,下面结合附图和具体实施方式对本申请进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to understand the above-mentioned objects, features and advantages of the present application more clearly, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, as long as there is no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.
在下面的描述中阐述了很多具体细节以便于充分理解本申请,但是,本申请还可以采用其他不同于在此描述的其他方式来实施,因此,本申请的保护范围并不受下面公开的具体实施例的限制。Many specific details are set forth in the following description to fully understand the present application. However, the present application can also be implemented in other ways different from those described here. Therefore, the protection scope of the present application is not limited by the specific disclosures below. Limitations of Examples.
下面参照图1至图13描述根据本申请一些实施例的避障机器人的控制方法、避障机器人的控制装置200、可读存储介质和避障机器人。The following describes a control method for an obstacle avoidance robot, a control device 200 for an obstacle avoidance robot, a readable storage medium, and an obstacle avoidance robot according to some embodiments of the present application with reference to FIGS. 1 to 13 .
如图1所示,本申请的一个实施例提供了一种避障机器人的控制方法,控制方法包括:As shown in Figure 1, one embodiment of the present application provides a control method for an obstacle avoidance robot. The control method includes:
S102,接收避障机器人所处环境的地图信息;S102, receive map information of the environment where the obstacle avoidance robot is located;
S104,根据地图信息,获取避障机器人的初始轨迹和初始轨迹的初始边界;S104. According to the map information, obtain the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory;
S106,检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹,并生成控制指令;S106, detect obstacle information within the initial boundary, determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information, and generate control instructions;
S108,根据控制指令控制避障机器人移动。S108: Control the obstacle avoidance robot to move according to the control instructions.
如图2所示,接收地图信息,根据地图信息确定避障机器人100的可行道路,并获取可行道路的道路宽度,根据地图信息中的可行道路和可行道路的宽度,确定一条无碰撞的初始轨迹102,可以理解的是,初始边界104设置在初始轨迹102的两侧,从而确定避障机器人100的可行范围。As shown in Figure 2, the map information is received, the feasible road of the obstacle avoidance robot 100 is determined based on the map information, and the road width of the feasible road is obtained, and a collision-free initial trajectory is determined based on the feasible road and the width of the feasible road in the map information. 102. It can be understood that the initial boundaries 104 are set on both sides of the initial trajectory 102, thereby determining the feasible range of the obstacle avoidance robot 100.
具体地,如图3所示,对障碍物110进行信息确认,并判断障碍物110是否影响避障机器人100移动,从而确定目标轨迹106,并生成控制指令,根据控制指令控制避障机器人100移动,相比相关技术中直接增加膨胀半径,增加了避障机器人100的实际可行范围,从而提高避障机器人100对家用、商用和工用等多个使用场景的适配程度。Specifically, as shown in Figure 3, the information of the obstacle 110 is confirmed, and whether the obstacle 110 affects the movement of the obstacle avoidance robot 100 is determined, thereby determining the target trajectory 106, and generating control instructions to control the movement of the obstacle avoidance robot 100 according to the control instructions. , compared with directly increasing the expansion radius in related technologies, the practical feasible range of the obstacle avoidance robot 100 is increased, thereby improving the adaptability of the obstacle avoidance robot 100 to multiple usage scenarios such as household, commercial, and industrial use.
进一步地,能够在碰撞发生之前,提前预知,在较远距离就开始规避风险,提高避障机器人100移动的安全性,从而使避障机器人100的时刻与该时刻的控制指令相匹配,避免相关技术中避障机器人延时较大导致响应不及时,与障碍物110发生碰撞的现象的发生,进而使得避障机器人100的移动轨迹更平滑,保证避障机器人100整个避障过程的运动的安全性和平稳性,提高避障机器人100的使用体验,进一步增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Furthermore, it can be predicted in advance before a collision occurs, and risks can be avoided at a relatively long distance, thereby improving the safety of the movement of the obstacle avoidance robot 100, so that the time of the obstacle avoidance robot 100 matches the control instructions at that time, and avoids correlation In the technology, the obstacle avoidance robot has a large delay, resulting in untimely response and collision with the obstacle 110. This makes the obstacle avoidance robot 100's moving trajectory smoother and ensures the safety of the obstacle avoidance robot 100's entire obstacle avoidance process. stability and stability, improve the user experience of the obstacle avoidance robot 100, and further increase the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
如图4所示,本申请的一个实施例的控制方法包括:As shown in Figure 4, the control method according to one embodiment of the present application includes:
S402,接收避障机器人所处环境的地图信息;S402: Receive map information of the environment where the obstacle avoidance robot is located;
S404,根据地图信息,获取避障机器人的初始轨迹和初始轨迹的初始边界;S404, according to the map information, obtain the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory;
S406,检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹;S406, detect obstacle information within the initial boundary, and determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information;
S408,根据目标轨迹和障碍物信息,确定目标边界;S408, determine the target boundary based on the target trajectory and obstacle information;
S410,获取障碍物的第一坐标和避障机器人的第二坐标; S410, obtain the first coordinate of the obstacle and the second coordinate of the obstacle avoidance robot;
S412,根据目标轨迹、目标边界、第一坐标和第二坐标,确定当前时刻的避障机器人的控制指令;S412: Determine the control instructions of the obstacle avoidance robot at the current moment based on the target trajectory, target boundary, first coordinate and second coordinate;
S414,根据控制指令控制避障机器人移动。S414, control the obstacle avoidance robot to move according to the control instructions.
具体地,如图3所示,对障碍物110进行信息确认,并判断障碍物110是否影响避障机器人100移动,从而确保保证目标轨迹106和目标边界108内不存在会阻碍避障机器人100运动的障碍物110,进而确定避障机器人100无碰撞的可行范围,对避障机器人100的移动轨迹进行规划,本申请通过结合障碍物信息确定避障机器人100的移动轨迹和移动边界,相比相关技术中直接增加膨胀半径,增加了避障机器人100的实际可行范围,从而提高避障机器人100对家用、商用和工用等多个使用场景的适配程度。Specifically, as shown in Figure 3, the information of the obstacle 110 is confirmed, and whether the obstacle 110 affects the movement of the obstacle avoidance robot 100 is determined, thereby ensuring that there is no obstacle in the target trajectory 106 and the target boundary 108 that will hinder the movement of the obstacle avoidance robot 100. obstacles 110, and then determine the collision-free feasible range of the obstacle avoidance robot 100, and plan the movement trajectory of the obstacle avoidance robot 100. This application determines the movement trajectory and movement boundary of the obstacle avoidance robot 100 by combining the obstacle information. Compared with related Directly increasing the expansion radius in the technology increases the practical feasible range of the obstacle avoidance robot 100, thereby improving the adaptability of the obstacle avoidance robot 100 to multiple usage scenarios such as home, commercial, and industrial use.
可以理解的是,障碍物信息包括障碍物110在初始边界104内所占的空间,从而可以根据障碍物110所占的空间,和初始边界104以及初始轨迹102确定目标轨迹106和目标边界108。It can be understood that the obstacle information includes the space occupied by the obstacle 110 within the initial boundary 104 , so that the target trajectory 106 and the target boundary 108 can be determined according to the space occupied by the obstacle 110 , the initial boundary 104 and the initial trajectory 102 .
进一步地,障碍物110所占的空间可以在初始边界104显示为圆形,长方形,三角形或其他形状,根据障碍物110所占的空间形成的形状与两条初始边界104中相近的一条初始边界104所围成的形状,以及障碍物110所占的空间形成的形状的端点与相近初始边界104之间的最短距离,形成目标边界108。Further, the space occupied by the obstacle 110 may be displayed as a circle, rectangle, triangle or other shape on the initial boundary 104. According to the shape formed by the space occupied by the obstacle 110, it is similar to one of the two initial boundaries 104. 104 and the shortest distance between the endpoints of the shape formed by the space occupied by the obstacle 110 and the adjacent initial boundary 104 form the target boundary 108 .
更进一步地,根据第一坐标和第二坐标,判断避障机器人100的移动移动轨迹是否会受障碍物110的干扰,从而避免二者发生碰撞等现象的发生,进而能够在碰撞发生之前,提前预知,在较远距离就开始规避风险,提高移动的安全性,从而使避障机器人100的时刻与该时刻的控制指令相匹配,避免相关技术中避障机器人延时较大导致响应不及时,与障碍物110发生碰撞的现象的发生,同时,使得避障机器人100在较远的距离开始规避障碍物110,从而降低避障过程中遇到障碍物110的可能性,使得避障机器人100的移动轨迹更平滑,进而避免避障机器人100不能远距离规避障碍物110,在近距离遇到障碍物110时,紧急停止时避障机器人100受惯性影响而与障碍物110发生碰撞的现象的发生,进而保证避障机器人100整个避障过程的运动的安全性和平稳性,提高避障机器人100的使用体验,进一步增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Furthermore, based on the first coordinate and the second coordinate, it is determined whether the movement trajectory of the obstacle avoidance robot 100 will be interfered by the obstacle 110, thereby avoiding the occurrence of collisions between the two, and thus enabling the collision to be carried out in advance before the collision occurs. Predictably, risk avoidance begins at a relatively long distance, thereby improving the safety of movement, so that the time of the obstacle avoidance robot 100 matches the control instructions at that time, and avoids untimely response caused by the large delay of the obstacle avoidance robot in related technologies. The phenomenon of collision with the obstacle 110 occurs, and at the same time, the obstacle avoidance robot 100 starts to avoid the obstacle 110 at a longer distance, thereby reducing the possibility of encountering the obstacle 110 during the obstacle avoidance process, and making the obstacle avoidance robot 100 The movement trajectory is smoother, thereby avoiding the phenomenon that the obstacle avoidance robot 100 cannot avoid the obstacle 110 at a long distance. When encountering the obstacle 110 at a close distance, the obstacle avoidance robot 100 is affected by inertia and collides with the obstacle 110 during an emergency stop. , thereby ensuring the safety and stability of the entire obstacle avoidance process of the obstacle avoidance robot 100, improving the user experience of the obstacle avoidance robot 100, and further increasing the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories. .
并且,利用梯度下降法对初始轨迹102进行平滑处理,使得避障机器人100的移动轨迹能够更平滑,从而使得避障机器人100沿平滑的移动轨迹移动,整个避障过程能够更完整,更平稳,提高避障机器人100的使用体验。Moreover, the gradient descent method is used to smooth the initial trajectory 102, so that the movement trajectory of the obstacle avoidance robot 100 can be smoother, so that the obstacle avoidance robot 100 moves along a smooth movement trajectory, and the entire obstacle avoidance process can be more complete and smoother. Improve the user experience of obstacle avoidance robot 100.
如图5所示,本申请的一个实施例的控制方法包括:As shown in Figure 5, the control method according to one embodiment of the present application includes:
S502,接收避障机器人所处环境的地图信息;S502: Receive map information of the environment where the obstacle avoidance robot is located;
S504,根据地图信息,获取避障机器人的初始轨迹和初始轨迹的初始边界;S504, obtain the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory based on the map information;
S506,检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹;S506, detect obstacle information within the initial boundary, and determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information;
S508,根据目标轨迹和障碍物信息,确定目标边界;S508, determine the target boundary based on the target trajectory and obstacle information;
S510,获取障碍物的第一坐标和避障机器人的第二坐标;S510, obtain the first coordinate of the obstacle and the second coordinate of the obstacle avoidance robot;
S512,根据目标轨迹、目标边界、第一坐标、第二坐标和避障模型,确定当前时刻的避障机器人的控制指令;S512: Determine the control instructions of the obstacle avoidance robot at the current moment based on the target trajectory, target boundary, first coordinate, second coordinate and obstacle avoidance model;
S514,根据控制指令控制避障机器人移动。S514, control the obstacle avoidance robot to move according to the control instructions.
在本申请的一个实施例中,根据规避风险后的目标轨迹106和目标边界108以及即时获取的第一坐标、即时获取的第二坐标和与预先设立的避障模型120,共同确定避障机器人100当前时刻对应的控制指令,从而能够利用避障模型120提高对避障机器人100的精确控制,将对避障机器人100的控制问题转化为对避障模型120的优化问题,从而能够预先通过对避障模型120的优化,确定避障机器人100的避障能否实施。In one embodiment of the present application, the obstacle avoidance robot is jointly determined based on the risk-avoided target trajectory 106 and target boundary 108 as well as the immediately acquired first coordinates, the immediately acquired second coordinates and the pre-set obstacle avoidance model 120 100 corresponding control instructions at the current moment, so that the obstacle avoidance model 120 can be used to improve the precise control of the obstacle avoidance robot 100, and the control problem of the obstacle avoidance robot 100 can be transformed into an optimization problem of the obstacle avoidance model 120, so that the obstacle avoidance model 120 can be used in advance. The optimization of the obstacle avoidance model 120 determines whether the obstacle avoidance robot 100 can be implemented.
并且,通过对避障模型120的优化控制,预先确定目标轨迹106是否可行,从而控制避障机器人100避障,一方面,节省效率,便于对避障机器人100的控制,另一方面,可以避免避障机器人100进行不必要的移动,提高避障机器人100的使用体验,从而增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Moreover, by optimizing the control of the obstacle avoidance model 120, it is determined in advance whether the target trajectory 106 is feasible, thereby controlling the obstacle avoidance robot 100 to avoid obstacles. On the one hand, it saves efficiency and facilitates the control of the obstacle avoidance robot 100. On the other hand, it can avoid The obstacle avoidance robot 100 makes unnecessary movements to improve the user experience of the obstacle avoidance robot 100, thereby increasing the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
在本申请的一个实施例中,避障模型120具体为避障机器人100运动过程转化的数学模型,具体地,避障模型120可以用如下两个方程表达式表示:
x(k+1)=fnormal(xk,uk);
x(k+1)=ftrue(xk,uk);
In one embodiment of the present application, the obstacle avoidance model 120 is specifically a mathematical model that transforms the motion process of the obstacle avoidance robot 100. Specifically, the obstacle avoidance model 120 can be expressed by the following two equations:
x(k+1)=f normal (x k ,u k );
x(k+1)=f true (x k ,u k );
其中,fnormal(xk,uk)表示避障模型120的建模状态方程,x表示状态量,xk表示k时刻避障模型120的状态量,uk表示时间为k时刻避障模型120的输出量,ftrue(xk,uk)表示避障模型的数据采集状态方程。Among them, f normal (x k , u k ) represents the modeling state equation of the obstacle avoidance model 120, x represents the state quantity, x k represents the state quantity of the obstacle avoidance model 120 at time k, and u k represents the obstacle avoidance model at time k. The output of 120, f true (x k , uk ) represents the data collection state equation of the obstacle avoidance model.
具体地,fnormal(xk,uk)表示避障模型120的状态量与避障模型120的输出量的理论关系式,该理论关系式可以根据避障模型120的状态量和输出量的历史关系式、现有技术中用于避障模型120的状态量与输出量的关系式进行确定。Specifically, f normal (x k , u k ) represents the theoretical relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 . This theoretical relationship can be based on the relationship between the state quantity and the output quantity of the obstacle avoidance model 120 The historical relational expression and the relational expression between the state quantity and the output quantity used in the obstacle avoidance model 120 in the prior art are determined.
ftrue(xk,uk)表示避障模型120的状态量与避障模型120的输出量的实际关系式,该实际关系式可以根据避障模型120的实际状态量和实际输出量,进行变量分析后确定。f true (x k , u k ) represents the actual relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 . The actual relationship equation can be calculated based on the actual state quantity and the actual output quantity of the obstacle avoidance model 120 . determined after variable analysis.
进一步地,在该避障模型120中,避障模型120的状态量具体可以为避障机器人100的坐标,避障模型120的输出量具体可以为避障机器人100的速度或角速度。Further, in the obstacle avoidance model 120 , the state quantity of the obstacle avoidance model 120 may be the coordinates of the obstacle avoidance robot 100 , and the output quantity of the obstacle avoidance model 120 may be the speed or angular velocity of the obstacle avoidance robot 100 .
在该实施例中的状态方程中,k+1时刻的状态量与k时刻的状态量和输入量的状态方程存在线性对应关系,从而可以根据k时刻获取的状态量和输入量确定k+1时刻的状态量,从而根据避障模型120提前获取状态量,进而对避障机器人100进行控制。In the state equation in this embodiment, there is a linear correspondence between the state quantity at time k+1 and the state quantity and input quantity at time k. Therefore, k+1 can be determined based on the state quantity and input quantity obtained at time k. The state quantity at the time is thus obtained in advance according to the obstacle avoidance model 120, and then the obstacle avoidance robot 100 is controlled.
更进一步地,避障模型120的建模状态方程和避障模型120的数据采集状态方程存在一定的误差,该误差是由建模的误差、数据采集过程中的损耗、模型的噪声造成的,避障模型120的建模状态方程可通过高斯补偿得到避障模型的数据采集状态方程,可以表现为:
x(k+1)=fnormal(xk,uk)+Δ
Furthermore, there is a certain error between the modeling state equation of the obstacle avoidance model 120 and the data collection state equation of the obstacle avoidance model 120. This error is caused by modeling errors, losses in the data collection process, and model noise. The modeling state equation of the obstacle avoidance model 120 can be obtained through Gaussian compensation and the data acquisition state equation of the obstacle avoidance model can be expressed as:
x(k+1)=f normal (x k ,u k )+Δ
其中,△~N(u,∑),△表示为避障模型120的补偿值,u为避障模型120预先采集到的输入量的均值,∑为避障模型120中预先拟合训练的输入量的协方差。Among them, △~N(u,Σ), △ represents the compensation value of the obstacle avoidance model 120, u is the mean value of the input amount collected in advance by the obstacle avoidance model 120, and Σ is the input of the pre-fitting training in the obstacle avoidance model 120 quantity covariance.
在本申请的一个实施例中,避障模型120具体为避障机器人100运动过程转化的数学模型,具体地,可以表现为:
In one embodiment of the present application, the obstacle avoidance model 120 is specifically a mathematical model of the motion process transformation of the obstacle avoidance robot 100. Specifically, it can be expressed as:
st
st
其中,表示为避障模型120的代价函数方程,st表示subject to(服从于),△表示为避障模型120的补偿值,xt表示为时刻为t的避障模型120的状态量,xstart为避障模型120的开始时刻的状态量,xt+N表示为时刻为t+N的避障模型120的状态量,xend为避障模型120的结束时刻的状态量,h(xt+k)表示为避障模型120的控制障碍约束函数,表现为:
h=(xstate-xobstacle)2+(ystate-yobstacle)2-R2
in, Expressed as the cost function equation of the obstacle avoidance model 120, st represents subject to (subject to), △ represents the compensation value of the obstacle avoidance model 120, x t represents the state quantity of the obstacle avoidance model 120 at time t, x start is The state quantity of the obstacle avoidance model 120 at the beginning time, x t+N represents the state quantity of the obstacle avoidance model 120 at time t+N, x end is the state quantity at the end time of the obstacle avoidance model 120, h(x t+ k ) is expressed as the control obstacle constraint function of the obstacle avoidance model 120, expressed as:
h=(x state -x obstacle ) 2 + (y state -y obstacle ) 2 -R 2
其中,xstate表示为避障机器人100在移动边界内的横坐标,xobstacle表示为障碍物110在移动边界内的横坐标,ystate表示为避障机器人100在移动边界内的纵坐标,yobstacle表示为障碍物110在移动边界内的纵坐标,R表示在避障机器人100移动之前,避障机器人100与障碍物110之间的距离。Among them, x state represents the abscissa coordinate of the obstacle avoidance robot 100 within the moving boundary, x obstacle represents the abscissa coordinate of the obstacle 110 within the moving boundary, y state represents the ordinate coordinate of the obstacle avoidance robot 100 within the moving boundary, y Obstacle represents the ordinate of the obstacle 110 within the movement boundary, and R represents the distance between the obstacle avoidance robot 100 and the obstacle 110 before the obstacle avoidance robot 100 moves.
进一步地,xt+k表示为时刻为t+k时刻的避障模型120的状态量,ut+k表示为时刻为t+k时刻的避障模型120的输入量,x表示为避障模型120的状态量,u表示避障模型120的输入量,控制障碍约束函数可以用线性微分函数h(xt+k)表示,h(xt+k)微分后得到微分函数Δh(xt+k,ut+k),在0到1的范围内,总存在一个常数r,使得控制障碍约束函数和微分函数满足Δh(xt+k,ut+k)≥-rh(xt+k),r靠近0时,表示避障机器人100远离障碍物110,r靠近1时,表示避 障机器人100靠近障碍物110。Further, x t+k represents the state quantity of the obstacle avoidance model 120 at time t+k, u t+k represents the input quantity of the obstacle avoidance model 120 at time t+k, and x represents the obstacle avoidance model 120 at time t+k. The state quantity of the model 120, u represents the input quantity of the obstacle avoidance model 120. The control obstacle constraint function can be represented by the linear differential function h(x t+k ). After h(x t+k ) is differentiated, the differential function Δh(x t +k ,u t+k ), in the range of 0 to 1, there is always a constant r, so that the control obstacle constraint function and differential function satisfy Δh(x t+k ,u t+k )≥-rh(x t +k ), when r is close to 0, it means that the obstacle avoidance robot 100 is far away from the obstacle 110, when r is close to 1, it means that the obstacle avoidance robot 100 is away from the obstacle 110. The obstacle robot 100 approaches the obstacle 110.
更进一步地,中的J表示避障模型120的总代价函数,minp(xt+N)表示t+N时刻的关于状态量的代价函数,表示t+N时刻之前的所有状态量和输入量的代价函数之和。go a step further, J in represents the total cost function of the obstacle avoidance model 120, minp(x t+N ) represents the cost function of the state quantity at time t+N, Represents the sum of the cost functions of all state quantities and input quantities before time t+N.
如图6所示,本申请的一个实施例的控制方法包括:As shown in Figure 6, the control method according to one embodiment of the present application includes:
S602,接收避障机器人所处环境的地图信息;S602: Receive map information of the environment where the obstacle avoidance robot is located;
S604,根据地图信息,获取避障机器人的初始轨迹和初始轨迹的初始边界;S604. According to the map information, obtain the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory;
S606,检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹;S606, detect obstacle information within the initial boundary, and determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information;
S608,根据目标轨迹和障碍物信息,确定目标边界;S608, determine the target boundary based on the target trajectory and obstacle information;
S610,获取障碍物的第一坐标和避障机器人的第二坐标;S610, obtain the first coordinate of the obstacle and the second coordinate of the obstacle avoidance robot;
S612,根据目标轨迹的起始点的第三坐标和第二坐标,确定距离补偿值;S612, determine the distance compensation value according to the third coordinate and the second coordinate of the starting point of the target trajectory;
S614,根据第一坐标、第二坐标和距离补偿值,确定第一约束值;S614, determine the first constraint value based on the first coordinate, the second coordinate and the distance compensation value;
S616,判断第一约束值是否满足第一控制输出条件,若是,执行S618,若否,执行S604;S616, determine whether the first constraint value satisfies the first control output condition. If yes, execute S618. If not, execute S604;
S618,根据控制指令控制避障机器人移动。S618: Control the obstacle avoidance robot to move according to the control instructions.
在该实施例中,通过距离补偿值对第一约束值进行补偿,从而提高了避障模型120的精度,进而提高对避障机器人100的控制的精确程度。In this embodiment, the distance compensation value is used to compensate the first constraint value, thereby improving the accuracy of the obstacle avoidance model 120 and thereby improving the accuracy of controlling the obstacle avoidance robot 100 .
具体地,距离补偿值可以表示为R,R表示避障机器人100与障碍物110保持的距离,可以理解的是,R为固定的值,是避障机器人100输出控制指令之前的避障机器人100与障碍物110保持的距离,从而通过固定的值对避障模型120进行补偿,提高避障模型120的精度,从而提高对避障机器人100的控制的精确程度。Specifically, the distance compensation value can be expressed as R, and R represents the distance maintained between the obstacle avoidance robot 100 and the obstacle 110. It can be understood that R is a fixed value, which is the obstacle avoidance robot 100 before the obstacle avoidance robot 100 outputs the control command. The distance maintained from the obstacle 110 is used to compensate the obstacle avoidance model 120 with a fixed value, thereby improving the accuracy of the obstacle avoidance model 120 and thereby improving the accuracy of controlling the obstacle avoidance robot 100 .
进一步地,当第一约束值满足第一输出控制条件时,确定避障模型120可行,根据避障模型120与避障机器人100当前时刻相对应的控制指令,解决了避障模型120的延时问题,避免相关技术中避障机器人100延时较大导致响应不及时,与障碍物110发生碰撞的现象的发生,从而使整个避障机器人100的避障过程更平稳,提高避障机器人100的使用体验,增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Further, when the first constraint value satisfies the first output control condition, it is determined that the obstacle avoidance model 120 is feasible. According to the control instructions corresponding to the obstacle avoidance model 120 and the obstacle avoidance robot 100 at the current moment, the delay of the obstacle avoidance model 120 is solved. problem, to avoid the phenomenon in related technologies that the obstacle avoidance robot 100 has a large delay, resulting in untimely response and collision with the obstacle 110, thereby making the obstacle avoidance process of the entire obstacle avoidance robot 100 smoother and improving the performance of the obstacle avoidance robot 100. The user experience increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
更进一步地,第一约束值为避障模型120中的根据控制障碍约束函数和得到控制障碍约束函数的微分函数满足不等式关系的常数值。Furthermore, the first constraint value is a constant value in the obstacle avoidance model 120 that satisfies an inequality relationship based on the control obstacle constraint function and the differential function obtained by the control obstacle constraint function.
基于第一约束值满足第一控制输出条件,根据避障模型120确定当前时刻的避障机器人100的控制指令包括:设置第一控制输出条件的上限阈值和下限阈值,具体地,将上限阈值设置为1,将下限阈值设置为0。Based on the first constraint value satisfying the first control output condition, determining the control instructions of the obstacle avoidance robot 100 at the current moment according to the obstacle avoidance model 120 includes: setting the upper limit threshold and the lower limit threshold of the first control output condition, specifically, setting the upper limit threshold is 1, set the lower threshold to 0.
具体地,在第一约束值处于大于下限阈值,小于等于上限阈值的范围内时,确定第一约束值满足第一控制输出条件,当第一约束值未处于大于下限阈值,小于等于上限阈值的范围内时,表示避障模型120对避障机器人100的障碍约束无效,从而重新确定避障机器人100的初始轨迹102和初始边界104,重新对避障机器人100进行移动轨迹的规划。Specifically, when the first constraint value is in the range of greater than the lower limit threshold and less than or equal to the upper threshold, it is determined that the first constraint value satisfies the first control output condition. When the first constraint value is not in the range of greater than the lower threshold and less than or equal to the upper threshold. When within the range, it means that the obstacle avoidance model 120 is invalid for the obstacle constraints of the obstacle avoidance robot 100, so the initial trajectory 102 and the initial boundary 104 of the obstacle avoidance robot 100 are re-determined, and the movement trajectory of the obstacle avoidance robot 100 is re-planned.
如图7所示,本申请的一个实施例的控制方法包括:As shown in Figure 7, the control method according to one embodiment of the present application includes:
S702,接收避障机器人所处环境的地图信息;S702: Receive map information of the environment where the obstacle avoidance robot is located;
S704,根据地图信息,获取避障机器人的初始轨迹和初始轨迹的初始边界;S704, according to the map information, obtain the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory;
S706,检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹;S706, detect obstacle information within the initial boundary, and determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information;
S708,获取避障模型的模型补偿值;S708, obtain the model compensation value of the obstacle avoidance model;
S710,根据模型补偿值和理论避障模型,确定避障模型;S710, determine the obstacle avoidance model based on the model compensation value and the theoretical obstacle avoidance model;
S712,根据目标轨迹和障碍物信息,确定目标边界;S712, determine the target boundary based on the target trajectory and obstacle information;
S714,获取障碍物的第一坐标和避障机器人的第二坐标;S714, obtain the first coordinate of the obstacle and the second coordinate of the obstacle avoidance robot;
S716,根据目标轨迹的起始点的第三坐标和第二坐标,确定距离补偿值;S716, determine the distance compensation value according to the third coordinate and the second coordinate of the starting point of the target trajectory;
S718,根据第一坐标、第二坐标和距离补偿值,确定第一约束值;S718, determine the first constraint value based on the first coordinate, the second coordinate and the distance compensation value;
S720,判断第一约束值是否满足第一控制输出条件,若是,执行S722,若否,执行S704;S720, determine whether the first constraint value satisfies the first control output condition. If yes, execute S722. If not, execute S704;
S722,根据控制指令控制避障机器人移动。S722: Control the obstacle avoidance robot to move according to the control instructions.
在该实施例中,获取模型补偿值,根据模型补偿值对理论避障模型进行补偿,从而增加避障 模型120与实际避障模型的匹配程度,减少避障模型120的误差、损耗、噪声等因素对避障模型120造成的影响和模型的不确定性、复杂非线性等因素带来的影响,提高避障模型120的精度和鲁棒性,提高对避障机器人100的控制的精确程度,提高避障机器人100的使用体验,增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。In this embodiment, the model compensation value is obtained, and the theoretical obstacle avoidance model is compensated according to the model compensation value, thereby increasing the obstacle avoidance The degree of matching between the model 120 and the actual obstacle avoidance model reduces the impact of errors, losses, noise and other factors of the obstacle avoidance model 120 on the obstacle avoidance model 120 and the impact of model uncertainty, complex nonlinearity and other factors, and improves The accuracy and robustness of the obstacle avoidance model 120 improves the accuracy of controlling the obstacle avoidance robot 100, improves the user experience of the obstacle avoidance robot 100, and increases the suitability of the obstacle avoidance robot 100 for various usage scenarios such as homes, shopping malls, and factories. The degree of matching.
具体地,模型补偿值是根据高斯过程116补偿的结果,高斯过程116是避障模型120中随机变量在指数集内的组合,由数学期望和协方差函数决定,可以表示为:
△~N(u,∑);
Specifically, the model compensation value is the result of compensation according to the Gaussian process 116. The Gaussian process 116 is a combination of random variables in the obstacle avoidance model 120 within the exponential set, which is determined by the mathematical expectation and covariance function, and can be expressed as:
△~N(u,∑);
其中,△可以表示为模型补偿值,u为数学期望,具体在避障模型120中表示预先采集到的输入量的均值,∑为协方差,具体在避障模型120中表示预先拟合训练的输入量的协方差。理论避障模型是在避障机器人100移动之前,预先构建的数学模型,可以由理论系统112的方程表示,具体为:
x(k+1)=fnormal(xk,uk);
Among them, △ can be expressed as the model compensation value, u is the mathematical expectation, specifically in the obstacle avoidance model 120, it represents the mean value of the input quantity collected in advance, and Σ is the covariance, specifically in the obstacle avoidance model 120 it represents the pre-fitting training. The covariance of the input quantity. The theoretical obstacle avoidance model is a pre-constructed mathematical model before the obstacle avoidance robot 100 moves. It can be represented by the equation of the theoretical system 112, specifically:
x(k+1)=f normal (x k ,u k );
其中,k表示时间为k的时刻,k+1表示时间为k+1的时刻,xk表示k时刻避障模型120的状态量,uk表示时间为k时刻避障模型120的输出量,fnormal表示避障模型120的状态量与避障模型120的输出量的理论关系式,x表示避障模型120的状态量。Among them, k represents the moment at time k, k+1 represents the moment at time k+1, x k represents the state quantity of the obstacle avoidance model 120 at time k, u k represents the output quantity of the obstacle avoidance model 120 at time k, f normal represents the theoretical relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 , and x represents the state quantity of the obstacle avoidance model 120 .
实际避障模型是根据避障机器人100实际移动过程中采集到的数据构建的数据模型,可以由实际系统114的方程表示:
x(k+1)=ftrue(xk,uk);
The actual obstacle avoidance model is a data model constructed based on the data collected during the actual movement of the obstacle avoidance robot 100, and can be represented by the equation of the actual system 114:
x(k+1)=f true (x k ,u k );
其中,xk表示k时刻避障模型120的状态量,uk表示时间为k时刻避障模型120的输出量,ftrue表示避障模型120的状态量与避障模型120的输出量的实际关系式,x表示避障模型120的状态量。Among them, x k represents the state quantity of the obstacle avoidance model 120 at time k, u k represents the output quantity of the obstacle avoidance model 120 at time k, and f true represents the actual difference between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 In the relational expression, x represents the state quantity of the obstacle avoidance model 120.
具体地,fnormal(xk,uk)表示避障模型120的状态量与避障模型120的输出量的理论关系式,该理论关系式可以根据避障模型120的状态量和输出量的历史关系式、现有技术中用于避障模型120的状态量与输出量的关系式进行确定。Specifically, f normal (x k , u k ) represents the theoretical relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 . This theoretical relationship can be based on the relationship between the state quantity and the output quantity of the obstacle avoidance model 120 The historical relational expression and the relational expression between the state quantity and the output quantity used in the obstacle avoidance model 120 in the prior art are determined.
ftrue(xk,uk)表示避障模型120的状态量与避障模型120的输出量的实际关系式,该实际关系式可以根据避障模型120的实际状态量和实际输出量,进行变量分析后确定。f true (x k , u k ) represents the actual relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 . The actual relationship equation can be calculated based on the actual state quantity and the actual output quantity of the obstacle avoidance model 120 . determined after variable analysis.
由于避障模型120建模的误差,损耗、噪声等因素使得实际避障模型和理论避障模型中存在一定偏差,从而引入高斯过程116,使得实际避障模型可以由理论避障模型和高斯过程116获得,从而对模型的不确定性、复杂非线性因素等对避障模型120造成的影响进行补偿,提高了避障模型120的精度和鲁棒性,具体表示为:
x(k+1)=fnormal(xk,uk)+Δ
Due to modeling errors, losses, noise and other factors of the obstacle avoidance model 120, there is a certain deviation between the actual obstacle avoidance model and the theoretical obstacle avoidance model. Therefore, the Gaussian process 116 is introduced, so that the actual obstacle avoidance model can be composed of the theoretical obstacle avoidance model and the Gaussian process. 116 is obtained, thereby compensating for the impact of model uncertainty, complex nonlinear factors, etc. on the obstacle avoidance model 120, and improving the accuracy and robustness of the obstacle avoidance model 120, which is specifically expressed as:
x(k+1)=f normal (x k ,u k )+Δ
其中,k表示时间为k的时刻,k+1表示时间为k+1的时刻,xk表示k时刻避障模型120的状态量,uk表示时间为k时刻避障模型120的输出量,fnormal表示避障模型120的状态量与避障模型120的输出量的理论关系式,△表示模型补偿值,x表示避障模型120的状态量。Among them, k represents the moment at time k, k+1 represents the moment at time k+1, x k represents the state quantity of the obstacle avoidance model 120 at time k, u k represents the output quantity of the obstacle avoidance model 120 at time k, f normal represents the theoretical relationship between the state quantity of the obstacle avoidance model 120 and the output quantity of the obstacle avoidance model 120 , Δ represents the model compensation value, and x represents the state quantity of the obstacle avoidance model 120 .
进一步地,模型补偿值可以周期性更改,可以根据避障模型120的损耗,设置更改周期,可以理解的是,相关技术中的避障模型120的算法使用线性化模型忽略了模型的不确定性因素,从而建立复杂的非线性模型的过程十分困难,并且避障机器人100在使用过程中,由于使用损耗导致很多参数是变化的,比如轮胎摩擦系数等,进而引入高斯过程116去补偿避障模型120的不确定性,使得避障模型120的算法精度和鲁棒性更高。Further, the model compensation value can be changed periodically, and the change period can be set according to the loss of the obstacle avoidance model 120. It is understandable that the algorithm of the obstacle avoidance model 120 in the related art uses a linearized model and ignores the uncertainty of the model. factors, so the process of establishing a complex nonlinear model is very difficult, and during use of the obstacle avoidance robot 100, many parameters change due to usage losses, such as tire friction coefficient, etc., and the Gaussian process 116 is introduced to compensate for the obstacle avoidance model. The uncertainty of 120 makes the algorithm accuracy and robustness of the obstacle avoidance model 120 higher.
如图8所示,本申请的一个实施例的控制方法包括:As shown in Figure 8, the control method according to one embodiment of the present application includes:
S802,接收避障机器人所处环境的地图信息;S802: Receive map information of the environment where the obstacle avoidance robot is located;
S804,根据地图信息,获取避障机器人的初始轨迹和初始轨迹的初始边界;S804, according to the map information, obtain the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory;
S806,检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹;S806, detect obstacle information within the initial boundary, and determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information;
S808,获取避障模型的模型补偿值;S808, obtain the model compensation value of the obstacle avoidance model;
S810,根据模型补偿值和理论避障模型,确定避障模型;S810, determine the obstacle avoidance model based on the model compensation value and the theoretical obstacle avoidance model;
S812,根据目标轨迹和障碍物信息,确定目标边界;S812, determine the target boundary based on the target trajectory and obstacle information;
S814,获取障碍物的第一坐标和避障机器人的第二坐标;S814, obtain the first coordinate of the obstacle and the second coordinate of the obstacle avoidance robot;
S816,根据目标轨迹的起始点的第三坐标和第二坐标,确定距离补偿值; S816, determine the distance compensation value according to the third coordinate and the second coordinate of the starting point of the target trajectory;
S818,根据第一坐标、第二坐标和距离补偿值,确定第二约束值;S818, determine the second constraint value based on the first coordinate, the second coordinate and the distance compensation value;
S820,对第二约束值进行数据处理,获得第三约束值;S820, perform data processing on the second constraint value to obtain the third constraint value;
S822,根据第二约束值和第三约束值,确定第一约束值;S822, determine the first constraint value based on the second constraint value and the third constraint value;
S824,判断第一约束值是否满足第一控制输出条件,若是,执行S826,若否,执行S804;S824, determine whether the first constraint value satisfies the first control output condition. If yes, execute S826. If not, execute S804;
S826,根据控制指令控制避障机器人移动。S826: Control the obstacle avoidance robot to move according to the control instructions.
在该实施例中,第二约束值表示避障模型120控制障碍约束函数求得的结果,第二约束值h可以表示为:
h=(xstate-xobstacle)2+(ystate-yobstacle)2-R2
In this embodiment, the second constraint value represents the result obtained by controlling the obstacle constraint function of the obstacle avoidance model 120. The second constraint value h can be expressed as:
h=(x state -x obstacle ) 2 + (y state -y obstacle ) 2 -R 2
其中,xstate表示为避障机器人100当前时刻的中心横坐标,xobstacle表示为障碍物110当前时刻的中心横坐标,ystate表示为避障机器人100当前时刻的中心横坐标,yobstacle表示为障碍物110当前时刻的中心横坐标,R表示在避障机器人100移动之前,避障机器人100与障碍物110之间的距离。Among them, x state represents the center abscissa of the obstacle avoidance robot 100 at the current moment, x obstacle represents the center abscissa of the obstacle 110 at the current moment, y state represents the center abscissa of the obstacle avoidance robot 100 at the current moment, and y obstacle represents The center abscissa of the obstacle 110 at the current moment, R represents the distance between the obstacle avoidance robot 100 and the obstacle 110 before the obstacle avoidance robot 100 moves.
进一步地,第三约束值为对避障模型120控制障碍约束函数微分后的结果,表示为△h,第一约束值为避障模型120中表示收敛速度的常数,可以表示为r,在0到1的范围内,避障模型120内总存在一个常数,使得第一约束值、第二约束值和第三约束值满足如下关系式:
Δh(xt+k,ut+k)+rh(xt+k)≥0;
Further, the third constraint value is the result of differentiating the obstacle constraint function of the obstacle avoidance model 120, expressed as Δh, and the first constraint value is a constant representing the convergence speed in the obstacle avoidance model 120, which can be expressed as r, at 0 Within the range of 1, there is always a constant in the obstacle avoidance model 120, so that the first constraint value, the second constraint value and the third constraint value satisfy the following relationship:
Δh(x t+k ,u t+k )+rh(x t+k )≥0;
通过第一约束值、第二约束值和第三约束值的关系式,实现控制障碍约束函数对避障模型120的不等式约束,从而增加避障机器人100的可行集范围,其中,h(xt+k)表示为第t+k时刻的第二约束值,Δh(xt+k,ut+k)为对第t+k时刻的第二约束值微分后得到的第三约束值。Through the relational expression of the first constraint value, the second constraint value and the third constraint value, the inequality constraint of the obstacle avoidance model 120 by the control obstacle constraint function is realized, thereby increasing the feasible set range of the obstacle avoidance robot 100, where, h(x t +k ) represents the second constraint value at the t+kth time, and Δh(x t+k , u t+k ) is the third constraint value obtained by differentiating the second constraint value at the t+kth time.
可以理解的是,当第三约束值趋近于0时,表示避障机器人100距离障碍物110较远,当第三约束值趋近于1时,表示避障机器人100距离障碍物110较近。It can be understood that when the third constraint value approaches 0, it means that the obstacle avoidance robot 100 is far away from the obstacle 110; when the third constraint value approaches 1, it means that the obstacle avoidance robot 100 is closer to the obstacle 110. .
进一步地,通过第一约束值、第二约束值和第三约束值之间的不等式约束,提高了避障模型120的精度,增加了避障模型120的可行集范围,从而可以使避障机器人100可以在较远距离开始规避障碍物110,降低避障过程中遇到障碍物110的可能性,进而避免避障机器人100不能远距离规避障碍物110,在近距离遇到障碍物110时,紧急停止时避障机器人100受惯性影响而与障碍物110发生碰撞的现象的发生,保证避障机器人100整个避障过程的运动的安全性和平稳性,提高避障机器人100的使用体验,进一步增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Further, through the inequality constraints between the first constraint value, the second constraint value and the third constraint value, the accuracy of the obstacle avoidance model 120 is improved, and the feasible set range of the obstacle avoidance model 120 is increased, so that the obstacle avoidance robot can 100 can start to avoid obstacles 110 at a longer distance, reducing the possibility of encountering obstacles 110 during the obstacle avoidance process, thereby preventing the obstacle avoidance robot 100 from being unable to avoid obstacles 110 at a long distance. When encountering obstacles 110 at close range, During an emergency stop, the obstacle avoidance robot 100 is affected by inertia and collides with the obstacle 110. This ensures the safety and stability of the entire obstacle avoidance process of the obstacle avoidance robot 100, improves the user experience of the obstacle avoidance robot 100, and further improves the user experience of the obstacle avoidance robot 100. Increase the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
如图9所示,本申请的一个实施例的控制方法包括:As shown in Figure 9, the control method according to one embodiment of the present application includes:
S902,接收避障机器人所处环境的地图信息;S902: Receive map information of the environment where the obstacle avoidance robot is located;
S904,根据地图信息,获取避障机器人的初始轨迹和初始轨迹的初始边界;S904, according to the map information, obtain the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory;
S906,检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹;S906, detect obstacle information within the initial boundary, and determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information;
S908,获取避障模型的模型补偿值;S908, obtain the model compensation value of the obstacle avoidance model;
S910,根据模型补偿值和理论避障模型,确定避障模型;S910, determine the obstacle avoidance model based on the model compensation value and the theoretical obstacle avoidance model;
S912,根据目标轨迹和障碍物信息,确定目标边界;S912, determine the target boundary based on the target trajectory and obstacle information;
S914,获取障碍物的第一坐标和避障机器人的第二坐标;S914, obtain the first coordinate of the obstacle and the second coordinate of the obstacle avoidance robot;
S916,根据目标轨迹的起始点的第三坐标和第二坐标,确定距离补偿值;S916, determine the distance compensation value according to the third coordinate and the second coordinate of the starting point of the target trajectory;
S918,根据第一坐标、第二坐标和距离补偿值,确定第二约束值;S918, determine the second constraint value based on the first coordinate, the second coordinate and the distance compensation value;
S920,对第二约束值进行数据处理,获得第三约束值;S920, perform data processing on the second constraint value to obtain the third constraint value;
S922,根据第二约束值和第三约束值,确定第一约束值;S922, determine the first constraint value based on the second constraint value and the third constraint value;
S924,判断第一约束值是否满足第一控制输出条件,若是,执行S926,若否,执行S904;S924, determine whether the first constraint value satisfies the first control output condition. If yes, execute S926. If not, execute S904;
S926,确定当前时刻避障机器人的控制指令;S926, determine the control instructions of the obstacle avoidance robot at the current moment;
S928,判断当前时刻避障机器人的控制指令是否满足第二控制输出条件,若是,执行S930,若否,执行S904;S928: Determine whether the control instruction of the obstacle avoidance robot at the current moment meets the second control output condition. If yes, execute S930; if not, execute S904;
S930,将当前时刻的避障机器人的控制指令作为优化控制指令,根据优化控制指令控制避障机器人移动。S930: Use the control instruction of the obstacle avoidance robot at the current moment as an optimization control instruction, and control the movement of the obstacle avoidance robot according to the optimization control instruction.
在该实施例中,基于当前时刻的避障机器人100的控制指令满足第二控制输出条件,确定当前时刻的避障机器人100的控制指令优化完成,将当前时刻的控制指令作为优化控制指令。In this embodiment, based on the fact that the control instruction of the obstacle avoidance robot 100 at the current moment satisfies the second control output condition, it is determined that the control instruction of the obstacle avoidance robot 100 at the current moment has been optimized, and the control instruction at the current moment is used as the optimized control instruction.
进一步地,根据优化控制指令控制避障机器人100移动包括:提取控制指令中的移动参数, 对移动参数进行数据处理。具体地,移动参数具体包括避障机器人100的速度、避障机器人100的加速度、避障机器人100的位移、避障机器人100的位置误差、障碍物110的速度、障碍物110的加速度、障碍物110的位移、障碍物110的位置误差等。Further, controlling the movement of the obstacle avoidance robot 100 according to the optimized control instructions includes: extracting the movement parameters in the control instructions, Perform data processing on movement parameters. Specifically, the movement parameters include the speed of the obstacle avoidance robot 100, the acceleration of the obstacle avoidance robot 100, the displacement of the obstacle avoidance robot 100, the position error of the obstacle avoidance robot 100, the speed of the obstacle 110, the acceleration of the obstacle 110, the obstacle The displacement of 110, the position error of obstacle 110, etc.
进一步地,确定避障机器人100的速度、避障机器人100的加速度、避障机器人100的位移、避障机器人100的位置误差、障碍物110的速度、障碍物110的加速度、障碍物110的位移、障碍物110的位置误差是否在避障模型120中存在相对最小值,当移动参数在避障模型120中存在相对最小值时,则确定避障机器人100的移动轨迹为在当前时刻的最优轨迹,从而输出控制指令控制避障机器人100按照移动轨迹移动,避免避障机器人100进行不必要的移动的同时,保证避障机器人100移动最小的距离,从而能够提高避障机器人100的智能化程度和节能化程度,提高避障机器人100的使用体验,增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Further, determine the speed of the obstacle avoidance robot 100 , the acceleration of the obstacle avoidance robot 100 , the displacement of the obstacle avoidance robot 100 , the position error of the obstacle avoidance robot 100 , the speed of the obstacle 110 , the acceleration of the obstacle 110 , and the displacement of the obstacle 110 , whether the position error of the obstacle 110 has a relative minimum value in the obstacle avoidance model 120. When the movement parameter has a relative minimum value in the obstacle avoidance model 120, it is determined that the movement trajectory of the obstacle avoidance robot 100 is the optimal one at the current moment. trajectory, thereby outputting control instructions to control the obstacle avoidance robot 100 to move according to the movement trajectory, avoiding unnecessary movements of the obstacle avoidance robot 100 and ensuring that the obstacle avoidance robot 100 moves the minimum distance, thereby improving the intelligence of the obstacle avoidance robot 100 and energy saving, improve the use experience of the obstacle avoidance robot 100, and increase the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
具体地,对移动参数进行数据处理可以用避障模型120中的代价函数关系式可以表示为:
Specifically, the cost function relationship in the obstacle avoidance model 120 can be used to perform data processing on the movement parameters, which can be expressed as:
其中,p(xt+N)表示为t+N时刻的移动参数,表示t=0时刻至t+N-1时刻的所有移动参数的和,J表示至t=0至t+N时刻的所有移动参数的和。可以理解的是,t=0时刻为整个运动过程的起始时刻,t+N可以表示为整个运动过程的终止时刻。Among them, p(x t+N ) represents the movement parameter at time t+N, represents the sum of all movement parameters from time t=0 to time t+N-1, and J represents the sum of all movement parameters from time t=0 to time t+N. It can be understood that the time t=0 is the starting time of the entire movement process, and t+N can be expressed as the ending time of the entire movement process.
进一步地,确定p(xt+N)是否存在最小值,从而确定避障模型120中的代价函数是否存在最小值,代价函数最小时,移动参数为最优值,控制避障机器人移动最小的移动量,实现对避障机器人100的优化控制,避免避障机器人100进行不必要的移动,提高避障机器人100的控制效率,提高避障机器人100的智能化程度和节能化程度,提高避障机器人100的使用体验,增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Further, determine whether p(x t+N ) has a minimum value, thereby determining whether the cost function in the obstacle avoidance model 120 has a minimum value. When the cost function is the minimum, the movement parameters are the optimal values, and the obstacle avoidance robot is controlled to move the minimum Movement amount to achieve optimal control of the obstacle avoidance robot 100, avoid unnecessary movements of the obstacle avoidance robot 100, improve the control efficiency of the obstacle avoidance robot 100, improve the intelligence and energy saving of the obstacle avoidance robot 100, and improve obstacle avoidance The user experience of the robot 100 increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
可以理解的是,第二控制输出条件为在优化器设置最小值输出指令,上述函数方程关系式由优化器求解获得,在代价函数关系式中存在最小值时,优化器输出代价函数的最小值,确定当前时刻的移动参数为最小移动参数,将当前时刻的控制指令确定为优化控制指令,根据优化控制指令控制避障机器人移动。It can be understood that the second control output condition is to set a minimum value output instruction in the optimizer. The above functional equation relationship is obtained by solving the optimizer. When there is a minimum value in the cost function relationship, the optimizer outputs the minimum value of the cost function. , determine the movement parameters at the current moment as the minimum movement parameters, determine the control instructions at the current moment as the optimization control instructions, and control the obstacle avoidance robot to move according to the optimization control instructions.
在代价函数关系中不存在最小值时,当前时刻的控制指令不是优化控制指令,不能通过最小的移动参数完成避障机器人100避障,从而重新对避障机器人100进行移动轨迹的规划。When there is no minimum value in the cost function relationship, the control instruction at the current moment is not an optimized control instruction, and the obstacle avoidance robot 100 cannot avoid obstacles with the minimum movement parameters, so the obstacle avoidance robot 100 can re-plan its movement trajectory.
如图10所示,本申请的一个实施例提供了的控制方法包括:As shown in Figure 10, a control method provided by an embodiment of the present application includes:
S1002,接收避障机器人所处环境的地图信息;S1002, receive map information of the environment where the obstacle avoidance robot is located;
S1004,根据地图信息,获取避障机器人的初始轨迹和初始轨迹的初始边界;S1004. According to the map information, obtain the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory;
S1006,检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹;S1006, detect obstacle information within the initial boundary, and determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information;
S1008,获取避障模型的模型补偿值;S1008, obtain the model compensation value of the obstacle avoidance model;
S1010,根据模型补偿值和理论避障模型,确定避障模型;S1010, determine the obstacle avoidance model based on the model compensation value and the theoretical obstacle avoidance model;
S1012,根据目标轨迹和障碍物信息,确定目标边界;S1012, determine the target boundary based on the target trajectory and obstacle information;
S1014,获取障碍物的第一坐标和避障机器人的第二坐标;S1014, obtain the first coordinate of the obstacle and the second coordinate of the obstacle avoidance robot;
S1016,根据目标轨迹的起始点的第三坐标和第二坐标,确定距离补偿值;S1016, determine the distance compensation value according to the third coordinate and the second coordinate of the starting point of the target trajectory;
S1018,根据第一坐标、第二坐标和距离补偿值,确定第二约束值;S1018, determine the second constraint value based on the first coordinate, the second coordinate and the distance compensation value;
S1020,对第二约束值进行数据处理,获得第三约束值;S1020, perform data processing on the second constraint value to obtain the third constraint value;
S1022,根据第二约束值和第三约束值,确定第一约束值;S1022, determine the first constraint value based on the second constraint value and the third constraint value;
S1024,判断第一约束值是否满足第一控制输出条件,若是,执行S1026,若否,执行S1004;S1024, determine whether the first constraint value satisfies the first control output condition. If yes, execute S1026. If not, execute S1004;
S1026,确定当前时刻的避障机器人的控制指令;S1026, determine the control instructions of the obstacle avoidance robot at the current moment;
S1028,判断当前时刻的避障机器人的控制指令是否满足第二控制输出条件,若是,执行S1030,若否,执行S1004;S1028, determine whether the control instruction of the obstacle avoidance robot at the current moment meets the second control output condition. If yes, execute S1030; if not, execute S1004;
S1030,将当前时刻的避障机器人的控制指令作为优化控制指令,根据优化控制指令控制避障机器人移动;S1030, use the control instructions of the obstacle avoidance robot at the current moment as the optimization control instructions, and control the movement of the obstacle avoidance robot according to the optimization control instructions;
S1032,将避障机器人根据优化控制指令停止移动的时刻设为第一时刻,获取第一时刻的避障机器人的第四坐标。S1032: Set the time when the obstacle avoidance robot stops moving according to the optimization control instruction as the first time, and obtain the fourth coordinates of the obstacle avoidance robot at the first time.
在该实施例中,避障机器人100停止后,将停止移动的时刻作为第一时刻,将优化控制指令 与时刻相对应,可以解决避障机器人100的延时问题,避免相关技术中避障机器人延时较大导致响应不及时,与障碍物发生碰撞的现象的发生,从而使避障机器人100的避障安全性能更高,提高避障机器人100的使用体验,增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。In this embodiment, after the obstacle avoidance robot 100 stops, the time when it stops moving is regarded as the first time, and the optimization control instruction is Corresponding to the time, the delay problem of the obstacle avoidance robot 100 can be solved, and the phenomenon in related technologies that the obstacle avoidance robot 100 has a large delay resulting in untimely response and collision with obstacles can be avoided, thereby making the obstacle avoidance robot 100 more efficient. The obstacle safety performance is higher, the user experience of the obstacle avoidance robot 100 is improved, and the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories is increased.
具体实施例:Specific examples:
如图11所示,本申请提供的控制方法包括:As shown in Figure 11, the control methods provided by this application include:
S1102,接收避障机器人所处环境的地图信息;S1102, receive map information of the environment where the obstacle avoidance robot is located;
S1104,根据地图信息,获取避障机器人的初始轨迹和初始轨迹的初始边界;S1104. According to the map information, obtain the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory;
S1106,对初始轨迹进行平滑处理;S1106, smooth the initial trajectory;
S1108,检测初始边界内的障碍物信息,根据初始边界、初始轨迹和障碍物信息,确定避障机器人的目标轨迹;S1108, detect obstacle information within the initial boundary, and determine the target trajectory of the obstacle avoidance robot based on the initial boundary, initial trajectory and obstacle information;
S1110,获取避障模型的模型补偿值;S1110, obtain the model compensation value of the obstacle avoidance model;
S1112,根据模型补偿值和理论避障模型,确定避障模型;S1112, determine the obstacle avoidance model based on the model compensation value and the theoretical obstacle avoidance model;
S1114,根据目标轨迹和障碍物信息,确定目标边界;S1114, determine the target boundary based on the target trajectory and obstacle information;
S1116,获取障碍物的第一坐标和避障机器人的第二坐标;S1116, obtain the first coordinate of the obstacle and the second coordinate of the obstacle avoidance robot;
S1118,根据目标轨迹的起始点的第三坐标和第二坐标,确定距离补偿值;S1118, determine the distance compensation value based on the third coordinate and the second coordinate of the starting point of the target trajectory;
S1120,根据第一坐标、第二坐标和距离补偿值,确定第二约束值;S1120, determine the second constraint value based on the first coordinate, the second coordinate and the distance compensation value;
S1122,对第二约束值进行数据处理,获得第三约束值;S1122, perform data processing on the second constraint value to obtain the third constraint value;
S1124,根据第二约束值和第三约束值,确定第一约束值;S1124, determine the first constraint value based on the second constraint value and the third constraint value;
S1126,预先设置第一约束值的输出范围;S1126, pre-set the output range of the first constraint value;
S1128,判断第一约束值是否处于输出范围,若是,执行S1130,若否,执行S1104;S1128, determine whether the first constraint value is within the output range, if so, execute S1130, if not, execute S1104;
S1130,确定第一约束值满足第一控制输出条件,根据避障模型确定当前时刻的避障机器人的控制指令;S1130, determine that the first constraint value satisfies the first control output condition, and determine the control instructions of the obstacle avoidance robot at the current moment according to the obstacle avoidance model;
S1132,提取控制指令中的移动参数,对移动参数进行数据处理;S1132, extract the movement parameters in the control instruction and perform data processing on the movement parameters;
S1134,判断数据处理后的移动参数在避障模型中是否存在最小解,若是,执行S1136,若否,执行S1104;S1134, determine whether the movement parameters after data processing have a minimum solution in the obstacle avoidance model. If so, execute S1136; if not, execute S1104;
S1136,确定当前时刻的控制指令满足第二控制输出条件,将当前时刻的避障机器人的控制指令作为优化控制指令,根据优化控制指令控制避障机器人移动;S1136, determine that the control command at the current moment meets the second control output condition, use the control command of the obstacle avoidance robot at the current moment as the optimized control command, and control the movement of the obstacle avoidance robot according to the optimized control command;
S1138,将避障机器人根据优化控制指令停止移动的时刻设为第一时刻,获取第一时刻的避障机器人的第四坐标;S1138, set the moment when the obstacle avoidance robot stops moving according to the optimization control instruction as the first moment, and obtain the fourth coordinate of the obstacle avoidance robot at the first moment;
S1140,确定第四坐标与目标轨迹的终止点的第五坐标是否相同,若是,停止,若否,则执行S1142;S1140, determine whether the fourth coordinate is the same as the fifth coordinate of the end point of the target trajectory. If yes, stop; if not, execute S1142;
S1142,获取第一时刻的障碍物信息;S1142, obtain the obstacle information at the first moment;
S1144,根据目标边界、目标轨迹和第一时刻的障碍物信息,确定避障机器人的最终轨迹;S1144, determine the final trajectory of the obstacle avoidance robot based on the target boundary, target trajectory and obstacle information at the first moment;
S1146,根据最终轨迹和障碍物信息,确定最终边界;S1146, determine the final boundary based on the final trajectory and obstacle information;
S1148,获取第一时刻障碍物的第六坐标和第一时刻避障机器人的第七坐标;S1148, obtain the sixth coordinate of the obstacle at the first moment and the seventh coordinate of the obstacle avoidance robot at the first moment;
S1150,根据最终轨迹、最终边界、第六坐标和第七坐标,确定第一时刻的避障机器人的优化控制指令,直至根据优化控制指令控制避障机器人到达最终轨迹的终止点的第八坐标。S1150: Determine the optimal control instruction of the obstacle avoidance robot at the first moment based on the final trajectory, the final boundary, the sixth coordinate and the seventh coordinate, until the obstacle avoidance robot is controlled to reach the eighth coordinate of the end point of the final trajectory according to the optimization control instruction.
在本申请的一个实施例中,获取初始轨迹102可以使用A*(A-Star)算法,A*(A-Star)算法可以表示为:
F(n)=G(n)+H(n)
In one embodiment of the present application, the A*(A-Star) algorithm may be used to obtain the initial trajectory 102. The A*(A-Star) algorithm may be expressed as:
F(n)=G(n)+H(n)
其中,A*算法将避障机器人100的初始位置和避障机器人100的目标位置之间设置多个网格点,从而将初始位置和目标位置两个点之间的路程问题转化为多个点的转化问题,提高对避障机器人100从初始位置到目标位置移动过程中的控制的精确程度。Among them, the A* algorithm sets multiple grid points between the initial position of the obstacle avoidance robot 100 and the target position of the obstacle avoidance robot 100, thereby converting the distance problem between the initial position and the target position into multiple points. The conversion problem improves the accuracy of controlling the obstacle avoidance robot 100 during its movement from the initial position to the target position.
其中,F(n)表示为避障机器人100的初始位置到目标位置的代价关系式,G(n)表示为初始位置到A*算法中下一个网格点的代价关系式;H(n)表示为从A*算法中下一个网格点到目标位置的代价关系式。Among them, F(n) represents the cost relationship from the initial position of the obstacle avoidance robot 100 to the target position, and G(n) represents the cost relationship from the initial position to the next grid point in the A* algorithm; H(n) Expressed as the cost relationship from the next grid point to the target position in the A* algorithm.
进一步地,通过A*算法搜索避障机器人100的可行路线,并生成可行路线列表,在可行路线的列表中搜索出最优轨迹,并将最优轨迹作为初始轨迹102。Further, the A* algorithm is used to search for feasible routes of the obstacle avoidance robot 100 and generate a list of feasible routes. The optimal trajectory is searched for in the list of feasible routes, and the optimal trajectory is used as the initial trajectory 102 .
可以理解的是,控制指令中包括避障机器人100的速度,角速度的移动参数。It can be understood that the control instructions include movement parameters of the speed and angular velocity of the obstacle avoidance robot 100 .
在该实施例中,确定第四坐标与第五坐标是否相同,从而判断避障机器人100是否到达目标位置。 In this embodiment, it is determined whether the fourth coordinate and the fifth coordinate are the same, thereby determining whether the obstacle avoidance robot 100 reaches the target position.
进一步地,若相同,确定避障机器人100到达目标位置,从而确定避障机器人100完成完整的避障过程,控制避障机器人100停止,且该避障过程安全,平稳,提高避障机器人100的使用体验,增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Further, if they are the same, it is determined that the obstacle avoidance robot 100 has reached the target position, thereby determining that the obstacle avoidance robot 100 has completed the complete obstacle avoidance process, and the obstacle avoidance robot 100 is controlled to stop, and the obstacle avoidance process is safe and smooth, thereby improving the performance of the obstacle avoidance robot 100. The user experience increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
进一步地,若不同,重新获取障碍物信息;并确定最终轨迹和最终边界,结合障碍物信息,可以重新确定避障机器人100的移动轨迹和移动边界,从而结合时刻可以对避障机器人100的移动轨迹和移动边界进行动态规划,从而能够远距离规划出避障机器人100的一条无碰撞的移动轨迹,避免障碍物110移动会对避障机器人100造成的影响,降低避障过程中遇到障碍物110的可能性,使得避障机器人100的移动轨迹更平滑,避免相关技术中避障机器人100不能远距离规避障碍物110,在近距离遇到障碍物110时,紧急停止时避障机器人100受惯性影响而造成与障碍物110的碰撞发生危险等现象的发生,提高避障机器人100的使用体验,增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Further, if different, the obstacle information is reacquired; and the final trajectory and final boundary are determined. Combined with the obstacle information, the movement trajectory and movement boundary of the obstacle avoidance robot 100 can be redetermined, so that the movement of the obstacle avoidance robot 100 can be determined based on the time. The trajectory and movement boundary are dynamically planned, so that a collision-free movement trajectory of the obstacle avoidance robot 100 can be planned from a long distance, to avoid the impact of the movement of the obstacle 110 on the obstacle avoidance robot 100, and to reduce the obstacles encountered during the obstacle avoidance process. 110 possibility, making the movement trajectory of the obstacle avoidance robot 100 smoother, and avoiding the obstacle avoidance robot 100 in related technologies that cannot avoid the obstacle 110 at a long distance. The influence of inertia causes the occurrence of dangerous collisions with obstacles 110, which improves the user experience of the obstacle avoidance robot 100 and increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
更进一步地,获取第六坐标和第七坐标;重新确定优化控制指令,通过确定与时刻相对应的优化控制指令并输出,控制避障机器人移动,解决了避障机器人的延时控制问题,直至避障机器人100第八坐标,从而保证避障机器人100整个避障过程的运动的安全性和平稳性,提高避障机器人100的使用体验,进一步增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Furthermore, the sixth and seventh coordinates are obtained; the optimization control instructions are redetermined, and the obstacle avoidance robot is controlled to move by determining and outputting the optimization control instructions corresponding to the time, thus solving the delay control problem of the obstacle avoidance robot until The eighth coordinate of the obstacle avoidance robot 100 ensures the safety and stability of the entire obstacle avoidance process of the obstacle avoidance robot 100, improves the user experience of the obstacle avoidance robot 100, and further increases the impact of the obstacle avoidance robot 100 on families, shopping malls, factories, etc. The degree of adaptability to various usage scenarios.
在该实施例中,通过A*算法获取初始轨迹102,并对初始轨迹102进行平滑处理,使得避障机器人100的运动轨迹更平滑,通过障碍物信息,对初始边界104和平滑后的初始轨迹102进行动态规划,从而确定目标轨迹106和目标边界108,结合时刻,对避障机器人100的移动轨迹进行控制,并根据第一控制输出条件和第二控制输出条件,对避障模型120进行求解,通过确定避障模型120是否有解,判断避障机器人100规划出的移动轨迹是否可行,使得避障机器人100远距离就可以规避障碍物110,结合时刻对避障机器人100进行控制,解决了避障机器人100控制不及时,避免避障机器人100延时控制导致在近距离遇到障碍物110时,紧急停止时避障机器人100受惯性影响而与障碍物110发生碰撞的现象的发生,同时增大了避障模型120的可行集范围,通过对避障模型120的约束和优化,使得避障模型120的精度和鲁棒性更高,便于对避障机器人100的控制,提高避障机器人100的使用体验,进一步增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。In this embodiment, the initial trajectory 102 is obtained through the A* algorithm, and the initial trajectory 102 is smoothed to make the motion trajectory of the obstacle avoidance robot 100 smoother. Through the obstacle information, the initial boundary 104 and the smoothed initial trajectory are 102 performs dynamic planning to determine the target trajectory 106 and target boundary 108, control the movement trajectory of the obstacle avoidance robot 100 in combination with the time, and solve the obstacle avoidance model 120 according to the first control output condition and the second control output condition. , by determining whether the obstacle avoidance model 120 has a solution, and judging whether the planned movement trajectory of the obstacle avoidance robot 100 is feasible, so that the obstacle avoidance robot 100 can avoid the obstacle 110 from a long distance, and controlling the obstacle avoidance robot 100 at all times solves the problem The obstacle avoidance robot 100 is not controlled in a timely manner to avoid the delay control of the obstacle avoidance robot 100 causing the obstacle avoidance robot 100 to collide with the obstacle 110 due to the influence of inertia during emergency stop. The feasible set range of the obstacle avoidance model 120 is increased. By constraining and optimizing the obstacle avoidance model 120, the obstacle avoidance model 120 is made more accurate and robust, which facilitates the control of the obstacle avoidance robot 100 and improves the obstacle avoidance robot. 100% usage experience further increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls and factories.
进一步地,根据第一坐标和第二坐标,判断避障机器人100的移动轨迹是否会受障碍物110的干扰,从而避免二者发生碰撞等现象的发生,进而能够在碰撞发生之前,提前预知风险,在较远距离就开始规避风险,避免避障机器人100在近距离与障碍物110接触,反应不及时,从而出现二者发生接触或碰撞等危险现象的发生,影响避障机器人100的安全,平稳地移动,从而提高避障机器人100的使用体验,进一步增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Further, based on the first coordinate and the second coordinate, it is determined whether the movement trajectory of the obstacle avoidance robot 100 will be interfered by the obstacle 110, thereby avoiding the occurrence of collisions between the two, and thereby predicting risks in advance before the collision occurs. , start to avoid risks at a relatively long distance to avoid the obstacle avoidance robot 100 coming into contact with the obstacle 110 at a close distance and not responding in time, resulting in dangerous phenomena such as contact or collision between the two, affecting the safety of the obstacle avoidance robot 100. Move smoothly, thereby improving the user experience of the obstacle avoidance robot 100 and further increasing the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls, and factories.
并且,由于将避障机器人100的控制指令与时刻相对应,一方面,解决了避障模型120的延时性问题,便于避障模型120的优化控制,并且由于对避障模型120增加了约束和补偿,增加避障模型120可行集范围的同时,还提高了避障模型120的精度和鲁棒性,从而提高避障模型120的反应速度,增强避障模型120与避障机器人100的适配程度;另一方面,解决了避障机器人100的延时性问题,将时刻与控制指令相对应,可以理解的是,每个时刻都有对应的控制指令,从而能够在较远位置就对障碍物110进行规避,动态规划一条无碰撞,平滑的移动轨迹,从而使整个移动过程更平稳,并且,提高了对避障机器人100的控制的精确程度,控制避障机器人100从较远距离开始规避障碍物110,并实时检测障碍物信息,能够提前控制,并根据反馈调节并控制避障机器人100移动,从而使得避障机器人100能够安全、无碰撞地到达目标位置,提高避障机器人100的使用体验,进一步增加避障机器人100对家庭、商场和工厂等多种使用场景的适配程度。Moreover, since the control instructions of the obstacle avoidance robot 100 correspond to the time, on the one hand, the delay problem of the obstacle avoidance model 120 is solved, which facilitates the optimal control of the obstacle avoidance model 120, and because constraints are added to the obstacle avoidance model 120 and compensation, while increasing the feasible set range of the obstacle avoidance model 120, it also improves the accuracy and robustness of the obstacle avoidance model 120, thereby improving the response speed of the obstacle avoidance model 120 and enhancing the adaptability of the obstacle avoidance model 120 and the obstacle avoidance robot 100. On the other hand, the delay problem of the obstacle avoidance robot 100 is solved, and the time corresponds to the control command. It is understandable that there is a corresponding control command at each time, so that the obstacle avoidance robot 100 can respond to the target at a remote location. Obstacles 110 are avoided, and a collision-free and smooth movement trajectory is dynamically planned, thereby making the entire movement process smoother, and improving the accuracy of controlling the obstacle avoidance robot 100, and controlling the obstacle avoidance robot 100 to start from a longer distance. Avoid obstacles 110, detect obstacle information in real time, control in advance, and adjust and control the movement of the obstacle avoidance robot 100 based on feedback, so that the obstacle avoidance robot 100 can reach the target position safely and without collision, improving the performance of the obstacle avoidance robot 100. The user experience further increases the adaptability of the obstacle avoidance robot 100 to various usage scenarios such as homes, shopping malls and factories.
具体地,如图12所示,预先设置有实际系统114和理论系统112,实际系统114和理论系统112根据系统的反馈值形成估计模型118,高斯过程116在避障模型120中,对估计模型118进行补偿,避障模型120对估计模型118进行约束和优化后,对实际系统114和理论系统112进行优化控制。Specifically, as shown in Figure 12, an actual system 114 and a theoretical system 112 are preset. The actual system 114 and the theoretical system 112 form an estimation model 118 based on the feedback value of the system. The Gaussian process 116 is in the obstacle avoidance model 120, and the estimation model is 118 is compensated. After the obstacle avoidance model 120 constrains and optimizes the estimated model 118, the actual system 114 and the theoretical system 112 are optimized and controlled.
本申请的一个实施例提供了一种避障机器人的控制装置200,避障机器人100由壳体、检测部件和移动部件构成,控制装置由检测单元和移动单元,构成,检测部件受检测单元控制,检测可能阻碍避障机器人100运动的障碍物;移动部件受移动单元控制,可以使避障机器人100移动。One embodiment of the present application provides a control device 200 for an obstacle avoidance robot. The obstacle avoidance robot 100 is composed of a housing, a detection component and a moving component. The control device is composed of a detection unit and a moving unit. The detection component is controlled by the detection unit. , detecting obstacles that may hinder the movement of the obstacle avoidance robot 100; the moving parts are controlled by the mobile unit and can make the obstacle avoidance robot 100 move.
在该实施例中,控制装置包括检测单元和移动单元,检测单元能够控制避障机器人100的检测部件检测避障机器人100壳体外的障碍物信息,移动单元能够控制避障机器人100的移动部件, 使避障机器人100移动,从而使得避障机器人100能够规避障碍物110进行移动,从而完成避障的完整运动过程,提高避障机器人100的使用体验,增加避障机器人100对家用、商用和工用等多个使用场景的适配程度。In this embodiment, the control device includes a detection unit and a moving unit. The detection unit can control the detection components of the obstacle avoidance robot 100 to detect obstacle information outside the housing of the obstacle avoidance robot 100. The mobile unit can control the moving components of the obstacle avoidance robot 100. The obstacle avoidance robot 100 is moved, so that the obstacle avoidance robot 100 can avoid the obstacle 110 and move, thereby completing the complete motion process of obstacle avoidance, improving the use experience of the obstacle avoidance robot 100, and increasing the impact of the obstacle avoidance robot 100 on household, commercial and industrial applications. The degree of adaptability to multiple usage scenarios.
具体地,检测部件可以包括传感器,本申请并不对传感器的类型做出限制,移动部件可以包括电机和轮胎,本申请并不对电机的类型、轮胎的类型和电机驱动轮胎的方式做出具体限定。Specifically, the detection component may include a sensor. This application does not limit the type of the sensor. The moving component may include a motor and a tire. This application does not specifically limit the type of the motor, the type of the tire, and the way the motor drives the tire.
如图13所示,本申请的一个实施例提供了一种避障机器人的控制装置200,控制装置包括存储器202和处理器204,存储器202存储有程序或指令,处理器204可以执行存储的程序或指令,实现如上述任一实施例的控制方法的步骤。As shown in Figure 13, one embodiment of the present application provides a control device 200 for an obstacle avoidance robot. The control device includes a memory 202 and a processor 204. The memory 202 stores programs or instructions, and the processor 204 can execute the stored program. or instructions to implement the steps of the control method in any of the above embodiments.
本申请的一个实施例提供了一种可读存储介质,存储有程序或指令,实现如上述任一实施例的控制方法的步骤。One embodiment of the present application provides a readable storage medium storing programs or instructions to implement the steps of the control method in any of the above embodiments.
本申请的一个实施例提供了一种避障机器人100,包括上述实施例的控制装置;或上述实施例的避障机器人的控制装置200;或上述实施例的可读存储介质。One embodiment of the present application provides an obstacle avoidance robot 100, including the control device of the above embodiment; or the control device 200 of the obstacle avoidance robot of the above embodiment; or the readable storage medium of the above embodiment.
在本申请的一个实施例中,避障机器人100包括显示装置,可以显示避障机器人100在避障移动过程中各个时刻的控制指令中的移动参数、移动轨迹、移动边界和障碍物信息。In one embodiment of the present application, the obstacle avoidance robot 100 includes a display device that can display the movement parameters, movement trajectories, movement boundaries and obstacle information in the control instructions of the obstacle avoidance robot 100 at each moment during the obstacle avoidance movement.
在该实施例中,避障机器人100还包括显示装置,显示装置避障机器人100移动过程中的控制指令中的移动参数、移动轨迹、移动边界和障碍物信息,增加用户对避障机器人100避障过程的了解程度,从而提高用户的使用体验。In this embodiment, the obstacle avoidance robot 100 also includes a display device, which displays the movement parameters, movement trajectories, movement boundaries and obstacle information in the control instructions during the movement of the obstacle avoidance robot 100, thereby increasing the user's understanding of the obstacle avoidance robot 100's avoidance. understanding of the failure process, thereby improving the user experience.
本申请的一个实施例提供了一种避障机器人100,避障机器人100包括接收装置、地图转换装置、检测处理装置和移动装置,接收装置用于接收避障机器人100所处环境的地图信息;地图转换装置用于根据地图信息,获取避障机器人100的初始轨迹102和初始轨迹102的初始边界104;检测处理装置用于检测初始边界104内的障碍物信息,并根据初始边界104、初始轨迹102和障碍物信息,确定避障机器人100的目标轨迹106,并生成控制指令;移动装置用于根据控制指令控制避障机器人100移动。One embodiment of the present application provides an obstacle avoidance robot 100. The obstacle avoidance robot 100 includes a receiving device, a map conversion device, a detection processing device and a mobile device. The receiving device is used to receive map information of the environment where the obstacle avoidance robot 100 is located; The map conversion device is used to obtain the initial trajectory 102 of the obstacle avoidance robot 100 and the initial boundary 104 of the initial trajectory 102 based on the map information; the detection processing device is used to detect the obstacle information within the initial boundary 104, and obtain the initial trajectory 102 based on the initial boundary 104 and the initial trajectory. 102 and obstacle information, determine the target trajectory 106 of the obstacle avoidance robot 100, and generate control instructions; the mobile device is used to control the movement of the obstacle avoidance robot 100 according to the control instructions.
在该实施例中,接收装置可以具有GPS(全球定位系统),根据定位接收当前时刻避障机器人100的所处环境的地图信息。In this embodiment, the receiving device may have a GPS (Global Positioning System), and receive map information of the environment where the obstacle avoidance robot 100 is located at the current moment based on positioning.
地图转换装置可以将接收装置的地图信息转换成移动轨迹和移动边界。检测处理装置能够检测障碍物信息,并判断障碍物信息是否会对移动轨迹和移动边界产生影响,进而对移动轨迹进行规划,并生成控制指令。移动装置根据控制指令控制移动,直至运动至终点。接收装置、地图转换装置、检测处理装置和移动装置相互作用,共同实现了上述任一实施例的控制方法,因而具有上述任一实施例的避障机器人100的控制方法的全部有益技术效果。The map conversion device can convert the map information of the receiving device into movement trajectories and movement boundaries. The detection and processing device can detect obstacle information, determine whether the obstacle information will affect the movement trajectory and movement boundaries, and then plan the movement trajectory and generate control instructions. The mobile device controls movement according to the control instructions until the movement reaches the end point. The receiving device, the map conversion device, the detection processing device and the mobile device interact to jointly realize the control method of any of the above embodiments, and therefore have all the beneficial technical effects of the control method of the obstacle avoidance robot 100 of any of the above embodiments.
本申请的一个实施例提供了一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述任一实施例的控制方法的步骤。因而具有上述任一实施例的避障机器人100的控制方法的全部有益技术效果。One embodiment of the present application provides a computer program product, which includes a computer program/instruction that implements the steps of the control method of any of the above embodiments when executed by a processor. Therefore, it has all the beneficial technical effects of the control method of the obstacle avoidance robot 100 in any of the above embodiments.
本申请的说明书和权利要求书中的术语“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的文字描述中,除非另有说明,“多个”的含义是两个或两个以上。另外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first" and "second" features in the description and claims of this application may include one or more of these features, either explicitly or implicitly. In the literal description of this application, unless otherwise stated, "plurality" means two or more than two. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.
在本申请的文字描述中,可以理解的是,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”、“顺时针”、“逆时针”、“轴向”、“径向”、“周向”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请的技术方案和简化描述本申请的技术方案,而不是指示或暗示所指的结构、装置、元件必须具有特定的方位、以特定的方位构造和操作,因此这些描述不能理解为对本申请的限制。In the text description of this application, it will be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "Back", "Left", "Right", "Vertical", "Horizontal", "Top", "Bottom", "Inside", "Outside", "Clockwise", "Counterclockwise", "Axis" The orientations or positional relationships indicated by "radial direction", "circumferential direction", etc. are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the technical solutions of the present application and simplifying the description of the technical solutions of the present application. It is indicated or implied that the structures, devices, and elements referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore these descriptions should not be construed as limitations on the present application.
在本申请的文字描述中,可以理解的是,除有明确的规定和限定之外,术语“安装”、“相连”、“连接”应做广义理解,举例来说,可以是固定地连接,也可以是可拆卸地连接,或一体地连接;可以是机械结构连接,也可以是电气连接;可以是两者直接相连,也可以是两者通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的一般技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。In the text description of this application, it can be understood that, unless there are clear provisions and limitations, the terms "installation", "connection" and "connection" should be understood in a broad sense. For example, it can be a fixed connection, It can also be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be internal to two components. Connected. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood on a case-by-case basis.
在本申请的权利要求书、说明书和说明书附图中,术语“多个”则指两个或两个以上,除非有额外的明确限定,术语“上”、“下”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了更方便地描述本申请和使得描述过程更加简便,而不是为了指示或暗示所指的装置或元件必须具有所描述的特定方位、以特定方位构造和操作,因此这些描述不能理解为对本申 请的限制;术语“连接”、“安装”、“固定”等均应做广义理解,举例来说,“连接”可以是多个对象之间的固定连接,也可以是多个对象之间的可拆卸连接,或一体地连接;可以是多个对象之间的直接相连,也可以是多个对象之间的通过中间媒介间接相连。对于本领域的一般技术人员而言,可以根据上述数据地具体情况理解上述术语在本申请中的具体含义。In the claims, description and drawings of this application, the term "plurality" refers to two or more than two, unless there is additional explicit limitation, and the terms "upper", "lower", etc. indicate the orientation or position. The relationship is based on the orientation or positional relationship shown in the drawings, which is only for the purpose of describing the present application more conveniently and making the description process simpler, and is not intended to indicate or imply that the device or element referred to must have the specific orientation described. construction and operation in specific directions, therefore these descriptions are not to be construed as Please limit the restrictions; the terms "connection", "installation", "fixing", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection between multiple objects, or it can be a fixed connection between multiple objects. Detachable connection, or integral connection; it can be a direct connection between multiple objects, or an indirect connection between multiple objects through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood based on the specific circumstances of the above data.
在本申请的权利要求书、说明书和说明书附图中,术语“一个实施例”、“一些实施例”、“具体实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或特点包含于本申请的至少一个实施例或示例中。在本申请的权利要求书、说明书和说明书附图中,对上述术语的示意性表述不一定指的是相同的实施例或实例。而且,描述的具体特征、结构、材料或特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the claims, description and drawings of this application, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means the specific features, structures described in connection with the embodiment or example , materials or features are included in at least one embodiment or example of the present application. In the claims, description and drawings of this application, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
以上仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、等,均应包含在本申请的保护范围之内。 The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modifications, equivalent substitutions, etc. made within the spirit and principles of this application shall be included in the protection scope of this application.

Claims (18)

  1. 一种避障机器人的控制方法,其中,所述控制方法包括:A control method for an obstacle avoidance robot, wherein the control method includes:
    接收所述避障机器人所处环境的地图信息;Receive map information of the environment where the obstacle avoidance robot is located;
    根据所述地图信息,获取所述避障机器人的初始轨迹和所述初始轨迹的初始边界;According to the map information, obtain the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory;
    检测所述初始边界内的障碍物信息,根据所述初始边界、所述初始轨迹和所述障碍物信息,确定所述避障机器人的目标轨迹,并生成控制指令;Detect obstacle information within the initial boundary, determine the target trajectory of the obstacle avoidance robot based on the initial boundary, the initial trajectory and the obstacle information, and generate a control instruction;
    根据所述控制指令控制所述避障机器人移动。Control the obstacle avoidance robot to move according to the control instructions.
  2. 根据权利要求1所述的避障机器人的控制方法,其中,检测所述初始边界内的障碍物信息,根据所述初始边界、所述初始轨迹和所述障碍物信息,确定所述避障机器人的目标轨迹,并生成控制指令包括:The control method of an obstacle avoidance robot according to claim 1, wherein obstacle information within the initial boundary is detected, and the obstacle avoidance robot is determined based on the initial boundary, the initial trajectory and the obstacle information. The target trajectory and generated control instructions include:
    根据所述目标轨迹和所述障碍物信息,确定目标边界;Determine the target boundary according to the target trajectory and the obstacle information;
    获取所述障碍物的第一坐标和所述避障机器人的第二坐标;Obtain the first coordinates of the obstacle and the second coordinates of the obstacle avoidance robot;
    根据所述目标轨迹、所述目标边界、所述第一坐标和所述第二坐标,确定当前时刻的所述避障机器人的控制指令。According to the target trajectory, the target boundary, the first coordinate and the second coordinate, the control instruction of the obstacle avoidance robot at the current moment is determined.
  3. 根据权利要求2所述的避障机器人的控制方法,其中,根据所述目标轨迹、所述目标边界、所述第一坐标和所述第二坐标,确定当前时刻的所述避障机器人的控制指令包括:The control method of the obstacle avoidance robot according to claim 2, wherein the control of the obstacle avoidance robot at the current moment is determined based on the target trajectory, the target boundary, the first coordinate and the second coordinate. Instructions include:
    根据所述目标轨迹、所述目标边界、所述第一坐标、所述第二坐标和避障模型,确定当前时刻的所述避障机器人的控制指令。According to the target trajectory, the target boundary, the first coordinate, the second coordinate and the obstacle avoidance model, the control instruction of the obstacle avoidance robot at the current moment is determined.
  4. 根据权利要求3所述的避障机器人的控制方法,其中,根据所述目标轨迹、所述目标边界、所述第一坐标、所述第二坐标和避障模型,确定当前时刻的所述避障机器人的控制指令包括:The control method of an obstacle avoidance robot according to claim 3, wherein the avoidance method at the current moment is determined based on the target trajectory, the target boundary, the first coordinate, the second coordinate and the obstacle avoidance model. The control instructions of the obstacle robot include:
    根据所述目标轨迹的起始点的第三坐标和所述第二坐标,确定距离补偿值;Determine a distance compensation value according to the third coordinate and the second coordinate of the starting point of the target trajectory;
    根据所述第一坐标、所述第二坐标和所述距离补偿值,确定第一约束值;Determine a first constraint value according to the first coordinate, the second coordinate and the distance compensation value;
    基于所述第一约束值满足第一控制输出条件,根据所述避障模型确定当前时刻的所述避障机器人的控制指令。Based on the first constraint value satisfying the first control output condition, the control instruction of the obstacle avoidance robot at the current moment is determined according to the obstacle avoidance model.
  5. 根据权利要求4所述的避障机器人的控制方法,其中,基于所述第一约束值满足第一控制输出条件,根据所述避障模型确定当前时刻的所述避障机器人的控制指令包括:The control method of the obstacle avoidance robot according to claim 4, wherein based on the first constraint value satisfying the first control output condition, determining the control instruction of the obstacle avoidance robot at the current moment according to the obstacle avoidance model includes:
    预先设置所述第一约束值的输出范围;Preset the output range of the first constraint value;
    基于所述第一约束值处于所述输出范围,确定所述第一约束值满足所述第一控制输出条件,根据所述避障模型确定当前时刻的所述避障机器人的控制指令。Based on the first constraint value being in the output range, it is determined that the first constraint value satisfies the first control output condition, and the control instruction of the obstacle avoidance robot at the current moment is determined according to the obstacle avoidance model.
  6. 根据权利要求4所述的避障机器人的控制方法,其中,基于所述第一约束值满足第一控制输出条件,根据所述避障模型确定当前时刻的所述避障机器人的控制指令之前,所述控制方法还包括:The control method of the obstacle avoidance robot according to claim 4, wherein based on the first constraint value satisfying the first control output condition, before determining the control instruction of the obstacle avoidance robot at the current moment according to the obstacle avoidance model, The control method also includes:
    获取所述避障模型的模型补偿值;Obtain the model compensation value of the obstacle avoidance model;
    根据所述模型补偿值和理论避障模型,确定所述避障模型。The obstacle avoidance model is determined based on the model compensation value and the theoretical obstacle avoidance model.
  7. 根据权利要求4所述的避障机器人的控制方法,其中,根据所述第一坐标、所述第二坐标和所述距离补偿值,确定第一约束值包括:The control method of an obstacle avoidance robot according to claim 4, wherein determining the first constraint value according to the first coordinate, the second coordinate and the distance compensation value includes:
    根据所述第一坐标、所述第二坐标和所述距离补偿值,确定所述第二约束值;Determine the second constraint value according to the first coordinate, the second coordinate and the distance compensation value;
    对所述第二约束值进行数据处理,获得第三约束值;Perform data processing on the second constraint value to obtain a third constraint value;
    根据所述第二约束值和所述第三约束值,确定所述第一约束值。The first constraint value is determined based on the second constraint value and the third constraint value.
  8. 根据权利要求4所述的避障机器人的控制方法,其中,根据所述目标轨迹、所述目标边界、所述第一坐标、所述第二坐标和避障模型,确定当前时刻的所述避障机器人的控制指令还包括:The control method of an obstacle avoidance robot according to claim 4, wherein the avoidance method at the current moment is determined based on the target trajectory, the target boundary, the first coordinate, the second coordinate and the obstacle avoidance model. The control instructions of the obstacle robot also include:
    基于所述第一约束值不满足第一控制输出条件,重新根据所述地图信息,获取所述避障机器人的初始轨迹和所述初始轨迹的初始边界。Based on the fact that the first constraint value does not satisfy the first control output condition, the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory are obtained again based on the map information.
  9. 根据权利要求8所述的避障机器人的控制方法,其中,根据所述目标轨迹、所述目标边界、所述第一坐标和所述第二坐标,确定当前时刻的所述避障机器人的控制指令之后,所述控制方法还包括:The control method of the obstacle avoidance robot according to claim 8, wherein the control of the obstacle avoidance robot at the current moment is determined based on the target trajectory, the target boundary, the first coordinate and the second coordinate. After the instruction, the control method also includes:
    基于当前时刻的所述避障机器人的控制指令满足第二控制输出条件,将当前时刻的所述避障机器人的控制指令作为优化控制指令,根据所述优化控制指令控制所述避障机器人移动。Based on the fact that the control instruction of the obstacle avoidance robot at the current moment satisfies the second control output condition, the control instruction of the obstacle avoidance robot at the current moment is used as an optimized control instruction, and the movement of the obstacle avoidance robot is controlled according to the optimized control instruction.
  10. 根据权利要求9所述的避障机器人的控制方法,其中,基于当前时刻的所述避障机器人的控制指令满足第二控制输出条件,将当前时刻的所述避障机器人的控制指令作为优化控制指令,根据所述优化控制指令控制所述避障机器人移动包括: The control method of the obstacle avoidance robot according to claim 9, wherein based on the control instruction of the obstacle avoidance robot at the current moment satisfying the second control output condition, the control instruction of the obstacle avoidance robot at the current moment is used as the optimized control Instructions, controlling the movement of the obstacle avoidance robot according to the optimization control instructions include:
    提取所述控制指令中的移动参数,对所述移动参数进行数据处理;Extract the movement parameters in the control instructions, and perform data processing on the movement parameters;
    基于数据处理后的所述移动参数在所述避障模型中存在最小解,确定当前时刻的控制指令满足第二控制输出条件,将当前时刻的所述避障机器人的控制指令作为优化控制指令,根据所述优化控制指令控制所述避障机器人移动。Based on the movement parameters after data processing, there is a minimum solution in the obstacle avoidance model, it is determined that the control instruction at the current moment satisfies the second control output condition, and the control instruction of the obstacle avoidance robot at the current moment is used as the optimized control instruction, The obstacle avoidance robot is controlled to move according to the optimization control instructions.
  11. 根据权利要求9所述的避障机器人的控制方法,其中,基于所述避障机器人的控制指令满足第二控制输出条件,将当前时刻的所述避障机器人的控制指令设置为优化控制指令,根据所述优化控制指令控制所述避障机器人移动之后,所述控制方法还包括:The control method of the obstacle avoidance robot according to claim 9, wherein based on the control instruction of the obstacle avoidance robot satisfying the second control output condition, the control instruction of the obstacle avoidance robot at the current moment is set as an optimized control instruction, After controlling the movement of the obstacle avoidance robot according to the optimized control instructions, the control method further includes:
    将所述避障机器人根据所述优化控制指令停止移动的时刻设为第一时刻,获取第一时刻的所述避障机器人的第四坐标。The time when the obstacle avoidance robot stops moving according to the optimization control instruction is set as the first time, and the fourth coordinate of the obstacle avoidance robot at the first time is obtained.
  12. 根据权利要求11所述的避障机器人的控制方法,其中,将所述避障机器人根据所述优化控制指令停止移动的时刻设为第一时刻,获取第一时刻的所述避障机器人的第四坐标之后,所述控制方法还包括:The control method of the obstacle avoidance robot according to claim 11, wherein the time when the obstacle avoidance robot stops moving according to the optimization control instruction is set as the first time, and the third time of the obstacle avoidance robot at the first time is obtained. After four coordinates, the control method also includes:
    确定所述第四坐标与所述目标轨迹的终止点的第五坐标是否相同;Determine whether the fourth coordinate is the same as the fifth coordinate of the end point of the target trajectory;
    当所述第四坐标与所述第五坐标相同时,控制所述避障机器人停止移动;When the fourth coordinate is the same as the fifth coordinate, control the obstacle avoidance robot to stop moving;
    当所述第四坐标与所述第五坐标不同时,获取第一时刻的所述障碍物信息;When the fourth coordinate is different from the fifth coordinate, obtain the obstacle information at the first moment;
    根据所述目标边界、所述目标轨迹和第一时刻的所述障碍物信息,确定所述避障机器人的最终轨迹;Determine the final trajectory of the obstacle avoidance robot based on the target boundary, the target trajectory and the obstacle information at the first moment;
    根据所述最终轨迹和所述障碍物信息,确定最终边界;获取第一时刻所述障碍物的第六坐标和第一时刻所述避障机器人的第七坐标;Determine the final boundary according to the final trajectory and the obstacle information; obtain the sixth coordinate of the obstacle at the first moment and the seventh coordinate of the obstacle avoidance robot at the first moment;
    根据所述最终轨迹、所述最终边界、所述第六坐标和所述第七坐标,确定第一时刻的所述避障机器人的优化控制指令,直至根据所述优化控制指令控制所述避障机器人到达所述最终轨迹的终止点的第八坐标。According to the final trajectory, the final boundary, the sixth coordinate and the seventh coordinate, the optimized control instruction of the obstacle avoidance robot at the first moment is determined until the obstacle avoidance robot is controlled according to the optimized control instruction. The robot reaches the eighth coordinate of the end point of the final trajectory.
  13. 根据权利要求1至12中任一项所述的避障机器人的控制方法,其中,根据所述地图信息,获取所述避障机器人的初始轨迹和所述初始轨迹的初始边界包括;The control method of an obstacle avoidance robot according to any one of claims 1 to 12, wherein, according to the map information, obtaining the initial trajectory of the obstacle avoidance robot and the initial boundary of the initial trajectory includes;
    根据所述地图信息和所述初始边界,建立二维坐标网格。Based on the map information and the initial boundary, a two-dimensional coordinate grid is established.
  14. 一种避障机器人的控制装置,其中,所述避障机器人包括壳体、检测部件和移动部件,所述控制装置包括:A control device for an obstacle avoidance robot, wherein the obstacle avoidance robot includes a housing, a detection component and a moving component, and the control device includes:
    检测单元,用于控制所述检测部件检测所述壳体外的障碍物信息;A detection unit, used to control the detection component to detect obstacle information outside the housing;
    移动单元,用于控制所述移动部件控制所述避障机器人移动。A mobile unit, used to control the mobile component to control the movement of the obstacle avoidance robot.
  15. 一种避障机器人的控制装置,其中,所述控制装置包括:存储器和处理器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或所述指令被所述处理器执行时实现如权利要求1至13中任一项所述的避障机器人的控制方法的步骤。A control device for an obstacle avoidance robot, wherein the control device includes a memory and a processor, the memory stores programs or instructions that can be run on the processor, and the program or instructions are processed by the processor. When the device is executed, the steps of the control method of the obstacle avoidance robot according to any one of claims 1 to 13 are realized.
  16. 一种可读存储介质,其上存储有程序或指令,其中,所述程序或所述指令被处理器执行时实现如权利要求1至13中任一项所述的避障机器人的控制方法的步骤。A readable storage medium with a program or instructions stored thereon, wherein when the program or instructions are executed by a processor, the control method of the obstacle avoidance robot according to any one of claims 1 to 13 is implemented. step.
  17. 一种避障机器人,其中,包括:An obstacle avoidance robot, including:
    如权利要求14所述的避障机器人的控制装置;或The control device of an obstacle avoidance robot as claimed in claim 14; or
    如权利要求15所述的避障机器人的控制装置;或The control device of the obstacle avoidance robot as claimed in claim 15; or
    如权利要求16所述的可读存储介质。The readable storage medium of claim 16.
  18. 一种计算机程序产品,其中,包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现如权利要求1至13中任一项所述避障机器人的控制方法的步骤。 A computer program product, which includes a computer program/instruction, and when the computer program/instruction is executed by a processor, the steps of the control method of the obstacle avoidance robot according to any one of claims 1 to 13 are implemented.
PCT/CN2023/077991 2022-08-10 2023-02-23 Obstacle avoidance robot, control method and control device thereof, and readable storage medium WO2024031959A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210957649.7 2022-08-10
CN202210957649.7A CN115268457A (en) 2022-08-10 2022-08-10 Obstacle avoidance robot, control method and device thereof, and readable storage medium

Publications (1)

Publication Number Publication Date
WO2024031959A1 true WO2024031959A1 (en) 2024-02-15

Family

ID=83750803

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/077991 WO2024031959A1 (en) 2022-08-10 2023-02-23 Obstacle avoidance robot, control method and control device thereof, and readable storage medium

Country Status (2)

Country Link
CN (1) CN115268457A (en)
WO (1) WO2024031959A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115268457A (en) * 2022-08-10 2022-11-01 美的集团(上海)有限公司 Obstacle avoidance robot, control method and device thereof, and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160054862A (en) * 2014-11-07 2016-05-17 재단법인대구경북과학기술원 Method to obstacle avoidance for wheeled mobile robots
CN108762255A (en) * 2018-05-03 2018-11-06 南京理工大学 A kind of indoor intelligent mobile robot and control method
US20200174483A1 (en) * 2018-11-29 2020-06-04 Twinny Co., Ltd. Obstacle avoiding method in state-time space, recording medium storing program for executing same, and computer program stored in recording medium for executing same
CN111813117A (en) * 2020-07-09 2020-10-23 北京布科思科技有限公司 Robot line patrol priority navigation method, device and equipment
CN113433936A (en) * 2021-06-02 2021-09-24 北京迈格威科技有限公司 Mobile equipment obstacle-avoiding method and device, mobile equipment and storage medium
CN113448335A (en) * 2021-07-02 2021-09-28 广州小鹏自动驾驶科技有限公司 Path planning method and device, vehicle and readable storage medium
CN115268457A (en) * 2022-08-10 2022-11-01 美的集团(上海)有限公司 Obstacle avoidance robot, control method and device thereof, and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160054862A (en) * 2014-11-07 2016-05-17 재단법인대구경북과학기술원 Method to obstacle avoidance for wheeled mobile robots
CN108762255A (en) * 2018-05-03 2018-11-06 南京理工大学 A kind of indoor intelligent mobile robot and control method
US20200174483A1 (en) * 2018-11-29 2020-06-04 Twinny Co., Ltd. Obstacle avoiding method in state-time space, recording medium storing program for executing same, and computer program stored in recording medium for executing same
CN111813117A (en) * 2020-07-09 2020-10-23 北京布科思科技有限公司 Robot line patrol priority navigation method, device and equipment
CN113433936A (en) * 2021-06-02 2021-09-24 北京迈格威科技有限公司 Mobile equipment obstacle-avoiding method and device, mobile equipment and storage medium
CN113448335A (en) * 2021-07-02 2021-09-28 广州小鹏自动驾驶科技有限公司 Path planning method and device, vehicle and readable storage medium
CN115268457A (en) * 2022-08-10 2022-11-01 美的集团(上海)有限公司 Obstacle avoidance robot, control method and device thereof, and readable storage medium

Also Published As

Publication number Publication date
CN115268457A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
Pham et al. A new approach to time-optimal path parameterization based on reachability analysis
WO2024031959A1 (en) Obstacle avoidance robot, control method and control device thereof, and readable storage medium
US9995589B2 (en) Path plan generating apparatus for mobile body
Park et al. Robot navigation with model predictive equilibrium point control
US11279033B2 (en) Method and apparatus for collision-free motion planning of a manipulator
Graichen et al. A real-time gradient method for nonlinear model predictive control
Ardakani et al. Real-time trajectory generation using model predictive control
CN105928514A (en) AGV composite guiding system based on image and inertia technology
JP2021175590A (en) Robot optimization operation planning initial stage reference generation
CN103645725A (en) Teaching track planning method and system for robot
US11040448B2 (en) Methods and systems for establishing and maintaining a pre-build relationship
CN111390902A (en) Trajectory planning method, trajectory planning device, equipment and storage medium
Bore et al. Automated guided vehicle using robot operating systems
Kuderer et al. An approach to socially compliant leader following for mobile robots
CN115922687A (en) S-shaped speed curve-based motion trajectory planning method and device
Van Oosterwyck et al. CAD based trajectory optimization of PTP motions using chebyshev polynomials
JP5268974B2 (en) Numerical control device and production system
WO2023124339A1 (en) Path planning method, motion control method and computer program product
Hilario et al. Real-time bézier trajectory deformation for potential fields planning methods
Choi et al. CV-SLAM using ceiling boundary
Wang et al. A third-order constrained approximate time-optimal feedrate planning algorithm
Yin et al. On a new sectionalized motion control strategy for automated guided vehicles: modeling and simulation validation
Shkel et al. Incorporating body dynamics into sensor-based motion planning: The maximum turn strategy
Yamanaka et al. Mobile robot navigation using hybrid simplified map with relationships between places and grid maps
Yu et al. A prioritized path planning algorithm for MMRS