Robot control method and device

By acquiring and fusing robot motion and environmental parameters, and determining control parameters to control robot motion, the problem of low robot control accuracy in unstructured environments is solved, and the accuracy of autonomous motion is improved.

CN114815795BActive Publication Date: 2024-09-24GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110120432.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-28
Publication Date
2024-09-24
Estimated Expiration
2041-01-28

AI Technical Summary

Technical Problem

In rugged and complex unstructured environments, robot control accuracy is low, resulting in inaccurate autonomous movements.

Method used

By obtaining the motion parameters and environmental parameters of the robot, determining the first and second estimated parameters based on these parameters, and performing weighted fusion to determine the control parameters, the robot movement is controlled and the accuracy of autonomous movement is improved.

Benefits of technology

It improves the control accuracy of the robot during autonomous movement, solves the problem of low autonomous positioning accuracy, and effectively improves the accuracy of the movement direction especially in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114815795B
    Figure CN114815795B
Patent Text Reader

Abstract

The embodiment of the present application discloses a robot control method and device, which belongs to the technical field of robot positioning. The method includes: obtaining the motion parameters of the robot and the environmental parameters of the current environment; determining the first estimated parameter based on the motion parameters, and determining the second estimated parameter based on the environmental parameters; determining the control parameters of the robot based on the first estimated parameter and the second estimated parameter; and controlling the robot movement based on the control parameters. Therefore, the embodiment of the present application can solve the technical problem in the related art that the robot positioning is inaccurate due to the autonomous positioning based only on the position information of the robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robot positioning, and more specifically, to a robot control method and device. Background Art

[0002] Robot autonomous navigation technology is a research hotspot in the field of robotics and is the key to the robot's autonomous movement. Robot autonomous navigation technology mainly uses sensors to perceive environmental information and its own state, builds a scene map while determining its own position, and uses the position and map information to achieve autonomous movement in the location environment.

[0003] However, when the robot operates in a rugged and complex unstructured environment, the complexity of the environment often causes large deviations in the robot's control process, resulting in low control accuracy of the robot, which in turn affects the robot's autonomous movement.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a robot control method and device to at least solve the technical problem of low robot control accuracy in the related art.

[0006] According to one aspect of an embodiment of the present application, a robot control method is provided, including: obtaining motion parameters of the robot and environmental parameters of the current environment; determining a first estimation parameter based on the motion parameters, and determining a second estimation parameter based on the environmental parameters; determining a control parameter of the robot based on the first estimation parameter and the second estimation parameter; and controlling the movement of the robot based on the control parameter.

[0007] Optionally, based on the first estimated parameters and the second estimated parameters, the control parameters of the robot are determined, including: obtaining the state parameters of the robot, wherein the state parameters include: position parameters of the robot, posture parameters of the robot; performing weighted fusion on the first estimated parameters and the second estimated parameters to obtain target estimated parameters; and determining the control parameters based on the state parameters and the target estimated parameters.

[0008] Optionally, the first estimated parameters include: first posture estimation parameters, the motion parameters include: angular velocity and linear acceleration of the robot at the current moment, and the first estimated parameters are determined based on the motion parameters, including: determining the first feedback information of the robot according to the linear acceleration and gravitational acceleration, wherein the first feedback information is used to characterize the feedback information of the robot's linear acceleration; determining the second feedback information of the robot based on the first feedback information, linear acceleration, angular velocity and a first period, wherein the first period is the change period of the robot's posture, and the second feedback information is the feedback information of the robot's posture; determining the first posture estimation parameters of the robot based on a preset formula and the second feedback information.

[0009] Optionally, the first estimated parameters also include: first position estimation parameters, determining the first estimated parameters based on the motion parameters, including: obtaining foot-end parameters of the robot, the foot-end parameters including at least one of the following: foot-end position, foot-end speed, foot-end height, the foot-end height being the height of the foot-end from the plane where the robot is located; determining the first position estimation parameters of the robot based on the foot-end parameters, the first posture estimation parameters and the linear acceleration.

[0010] Optionally, the method also includes: obtaining the foot-end state of the robot; when the foot-end state is a preset state, preprocessing the foot-end parameters, wherein the preset state is used to characterize that the foot-end is not touching the ground; based on the preprocessed foot-end parameters, the first posture estimation parameters and the linear acceleration, determining the first position estimation parameters of the robot.

