LOCALIZATION AND ATTITUDE ESTIMATION METHOD USING MAGNETIC FIELD AND SYSTEM THEREOF AND COMPUTER READABLE RECORDING MEDIUM HAVING THE SAME

Information

  • Patent Application
  • 20190078909
  • Publication Number
    20190078909
  • Date Filed
    November 30, 2017
    6 years ago
  • Date Published
    March 14, 2019
    5 years ago
Abstract
A localization and attitude estimation method using a magnetic field is provided. At least one set of three magnetic landmarks is set in a three-dimensional space, and any two of the three magnetic landmarks have different magnetic directions. The tri-axes magnetic sensor is used for sensing the magnetic fields of the three magnetic landmarks, and three magnetic components on the three axes of the current position of the tri-axes magnetic sensor are generated by a magnetic source separating method. After three non-linear equations are obtained according to the three magnetic components on the three axes of the current position of the tri-axes magnetic sensor, three non-linear equations are solved to obtain the position information of the tri-axes magnetic sensor, and attitude vectors of the tri-axes magnetic sensor in the three-dimensional space are estimated according to tri-axes magnetic vectors of the tri-axes magnetic sensor relative to the three magnetic landmarks.
Description

This application claims the benefit of Taiwan application Serial No. 106131453, filed Sep. 13, 2017, the subject matter of which is incorporated herein by reference.


TECHNICAL FIELD

The disclosure relates in general to a localization method and a system thereof, and more particularly to a localization and attitude estimation method using a magnetic field and a system thereof, and a computer readable recording medium having the same.


BACKGROUND

Automated guided vehicle (AGV) is an important carrier in automated material transfer field. In comparison to the conventional transfer method using a conveyor, the AGV occupies less space and can be more flexibly adjusted in the production line. Further, the localization of the current trackless AGV is normally achieved through a laser reflective label, a magnetic landmark, or a two-dimensional bar code label. However, in the practical application of the label localization exemplified above, the space site needs to be cleared beforehand, and such manner is hard to be used for those plants lack of pre-planning site. Besides, the above label localization is limited to two-dimensional plane only and cannot be used in three-dimensional measurement such that it cannot judge the attitude of the object in the three-dimensional space, and therefore needs to be improved.


SUMMARY

The disclosure is directed to a localization and attitude estimation method using a magnetic field, a system thereof, and a computer readable recording medium having the above method in which the tri-axes magnetic sensor disposed on an object (such as a movable carrier) is used to localize the object in the three-dimensional space and estimate the attitude of the object.


According to one embodiment of the disclosure, a localization and attitude estimation method using a magnetic field is provided for localizing a movable carrier having a tri-axes magnetic sensor disposed thereon. The localization and attitude estimation method includes following steps. Firstly, at least one set of three magnetic landmarks is set in a three-dimensional space, and any two of the three magnetic landmarks have different magnetic fields and different magnetic directions, and the position vectors and attitude vectors of at least one set of three magnetic landmarks in the three-dimensional space are known. Then, the magnetic fields of the three magnetic landmarks is sensed by a tri-axes magnetic sensor, and three magnetic components on the three axes of the current position of the tri-axes magnetic sensor are generated by a magnetic source separating method. Then, after three non-linear equations are obtained according to the three magnetic components on the three axes of the current position of the tri-axes magnetic sensor, the three non-linear equations are solved by an extended Kalman filter to obtain the position of the tri-axes magnetic sensor in the three-dimensional space, and attitude vectors of the tri-axes magnetic sensor are estimated according to tri-axes magnetic vectors of the tri-axes magnetic sensor relative to at least one set of three magnetic landmarks in the three-dimensional space.


According to another embodiment of the disclosure, a localization system using a magnetic field is provided. The localization system includes at least one set of three magnetic landmarks, a tri-axes magnetic sensor and a logical operation processing unit. The at least one set of three magnetic landmarks is disposed in a three-dimensional space, and any two of the three magnetic landmarks have different magnetic fields and different magnetic directions. The tri-axes magnetic sensor is disposed on a movable carrier. The logical operation processing unit is connected to the tri-axes magnetic sensor, which senses the magnetic fields of the three magnetic landmarks and generates at least three magnetic information to the logical operation processing unit. The logical operation processing unit calculates tri-axes magnetic vectors of the tri-axes magnetic sensor relative to at least one set of three magnetic landmarks and estimates a position information of the tri-axes magnetic sensor in the three-dimensional space.


