Disclosure of Invention
Aiming at the defects in the prior art, the pedestrian autonomous navigation method based on the millimeter wave radar and the inertia measurement unit solves the problem that the existing inertia navigation system can generate accumulated errors.
In order to achieve the purpose of the invention, the invention adopts the technical scheme that:
the method for autonomous navigation of the pedestrian based on the millimeter wave radar and the inertial measurement unit comprises the following steps:
s1, installing an inertia measurement unit on each foot, and installing a millimeter wave radar on any foot;
s2, acquiring step length information of the pedestrian through a millimeter wave radar; acquiring fuzzy position information of each foot of the pedestrian by using the current position information as a reference through an inertial measurement unit;
s3, correcting and fusing the fuzzy position information of the two feet of the pedestrian by taking the step length information as the horizontal observation quantity of a Kalman filter for multi-sensor fusion to obtain fused position information;
and S4, taking the fused information as the specific position information of the pedestrian, judging whether to continue navigation, if so, returning to the step S2, and if not, ending the navigation.
Further, the specific method for acquiring the step size information of the pedestrian by the millimeter wave radar in step S2 includes the following sub-steps:
s2-1-1, transmitting signals through a millimeter wave radar and receiving the reflected signals;
s2-1-2, traversing each detected target according to the reflected signal, and acquiring the speed, the distance and the echo power of each detected target;
s2-1-3, removing the target with the speed of 0, removing the target with the distance greater than a first threshold value, and removing the target with the echo power less than a second threshold value;
s2-1-4, in keeping with the goal, according to the formula:
taking the normalized echo power as weight, and carrying out weighted average on each detected target at present to obtain step length information R of the pedestrian; wherein
The distance of the retained ith target;
the echo power of the ith target is retained.
Further, the specific method for acquiring the speed and the distance of each detected target in S2-1-2 is as follows:
and mixing the reflected signals to obtain the frequency Fs of the intermediate frequency signals, according to a formula:
obtaining the distance d of a target distance radar; arranging the obtained distances d according to rows, performing fast Fourier transform on each row of the arranged matrix, taking the rows of the matrix obtained after the transform as distance values, and taking the rows of the matrix obtained after the transform as speed values; wherein c is the speed of light; s is the rate of change of the signal frequency with time.
Further, the first threshold is 0.8 times the height of the pedestrian; the second threshold value is one thousandth of the transmitting power of the millimeter wave radar.
Further, the specific method for acquiring the fuzzy position information of each foot of the pedestrian through the inertial measurement unit in the step S2 includes the following sub-steps:
s2-2-1, establishing a body coordinate system of each foot by taking the position of the inertial measurement unit installed in each foot as a coordinate origin, reading data of a gyroscope in the inertial measurement unit, and according to a formula:
Ct+1=Ct(2I3×3+ΩtΔt)(2I3×3-ΩtΔt)-1
acquiring an attitude matrix of each foot at the moment of t + 1; wherein C istIs the attitude matrix of the foot at time t; ct+1The attitude matrix of the foot at time t + 1; i is3×3Is a 3 × 3 identity matrix; omegatAn antisymmetric matrix of the foot angular rate at time t; delta t is the interval duration of adjacent moments; omegax、ωyAnd ωzThe angular rates in the x-axis direction, the y-axis direction and the z-axis direction read by the foot gyroscope at the moment t are respectively;
s2-2-2, establishing an inertial navigation coordinate system by taking the human body center of the pedestrian as the origin of coordinates, acquiring data of an accelerometer in an inertial measurement unit, and according to a formula:
pt+1=pt+vt+1Δt
acquiring fuzzy position information of each foot at the moment of t + 1; wherein
The acceleration of the foot at the moment t under the inertial navigation coordinate system;
the acceleration of the foot in the body coordinate system at the moment t under the system is obtained; v. of
tThe velocity of the foot at time t; v. of
t+1The velocity of the foot at time t + 1; p is a radical of
tPosition information of the foot at time t; p is a radical of
t+1The fuzzy position information of the foot at the time t + 1.
Further, the specific method of step S3 includes the following sub-steps:
s3-1, according to the formula
Xa0=(Ca0,pa0,va0)T,Xb0=(Cb0,pb0,vb0)T
Respectively obtaining state vectors X of two feet of a pedestrian at t +1 momenta0And Xb0(ii) a Wherein C isa0、pa0And va0Respectively setting an attitude matrix, position information and speed corresponding to a time t +1 without setting a millimeter wave radar; cb0、pb0And vb0Respectively setting an attitude matrix, position information and speed corresponding to a foot t +1 moment of the millimeter wave radar;
s3-2, according to the formula:
Pt+1=FtPtFt T+Q
updating an error covariance matrix corresponding to the t +1 moment of each foot; wherein P is
t+1The error covariance matrix of the foot at time t + 1; p
tAn error covariance matrix of the foot at time t; f
tA state transition matrix at time t; q is state transition noise; (.)
TIs the transposition of the matrix; s
tThe acceleration of the inertia measurement unit at the moment t;
the acceleration of the inertial measurement unit in the x-axis direction at the moment t is measured;
the acceleration of the inertia measurement unit in the y-axis direction at the moment t;
the acceleration of the inertia measurement unit in the z-axis direction at the moment t; 0
3×3A zero matrix of 3 × 3;
s3-3, judging whether the current speed is 0, if so, entering the step S3-4, otherwise, entering the step S3-7;
s3-4, according to the formula:
Kt+1=Pt+1HT(HPt+1HT+M)-1
H={03×3 03×3 I3×3}
respectively obtaining Kalman gains K of two feet at t +1 momentt+1(ii) a The method comprises the following steps that H is an observation matrix, the positions of two zero matrixes in H respectively correspond to the positions of an attitude matrix and position information in an observed state vector at the moment of t +1 of a foot, and a unit matrix in H corresponds to the position information of speed in the observed state vector at the moment of t +1 of the foot; m is observation noise;
s3-5, according to the formula:
P’t+1=(I9×9-Kt+1H)Pt+1
correcting the error covariance matrix of each foot at the moment of t +1 to obtain a corrected error covariance matrix P'; wherein P't+1The corrected error covariance matrix corresponding to the foot at the time t + 1; i is9×9Is a 9 × 9 identity matrix;
s3-6, according to the formula:
ε=(εc,εp,εv)T=Kt+1·vt+1
C't+1=(2I3×3+ε’cΔt)(2I3×3-ε’cΔt)-1Ct+1
p’t+1=pt+1-εp
v’t+1=vt+1-εv
Xa1=(Ca1,pa1,va1)T,Xb1=(Cb1,pb1,vb1)T
correcting the attitude matrix C of the foot where the inertial measurement unit is located at the moment t +1t+1Position information p of the foot where the inertial measurement unit is locatedt+1And the velocity v of the foot on which the inertial measurement unit is locatedt+1And updating the state vector of the foot at the moment t +1 to respectively obtain a posture matrix C 'of the foot where the inertial measurement unit is located after correction't+1And position information p 'of the foot where the corrected inertia measurement unit is located't+1And the velocity v 'of the foot where the corrected inertia measurement unit is located't+1And an updated state vector Xa1And Xb1(ii) a Wherein epsilon'cIs a parameter epsiloncAn antisymmetric matrix of (a); epsilon is the correction data; epsilonpAnd εvAre all intermediate parameters; parameter epsilonc、εpAnd εvIs given a value of Kt+1·vt+1Determining; ca1、pa1And va1Respectively corresponding to the corrected attitude matrix, position information and speed at the time of a pin t +1 without the millimeter wave radar; cb1、pb1And vb1Respectively setting a posture matrix, position information and speed which are corrected correspondingly to the time t +1 of the millimeter wave radar;
s3-7, according to the formula:
Zradar=Crn·(R+ρr2i)+Cln·ρa2i
obtaining relative position information Z between two body coordinate systems at t +1 momentradar(ii) a Wherein C isrnA rotation matrix from a body coordinate system corresponding to a foot of the millimeter wave radar to an inertial navigation coordinate system is set at the moment t + 1; clnA rotation matrix from a body coordinate system corresponding to the other foot to an inertial navigation coordinate system at the moment of t + 1; r is step length information; rhor2iThe direction vector of the millimeter wave radar to the inertia measurement unit of the foot is shown; rhoa2iIs the inertia from the reflection point of the millimeter wave radar to the foot where the reflection point is positionedA direction vector of the sexual measurement unit;
s3-8, according to the formula:
X=(Ca,pa,va,Cb,pb,vb)T
splicing the latest error covariance matrixes respectively corresponding to the left foot and the right foot into a covariance matrix PfusionSplicing the latest state vectors corresponding to the left foot and the right foot into a state vector X; wherein P isaSetting a latest error covariance matrix corresponding to a pin without the millimeter wave radar; pbSetting a latest error covariance matrix corresponding to a foot of the millimeter wave radar; ca、paAnd vaThe latest attitude matrix, the position information and the speed corresponding to the foot without the millimeter wave radar are respectively set; cb、pbAnd vbThe latest attitude matrix, the position information and the speed corresponding to the foot provided with the millimeter wave radar are respectively set;
s3-9, according to the formula:
obtaining a fused Kalman gain Kfusion(ii) a Wherein the observation matrix Hfusion=(03×3I3×303×303×3-I3×303×3);RfusionThe current observation noise;
s3-10, according to the formula:
P'fusion=(I18×18-KfusionHfusion)Pfusion
X'=X+Kfusion(Zradar-HfusionX)
fusion update covariance matrix PfusionAnd the state vector X is obtained to obtain a covariance matrix P 'after fusion updating'fusionAnd the fused state vector X', namely the real covariance matrix and state vector of the pedestrian at the moment of t + 1; the fused state vector X' includes fused position information.
The invention has the beneficial effects that: the method measures the pose information between the two feet through the millimeter wave radar, and takes the pose information as the horizontal tube measurement of the fusion Kalman filter, so that the magnitude order of the increase rate of the accumulated error is reduced from square to constant, the adverse effect of the accumulated error on the integral positioning precision is effectively reduced, and the positioning navigation precision in a long distance and a long time is obviously improved.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate the understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and it will be apparent to those skilled in the art that various changes may be made without departing from the spirit and scope of the invention as defined and defined in the appended claims, and all matters produced by the invention using the inventive concept are protected.
As shown in fig. 1, the method for autonomous navigation of a pedestrian based on a millimeter wave radar and an inertial measurement unit includes the following steps:
s1, installing an inertia measurement unit on each foot, and installing a millimeter wave radar on any foot;
s2, acquiring step length information of the pedestrian through a millimeter wave radar; acquiring fuzzy position information of each foot of the pedestrian by using the current position information as a reference through an inertial measurement unit;
s3, correcting and fusing the fuzzy position information of the two feet of the pedestrian by taking the step length information as the horizontal observation quantity of a Kalman filter for multi-sensor fusion to obtain fused position information;
and S4, taking the fused information as the specific position information of the pedestrian, judging whether to continue navigation, if so, returning to the step S2, and if not, ending the navigation.
The specific method for acquiring the step length information of the pedestrian through the millimeter wave radar in the step S2 includes the following substeps:
s2-1-1, transmitting signals through a millimeter wave radar and receiving the reflected signals;
s2-1-2, traversing each detected target according to the reflected signal, and acquiring the speed, the distance and the echo power of each detected target;
s2-1-3, removing the target with the speed of 0, removing the target with the distance greater than a first threshold value, and removing the target with the echo power less than a second threshold value; the first threshold value is 0.8 times of the height of the pedestrian; the second threshold value is one thousandth of the transmitting power of the millimeter wave radar;
s2-1-4, in keeping with the goal, according to the formula:
taking the normalized echo power as weight, and carrying out weighted average on each detected target at present to obtain step length information R of the pedestrian; wherein
The distance of the retained ith target;
the echo power of the ith target is retained.
The specific method for acquiring the speed and distance of each detected target in the step S2-1-2 is as follows: and mixing the reflected signals to obtain the frequency Fs of the intermediate frequency signals, according to a formula:
obtaining the distance d of a target distance radar; arranging the obtained distances d according to rows, performing fast Fourier transform on each row of the arranged matrix, taking the rows of the matrix obtained after the transform as distance values, and taking the rows of the matrix obtained after the transform as speed values; wherein c is the speed of light; s is the rate of change of the signal frequency with time.
The specific method for acquiring the fuzzy position information of each foot of the pedestrian through the inertial measurement unit in the step S2 comprises the following sub-steps:
s2-2-1, establishing a body coordinate system of each foot by taking the position of the inertial measurement unit installed in each foot as a coordinate origin, reading data of a gyroscope in the inertial measurement unit, and according to a formula:
Ct+1=Ct(2I3×3+ΩtΔt)(2I3×3-ΩtΔt)-1
acquiring an attitude matrix of each foot at the moment of t + 1; wherein C istIs the attitude matrix of the foot at time t; ct+1The attitude matrix of the foot at time t + 1; i is3×3Is a 3 × 3 identity matrix; omegatAn antisymmetric matrix of the foot angular rate at time t; delta t is the interval duration of adjacent moments; omegax、ωyAnd ωzThe angular rates in the x-axis direction, the y-axis direction and the z-axis direction read by the foot gyroscope at the moment t are respectively;
s2-2-2, establishing an inertial navigation coordinate system by taking the human body center of the pedestrian as the origin of coordinates, acquiring data of an accelerometer in an inertial measurement unit, and according to a formula:
pt+1=pt+vt+1Δt
acquiring fuzzy position information of each foot at the moment of t + 1; wherein
The acceleration of the foot at the moment t under the inertial navigation coordinate system;
the acceleration of the foot in the body coordinate system at the moment t under the system is obtained; v. of
tThe velocity of the foot at time t; v. of
t+1The velocity of the foot at
time t + 1; p is a radical of
tPosition information of the foot at time t; p is a radical of
t+1The fuzzy position information of the foot at the
time t + 1.
The specific method of step S3 includes the following substeps:
s3-1, according to the formula
Xa0=(Ca0,pa0,va0)T,Xb0=(Cb0,pb0,vb0)T
Respectively obtaining state vectors X of two feet of a pedestrian at t +1 momenta0And Xb0(ii) a Wherein C isa0、pa0And va0Respectively setting an attitude matrix, position information and speed corresponding to a time t +1 without setting a millimeter wave radar; cb0、pb0And vb0Respectively setting an attitude matrix, position information and speed corresponding to a foot t +1 moment of the millimeter wave radar;
s3-2, according to the formula:
Pt+1=FtPtFt T+Q
updating an error covariance matrix corresponding to the t +1 moment of each foot; wherein P is
t+1The error covariance matrix of the foot at
time t + 1; p
tAn error covariance matrix of the foot at time t; f
tA state transition matrix at time t; q is state transition noise; (.)
TIs the transposition of the matrix; s
tThe acceleration of the inertia measurement unit at the moment t;
the acceleration of the inertial measurement unit in the x-axis direction at the moment t is measured;
the acceleration of the inertia measurement unit in the y-axis direction at the moment t;
the acceleration of the inertia measurement unit in the z-axis direction at the moment t; 0
3×3A zero matrix of 3 × 3;
s3-3, judging whether the current speed is 0, if so, entering the step S3-4, otherwise, entering the step S3-7;
s3-4, according to the formula:
Kt+1=Pt+1HT(HPt+1HT+M)-1
H={03×3 03×3 I3×3}
respectively obtaining Kalman gains K of two feet at t +1 momentt+1(ii) a The method comprises the following steps that H is an observation matrix, the positions of two zero matrixes in H respectively correspond to the positions of an attitude matrix and position information in an observed state vector at the moment of t +1 of a foot, and a unit matrix in H corresponds to the position information of speed in the observed state vector at the moment of t +1 of the foot; m is observation noise;
s3-5, according to the formula:
P’t+1=(I9×9-Kt+1H)Pt+1
correcting the error covariance matrix of each foot at the moment of t +1 to obtain a corrected error covariance matrix P'; wherein P't+1The corrected error covariance matrix corresponding to the foot at the time t + 1; i is9×9Is a 9 × 9 identity matrix;
s3-6, according to the formula:
ε=(εc,εp,εv)T=Kt+1·vt+1
C't+1=(2I3×3+ε’cΔt)(2I3×3-ε’cΔt)-1Ct+1
p’t+1=pt+1-εp
v’t+1=vt+1-εv
Xa1=(Ca1,pa1,va1)T,Xb1=(Cb1,pb1,vb1)T
correcting the attitude matrix C of the foot where the inertial measurement unit is located at the moment t +1t+1Position information p of the foot where the inertial measurement unit is locatedt+1And the velocity v of the foot on which the inertial measurement unit is locatedt+1And updating the state vector of the foot at the moment t +1 to respectively obtain a posture matrix C 'of the foot where the inertial measurement unit is located after correction't+1And position information p 'of the foot where the corrected inertia measurement unit is located't+1And the velocity v 'of the foot where the corrected inertia measurement unit is located't+1And an updated state vector Xa1And Xb1(ii) a Wherein epsilon'cIs a parameter epsiloncAn antisymmetric matrix of (a); epsilon is the correction data; epsilonpAnd εvAre all intermediate parameters; parameter epsilonc、εpAnd εvIs given a value of Kt+1·vt+1Determining; ca1、pa1And va1Respectively corresponding to the corrected attitude matrix, position information and speed at the time of a pin t +1 without the millimeter wave radar; cb1、pb1And vb1Respectively is provided with a hairThe attitude matrix, the position information and the speed after correction corresponding to the moment t +1 of the meter-wave radar are obtained;
s3-7, according to the formula:
Zradar=Crn·(R+ρr2i)+Cln·ρa2i
obtaining relative position information Z between two body coordinate systems at t +1 momentradar(ii) a Wherein C isrnA rotation matrix from a body coordinate system corresponding to a foot of the millimeter wave radar to an inertial navigation coordinate system is set at the moment t + 1; clnA rotation matrix from a body coordinate system corresponding to the other foot to an inertial navigation coordinate system at the moment of t + 1; r is step length information; rhor2iThe direction vector of the millimeter wave radar to the inertia measurement unit of the foot is shown; rhoa2iThe direction vector from the reflection point of the millimeter wave radar to the inertial measurement unit of the foot where the reflection point is located;
s3-8, according to the formula:
X=(Ca,pa,va,Cb,pb,vb)T
splicing the latest error covariance matrixes respectively corresponding to the left foot and the right foot into a covariance matrix PfusionSplicing the latest state vectors corresponding to the left foot and the right foot into a state vector X; wherein P isaSetting a latest error covariance matrix corresponding to a pin without the millimeter wave radar; pbSetting a latest error covariance matrix corresponding to a foot of the millimeter wave radar; ca、paAnd vaThe latest attitude matrix, the position information and the speed corresponding to the foot without the millimeter wave radar are respectively set; cb、pbAnd vbThe latest attitude matrix, the position information and the speed corresponding to the foot provided with the millimeter wave radar are respectively set;
s3-9, according to the formula:
obtaining a fused Kalman gain Kfusion(ii) a Wherein the observation matrix Hfusion=(03×3I3×303×303×3-I3×303×3);RfusionThe current observation noise;
s3-10, according to the formula:
P'fusion=(I18×18-KfusionHfusion)Pfusion
X'=X+Kfusion(Zradar-HfusionX)
fusion update covariance matrix PfusionAnd the state vector X is obtained to obtain a covariance matrix P 'after fusion updating'fusionAnd the fused state vector X', namely the real covariance matrix and state vector of the pedestrian at the moment of t + 1; the fused state vector X' includes fused position information.
In the specific implementation process, when a person normally walks, one foot is stepped forwards to contact the ground to support the body, and the foot with the speed of 0 is the foot on the ground.
In an embodiment of the invention, the same pedestrian repeatedly walks in the same path by using the traditional inertial navigation system and the method at the same time, as shown in fig. 2, 3 and 4, the positioning effect of the method is more fit with the actual walking path, the generated error accumulation is smaller, the positioning result drift is smaller, and the positioning precision is higher.
In conclusion, the method measures the pose information between the two feet through the millimeter wave radar, and measures the pose information as the horizontal tube of the fusion Kalman filter, so that the magnitude order of the increase rate of the accumulated error is reduced from square to a constant level, the adverse effect of the accumulated error on the integral positioning precision is effectively reduced, and the long-distance and long-time positioning navigation precision is remarkably improved.