[0011] Optionally, determining the second estimated parameters based on the environmental parameters includes: obtaining a feature set in the robot's current environment; determining the robot's second estimated parameters based on the positioning algorithm and the feature set, wherein the second estimated parameters include: second posture estimation parameters and second position estimation parameters.

[0012] Optionally, a first estimation parameter is determined based on the motion parameter through a motion control module, a second estimation parameter is determined based on the environmental parameter through a navigation control module, control parameters of the robot are determined based on the first estimation parameter and the second estimation parameter through the navigation control module, and the motion of the robot is controlled based on the control parameters through the motion control module.

[0013] According to another aspect of an embodiment of the present invention, a robot control device is also provided, including: an acquisition module, which acquires the motion parameters of the robot and the environmental parameters of the current environment; a first determination module, which determines a first estimation parameter based on the motion parameters, and determines a second estimation parameter based on the environmental parameters; a second determination module, which determines the control parameters of the robot based on the first estimation parameters and the second estimation parameters; and a control module, which controls the movement of the robot based on the control parameters.

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

[0015] According to another aspect of an embodiment of the present invention, there is further provided a robot, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned robot control method.

[0016] In an embodiment of the present invention, first, the motion parameters of the robot and the environmental parameters of the current environment can be obtained; then, a first estimation parameter is determined based on the motion parameters, and a second estimation parameter is determined based on the environmental parameters, and then, based on the first estimation parameter and the second estimation parameter, the control parameter of the robot is determined; finally, the motion of the robot is controlled based on the control parameter, so that the robot is positioned by using the estimation parameters obtained by the two positioning methods, thereby improving the accuracy of the robot's control during autonomous motion, thereby improving the accuracy of the robot's autonomous motion, and further solving the technical problem of low accuracy of robot autonomous positioning in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0019] Figure 2 is a flow chart of another robot control method according to an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of a legged robot;

[0021] Figure 4 is a schematic diagram of a robot control device according to an embodiment of the present invention. DETAILED DESCRIPTION

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

[0023] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are a kind of "or" relationship.

[0025] The hardware part of the robot is composed of mechanical components, controllers, radar modules and other parts, which are combined together by overall structural parts and supported by a dedicated software system. The mechanical components include the fuselage and mechanical legs. The fuselage is provided with a radar module for collecting feature points of the robot's current environment during the rotation of the fuselage. The controller is used to control the movement of the robot's mechanical legs.

[0026] Example 1

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

[0028] Figure 1 is a flow chart of a robot control method according to an embodiment of the present application, such as Figure 1 As shown, the method may include the following steps:

[0029] Step S102, obtaining the motion parameters of the robot and the environmental parameters of the current environment.

[0030] The motion parameters in the above steps can be the acceleration of the robot body or the acceleration of the robot legs, wherein the acceleration can be linear acceleration and angular acceleration. The motion parameters can be measured by an IMU (Inertial measurement unit) installed on the robot.

[0031] The environmental parameters in the above steps can be point cloud data of the robot's current environment, where point cloud refers to a massive set of points that express the target's spatial distribution and target surface characteristics in the same spatial reference system. After obtaining the spatial coordinates of each sampling point on the object surface, the resulting point set is called a point cloud. Environmental parameters can be obtained through laser radar.

[0032] In an optional embodiment, the motion parameters of the robot and the environmental parameters of the current environment can be acquired in real time during the movement of the robot, so as to accurately control the robot.

[0033] In another optional embodiment, the motion parameters of the robot and the environmental parameters of the current environment may be acquired at fixed intervals to save power consumption of the robot.

[0034] Step S104: determining a first estimation parameter based on the motion parameter, and determining a second estimation parameter based on the environment parameter.

[0035] The first estimation parameter in the above step may include a first posture estimation parameter and / or a first position estimation parameter, wherein the first posture estimation parameter is used to determine the posture of the robot during the movement, and the first position estimation parameter is used to determine the position of the robot during the movement.

[0036] In an optional embodiment, the motion parameters may be acquired through a sensor installed on the robot, and the environmental parameters may be acquired through a laser radar installed on the robot.