A computer readable recording medium used for storing a computer program is provided. The computer program is loaded to a computer for performing the above localization and attitude estimation method using a magnetic field.


The above and other aspects of the disclosure will become better understood with regard to the following detailed description of the embodiment(s). The following description is made with reference to the accompanying drawings.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a flowchart of a localization and attitude estimation method using a magnetic field according to an embodiment of the disclosure.



FIG. 2 is a schematic diagram of a localization and attitude estimation system using a magnetic field according to an embodiment of the disclosure.



FIG. 3 is a schematic diagram of an extended localization range using a localization system of the disclosure.





DETAILED DESCRIPTION

Detailed descriptions of the disclosure are disclosed below with a number of embodiments. However, the disclosed embodiments are for explanatory and exemplary purposes only, not for limiting the scope of protection of the disclosure. Designations common to the accompanying drawings are used to indicate identical or similar elements.


Refer to FIGS. 1 and 2. FIG. 1 is a flowchart of a localization and attitude estimation method using a magnetic field according to an embodiment of the disclosure. The localization and attitude estimation method using a magnetic field includes steps S11 to S14. Firstly, at step S11, at least one set of three magnetic landmarks 111-113 is set in a three-dimensional space (X, Y, Z). For example, the at least one set of three magnetic landmarks 111-113 is set on a ground, a wall, a ceiling or any position, and more magnetic landmarks can be set to extend the localization range.


Each of the magnetic landmarks 111-113 is used for generating a predetermined magnetic field. Each of the magnetic landmarks 111-113 can be a magnet or an electromagnet. Each of the magnetic landmarks 111-113 can have an N pole magnetic source and an S pole magnetic source or have multiple N pole magnetic sources and multiple S pole magnetic sources. The intensity of the magnetic field of each of the magnetic landmarks 111-113 is determined by the number of magnetic sources. Furthermore, each of the magnetic landmarks 111-113 can be realized by an active variable frequency magnetism generating element used for generating a magnetic signal having different fixed frequencies.


Referring to FIG. 2, a localization and attitude estimation system 100 using a magnetic field according to an embodiment of the disclosure includes at least one set of three magnetic landmarks 111-113, a tri-axes magnetic sensor 120 and a logical operation processing unit 130. The tri-axes magnetic sensor 120 is disposed on the movable carrier (not illustrated). When the movable carrier moves, at least one set of three magnetic landmarks 111-113 is disposed on the path or a surrounding area of the movable carrier, and the tri-axes magnetic sensor 120 disposed on the movable carrier is used for sensing the magnetic fields of the three magnetic landmarks 111-113.


In FIG. 2, three magnetic landmarks 111-113 are illustrated as an example, any two of the three magnetic landmarks 111-113 have different magnetic directions, and the position vectors (relative to the original point O) and attitude vectors of the at least one set of the three magnetic landmarks 111-113 in the three-dimensional space (X, Y, Z) are known. In the present embodiment, magnetic dipole electromagnetic landmarks are used as an example, and sine waves having different fixed frequencies are inputted to the three magnetic landmarks 111-113 to benefit the subsequent process of magnetic source separating method, and the position vectors of the three magnetic landmarks 111-113 in the three-dimensional space (X, Y, Z) are respectively expressed as: {right arrow over (L1position)}, {right arrow over (L2position)}, {right arrow over (L3position)}, the attitude vectors are respectively expressed as: {right arrow over (L1direction)}, {right arrow over (L2direction)}, {right arrow over (L3direction)}, wherein,





{right arrow over (L1position)}=[a1 b1 c1]T ∈ R3, {right arrow over (L1direction)}=[m1 n1 p1]T ∈ R3,





{right arrow over (L2position)}=[a2 b2 c2]T ∈ R3, {right arrow over (L2direction)}=[m2 n2 p2]T ∈ R3,





{right arrow over (L3position)}=[a3 b3 c3]T ∈ R3, {right arrow over (L3direction)}=[m3 n3 p3]T ∈ R3


