Disclosure of Invention
The invention aims to provide an exoskeleton control method, wherein a person wears an exoskeleton to move, and when the person is stumbled by an obstacle, the exoskeleton robot can automatically restore balance, so that the whole man-machine is prevented from falling down.
The technical scheme adopted by the invention for achieving the purpose is as follows:
the utility model provides a control device for tripping condition gait automatic adjustment of ectoskeleton, installs the encoder in the left and right both sides hip joint of ectoskeleton robot and left and right both sides knee joint department respectively for gather the left and right both sides hip joint angle value and the angular velocity value and the left and right both sides knee joint angle value and the angular velocity value of ectoskeleton robot wearer, install pressure sensor at the plantar and the toe of ectoskeleton robot respectively, be used for gathering the plantar pressure value and the toe pressure value of ectoskeleton robot, encoder and pressure sensor all link to each other with the controller.
A control method for automatic adjustment of a tripping condition gait of an exoskeleton, comprising the steps of:
acquiring the data of the wearers collected by the encoder and the pressure sensor;
judging the movement state of the wearer according to the wearer data;
selecting a control mode according to the movement state of the wearer;
And calculating different control amounts of the driver according to different control modes, and controlling the driving motor to control the exoskeleton robot.
The wearer data comprises left and right hip joint angle values and angular velocity values of an exoskeleton robot wearer acquired by the encoder, left and right knee joint angle values and angular velocity values of the exoskeleton robot wearer, and plantar pressure values and toe pressure values of the exoskeleton robot acquired by the pressure sensor.
The movement states of the wearer include a standing still state, a walking state, and a trip-back state.
The method for judging the motion state of the wearer according to the wearer data comprises the following steps:
setting the initial state of the exoskeleton robot to be a static standing state;
When the angular velocity value of any one joint is greater than or equal to a first threshold value, switching the exoskeleton robot to a walking state;
When the exoskeleton robot is in a walking state, and when the angular velocity value of any one joint is greater than or equal to a first threshold value and the toe pressure value is smaller than a second threshold value, the exoskeleton robot keeps in the walking state; when the angular velocity value of any one joint is greater than or equal to the first threshold value and the toe pressure value is greater than or equal to the second threshold value, the exoskeleton robot is switched to be in a tripping return state;
When the foot sole pressure value is greater than or equal to the third threshold value, the exoskeleton robot is switched to a static standing state.
The control modes comprise a follow-up mode and a power-assisted mode, wherein the follow-up mode is selected when the motion state of a wearer is a static standing state, and the power-assisted mode is selected when the motion state of the wearer is a walking state and a tripping return state.
In the power assisting mode, the wearer and the exoskeleton robot jointly drive, the wearer and the exoskeleton robot form a human-computer whole, and when the driving angle of the human-computer whole joint is inconsistent with the expected angle of the human-computer whole joint, the joint motor of the exoskeleton robot provides the required moment.
The follow-up mode adopts a torque PID control method, and specifically comprises the following steps:
Carrying out dynamic calculation on the joint angle value and the angular velocity value acquired by the encoder to obtain the actual moment of the joint of the exoskeleton robot, and obtaining the driving moment of the joint of the exoskeleton robot by the controller;
The control quantity of the driver is obtained through calculation of joint moment difference between the actual moment of the joint of the exoskeleton robot and the driving moment of the joint of the exoskeleton robot and the PID control coefficient, and then the driving motor is controlled to control the exoskeleton robot.
The power assisting mode adopts an impedance PID control method, and specifically comprises the following steps:
obtaining a man-machine integral joint driving angle according to the encoder;
Obtaining a man-machine integral joint angle difference according to the man-machine integral joint driving angle and the set man-machine integral joint expected angle;
impedance control is carried out on the angle difference of the human-machine integral joint, so that the expected moment of the human-machine integral joint is obtained;
carrying out dynamic calculation on the joint angle value and the angular velocity value acquired by the encoder to obtain a human-machine integral joint driving moment, and calculating to obtain a human-machine integral joint moment difference according to the human-machine integral joint expected moment and the human-machine integral joint driving moment;
And calculating to obtain a driver control quantity according to the man-machine integral joint moment difference and the PID control coefficient, and further controlling the driving motor to control the exoskeleton robot.
When the exoskeleton robot is in a walking state, when the toe collides with an obstacle, the controller detects that the exoskeleton is stumbled by the obstacle when the value of the toe pressure sensor is larger than or equal to a second threshold value, the controller switches the exoskeleton robot to a stumbled return state, the exoskeleton robot starts to lift feet and restore balance, namely, in a set time, the swing side hip joint continues to perform buckling motion, the swing side knee joint continues to perform buckling motion, so that the height of the feet is lifted to be higher than the obstacle, and meanwhile, the angles of the support side hip joint and the knee joint are unchanged;
When the foot is lifted to be higher than the height of the obstacle, the controller controls the foot to move forwards and gradually fall, after the foot on the swinging side is contacted with the ground, the plantar pressure value is gradually increased, when the plantar pressure value is greater than or equal to a third threshold value, the exoskeleton robot is switched to a static standing state, a follow-up control mode is adopted, at the moment, the wearer stops moving, the exoskeleton robot keeps in the static standing state, or the wearer continues to move forwards, and the exoskeleton robot is switched to a walking state.
The invention has the following beneficial effects and advantages:
1. according to the invention, the motion data of a wearer is obtained through the encoder, the plantar pressure sensor and the toe pressure sensor, the wearer is judged to be in a static standing, walking or tripping recovery state according to the motion data of the wearer, and then the corresponding control modes are selected according to the motion state, wherein the control modes comprise a follow-up mode and a power-assisted mode.
2. The invention can detect that the exoskeleton is stumbled by the obstacle through the toe pressure sensor, thereby increasing the movement obstacle detection function.
3. The invention provides a control method, which enables an exoskeleton to start to lift feet and cross an obstacle when the exoskeleton is stumbled by the obstacle, and finally achieves a self-balancing function under the stumbled condition.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
The invention provides an exoskeleton control method, as shown in fig. 2, comprising the following steps:
The method comprises the steps of acquiring wearer data acquired by an encoder, a plantar pressure sensor and a toe pressure sensor, wherein the wearer data comprises left hip joint angle values and angular velocity values acquired by the encoder, left knee joint angle values and angular velocity values acquired by the encoder, right hip joint angle values and angular velocity values acquired by the encoder, right knee joint angle values and angular velocity values acquired by the encoder, plantar pressure values acquired by the plantar pressure sensor and pressure values of collision positions of exoskeleton toes and obstacles acquired by the toe pressure sensor;
Judging the movement state of the wearer according to the data of the wearer, wherein the movement state of the wearer comprises a static standing state, a walking state and a tripping return state;
selecting corresponding control modes according to different motion states, wherein the control modes comprise a follow-up mode and a power-assisted mode, specifically, the follow-up mode is adopted when the vehicle is in a static standing state, and the power-assisted mode is adopted when the vehicle is in a walking state and a tripping return state;
transmitting control signals to the driver driving motor according to different control modes to control the exoskeleton;
further, the motion state of the wearer is determined, as shown in fig. 3, specifically:
Setting an initial state as a static standing state;
When the left hip joint angular velocity value is greater than or equal to a first threshold value, or the left knee joint angular velocity is greater than or equal to a first threshold value, or the right hip joint angular velocity is greater than or equal to a first threshold value, or the right knee joint angular velocity is greater than or equal to a first threshold value, switching the exoskeleton to a walking state;
When the exoskeleton is in a walking state, the exoskeleton keeps in the walking state when the left hip joint angular velocity value is greater than or equal to a first threshold value, or the left knee joint angular velocity is greater than or equal to the first threshold value, or the right hip joint angular velocity is greater than or equal to the first threshold value, or the right knee joint angular velocity is greater than or equal to the first threshold value, otherwise, the exoskeleton is switched to a static standing state;
When the exoskeleton is in a walking state, the exoskeleton keeps the walking state when the toe pressure value is smaller than a second threshold value, and when the toe pressure value is larger than or equal to the second threshold value, the exoskeleton is switched to a tripping return state,
When the exoskeleton is in a tripping return state, the tripping return state is maintained when the plantar pressure is smaller than a third threshold value, and when the plantar pressure value is larger than or equal to the third threshold value, the exoskeleton is switched to a static standing state.
1) Follow-up mode
In the follow-up mode, the human body actively moves and drives the exoskeleton to synchronously move together, and the motor of the exoskeleton joint outputs the moment required by the movement of the exoskeleton itself.
Further, when the human body drives the exoskeleton to move, the actual moment of the exoskeleton joint is calculated by dynamics. The controller controls the driving moment of the exoskeleton joint to enable the driving moment of the exoskeleton joint to be close to the actual moment of the exoskeleton joint.
Specifically, the follow-up mode adopts a torque PID control method:
and calculating the moment difference of the exoskeleton joints according to the actual moment of the exoskeleton joints and the driving moment of the exoskeleton joints, wherein the actual moment of the exoskeleton joints is obtained by dynamic calculation after data are measured by an encoder.
And calculating to obtain the control quantity of the driver according to the exoskeleton joint moment difference and the PID control coefficient. The PID control coefficient is given by human beings, and the driver control quantity is the driving moment increment of the exoskeleton joint.
And driving the motor to control the exoskeleton according to the driver control quantity.
2) Assistance mode
In the power-assisted mode, the human body and the exoskeleton are driven together, and the human body and the exoskeleton form a human-computer whole. When the driving angle of the human-machine integral joint is inconsistent with the expected angle of the human-machine integral joint, the exoskeleton joint motor provides the required moment.
Further, the expected angle of the human-machine integral joint is given by human and stored in the controller. When the human-machine integral motion is performed, the controller calls the expected angle of the human-machine integral joint, the expected angle is compared with the driving angle of the human-machine integral joint, the angle difference of the human-machine integral joint is obtained, the driving moment increment of the human-machine integral joint is calculated and obtained through an impedance PID control method, and the driving motor is driven to perform motion.
Specifically, the power assisting mode adopts an impedance PID control method:
And calculating the man-machine integral joint angle difference according to the man-machine integral joint expected angle and the man-machine integral joint driving angle, wherein the man-machine integral joint driving angle is measured by an encoder.
And carrying out impedance control according to the angle difference of the human-machine integral joint, and calculating to obtain the expected moment of the human-machine integral joint, wherein the impedance control rigidity coefficient and the impedance control damping coefficient are given by people.
And calculating the moment difference of the human-machine integral joint according to the expected moment of the human-machine integral joint and the driving moment of the human-machine integral joint. The man-machine integral joint driving moment is obtained by dynamic calculation after data are measured by an encoder.
And calculating to obtain the control quantity of the driver according to the moment difference of the human-machine integral joint and the PID control coefficient, wherein the PID control coefficient is given by human. The driver control quantity is the increment of the driving moment of the human-machine integral joint.
And driving the motor to control the exoskeleton by using the control amount of the driver.
Further, the static standing state, the exoskeleton is in a follow-up mode.
Further, in the walking state of the land, the exoskeleton is in a power-assisted mode, the expected angle of the exoskeleton is given by human beings and is stored in the controller, and the exoskeleton is called by the controller when in movement.
Further, in the tripping return state, the exoskeleton is in a power-assisted mode, the expected angle of the exoskeleton is given by human beings and is stored in the controller, the exoskeleton is called by the controller when in motion, and the operation posture is shown in fig. 4. When the exoskeleton is in a walking state, when the toe collides with an obstacle, and the value of the toe pressure sensor is larger than or equal to a second threshold value, the controller detects that the exoskeleton is stumbled by the obstacle, the controller switches the exoskeleton to a stumbling recovery state, the exoskeleton starts to lift feet, and balance is recovered, namely, in the time of t 1 seconds, the swing side hip joint continues to perform buckling motion, the swing side knee joint continues to perform buckling motion, so that the height of the foot is lifted to be higher than the obstacle, and meanwhile, the angles of the support side hip joint and the knee joint are unchanged.
Specifically, the time t 1 seconds of the continuous buckling movement of the swing-side hip joint and the knee joint is given by human beings, the angle of the continuous buckling movement of the swing-side hip joint and the angle of the continuous buckling movement of the swing-side knee joint are given by human beings, the angles are stored in the controller, and the controller calls the angles during the movement.
Further, when the foot is lifted to a sufficient height, the controller invokes gait planning manually specified to control the foot to move forward and gradually drop, after the foot on the swing side is contacted with the ground, the plantar pressure value gradually increases, when the plantar pressure value is greater than or equal to a third threshold value, the exoskeleton is switched to a static standing state, a follow-up control mode is adopted, at the moment, the wearer can stop moving, the exoskeleton is kept in the static standing state, the wearer can continue to move forward, and the exoskeleton is switched to a walking state.
Embodiment one:
an embodiment of the invention provides an exoskeleton control method.
Fig. 1 shows an exoskeleton robot used in the present invention, which is designed with straps at the thigh and the shank, and can fix the lower limbs of the human body to the legs of the exoskeleton robot. The two sides of the exoskeleton robot are provided with the hip joints and the knee joints which are provided with the direct current motors, and the motors are provided with the encoders which are used for detecting the motion state. The robot toe is provided with a pressure sensor for detecting collision between the toe and an obstacle and triggering a tripping return state. The sole is provided with a pressure sensor for detecting contact between the swing side and the ground in the tripping return state and triggering termination of the tripping return state. The motor can be driven by the control method provided by the invention, and when a wearer is tripped, the self-balancing function in the tripping condition is provided. An exoskeleton, which can be controlled by the exoskeleton control method according to any one of the embodiments, falls within the scope of the present embodiment.
Fig. 2 is a flowchart of an implementation of an exoskeleton control method, the flowchart including the following steps:
s1, acquiring the data of a wearer acquired by an encoder, a plantar pressure sensor and a toe pressure sensor,
In the embodiment, the wearer data comprises left hip joint angle value and angular velocity value collected by an encoder, left knee joint angle value and angular velocity value collected by an encoder, right hip joint angle value and angular velocity value collected by an encoder, right knee joint angle value and angular velocity value collected by an encoder, plantar pressure value collected by a plantar pressure sensor, and pressure value of collision part of exoskeleton toe and obstacle collected by a toe pressure sensor;
s2, judging the movement state of the wearer according to the data of the wearer, wherein the movement state of the wearer comprises a static standing state, a walking state and a tripping return state;
s3, selecting corresponding control modes according to different motion states, wherein the control modes comprise a follow-up mode and a power-assisted mode, specifically, the follow-up mode is adopted when the vehicle is in a static standing state, and the power-assisted mode is adopted when the vehicle is in a walking state and a tripping return state;
s4, sending control signals to a driver driving motor to control the exoskeleton according to different control modes;
fig. 3 is a schematic diagram of switching the movement state of the wearer in the present embodiment, that is, the movement state of the wearer is obtained according to the movement data of the wearer, and as can be seen from the figure, the initial state is set to be a standing state;
When the left hip joint angular velocity value is greater than or equal to a first threshold f 1, or the left knee joint angular velocity is greater than or equal to a first threshold f 1, or the right hip joint angular velocity is greater than or equal to a first threshold f 1, or the right knee joint angular velocity is greater than or equal to a first threshold f 1, the exoskeleton is switched to a walking state, when the exoskeleton is in the walking state, the left hip joint angular velocity value is greater than or equal to a first threshold f 1, or the left knee joint angular velocity is greater than or equal to a first threshold f 1, or the right hip joint angular velocity is greater than or equal to a first threshold f 1, or the right knee joint angular velocity is greater than or equal to a first threshold f 1, the exoskeleton remains in the walking state, otherwise the exoskeleton remains in the resting state, when the exoskeleton is in the walking state, when the toe pressure value is less than a second threshold f 2, the exoskeleton remains in the walking state, when the toe pressure value is greater than or equal to a second threshold f 2, the exoskeleton remains in the tripping state, when the toe pressure value is greater than or equal to a third threshold f is greater than or equal to a third threshold, the foot pressure value remains in the standing state, when the foot pressure value is greater than or equal to a third threshold f is greater than or equal to a threshold f 28.
In this embodiment, the first threshold f 1 to the third threshold f 3 are all values acquired according to actual actions, and can reflect that when the wearer is in different motion states, the encoder, the toe pressure sensor and the plantar pressure sensor acquire different values, and the motion state of the wearer is judged according to the acquired values, for example, the first threshold f 1 is optionally a value between 1 °/s and 5 °/s, that is, when the acquired hip joint or knee joint of the wearer is greater than or equal to the first threshold f 1, the state of the wearer is switched to be the walking state. The second threshold f 2 is optionally a value between 1n and 10n, that is, when the collected toe pressure of the wearer is greater than or equal to the second threshold f 2, the current movement state of the wearer is switched to a tripping return state. The third threshold f 3 is optionally 1% -30% of the total weight of the man-machine, that is, when the collected pressure of the sole of the swing side of the wearer is greater than or equal to the third threshold f 3 in the tripping return state, the current movement state of the wearer is switched to a static standing state, and the following control mode is entered. The above values are only illustrative, but not limiting, and any judgment value that can judge the movement state of the wearer through the above judgment process can be used as the threshold value in this embodiment.
In step S3, the control modes include a follow-up mode and a power-assisted mode, and the two control modes are specifically described below.
1) Follow-up mode
In the follow-up mode, the human body actively moves and drives the exoskeleton to synchronously move together, and the motor of the exoskeleton joint outputs the moment required by the movement of the exoskeleton itself.
Further, when the human body drives the exoskeleton to move, the actual moment of the exoskeleton joint is calculated by dynamics, and the driving moment of the exoskeleton joint is controlled, so that the driving moment of the exoskeleton joint is close to the actual moment of the exoskeleton joint.
Specifically, the follow-up mode adopts a torque PID control method:
calculating an exoskeleton joint moment difference according to the actual moment of the exoskeleton joint and the driving moment of the exoskeleton joint, wherein the exoskeleton joint moment difference is expressed as:
eET=TEa-TEd(1)
Wherein e ET represents the moment difference of the exoskeleton joint, T Ea represents the actual moment of the exoskeleton joint, the dynamic calculation is performed after the data are measured by an encoder, and T Ed represents the driving moment of the exoskeleton joint.
The control quantity of the driver is calculated by combining the exoskeleton joint moment difference e ET and the PID control coefficient, and is expressed as:
Wherein, e ET.dt represents the integral of the exoskeleton joint moment difference, The differential of the moment difference of the exoskeleton joint is represented by k p、ki、kd, the PID control coefficients are respectively the proportional, integral and differential coefficients of PID control, the proportional, integral and differential coefficients can be obtained through fitting experimental data, and u represents the control quantity of a driver, and here, the increment delta T Ed of the driving moment of the exoskeleton joint is represented by u.
And driving the motor to control the exoskeleton by using the control quantity of the driver.
2) Assistance mode
In the power-assisted mode, the human body and the exoskeleton are driven together, and the human body and the exoskeleton form a human-computer whole. When the driving angle of the human-machine integral joint is inconsistent with the expected angle of the human-machine integral joint, the exoskeleton joint motor provides the required moment.
Further, the expected angle of the human-machine integral joint is given by human and stored in the controller. When the human-machine integral motion is performed, the controller calls the expected angle of the human-machine integral joint, the expected angle is compared with the driving angle of the human-machine integral joint, the angle difference of the human-machine integral joint is obtained, the driving moment increment of the human-machine integral joint is calculated and obtained through an impedance PID control method, and the driving motor is driven to perform motion.
Specifically, the power assisting mode adopts an impedance PID control method:
calculating a man-machine overall joint angle difference according to the man-machine overall joint expected angle and the man-machine overall joint driving angle, wherein the man-machine overall joint angle difference is expressed as:
eMq=qMs-qMd(3)
Wherein e Mq represents the man-machine overall joint angle difference, q Ms represents the man-machine overall joint desired angle, which is manually specified and stored in the controller, and q Md represents the man-machine overall joint driving angle, which is measured by the encoder.
Impedance control is performed according to the angle difference e Mq of the human-machine integral joint, and the expected moment of the human-machine integral joint is calculated and expressed as:
wherein T Ms represents the expected moment of the human-machine integral joint, The differential of the angle difference of the human-machine integral joint is represented, a i represents the impedance control stiffness coefficient, b i represents the impedance control damping coefficient, and the impedance control stiffness coefficient and the impedance control damping coefficient can be obtained through fitting experimental data.
According to the man-machine integral joint expected moment T Ms and the man-machine integral joint driving moment, calculating a man-machine integral joint moment difference, which is expressed as:
eMT=TMs-TMd (5)
wherein e MT represents the moment difference of the human-machine integral joint, T Md represents the driving moment of the human-machine integral joint, and the kinetic calculation is performed after the data is measured by an encoder.
According to the man-machine integral joint moment difference e MT and the PID control coefficient, calculating a driver control quantity expressed as:
Wherein, the ≡e MT.dt represents the integral of the moment difference of the whole joint of the human machine, The differential of the moment difference of the human-machine integral joint is represented, k p、ki、kd represents PID control coefficients, namely proportional, integral and differential coefficients of PID control respectively, can be obtained through fitting experimental data, and u represents the control quantity of a driver, namely the increment delta T Md of the moment of the human-machine integral joint.
And driving the motor to control the exoskeleton by using the control quantity of the driver.
FIG. 4 is a schematic representation of a tripping return state human-machine gesture of an exoskeleton control method.
When the exoskeleton is in a walking state, the exoskeleton is in a power-assisted mode, the expected angle of the human-machine integral joint is given by human, the human-machine integral joint is stored in the controller, and the human-machine integral joint is called by the controller during movement. When the toe collides with the obstacle, the value of the toe pressure sensor is larger than or equal to a second threshold f 2, the controller detects that the exoskeleton is stumbled by the obstacle, and switches the exoskeleton to a stumbled return state, and the exoskeleton starts to lift feet to restore balance:
Setting a moment when the tripping return state starts as t 0, wherein the bending angle of the swing side hip joint is theta h0, the bending angle of the swing side knee joint is theta k0, the swing side hip joint continues to perform bending motion within t 1 seconds, the motion angle is theta h1, the swing side knee joint continues to perform bending motion, the motion angle is theta k1, the foot is lifted to be higher than an obstacle, meanwhile, the angles of the support side hip joint and the knee joint are unchanged, and the moment is set as t 2:
t2=t0+t1
at time t 2, the swing-side hip joint flexion angle is θ h2:
θh2=θh0+θh1
At time t 2, the swing-side knee joint flexion angle is θ k2:
θk2=θk0+θk1
The starting time t 0 of the tripping return state is calibrated by a controller and can be set to be 0s, the bending angle theta h0 of the hip joint at the swinging side and the bending angle theta k0 of the knee joint at the swinging side are acquired by an encoder, the continuous bending movement time t 1 seconds of the hip joint at the swinging side and the knee joint at the swinging side is given by human beings, and the continuous bending movement angle theta h1 of the hip joint at the swinging side and the continuous bending movement angle theta k1 of the knee joint at the swinging side are given by human beings.
After the swing-side hip joint and knee joint flexion movement is finished, the time reaches the time t 2, the foot is lifted to a sufficient height, and the controller calls a gait plan regulated by human, so that the foot moves forwards and gradually falls.
At time t 3, the swing leg passes over the obstacle.
When the foot on the swing side is contacted with the ground, the plantar pressure value is gradually increased, when the plantar pressure value is larger than or equal to a third threshold f 3, the moment is set to be t 4, the exoskeleton is switched to be in a static standing state, and a follow-up control mode is adopted. At this time, the wearer stops moving and the exoskeleton remains in a stationary standing state, or the wearer continues to move forward and the exoskeleton switches to a walking state.
Fig. 5 is a schematic diagram of a system structure of the present embodiment, which includes an encoder 01, a toe pressure sensor 02, a sole pressure sensor 03, a controller 04, a driver 05 and a motor 06, where the encoder 01, the toe pressure sensor 02 and the sole pressure sensor 03 collect data of a wearer in real time, the controller 04 acquires the collected data and determines a movement state of the wearer, switches the movement state of the wearer, and correspondingly matches different control modes at the same time, when the wearer is in a standing still state, the exoskeleton control selects a follow-up mode, when the wearer is in a walking or tripping return state, the power-assisted mode is selected, and the driver control amount in the different control modes is sent to the driver 05 to drive the motor 06 to move so as to realize closed-loop control of the exoskeleton.
As shown in fig. 6, a control flow chart of the present embodiment is shown, firstly, data of the wearer is collected, and the movement state of the wearer is determined.
If the robot is in a static standing state currently, follow-up control is performed, namely exoskeleton joint moment difference e ET is calculated according to exoskeleton joint actual moment T Ea and exoskeleton joint driving moment T Ed, PID control is performed according to exoskeleton joint moment difference e ET and PID control coefficients, driver control quantity u is calculated, a motor is driven according to the driver control quantity u, and control of the exoskeleton is achieved.
If the robot is in a walking or tripping return state currently, a power assisting mode is entered, namely, a rotation angle error e Mq of the human-machine integral joint is calculated according to an expected angle q Ms of the human-machine integral joint and a driving angle q Md of the human-machine integral joint, then impedance control is carried out, namely, a human-machine integral joint expected moment T Ms is calculated, a human-machine integral joint moment difference e MT is calculated according to the human-machine integral joint expected moment T Ms and a human-machine integral joint driving moment T Md, PID control is carried out according to the human-machine integral joint moment difference e MT and a PID control coefficient, a driver control quantity u is calculated, a motor is driven according to the driver control quantity u, and control of an exoskeleton is realized.
The invention adopts the joint encoder, the plantar pressure sensor and the toe pressure sensor to collect motion information, and the designed controller can drive the exoskeleton to lift feet and surmount obstacles when a wearer gets over by the obstacles, so as to realize the self-balancing function under the condition of tripping.