[0037] In an optional embodiment, the feedback item of the linear acceleration of the robot during the movement can be determined according to the linear acceleration in the motion parameters, and then the change of the robot's posture can be obtained according to the feedback item of the linear acceleration and the angular velocity, and finally the first posture estimation parameter can be determined according to the change of the posture and the previous posture of the robot.

[0038] Furthermore, the first position estimation parameters may be determined by using a Kalman filter method. Specifically, the coordinates of the robot body and the coordinates of the foot end may be used as inputs of the Kalman filter, so that the first position estimation parameters of the robot body are more accurate.

[0039] In another optional embodiment, the point cloud data of the robot's current environment can be obtained through a laser radar, and point cloud segmentation and feature extraction can be completed through laser positioning and mapping algorithms to determine the second estimated parameters of the robot.

[0040] Step S106: determining the control parameters of the robot based on the first estimated parameters and the second estimated parameters.

[0041] The control parameters in the above steps are used to control the robot to move.

[0042] In an optional embodiment, the control parameters of the robot can be determined by a first estimation parameter and a second estimation parameter. The estimation parameters obtained by using the two methods can ensure the accuracy of the determined control parameters. When the error of one of the estimation parameters is large, it can be adjusted by the other estimation parameter to avoid large errors in controlling the robot during movement, thereby causing a large deviation in the robot's movement direction.

[0043] Step S108, controlling the movement of the robot based on the control parameters.

[0044] Controlling the robot's motion by controlling parameters can ensure that the robot's motion direction does not deviate, allowing the robot to move autonomously with higher accuracy.

[0045] Through the above-mentioned embodiments of the present invention, firstly, the motion parameters of the robot and the environmental parameters of the current environment can be obtained; then, the first estimated parameter is determined based on the motion parameter, and the second estimated parameter is determined based on the environmental parameter, and then the control parameter of the robot is determined based on the first estimated parameter and the second estimated parameter; finally, the robot motion is controlled based on the control parameter, so that the robot can be positioned by using the estimated parameters obtained by the two positioning methods, thereby improving the accuracy of the robot control during autonomous motion. In addition, the weighting coefficients of the first estimated parameter and the second estimated parameter can be adjusted according to the current environment of the robot. When the environment is complex, the weighting coefficient of the first estimated parameter can be increased and the weighting coefficient of the second estimated parameter can be reduced to improve the accuracy of the control parameter, thereby improving the accuracy of the robot's autonomous motion, thereby solving the technical problem in the related art that the robot positioning is inaccurate due to autonomous positioning based only on the robot's position information.

[0046] Optionally, based on the first estimated parameters and the second estimated parameters, the control parameters of the robot are determined, including: obtaining the state parameters of the robot, wherein the state parameters include: position parameters of the robot, posture parameters of the robot; performing weighted fusion on the first estimated parameters and the second estimated parameters to obtain target estimated parameters; and determining the control parameters based on the state parameters and the target estimated parameters.

[0047] The state parameters in the above steps are the position parameters and / or posture parameters of the robot at the current moment, wherein the position parameters may be position coordinates, and the posture parameters may be the linear acceleration and angular velocity of the robot, wherein the linear acceleration may determine the movement speed of the robot, and the angular velocity may determine the rotation angle of the robot.

[0048] In an optional embodiment, the parameters that need to be adjusted for the robot, namely, the control parameters, can be determined according to the current state parameters and target estimation parameters of the robot, so that the posture and position of the robot can be adjusted according to the control parameters.

[0049] In an optional embodiment, weighting coefficients may be set for the first estimation parameter and the second estimation parameter. The weighting coefficient of the estimation parameter with higher accuracy may be set higher, while the weighting coefficient of the estimation parameter with lower accuracy may be set lower, so as to improve the accuracy of the target estimation parameter obtained by weighted fusion.

[0050] Specifically, when the accuracy of the laser radar is low, the accuracy of the obtained second estimated parameter may be low. In this case, the weighting coefficient of the second estimated parameter can be set to be small to reduce the influence of the second estimated parameter on the target estimated parameter. When the accuracy of the laser radar is high, the accuracy of the obtained second estimated parameter is relatively high. In this case, the weighting coefficient of the second estimated parameter can be set to be large to improve the accuracy of the target estimated parameter.