The position information of the point under measurement A (that is, the tri-axes magnetic sensor 120) is unknown and can be expressed as: {right arrow over (Sposition)}=(x,y,z).


In an embodiment, the three magnetic landmarks 111-113 in the three-dimensional space (X, Y, Z) are not settled on the same point and are not necessarily orthogonal to each other. That is, the three magnetic landmarks 111-113 are not limited to three orthogonal magnetic landmarks on the same point, and any three magnetic vectors will do as long as the sum of any two of the three magnetic vectors is not equivalent to any times of the remaining magnetic vector.


In step S12, the tri-axes magnetic sensor 120 is used for sensing the magnetic fields of the three magnetic landmarks 111-113 to obtain the sum of the magnetic vectors of the three magnetic landmarks 111-113 and perform a subsequent process of magnetic source separating method. In the present embodiment, the tri-axes magnetic sensor 120 is connected to the logical operation processing unit 130 to generate at least three magnetic information to the logical operation processing unit 130. For the convenience of calculating the magnetic components of the three magnetic landmarks 111-113, the magnetic fields of the three magnetic landmarks 111-113 can be divided by a magnetic source separating method, wherein the magnetic vectors of the three magnetic landmarks 111-113 are respectively expressed as: B1, B2, B3, and the sum of the magnetic vectors is expressed as: B=1+B2+B3, wherein





B1=[B1x B1y B1z]T,





B2=[B2x B2y B2z]T,





B3=[B3x B3y B3z]T


Then, the logical operation processing unit 130 uses a band-pass filter to obtain the three magnetic components of the magnetic vectors having three different fixed frequencies on the three axes of the current position of the tri-axes magnetic sensor 120, and the three magnetic components are respectively expressed as: B1′, B2′, B3′ (as indicated in FIG. 2)





B′1=[B′1x B′1y B′1z]T,





B′2=[B′2x B′2y B′2z]T,





B′3=[B′3x B′3y B′3z]T


The logical operation processing unit 130 can be a computer, a single-ship microprocessor disposed in a computer, or a computer program stored in a computer readable recording medium. In another embodiment, the logical operation processing unit 130 is disposed on the movable carrier. Before receiving the magnetic information by the logical operation processing unit 130, a low-pass filter is used to reduce the noises of the magnetic information and increase the signal to noise ratio, and then an analog-to-digital converter is used to convert the magnetic information into digital magnetic information.


Then, at the step S13, after three non-linear magnetic equations are obtained according to the magnitudes of the three magnetic vectors, the three non-linear magnetic equations are solved by an extended Kalman filter or a linearization algorithm to obtain the position information (or the position vector) of the tri-axes magnetic sensor 120 in the three-dimensional space. In the present embodiment, the waveforms and amplitudes of the three magnetic landmarks 111-113 are analyzed by the extended Kalman filter with the limit conditions of three different fixed frequencies to obtain three sets of waveforms and amplitudes, that is, the three magnetic components of the three magnetic landmarks 111-113 on the three axes of the three-dimensional space (X, Y, Z). The non-linear magnetic equations are expressed as formula (1)










||

B
1



||
2


=



μ
2



(



3



(



L






1
direction




·


r
1




)

2



||


r
1





||
2
8



+


||


L






1
direction






||
2
2



||


r
1





||
2
6




)


=




h
1



(


S
position



)






||

B
2



||
2


=



μ
2



(



3



(



L






2
direction




·


r
2




)

2



||


r
2





||
2
8



+


||


L






2
direction






||
2
2



||


r
2





||
2
6




)


=




h
2



(


S
position



)






||

B
3



||
2


=



μ
2



(



3



(



L






3
direction




·


r
3




)

2



||


r
3





||
2
8



+


||


L






3
direction






||
2
2



||


r
3





||
2
6




)


=


h
3



(


S
position



)











(
1
)







Wherein, {right arrow over (r)}i=[X Y Z]T ∈ R3={right arrow over (Sposition)}−{right arrow over (Liposition)},i=1,2,3, μis ¼π times of the constant value of the space magnetic field.


In the present embodiment, the non-linear magnetic equations can be linearized to obtain a linearized measurement matrix, a state equation and a measurement equation, wherein the linearized measurement matrix is expressed as formula (2)










