Robot control method, device, computer readable storage medium and robot
By calculating the force information of the robot's left and right feet, calculating the zero-moment point and updating the motion trajectory, the problem of poor stability of the bipedal robot when it is interfered by external environmental forces or the ground is uneven is solved, achieving a more stable walking.
Patent Information
- Application Number
- CN202011319782.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-23
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-11-23
AI Technical Summary
When bipedal robots encounter interference from external environmental forces or uneven ground, the system stability is poor, making it difficult to walk stably, and may even tip over.
By obtaining the force information of the robot's left and right feet, the zero-moment point of the body's center of mass is calculated, the motion trajectory is updated based on the linear inverted pendulum model, and the joint angles are adjusted in real time to improve walking stability.
When encountering interference from external environmental forces or uneven ground, the robot can maintain stable walking, significantly improving walking stability and performance capabilities.
Smart Images

Figure CN112486170B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of robotics technology, and in particular, relates to a robot control method, device, computer-readable storage medium, and robot. Background Art
[0002] In the prior art, bipedal robots often adopt a purely position-planned gait walking method. When encountering interference from various external environmental forces or an uneven ground, the system has poor stability, making it difficult to walk stably and may even topple over. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a robot control method, device, computer-readable storage medium and robot to solve the problem of poor system stability of existing bipedal robots when encountering interference from various external environmental forces or uneven ground.
[0004] A first aspect of an embodiment of the present application provides a robot control method, which may include:
[0005] Obtain the force information of the robot's left foot and right foot;
[0006] Calculating a zero moment point of the robot's body mass center according to the left foot force information and the right foot force information;
[0007] Based on a preset linear inverted pendulum model, the motion trajectory of the robot is updated according to the zero moment point of the body mass center to obtain an updated body mass center position, including: obtaining the actual position, expected position, actual speed, expected speed and expected zero moment point of the body mass center; calculating the compliant control acceleration of the robot according to the actual position, expected position, actual speed, expected speed, zero moment point and expected zero moment point of the body mass center; updating the motion trajectory of the robot according to the compliant control acceleration to obtain the updated body mass center position;
[0008] Performing inverse kinematics analysis on the updated position of the body mass center to obtain the joint angles of the left leg and the right leg of the robot;
[0009] The robot is controlled to move according to the various joint angles.
[0010] Further, the calculating of the compliant control acceleration of the robot according to the actual position, expected position, actual speed, expected speed, zero moment point and expected zero moment point of the center of mass of the body comprises:
[0011] The compliant control acceleration is calculated according to the following formula:
[0012]
[0013] Among them, x d is the desired position, x m is the actual position, is the desired speed, is the actual speed, p bxd is the desired zero moment point, p bx is the zero moment point, k bpx is the preset proportional term coefficient, k bpv is the preset damping coefficient, k bzmpx is the preset zero moment point coefficient, a b The acceleration is controlled for said compliance.
[0014] Further, the updating of the motion trajectory of the robot according to the compliance control acceleration to obtain the updated body center of mass position includes:
[0015] The motion trajectory of the robot is updated according to the following formula:
[0016] x(0)=a b
[0017]
[0018]
[0019]
[0020] Among them, a b is the compliant control acceleration, k is the number of iterations, x(k) is the center of mass position of the body at the kth iteration, is the velocity of the center of mass of the robot at the kth iteration, t is the time variable, and T is the gait period of the robot.
[0021] Further, the calculating the zero moment point of the center of mass of the robot according to the left foot force information and the right foot force information includes:
[0022] Calculating the left foot zero moment point of the robot according to the left foot force information;
[0023] Calculate the right foot zero moment point of the robot according to the right foot force information;
[0024] The zero moment point of the center of mass of the body is calculated based on the left foot zero moment point and the right foot zero moment point.
[0025] Further, the calculating the left foot zero moment point of the robot according to the left foot force information includes:
[0026] The left foot zero moment point is calculated according to the following formula:
[0027] p lx =(-τ ly -f lx d) / f lz
[0028] p ly =(-τ lx -f ly d) / f lz
[0029] p l =[p lx p ly 0] T
[0030] Where, d is the preset distance from the sensor to the sole of the foot, p lx is the coordinate of the left foot zero moment point on the x-axis, p ly is the coordinate of the left foot zero moment point on the y-axis, f lx is the force component of the left foot force information on the x-axis, f ly is the force component of the left foot force information on the y-axis, f lz is the force component of the left foot force information on the z-axis, τ lx is the torque component of the left foot force information on the x-axis, τ ly is the moment component of the left foot force information on the y-axis, p l is the left foot zero moment point;
[0031] Calculating the right foot zero moment point of the robot according to the right foot force information includes:
[0032] The right foot zero moment point is calculated according to the following formula:
[0033] p rx =(-τ ry -f rx d) / f rz
[0034] p ry =(-τ rx -f ry d) / f rz
[0035] p r =[p rx p ry 0] T
[0036] Among them, p rx is the coordinate of the right foot zero moment point on the x-axis, pry is the coordinate of the right foot zero moment point on the y-axis, f rx is the force component of the right foot force information on the x-axis, f ry is the force component of the right foot force information on the y-axis, f rz is the force component of the right foot force information on the z-axis, τ rx is the torque component of the right foot force information on the x-axis, τ ry is the moment component of the right foot force information on the y-axis, p r is the zero moment point of the right foot.
[0037] Further, the calculating the zero moment point of the center of mass of the body according to the left foot zero moment point and the right foot zero moment point comprises:
[0038] The zero moment point of the center of mass of the body is calculated according to the following formula:
[0039]
[0040]
[0041] p b =[p bx p by 0] T
[0042] Among them, l x is the distance between the center of mass of the body and the sensor on the x-axis, l y is the distance between the center of mass of the body and the sensor on the x-axis, p bx is the coordinate of the zero moment point of the center of mass of the body on the x-axis, p by is the coordinate of the zero moment point on the y-axis of the center of mass of the body, p b is the zero moment point of the center of mass of the body.
[0043] A second aspect of the embodiments of the present application provides a robot control device, which may include:
[0044] A force information acquisition module is used to obtain the force information of the left foot and the right foot of the robot;
[0045] A zero moment point calculation module, used to calculate the zero moment point of the center of mass of the robot according to the left foot force information and the right foot force information;
[0046] A motion trajectory updating module is used to update the motion trajectory of the robot according to the zero moment point of the body mass center based on a preset linear inverted pendulum model to obtain an updated body mass center position, including: obtaining the actual position, expected position, actual speed, expected speed and expected zero moment point of the body mass center; calculating the compliant control acceleration of the robot according to the actual position, expected position, actual speed, expected speed, zero moment point and expected zero moment point of the body mass center; updating the motion trajectory of the robot according to the compliant control acceleration to obtain the updated body mass center position;
[0047] An inverse kinematics analysis module, used to perform inverse kinematics analysis on the updated position of the body mass center to obtain the joint angles of the left leg and the right leg of the robot;
[0048] A motion control module is used to control the robot to move according to the various joint angles.
[0049] Furthermore, the acceleration calculation unit is specifically used to calculate the compliance control acceleration according to the following formula:
[0050]
[0051] Among them, x d is the desired position, x m is the actual position, is the desired speed, is the actual speed, p bxd is the desired zero moment point, p bx is the zero moment point, k bpx is the preset proportional term coefficient, k bpv is the preset damping coefficient, k bzmpx is the preset zero moment point coefficient, a b The acceleration is controlled for said compliance.
[0052] Furthermore, the motion trajectory updating unit is specifically used to update the motion trajectory of the robot according to the following formula:
[0053] x(0)=a b
[0054]
[0055]
[0056]
[0057] Among them, a bis the compliant control acceleration, k is the number of iterations, x(k) is the center of mass position of the body at the kth iteration, is the velocity of the center of mass of the robot at the kth iteration, t is the time variable, and T is the gait period of the robot.
[0058] Furthermore, the zero moment point calculation module may include:
[0059] A left foot zero moment point calculation unit, used for calculating the left foot zero moment point of the robot according to the left foot force information;
[0060] A right foot zero moment point calculation unit, used for calculating the right foot zero moment point of the robot according to the right foot force information;
[0061] A center of mass zero moment point calculation unit is used to calculate the zero moment point of the center of mass of the body according to the left foot zero moment point and the right foot zero moment point.
[0062] Further, the left foot zero moment point calculation unit is specifically used to calculate the left foot zero moment point according to the following formula:
[0063] p lx =(-τ ly -f lx d) / f lz
[0064] p ly =(-τ lx -f ly d) / f lz
[0065] p l =[p lx p ly 0] T
[0066] Where, d is the preset distance from the sensor to the sole of the foot, p lx is the coordinate of the left foot zero moment point on the x-axis, p ly is the coordinate of the left foot zero moment point on the y-axis, f lx is the force component of the left foot force information on the x-axis, f ly is the force component of the left foot force information on the y-axis, f lz is the force component of the left foot force information on the z-axis, τ lx is the torque component of the left foot force information on the x-axis, τ ly is the moment component of the left foot force information on the y-axis, p l is the left foot zero moment point;
[0067] Further, the right foot zero moment point calculation unit is specifically used to calculate the right foot zero moment point according to the following formula:
[0068] p rx =(-τ ry -f rx d) / f rz
[0069] p ry =(-τ rx -f ry d) / f rz
[0070] p r =[p rx p ry 0] T
[0071] Among them, p rx is the coordinate of the right foot zero moment point on the x-axis, p ry is the coordinate of the right foot zero moment point on the y-axis, f rx is the force component of the right foot force information on the x-axis, f ry is the force component of the right foot force information on the y-axis, f rz is the force component of the right foot force information on the z-axis, τ rx is the torque component of the right foot force information on the x-axis, τ ry is the moment component of the right foot force information on the y-axis, p r is the zero moment point of the right foot.
[0072] Furthermore, the centroid zero moment point calculation unit is specifically used to calculate the zero moment point of the centroid of the body according to the following formula:
[0073]
[0074]
[0075] p b =[p bx p by 0] T
[0076] Among them, l x is the distance between the center of mass of the body and the sensor on the x-axis, l y is the distance between the center of mass of the body and the sensor on the x-axis, p bx is the coordinate of the zero moment point of the center of mass of the body on the x-axis, p by is the coordinate of the zero moment point on the y-axis of the center of mass of the body, p bis the zero moment point of the center of mass of the body.
[0077] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned robot control methods are implemented.
[0078] A fourth aspect of an embodiment of the present application provides a robot, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned robot control methods when executing the computer program.
[0079] A fifth aspect of an embodiment of the present application provides a computer program product. When the computer program product runs on a robot, the robot executes the steps of any one of the above-mentioned robot control methods.
[0080] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application obtain the force information of the robot's left foot and right foot; calculate the zero torque point of the robot's body center of mass based on the left foot force information and the right foot force information; based on the preset linear inverted pendulum model, update the robot's motion trajectory based on the zero torque point of the body center of mass to obtain an updated body center of mass position; perform inverse kinematics analysis on the updated body center of mass position to obtain the various joint angles of the robot's left leg and right leg; and control the robot to move according to the various joint angles. Through the embodiments of the present application, the joint angles of the movement can be adjusted in real time based on the robot's force information based on the linear inverted pendulum model, which is beneficial to improving the robot's stability during walking. Even when encountering interference from various external environmental forces or uneven ground, the robot can still walk stably, greatly improving the robot's performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0082] Figure 1 This is a flow chart of an embodiment of a robot balance control method in an embodiment of the present application;
[0083] Figure 2 Schematic diagram of sensor settings;
[0084] Figure 3It is a schematic diagram of the force information of the left foot and the force information of the right foot;
[0085] Figure 4 It is a schematic diagram of the specific force condition of the six-dimensional force sensor;
[0086] Figure 5 A schematic flow chart of calculating the zero moment point of the robot's body mass center based on the left foot force information and the right foot force information;
[0087] Figure 6 is a schematic diagram of a linear inverted pendulum model;
[0088] Figure 7 A schematic flow chart for updating the motion trajectory of the robot according to the zero moment point of the center of mass of the body;
[0089] Figure 8 This is a structural diagram of an embodiment of a robot control device in an embodiment of the present application;
[0090] Fig. 9 This is a schematic block diagram of a robot in an embodiment of the present application. DETAILED DESCRIPTION
[0091] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0092] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0093] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0094] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0095] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0096] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0097] See also Figure 1 , an embodiment of a robot control method in the embodiment of the present application may include:
[0098] Step S101, obtaining the force information of the left foot and the right foot of the robot.
[0099] In the embodiments of the present application, Figure 2 As shown, sensors can be respectively arranged at the locations where the two feet and legs of the robot are connected, so as to obtain the force information of the left foot and the right foot of the robot.
[0100] Preferably, the sensor may be a six-dimensional force sensor capable of simultaneously detecting Figure 3 The force information of the left foot and the force information of the right foot in the three-dimensional space in the plantar coordinate system shown in FIG. Figure 4 As shown in Figure 2, the left foot force information is included in the three coordinate axes (i.e. Figure 3 The force components and moment components in the x-axis, y-axis and z-axis directions (shown in FIG. 1 ), and the force information on the right foot also includes the force components and moment components in the directions of the three coordinate axes.
[0101] Here, the left foot force information is recorded as:
[0102] F l =[f lx f ly f lz τ lx τ ly τ lz ] T
[0103] Among them, f lx is the force component of the left foot force information on the x-axis, f ly is the force component of the left foot force information on the y-axis, f lz is the force component of the left foot force information on the z-axis, τ lxis the torque component of the left foot force information on the x-axis, τ ly is the torque component of the left foot force information on the y-axis, τ lz is the torque component of the left foot force information on the z-axis.
[0104] The right foot force information is recorded as:
[0105] F r =[f rx f ry f rz τ rx τ ry τ rz ] T
[0106] Among them, f rx is the force component of the right foot force information on the x-axis, f ry is the force component of the right foot force information on the y-axis, f rz is the force component of the right foot force information on the z-axis, τ rx is the torque component of the right foot force information on the x-axis, τ ry is the moment component of the right foot force information on the y-axis, τ rz is the torque component of the right foot force information on the z-axis.
[0107] Step S102: Calculate the zero moment point of the center of mass of the robot according to the left foot force information and the right foot force information.
[0108] like Figure 5 As shown, step S102 may specifically include the following steps:
[0109] Step S1021, calculating the left foot zero moment point (Zero Moment Point, ZMP) of the robot according to the left foot force information.
[0110] Specifically, the left foot zero moment point can be calculated according to the following formula:
[0111] p lx =(-τ ly -f lx d) / f lz
[0112] p ly =(-τ lx -f ly d) / f lz
[0113] p l =[p lx p ly 0]T
[0114] Where, d is the distance from the sensor to the sole of the foot, p lx is the coordinate of the left foot zero moment point on the x-axis, p ly is the coordinate of the left foot zero moment point on the y-axis, p l is the zero moment point of the left foot.
[0115] Step S1022: Calculate the right foot zero moment point of the robot according to the right foot force information.
[0116] Specifically, the right foot zero moment point can be calculated according to the following formula:
[0117] p rx =(-τ ry -f rx d) / f rz
[0118] p ry =(-τ rx -f ry d) / f rz
[0119] p r =[p rx p ry 0] T
[0120] Among them, p rx is the coordinate of the right foot zero moment point on the x-axis, p ry is the coordinate of the right foot zero moment point on the y-axis, p r is the zero moment point of the right foot.
[0121] Step S1023, calculating the zero moment point of the center of mass of the body according to the left foot zero moment point and the right foot zero moment point.
[0122] Specifically, the zero moment point of the center of mass of the body can be calculated according to the following formula:
[0123]
[0124]
[0125] p b =[p bx p by 0] T
[0126] Among them, l x is the distance between the center of mass of the body and the sensor on the x-axis, l yis the distance between the center of mass of the body and the sensor on the x-axis, p bx is the coordinate of the zero moment point of the center of mass of the body on the x-axis, p by is the coordinate of the zero moment point on the y-axis of the center of mass of the body, p b is the zero moment point of the center of mass of the body.
[0127] Step S103: Based on a preset linear inverted pendulum model, the motion trajectory of the robot is updated according to the zero moment point of the center of mass of the body to obtain an updated center of mass position of the body.
[0128] In order to make the robot better adapt to different external interferences, a compliant control algorithm based on a linear inverted pendulum model is adopted in the embodiment of the present application, that is, based on Figure 6 The motion law of the linear inverted pendulum model shown in the figure is used to design a spring mass block model in the mass module to achieve compliant control of the body.
[0129] The force analysis of the linear inverted pendulum model is:
[0130] F=k(0-x)
[0131] Among them, x is the deformation of the spring, k is the elastic coefficient of the spring, 0 means that the deformation of the spring of the linear inverted pendulum model should be 0 under normal movement, and F is the force acting on the linear inverted pendulum model.
[0132] In order to better implement the method in the robot, the force can be represented by a zero moment point. Then step S103 can specifically include the following: Figure 7 Steps shown:
[0133] Step S1031, obtaining the actual position, expected position, actual speed, expected speed and expected zero moment point of the center of mass of the body.
[0134] Step S1032, calculating the compliant control acceleration of the robot according to the actual position, expected position, actual speed, expected speed, zero torque point and expected zero torque point of the body center of mass.
[0135] Specifically, the compliance control acceleration can be calculated according to the following formula:
[0136]
[0137] Among them, x d is the desired position, x m is the actual position, is the desired speed, is the actual speed, p bxd is the desired zero moment point, p bxis the zero moment point, k bpx is the preset proportional term coefficient, k bpv is the preset damping coefficient, k bzmpx is the preset zero moment point coefficient, a b It should be noted that, since the control process on the x-axis is similar to the control process on the y-axis, in the embodiment of the present application, only the control process on the x-axis is used as an example for explanation. Therefore, the physical quantities in the previous formula and subsequent formulas are all components on the x-axis, and the control process on the y-axis can refer to the control process on the x-axis, and only the corresponding physical quantities need to be replaced by the components on the y-axis.
[0138] Step S1033: updating the motion trajectory of the robot according to the compliance control acceleration to obtain the updated center of mass position of the robot.
[0139] Specifically, the motion trajectory of the robot can be updated according to the following formula:
[0140] x(0)=a b
[0141]
[0142]
[0143]
[0144] Where k is the number of iterations, x(k) is the centroid position of the body at the kth iteration, is the velocity of the center of mass of the robot at the kth iteration, t is the time variable, and T is the gait period of the robot.
[0145] Step S104: Perform inverse kinematics analysis on the updated position of the body mass center to obtain the joint angles of the left leg and the right leg of the robot.
[0146] Inverse kinematics analysis is an analysis method commonly used in the existing field of robotics technology. For details, please refer to any inverse kinematics analysis process in the prior art, and the embodiments of the present application will not be described in detail.
[0147] The joint angles of the left leg include six joint angles: the pitch angle of the left hip joint, the yaw angle of the left hip joint, the roll angle of the left hip joint, the pitch angle of the left knee joint, the pitch angle of the left ankle joint and the roll angle of the left ankle joint, which are recorded as: θ l =[θ l1 θ l2 θ l3 θ l4 θ l5 θl6 ] T .
[0148] The joint angles of the right leg include six joint angles: the pitch angle of the right leg hip joint, the yaw angle of the right leg hip joint, the roll angle of the right leg hip joint, the pitch angle of the right leg knee joint, the pitch angle of the right leg ankle joint and the roll angle of the right leg ankle joint, which are recorded as: θ r =[θ r1 θ r2 θ r3 θ r4 θ r5 θ r6 ] T .
[0149] Step S105: controlling the robot to move according to the joint angles.
[0150] After calculating the joint angles of the left leg and the right leg of the robot, the robot can be controlled to move according to the joint angles, thereby achieving compliant control of the robot body.
[0151] In summary, the embodiments of the present application obtain the force information of the left foot and the right foot of the robot; calculate the zero torque point of the center of mass of the robot's body according to the force information of the left foot and the force information of the right foot; based on the preset linear inverted pendulum model, update the motion trajectory of the robot according to the zero torque point of the center of mass of the body to obtain the updated center of mass position of the body; perform inverse kinematics analysis on the updated center of mass position of the body to obtain the various joint angles of the left leg and the right leg of the robot; control the robot to move according to the various joint angles. Through the embodiments of the present application, the joint angles of the movement can be adjusted in real time according to the force information of the robot based on the linear inverted pendulum model, which is conducive to improving the stability of the robot during walking. Even when encountering interference from various external environmental forces or uneven ground, the robot can still walk stably, which greatly improves the performance of the robot.
[0152] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0153] Corresponding to a robot control method described in the above embodiment, Figure 8 A structural diagram of an embodiment of a robot control device provided in an embodiment of the present application is shown.
[0154] In this embodiment, a robot control device may include:
[0155] A force information acquisition module 801 is used to acquire the force information of the left foot and the right foot of the robot;
[0156] A zero moment point calculation module 802 is used to calculate the zero moment point of the center of mass of the robot according to the left foot force information and the right foot force information;
[0157] A motion trajectory updating module 803 is used to update the motion trajectory of the robot according to the zero moment point of the center of mass of the body based on a preset linear inverted pendulum model to obtain an updated center of mass position of the body;
[0158] An inverse kinematics analysis module 804 is used to perform inverse kinematics analysis on the updated body mass center position to obtain the joint angles of the left leg and the right leg of the robot;
[0159] The motion control module 805 is used to control the robot to move according to the joint angles.
[0160] Furthermore, the motion trajectory updating module may include:
[0161] A parameter acquisition unit, used to acquire the actual position, expected position, actual speed, expected speed and expected zero moment point of the center of mass of the body;
[0162] an acceleration calculation unit, for calculating the compliant control acceleration of the robot according to the actual position, expected position, actual speed, expected speed, zero moment point and expected zero moment point of the center of mass of the body;
[0163] A motion trajectory updating unit is used to update the motion trajectory of the robot according to the compliance control acceleration to obtain the updated body center of mass position.
[0164] Furthermore, the acceleration calculation unit is specifically used to calculate the compliance control acceleration according to the following formula:
[0165]
[0166] Among them, x d is the desired position, x m is the actual position, is the desired speed, is the actual speed, p bxd is the desired zero moment point, p bx is the zero moment point, k bpx is the preset proportional term coefficient, k bpv is the preset damping coefficient, k bzmpx is the preset zero moment point coefficient, a b The acceleration is controlled for said compliance.
[0167] Furthermore, the motion trajectory updating unit is specifically used to update the motion trajectory of the robot according to the following formula:
[0168] x(0)=a b
[0169]
[0170]
[0171]
[0172] Among them, a b is the compliant control acceleration, k is the number of iterations, x(k) is the center of mass position of the body at the kth iteration, is the velocity of the center of mass of the robot at the kth iteration, t is the time variable, and T is the gait period of the robot.
[0173] Furthermore, the zero moment point calculation module may include:
[0174] A left foot zero moment point calculation unit, used for calculating the left foot zero moment point of the robot according to the left foot force information;
[0175] A right foot zero moment point calculation unit, used for calculating the right foot zero moment point of the robot according to the right foot force information;
[0176] A center of mass zero moment point calculation unit is used to calculate the zero moment point of the center of mass of the body according to the left foot zero moment point and the right foot zero moment point.
[0177] Further, the left foot zero moment point calculation unit is specifically used to calculate the left foot zero moment point according to the following formula:
[0178] p lx =(-τ ly -f lx d) / f lz
[0179] p ly =(-τ lx -f ly d) / f lz
[0180] p l =[p lx p ly 0] T
[0181] Where, d is the preset distance from the sensor to the sole of the foot, p lx is the coordinate of the left foot zero moment point on the x-axis, ply is the coordinate of the left foot zero moment point on the y-axis, f lx is the force component of the left foot force information on the x-axis, f ly is the force component of the left foot force information on the y-axis, f lz is the force component of the left foot force information on the z-axis, τ lx is the torque component of the left foot force information on the x-axis, τ ly is the moment component of the left foot force information on the y-axis, p l is the left foot zero moment point;
[0182] Further, the right foot zero moment point calculation unit is specifically used to calculate the right foot zero moment point according to the following formula:
[0183] p rx =(-τ ry -f rx d) / f rz
[0184] p ry =(-τ rx -f ry d) / f rz
[0185] p r =[p rx p ry 0] T
[0186] Among them, p rx is the coordinate of the right foot zero moment point on the x-axis, p ry is the coordinate of the right foot zero moment point on the y-axis, f rx is the force component of the right foot force information on the x-axis, f ry is the force component of the right foot force information on the y-axis, f rz is the force component of the right foot force information on the z-axis, τ rx is the torque component of the right foot force information on the x-axis, τ ry is the moment component of the right foot force information on the y-axis, p r is the zero moment point of the right foot.
[0187] Furthermore, the centroid zero moment point calculation unit is specifically used to calculate the zero moment point of the centroid of the body according to the following formula:
[0188]
[0189]
[0190] pb =[p bx p by 0] T
[0191] Among them, l x is the distance between the center of mass of the body and the sensor on the x-axis, l y is the distance between the center of mass of the body and the sensor on the x-axis, p bx is the coordinate of the zero moment point of the center of mass of the body on the x-axis, p by is the coordinate of the zero moment point on the y-axis of the center of mass of the body, p b is the zero moment point of the center of mass of the body.
[0192] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0193] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0194] Fig. 9 A schematic block diagram of a robot provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0195] like Fig. 9 As shown, the robot 9 of this embodiment includes: a processor 90, a memory 91, and a computer program 92 stored in the memory 91 and executable on the processor 90. When the processor 90 executes the computer program 92, the steps in the above-mentioned robot control method embodiments are implemented, for example Figure 1 Alternatively, when the processor 90 executes the computer program 92, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 8 The functions of modules 801 to 805 are shown.
[0196] Exemplarily, the computer program 92 may be divided into one or more modules / units, which are stored in the memory 91 and executed by the processor 90 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 92 in the robot 9.
[0197] Those skilled in the art will understand that Fig. 9It is only an example of the robot 9 and does not constitute a limitation of the robot 9. The robot 9 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the robot 9 may also include input and output devices, network access devices, buses, etc.
[0198] The processor 90 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0199] The memory 91 may be an internal storage unit of the robot 9, such as a hard disk or memory of the robot 9. The memory 91 may also be an external storage device of the robot 9, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the robot 9. Further, the memory 91 may also include both an internal storage unit of the robot 9 and an external storage device. The memory 91 is used to store the computer program and other programs and data required by the robot 9. The memory 91 may also be used to temporarily store data that has been output or is to be output.
[0200] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0201] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0202] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0203] In the embodiments provided in the present application, it should be understood that the disclosed devices / robots and methods can be implemented in other ways. For example, the device / robot embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0204] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0205] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0206] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0207] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A robot control method, characterized in that: include: Obtain the force information of the robot's left foot and right foot; Calculating a zero moment point of the robot's body mass center according to the left foot force information and the right foot force information; Based on a preset linear inverted pendulum model, the motion trajectory of the robot is updated according to the zero moment point of the body mass center to obtain an updated body mass center position, including: obtaining the actual position, expected position, actual speed, expected speed and expected zero moment point of the body mass center; calculating the compliant control acceleration of the robot according to the actual position, expected position, actual speed, expected speed, zero moment point and expected zero moment point of the body mass center; updating the motion trajectory of the robot according to the compliant control acceleration to obtain the updated body mass center position; Performing inverse kinematics analysis on the updated position of the body mass center to obtain the joint angles of the left leg and the right leg of the robot; The robot is controlled to move according to the various joint angles.
2. The robot control method according to claim 1, characterized in that: The step of calculating the compliant control acceleration of the robot according to the actual position, expected position, actual speed, expected speed, zero moment point and expected zero moment point of the center of mass of the robot comprises: The compliant control acceleration is calculated according to the following formula: Among them, x d is the desired position, x m is the actual position, is the desired speed, is the actual speed, p bxd is the desired zero moment point, p bx is the zero moment point, k bpx is the preset proportional term coefficient, k bpv is the preset damping coefficient, k bzmpx is the preset zero moment point coefficient, a b The acceleration is controlled for said compliance.
3. The robot control method according to claim 1, characterized in that: The updating of the motion trajectory of the robot according to the compliance control acceleration to obtain the updated body center of mass position includes: The motion trajectory of the robot is updated according to the following formula: x(0)=a b Among them, a b is the compliant control acceleration, k is the number of iterations, x(k) is the center of mass position of the body at the kth iteration, is the velocity of the center of mass of the robot at the kth iteration, t is the time variable, and T is the gait period of the robot.
4. The robot control method according to any one of claims 1 to 3, characterized in that: The calculating the zero moment point of the center of mass of the robot according to the left foot force information and the right foot force information comprises: Calculating the left foot zero moment point of the robot according to the left foot force information; Calculate the right foot zero moment point of the robot according to the right foot force information; The zero moment point of the center of mass of the body is calculated based on the left foot zero moment point and the right foot zero moment point.
5. The robot control method according to claim 4, characterized in that: The calculating the left foot zero moment point of the robot according to the left foot force information includes: The left foot zero moment point is calculated according to the following formula: p lx =(-τ ly -f lx d) / f lz p ly =(-τ lx -f ly d) / f lz p l =[p lx p ly 0] T Where, d is the preset distance from the sensor to the sole of the foot, p lx is the coordinate of the left foot zero moment point on the x-axis, p ly is the coordinate of the left foot zero moment point on the y-axis, f lx is the force component of the left foot force information on the x-axis, f ly is the force component of the left foot force information on the y-axis, f lz is the force component of the left foot force information on the z-axis, τ lx is the torque component of the left foot force information on the x-axis, τ ly is the moment component of the left foot force information on the y-axis, p l is the left foot zero moment point; Calculating the right foot zero moment point of the robot according to the right foot force information includes: The right foot zero moment point is calculated according to the following formula: p rx =(-τ ry -f rx d) / f rz p ry =(-τ rx -f ry d) / f rz p r =[p rx p ry 0] T Among them, p rx is the coordinate of the right foot zero moment point on the x-axis, p ry is the coordinate of the right foot zero moment point on the y-axis, f rx is the force component of the right foot force information on the x-axis, f ry is the force component of the right foot force information on the y-axis, f rz is the force component of the right foot force information on the z-axis, τ rx is the torque component of the right foot force information on the x-axis, τ ry is the moment component of the right foot force information on the y-axis, p r is the zero moment point of the right foot.
6. The robot control method according to claim 5, characterized in that: The calculating the zero moment point of the center of mass of the body according to the left foot zero moment point and the right foot zero moment point comprises: The zero moment point of the center of mass of the body is calculated according to the following formula: p b =[p bx p by 0] T Among them, l x is the distance between the center of mass of the body and the sensor on the x-axis, l y is the distance between the center of mass of the body and the sensor on the x-axis, p bx is the coordinate of the zero moment point of the center of mass of the body on the x-axis, p by is the coordinate of the zero moment point on the y-axis of the center of mass of the body, p b is the zero moment point of the center of mass of the body.
7. A robot control device, characterized in that: include: A force information acquisition module is used to obtain the force information of the left foot and the right foot of the robot; A zero moment point calculation module, used to calculate the zero moment point of the center of mass of the robot according to the left foot force information and the right foot force information; A motion trajectory updating module is used to update the motion trajectory of the robot according to the zero moment point of the body mass center based on a preset linear inverted pendulum model to obtain an updated body mass center position, including: obtaining the actual position, expected position, actual speed, expected speed and expected zero moment point of the body mass center; calculating the compliant control acceleration of the robot according to the actual position, expected position, actual speed, expected speed, zero moment point and expected zero moment point of the body mass center; updating the motion trajectory of the robot according to the compliant control acceleration to obtain the updated body mass center position; An inverse kinematics analysis module, used to perform inverse kinematics analysis on the updated position of the body mass center to obtain the joint angles of the left leg and the right leg of the robot; A motion control module is used to control the robot to move according to the various joint angles.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the robot control method according to any one of claims 1 to 6 are implemented.
9. A robot comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the robot control method according to any one of claims 1 to 6 are implemented.