[0051] In another optional embodiment, when the robot is currently in a complex environment, it is not possible to obtain a highly accurate estimation parameter using only the laser radar, and the weighting coefficients of the first estimation parameter and the second estimation parameter can be set to be the same, so as to improve the accuracy of the target estimation parameter. The complex environment refers to a relatively rugged and complex terrain or a large number of obstacles in the environment.

[0052] In another optional embodiment, when the robot's current environment is simple, only laser radar can be used to obtain estimation parameters with higher accuracy. At this time, the weighting coefficient of the first estimation parameter can be set to 0, and the second estimation parameter is the target estimation parameter, which can reduce the complexity of the calculation and thus reduce the resource usage during the calculation process.

[0053] Optionally, the first estimated parameters include: first posture estimation parameters, the motion parameters include: angular velocity and linear acceleration of the robot at the current moment, and determining the first estimated parameters based on the motion parameters includes: determining the first feedback information of the robot according to the linear acceleration and gravitational acceleration, wherein the first feedback information is used to characterize the feedback information of the robot's linear acceleration; determining the second feedback information of the robot based on the first feedback information, linear acceleration, angular velocity, and a first period, wherein the first period is the change period of the robot's posture, and the second feedback information is the feedback information of the robot's posture; determining the first posture estimation parameters of the robot based on a preset formula and the second feedback information.

[0054] The preset formula in the above steps is Rodrigues (Rodrigues rotation formula), which is a calculation formula for a new vector obtained by rotating a vector rotation axis by a given angle. Rodrigues can use the original vector, the rotation axis and their cross product as a frame to represent the rotated vector, and rewrite the rotated vector into a matrix form.

[0055] In an optional embodiment, the position and posture of the robot body can be recorded as a 6-dimensional vector, P = (x, y, z, rx, ry, rz) T ;

[0056] In an optional embodiment, the angular velocity and linear acceleration of the robot at the current moment can be read from the sensor in the robot body, which are recorded as ω = (α, β, γ) T , a=(a x ,a y ,a z ) T . Let the gravitational acceleration of the earth be g = (0, 0, 9.8) T , set the robot's initial posture matrix R as the unit matrix, that is:

[0057]

[0058] The first feedback term that determines the linear acceleration of the robot during motion is:

[0059] ew=[a·normalized()] x ·(R T g) normalized();

[0060] in,[] × It means writing the vector in antisymmetric form, .normalized() means normalizing the vector, a represents the linear acceleration of the robot, R is the unit matrix, g is the gravitational acceleration of the earth, and ew is the feedback term.

[0061] The above feedback term is recorded as time integral:

[0062] TF+ = ki·dt·ew;

[0063] Among them, TF is the time integral, ki is the integral constant, dt is the update period of the algorithm, and ew is the first feedback term.

[0064] According to the above time integration, the second feedback information of the robot can be obtained, that is, the feedback information of the robot posture, that is, the change of the posture in each dt is:

[0065] (ω·dt+kp·ew·dt+TF);

[0066] Where, kp is the integration constant;

[0067] Substituting the above posture changes into the Rodrigues formula, we get the following formula:

[0068] DR=Rodrigues(ω·dt+kp·ew·dt+TF);

[0069] From this we can get the estimated posture matrix:

[0070] R esti =R·DR;

[0071] The first posture estimation parameter may be the posture matrix obtained in the above steps.

[0072] Optionally, the first estimated parameters also include: first position estimation parameters. Determining the first estimated parameters based on the motion parameters includes: obtaining foot-end parameters of the robot, the foot-end parameters include at least one of the following: foot-end position, foot-end speed, foot-end height, the foot-end height being the height of the foot from the plane where the robot is located; determining the first position estimation parameters of the robot based on the foot-end parameters, the first posture estimation parameters and the linear acceleration.

[0073] The speed of the foot end in the above steps can be obtained from the speed sensor set at the foot end of the robot, the height of the foot end can be obtained from the height sensor set at the foot end of the robot, and the position of the foot end can be obtained through the built-in gyroscope of the robot, wherein the position of the foot end can be the position of the foot end in the world coordinate system.

[0074] The initial position of the robot after power-on can be used as the origin of the world coordinate system, and the projection of the robot's initial movement direction on the horizontal plane can be used as the X-axis, the axis perpendicular to the X-axis, passing through the origin and parallel to the horizontal plane can be used as the Y-axis, and the axis passing through the origin and perpendicular to the horizontal plane can be used as the Z-axis.