H
all

=

[








h
1




X




|


r


=


r
S













h
1




Y




|


r


=


r
S













h
1




Z




|


r


=


r
S















h
2




X




|


r


=


r
S













h
2




Y




|


r


=


r
S













h
2




Z




|


r


=


r
S















h
3




X




|


r


=


r
S













h
3




Y




|


r


=


r
S













h
3




Z




|


r


=


r
S









]





(
2
)







The state equation is expressed as formula (3)











S


(

k
+
1

)


=


AS


(
k
)


+

v


(
k
)










A
=

[



1


0


0




0


1


0




0


0


1



]






(
3
)







The measurement equation is expressed as formula (4)






y(k)=h(S(k))+w(k),h(S)=[h1({right arrow over (Sposition)})h2({right arrow over (Sposition)})h3({right arrow over (Sposition)})]T  (4)


Wherein w(k) and v(k) respectively denote noises of the Gaussian distribution; w(k) and v(k) respectively have covariant matrixes QM, QT. The flow of the algorithm is as follows:














Measure update:













K
=



P
predict



H
all
T





H
all



P
predict



H
all
T


+

Q
M









P
=


(

I
-

KH
all


)



P
predict








S
=


S
predict

+

K


(

y
-

h


(

S
predict

)



)

















Time update:





Spredict = AS


Ppredict = APAT +QT









Wherein, K denotes an optimal Kalman gain, P denotes a covariance estimation; A denotes a state conversion model; H denotes an observation model; h denotes a measurement equation; S denotes a state estimation.


Then, in the step S14, after the position information of the tri-axes magnetic sensor 120 in the three-dimensional space is obtained, the magnetic vectors B1, B2, and B3 of the three magnetic landmarks 111-113 are known, the attitude transformation matrix of the tri-axes magnetic sensor 120 can be obtained through the comparison between the magnetic vectors B1, B2, B3 and the magnetic components B1′, B2′, B3′, and the attitude (such as azimuth angle, pitch angle and depression angle) of movable carrier can be obtained according to the attitude transformation matrix of the tri-axes magnetic sensor 120. The attitude transformation matrix R is expressed as:


R=[B′1 B′2 B′3][B1 B2 B3]−1 and





det([B1 B2 B3]) ≠ 0, that is, the determinant value of [B1 B2 B3] is not equivalent to 0.


That is, in the step S14, based on the above algorithm, the logical operation processing unit 130 can calculate the three magnetic components B1′, B2′, B3′ on the three axes of the current position of the tri-axes magnetic sensor 120 according to the position information of the tri-axes magnetic sensor 120 in the three-dimensional space (X, Y, Z) and can estimate the attitude vectors of the tri-axes magnetic sensor 120 in the three-dimensional space (X, Y, Z) according to the tri-axes magnetic vectors of tri-axes magnetic sensor 120 relative to the three magnetic landmarks 111-113.


Refer to FIG. 3. The magnetic field generated by magnetic landmark decreases with the increase of the sensing distance. When the sensing distance is over a predetermined range, the tri-axes magnetic sensor 120 (refer to FIG. 2) will be unable to sense any change in the magnetic field. According to the magnetic source separating method of the disclosure, multiple magnetic landmarks 111a, 112a, 113a, and 114a are set on the path or surrounding area of the movable carrier, and three magnetic landmarks 111a, 112a, 114a with largest energy are selected from the multiple magnetic landmarks, so that the localization ranges E1-E4 can be extended. Let a circle with radius d be defined as a set point. According to the localization method, the distance D between two set points is set as a maximum value, and the space of the localization is completely covered by the landmarks. If the magnetic fields are differentiated using fixed frequencies, at least 4 sets of three magnetic landmarks (12 magnetic landmarks) having different fixed frequencies are set. The above method extends the localization ranges E1-E4, and at the same time provides a differentiation localization to each of the landmarks.


The localization and attitude estimation method using a magnetic field and the system thereof disclosed in above embodiments of the disclosure can be used to detect the position and attitude of a movable carrier (such as an unmanned vehicle or any object) in the space, and the arrangement of the magnetic landmarks 111-113 is not subjected to specific restrictions.