[0075] In an optional embodiment, a linear Kalman filter method may be used to determine the first position estimation parameter of the robot so as to improve the accuracy of the first position estimation parameter. The linear Kalman filter is an algorithm that uses a linear system state equation to optimally estimate the system state through system input and output observation data.

[0076] In an optional embodiment, the robot system can be regarded as a linear system, and the state equation of the system can be obtained as:

[0077]

[0078] in, is the system state differential, A is the state transfer matrix, B is the control input matrix, D is the control gain, X is the system state variable, u is the system input, and n is the system noise.

[0079] The output equation of the system is:

[0080] y = CX + Ev;

[0081] Among them, C is the gain of the system, E is the expectation of the system, and v is the system observation error.

[0082] According to the five steps of linear Kalman filtering, the prediction process can be written as follows:

[0083]

[0084] in, is the estimated quantity of the system, u t is the prior state estimate at time t;

[0085] and Respectively represent the posterior state estimates at time t-1 and time t, which is one of the results of filtering;

[0086] P t-1 and Respectively represent the posterior estimated covariance at time t-1 and time t, which is one of the results of filtering;

[0087] K t is the filter gain matrix, which is the input of the filter;

[0088] Q is the process excitation noise covariance, which is used to represent the error between the state conversion matrix and the actual process;

[0089] R is the measurement noise covariance. When the filter is actually implemented, the measurement noise covariance R can generally be observed and is a known condition of the filter.

[0090] C is the measurement matrix, which is responsible for converting the dimension of the measured value to conform to the mathematical operation of the state variable, and is one of the prerequisites for filtering;

[0091] y t is the output equation of the system.

[0092] In this method, let P be the coordinate of the robot body, v represents the speed of the robot in the world coordinate system, and P i Represents the coordinate position of each foot of the robot in the world coordinate system, so there is an equation:

[0093]

[0094] Where n p ,n v , is white noise, so there is the following formula: t =[P T ,v T ,P0 T ,P1 T ,P2 T ,P3 T ] T ,

[0095]

[0096] Among them, u t is the overall acceleration of the system, a is the linear acceleration read from the sensor, g is the gravity acceleration, and R in the formula is the estimated attitude matrix, that is, the first attitude estimation parameter, which can be directly used as R esti Replace it with n, and n is the overall white noise of the system.

[0097] From this, we can get the A, B, and D matrices in the state equation, and

[0098] make Represents the vector from the robot body coordinates to the foot end coordinates in the world coordinate system, express speed, represents the height of the foot end from the horizontal plane, then the output equation of the system can be obtained,

[0099] In the above process, by adding relevant parameters of the robot foot end, the accuracy of the first position estimation parameters can be made higher.

[0100] Optionally, the method also includes: obtaining the foot-end state of the robot; when the foot-end state is a preset state, preprocessing the foot-end parameters, wherein the preset state is used to characterize that the foot-end is not touching the ground; based on the preprocessed foot-end parameters, the first posture estimation parameters and the linear acceleration, determining the first position estimation parameters of the robot.

[0101] The state of the foot in the above steps can be detected by the contact sensor on the sole of the foot. When the contact force detected by the foot sensor is greater than a certain threshold, it means that the foot is touching the ground, and when the contact force detected by the foot sensor is less than a certain threshold, it means that the foot is swinging.

[0102] In an optional embodiment, the preset state may be a foot-end swinging state, i.e., a state where the foot end does not touch the ground. Since the foot-end swinging process is a dynamic process, the accuracy of the measured foot-end parameters is low, which will result in a low accuracy of the first position estimation parameters. At this time, the foot-end parameters may be preprocessed so that the foot-end parameters obtained during the swinging process cannot be applied in the above system, thereby reducing the large error of the first position estimation parameters caused by the foot-end swinging. Specifically, when the state of the foot end is the preset state, the R matrix and the Q matrix in the linear Kalman filter may be processed. Specifically, the elements in the R matrix and the Q matrix may be amplified so that the observation values ​​of the corresponding legs are unavailable.

[0103] It should be noted that when the foot touches the ground, the measured foot parameters are generally more accurate. At this time, there is no need to pre-process the acquired foot parameters.