While the disclosure has been described by way of example and in terms of the preferred embodiment(s), it is to be understood that the disclosure is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.

Claims
  • 1. A localization and attitude estimation method using a magnetic field for localizing a movable carrier having a tri-axes magnetic sensor disposed thereon, the localization and attitude estimation method comprising: setting at least one set of three magnetic landmarks in a three-dimensional space, wherein any two of the three magnetic landmarks have different magnetic directions;wherein position vectors and attitude vectors of the at least one set of three magnetic landmarks in the three-dimensional space are known;sensing magnetic fields of the at least one set of three magnetic landmarks by the tri-axes magnetic sensor and generating three magnetic components on three axes of current position of the tri-axes magnetic sensor by a magnetic source separating method; andafter three non-linear magnetic equations are obtained according to the three magnetic components on the three axes of the current position of the tri-axes magnetic sensor, solving the three non-linear magnetic equations by an extended Kalman filter to obtain a position information of the tri-axes magnetic sensor and estimating an attitude vector of the tri-axes magnetic sensor in the three-dimensional space according to tri-axes magnetic vectors of the tri-axes magnetic sensor relative to the at least one set of three magnetic landmarks.
  • 2. The localization and attitude estimation method according to claim 1, wherein the magnetic source separating method comprises: dividing the magentic fields of the at least one set of three magnetic landmarks into three magnetic components on three axes of the three-dimensional space by a band-pass filter; andanalyzing the waveforms and amplitudes of the three magnetic landmarks by an extended Kalman filter with a limit condition of three different fixed frequencies for the three magnetic landmarks to obtain three sets of waveforms and amplitudes used as the three magnetic components of the three magnetic landmarks on the three axes of the three-dimensional space.
  • 3. The localization and attitude estimation method according to claim 1, wherein the at least one set of three magnetic landmarks in the three-dimensional space are not settled on a same point.
  • 4. A localization system using a magnetic field for localizing a movable carrier, the localization system comprising: at least one set of three magnetic landmarks disposed in a three-dimensional space, wherein any two of the three magnetic landmarks have different magnetic directions;a tri-axes magnetic sensor disposed on the movable carrier; anda logical operation processing unit connected to the tri-axes magnetic sensor, wherein the tri-axes magnetic sensor senses magnetic fields of the at least one set of three magnetic landmarks and generates at least three magnetic information to the logical operation processing unit, wherein the logical operation processing unit obtains tri-axes magnetic vectors of the tri-axes magnetic sensor relative to the at least one set of three magnetic landmarks by a magnetic source separating method and estimates a position information of the tri-axes magnetic sensor in the three-dimensional space.
  • 5. The localization system according to claim 4, wherein the logical operation processing unit further calculates three magnetic components on three axes of a current position of the tri-axes magnetic sensor according to the position information of the tri-axes magnetic sensor in the three-dimensional space and estimates an attitude vector of the tri-axes magnetic sensor in the three-dimensional space according to the tri-axes magnetic vectors of the tri-axes magnetic sensor relative to the at least one set of three magnetic landmarks.
  • 6. The localization system according to claim 4, wherein the logical operation processing unit comprises a single-ship microprocessor.
  • 7. The localization system according to claim 5, wherein the logical operation processing unit divides the at least one set of three magnetic landmarks into the three magnetic components on the three axes of the current position of the tri-axes magnetic sensor by a band-pass filter, and analyzes the waveforms and amplitudes of the three magnetic landmarks by an extended Kalman filter with a limit condition of three different fixed frequencies for the three magnetic landmarks to obtain three sets of waveforms and amplitudes used as the three magnetic components of the three magnetic landmarks on three axes of the three-dimensional space.
  • 8. The localization system according to claim 4, wherein each of the three magnetic landmarks comprises an active variable frequency magnetic generating element.
  • 9. The localization system according to claim 4, wherein the at least one set of three magnetic landmarks in the three-dimensional space are not settled on a same point.
  • 10. A non-transitory computer readable recording medium used for recording a computer program, wherein the computer program is loaded into a computer for performing the localization and attitude estimation method using a magnetic field as disclsoed in claim 1.
Priority Claims (1)
Number Date Country Kind
106131453 Sep 2017 TW national