[0104] In another optional embodiment, in the process of processing the above-mentioned R matrix and Q matrix, a sudden change in the estimated parameters may occur. To prevent the sudden change in the estimated parameters, 60% of the touchdown information may be used as a reliable observation state, and the Q matrix and R matrix at the beginning and the end may be obtained by linear interpolation.

[0105] Optionally, determining the second estimated parameters based on the environmental parameters includes: obtaining a feature set of the robot's current environment; determining the second estimated parameters of the robot based on the positioning algorithm and the feature set, wherein the second estimated parameters include: second posture estimation parameters and second position estimation parameters.

[0106] The positioning algorithm in the above steps can be a 3D laser slam algorithm (simultaneous localization and mapping, positioning and mapping), which obtains point cloud data of the current environment through a 3D laser radar, and then determines a feature set of the current environment based on the point cloud data. The 3D laser slam algorithm can segment the point cloud data in the feature set and extract target features. The next position of the robot's movement, i.e., the second position estimation parameter, and the posture of the robot at the next position, i.e., the second posture estimation parameter, are estimated based on the extracted target features.

[0107] Optionally, a first estimation parameter is determined based on the motion parameter through a motion control module, a second estimation parameter is determined based on the environmental parameter through a navigation control module, control parameters of the robot are determined based on the first estimation parameter and the second estimation parameter through the navigation control module, and the motion of the robot is controlled based on the control parameters through the motion control module.

[0108] The control parameter in the above steps can also be the speed of the robot, represented by (Vx, Vy, Vz), where Vx is the speed component of the robot on the X-axis, Vy is the speed component of the robot on the Y-axis, and Vz is the speed component of the robot on the Z-axis.

[0109] In an optional embodiment, the computer responsible for motion control and the computer responsible for navigation can be separated, thereby improving the real-time performance of the control and ensuring the stability of the robot.

[0110] In an optional embodiment, the motion control module transmits the first estimated parameter to the navigation control module through LCM (Lingweight Communications and Marshalling, a library and tool for message transmission and data marshaling) or ROS (Robot Operating System, an open source robot operating system), the navigation control module receives the first estimated parameter and obtains the second estimated parameter to plan the speed of the robot, and then the navigation control module transmits the planned speed to the motion control module through LCM and ROS, and the motion control module controls the robot to move. Controlling the robot by this method can improve the real-time performance of the control and ensure the stability of the control.

[0111] Combine the following Figures 2 to 3 A preferred embodiment of the present invention is described in detail. Figure 2 As shown, the method may include the following steps:

[0112] Step S201, reading the angular velocity and linear acceleration of the legged robot during movement from sensors installed on the legged robot body;

[0113] like Figure 3 Shown is a legged robot, 1 represents the body of the legged robot, 2 represents the legs of the legged robot, and 3 represents the foot end of the legged robot.

[0114] The angular velocity and linear acceleration in the above steps can generally be read from an IMU sensor.

[0115] Step S202, obtaining the posture matrix of the fuselage by calculating the angular velocity and linear acceleration information;

[0116] Step S203, calculating the position, speed, and height information of each foot of the robot through the encoder information and leg swing information of the leg robot;

[0117] Step S204, using a Kalman filter method to process the observation information and input information;

[0118] The observation information in the above steps is the position, speed and height information of each foot end, and the input information is the acceleration of the robot.

[0119] Step S205, generating estimated information of radar posture through a laser positioning algorithm;

[0120] Step S206, weighted fusion of the position information of the fuselage obtained in S205 and S204 to obtain more accurate fuselage position, fuselage posture and robot speed information;

[0121] Step S207, obtaining odometer information for controlling the legged robot by transmitting information between the control computer and the positioning and navigation computer.

[0122] Example 2

[0123] According to an embodiment of the present invention, a robot control device is also provided, which can execute the robot control method in the above embodiment. The specific implementation method and preferred application scenario are the same as the above embodiment and will not be repeated here.

[0124] Figure 4 is a schematic diagram of a robot control device according to an embodiment of the present invention. Figure 4 As shown, the device comprises:

[0125] A first acquisition module 42 acquires the motion parameters of the robot and the environmental parameters of the current environment;

[0126] A first determination module 44 determines a first estimation parameter based on the motion parameter and determines a second estimation parameter based on the environment parameter;

[0127] A second determination module 46 determines a control parameter of the robot based on the first estimated parameter and the second estimated parameter;

[0128] The control module 48 controls the movement of the robot based on the control parameters.

[0129] Optionally, the second determination module includes: a first acquisition unit, used to acquire state parameters of the robot, wherein the state parameters include: position parameters of the robot, posture parameters of the robot; a weighting unit, used to weightedly fuse the first estimated parameters and the second estimated parameters to obtain target estimated parameters; a first determination unit, used to determine control parameters based on the state parameters and the target estimated parameters.

[0130] Optionally, the first estimation parameter in the embodiment of the present invention includes: a first posture estimation parameter, the motion parameters include: the angular velocity and linear acceleration of the robot at the current moment, and the first determination module includes: a second determination unit, used to determine the first feedback information of the robot based on the linear acceleration and the gravitational acceleration, wherein the first feedback information is used to characterize the feedback information of the robot's linear acceleration; the second determination unit is also used to determine the second feedback information of the robot based on the first feedback information, linear acceleration, angular velocity and a first period, wherein the first period is the change period of the robot's posture, and the second feedback information is the feedback information of the robot's posture; the second determination unit is also used to determine the first posture estimation parameter of the robot based on a preset formula and the second feedback information.

[0131] Optionally, the first estimated parameter in the embodiment of the present invention also includes: a first position estimation parameter, a first determination module, including: a second acquisition unit, used to acquire the foot-end parameters of the robot, the foot-end parameters including at least one of the following: the position of the foot-end, the speed of the foot-end, the height of the foot-end, the height of the foot-end being the height of the foot-end from the plane where the robot is located; the second determination unit is also used to determine the first position estimation parameter of the robot based on the foot-end parameters, the first posture estimation parameter and the linear acceleration.

[0132] Optionally, the device also includes: a second acquisition module, used to acquire the foot end state of the robot; a processing module, used to preprocess the foot end parameters when the foot end state is a preset state, wherein the preset state is used to characterize that the foot end is not touching the ground; a third determination module, used to determine the first position estimation parameters of the robot based on the preprocessed foot end parameters, the first posture estimation parameters and the linear acceleration.

[0133] Optionally, the first determination module includes: a third acquisition unit, used to obtain a feature set in the robot's current environment; a third determination unit, used to determine the robot's second estimated parameters based on the positioning algorithm and the feature set, wherein the second estimated parameters include: second posture estimation parameters, second position estimation parameters.

[0134] Optionally, in an embodiment of the present invention, a first estimation parameter is determined based on the motion parameter by a motion control module, a second estimation parameter is determined based on the environmental parameter by a navigation control module, control parameters of the robot are determined based on the first estimation parameter and the second estimation parameter by the navigation control module, and the motion of the robot is controlled based on the control parameters by the motion control module.

[0135] Example 3

[0136] The present application also provides a computer storage medium that can store multiple instructions, which are suitable for being loaded and executed by a processor as described above. Figure 1-Figure 4 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 1-Figure 4 The specific description of the illustrated embodiment will not be repeated here.

[0137] Example 4

[0138] According to an embodiment of the present invention, there is further provided a robot, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the control method of the robot in the above-mentioned embodiment 1.

[0139] Through the above-mentioned embodiments of the present application, the angle between the plane where the robot is located and the horizontal plane can be obtained first, and then the direction vector of the robot's movement direction on the plane can be obtained, and the deflection angle of the robot on the plane can be determined based on the direction vector and the normal vector of the plane, and the position of the robot's body in the preset coordinate system and the posture of the robot's body can be controlled according to the obtained angle between the plane and the horizontal plane and the deflection angle, so that the robot can cross obstacles while maintaining stability on the slope by adjusting the posture and position of the robot; according to the deflection angle and the above-mentioned angle value, the robot can be adjusted to remain level with the slope to ensure the robot's obstacle-crossing ability on the slope, and the robot's body can also be adjusted to be in a stable domain to ensure that the robot can walk stably on the slope, thereby solving the technical problem of low accuracy of robot autonomous positioning in related technologies.

[0140] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0141] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0142] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0144] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0145] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0146] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0147] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0148] The above are only 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 changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A robot control method, characterized in that: include: Obtain the robot's motion parameters and the environmental parameters of the current environment; Determine a first estimation parameter based on the motion parameters, wherein the first estimation parameter includes: a first posture estimation parameter, and the motion parameters include: an angular velocity and a linear acceleration of the robot at the current moment, and determine the first estimation parameter based on the motion parameters, including: multiplying the normalized linear acceleration vector in an antisymmetric form with the normalized gravity acceleration vector to determine the first feedback information of the robot, wherein the first feedback information is used to characterize the feedback information of the linear acceleration of the robot; perform time integration on the first feedback information based on an integral constant and a first period to obtain second feedback information, add the second feedback information, the integral result of the angular velocity, and the integral result of the first feedback information, and bring them into a preset formula to determine the first posture estimation parameter of the robot, wherein the first period is the change period of the robot posture, and the second feedback information is the feedback information of the robot posture, and determine the second estimation parameter based on the environmental parameters; determining a control parameter of the robot based on the first estimated parameter and the second estimated parameter; The robot movement is controlled based on the control parameters.

2. The method according to claim 1, characterized in that: Determining a control parameter of the robot based on the first estimated parameter and the second estimated parameter includes: Acquire state parameters of the robot, wherein the state parameters include: position parameters of the robot and posture parameters of the robot; Performing weighted fusion on the first estimated parameter and the second estimated parameter to obtain a target estimated parameter; The control parameter is determined based on the state parameter and the target estimated parameter.

3. The method according to claim 1, characterized in that: The first estimated parameter further includes: a first position estimated parameter, and the first estimated parameter is determined based on the motion parameter, including: Acquire foot-end parameters of the robot, wherein the foot-end parameters include at least one of the following: the position of the foot-end, the speed of the foot-end, and the height of the foot-end, wherein the height of the foot-end is the height of the foot-end from the plane where the robot is located, wherein the position of the foot-end is the position of the foot-end in the world coordinate system; Based on the foot-end parameters, the first posture estimation parameters and the linear acceleration, first position estimation parameters of the robot are determined.

4. The method according to claim 3, characterized in that: The method further comprises: Obtaining the foot end state of the robot; When the foot end state is a preset state, preprocessing the foot end parameter, wherein the preset state is used to indicate that the foot end does not touch the ground; The first position estimation parameters of the robot are determined based on the preprocessed foot end parameters, the first posture estimation parameters, and the linear acceleration.

5. The method according to claim 1, characterized in that: Determining a second estimated parameter based on the environmental parameter includes: Obtaining a feature set of the robot's current environment; Based on the positioning algorithm and the feature set, the second estimated parameters of the robot are determined, wherein the second estimated parameters include: second posture estimation parameters and second position estimation parameters.

6. The method according to claim 1, characterized in that: The first estimation parameter is determined based on the motion parameter by a motion control module, the second estimation parameter is determined based on the environmental parameter by a navigation control module, the control parameter of the robot is determined based on the first estimation parameter and the second estimation parameter by the navigation control module, and the movement of the robot is controlled based on the control parameter by the motion control module.

7. A robot control device, characterized in that: include: The acquisition module obtains the robot's motion parameters and the environmental parameters of the current environment; A first determination module determines a first estimation parameter based on the motion parameters, wherein the first estimation parameter includes: a first posture estimation parameter, and the motion parameters include: an angular velocity and a linear acceleration of the robot at a current moment, and determines the first estimation parameter based on the motion parameters, including: multiplying the normalized linear acceleration vector in an antisymmetric form with the normalized gravity acceleration vector to determine first feedback information of the robot, wherein the first feedback information is used to characterize feedback information of the robot's linear acceleration; performing time integration on the first feedback information based on an integral constant and a first period to obtain second feedback information, adding the second feedback information, an integral result of the angular velocity, and an integral result of the first feedback information, and bringing them into a preset formula to determine the first posture estimation parameter of the robot, wherein the first period is a period of change of the robot's posture, and the second feedback information is feedback information of the robot's posture, and determining the second estimation parameter based on the environmental parameters; a second determination module, determining a control parameter of the robot based on the first estimated parameter and the second estimated parameter; A control module controls the movement of the robot based on the control parameters.

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

9. A robot, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 6.