Flydar: Magnetometer-Based High Angular Rate Estimation During Gyro Saturation For SLAM
Flydar: Magnetometer-Based High Angular Rate Estimation During Gyro Saturation For SLAM
8533
where uk is the control input defined in (15), xk is the state
vector defined in (14), and xk,i refers to the i-th element in
xk .
Thirdly, the measurement function is identified as
zk = g(x̂k , uk ) = xk,2 (17)
where zk is the x-axis measurement from the magnetometer.
Lastly, the hovering angular velocity of the robot can be
estimated as
ŵh = uk − x̂k,1 (18)
where x̂k,1 = ω̂bias is the estimated gyro bias.
D. Polar Extrapolation for Uniform Sampling
Fig. 3. The key components of Flydar are illustrated. The FMU mounts
onto the fuselage of the robot and optical markers are used to track the Significantly, the linear prediction model given in (12)
ground truth pose using motion capture system. used to derived the state transition function (16) assumes
a constant sampling period Ts . Hence, it is desired that
the EKF measurement update step is executed at a fixed
C. EKF-based Angular Rate Estimation frequency with period Ts . Then, zk is extrapolated from the
As derived in (6), the magnetometers measures a sinu- latest sample using the following
soidal signal due to the robot rotating dynamics for aerial cos(θk−1 + ω̂h,k−1 (tk − tk−1 )
zk = zk−1 · ) (19)
flight. As [13], the angular frequency of the sinusoidal signal cosθk−1
can be be estimated using an EKF. Formally, a nonlinear where zk−1 and θk−1 are the last magnetometer measure-
process can be modelled as ments and phase angle respectively, ω̂h,k−1 is the previous
xk+1 = f (xk , uk ) + wk (10) angular velocity estimated, tk is the EKF time now and tk−1
is time of arrival of zk1 sample.
zk = g(xk , uk ) + vk (11)
E. Planar Pointcloud for SLAM
where (10) describes the state transition process, and the
A single laser mounted on the robot generates n planar
measurement equation as (11).
scans per second due to the rotating dynamics of the robot.
The magnetometer model derived in (6) can be re-written
Assuming a laser with sampling rate of N per seconds, and
using linear prediction. It is well known that for a real
the robot with an instantaneous angular velocity ωh , the
sinusoid with fundamental angular frequency ωf , a closed- w
output rate of the scan flidar is simply 2π , and the average
form equation based on the past two samples can be used to
size of each scan m and the angular resolution ∆θ is defined
predict the future sample yk+1
as
N · 2π
yk+1 = 2 · cos(wf Ts ) · yk − yk−1 (12) m= (20)
ωh
Compared to the EKF presented in [13], the proposed 2π
∆θ = (21)
EKF in this work incorporates the gyroscope measurements, m
modelled as a control input. This improves the transient Let pθ be the range measurements from the laser received
tracking performance of the filter during take off and descent. at yaw angle θ. The measurements are accumulated in a
Additionally, the gyroscope bias ωbias is also modelled in the point cloud p and is output when the robot completes a full
filter, to account for the saturated gyroscope measurement de- revolution. For convenience, the magnetic north i.e. θ = 0, is
scribed in (7) when kωiB k > ωgyro, limit . Then, (12) becomes selected as reference. At θ = 0, which is the zero-crossing of
the robot’s yaw, a complete scan P is produced. The average
yk+1 = 2 · cos((ωgyro + ωbias )Ts ) · yk − yk−1 (13) angular rate ω¯h is used to distribute the points evenly across
In the following, the EKF formulation is outlined. Firstly, the point cloud.
let the state vector xk and the control input uk be During hover flight, the angular resolution across is ap-
proximately constant. However, during climb or descent, the
T
xk = [ wbias,k yk yk−1 ] (14) angular velocity of the robot varies significantly. As a result,
uk = ωgyro (15) consecutive scans will have different angular resolution.
III. E XPERIMENTAL R ESULTS
Secondly, the state transition function can then defined as
In this section, the hardware implementation of the Flydar
x̂k+1 = f (x̂k , uk ) Mapping Unit is first presented. This is followed by the
xk,1
experimental investigations to evaluate the performance of
(16)
= 2 · cos((uk + xk,1 )Ts ) · xk,2 − xk,3 the proposed angular rate estimation method and the mapping
xk,2 approach.
8534
Fig. 4. The key components are the FMU are illustrated. The Intel Edison
runs the proposed angular rate estimation algorithm and a single laser is used
to generate a planar scan from the rotating locomotion of the rotorcraft.
A FMU rotating rig was custom-designed and developed D. Evaluation of SLAM Performance using Flydar
to physically simulate the rapid rotating motion of the craft. In this experiment, the pilot commands the robot to travel
The rig consists of the FMU mounted on a high-torque T- within a bounded area. The ground truth robot pose was
8535
Fig. 7. The angular frequency ω̂h estimated online on the Flydar is shown Fig. 9. The estimated x and y position output from the Google Cartographer
against the ωgyro and OptiTrack ground truth ω̂h . The steady-state rms error SLAM in 2D generated from the Flydar planar scan is shown against the
is recorded at 0.056Hz. ground truth pose of the OptiTrack. The rms euclidean error during the
flight was 0.11m.
R EFERENCES
recorded using the OptiTrack Motion Capture system. The
output of the laser scan was also recorded on the onboard [1] S. Jameson, B. Satterfield, C. Bolden, H. Youngren, and N. Allen,
“Samarai nano air vehicle – a revolution in flight,” in Proc. Association
IECC. The robot pose was recovered using Google Cartogra- for Unmanned Vehicle Systems (AUVSI) International Unmanned
pher SLAM in 2D offline with the playback of the recorded System North America 2007), Washington, DC, USA, Aug. 2007, pp.
laser data. The estimated trajectory from the SLAM and the 290–294.
[2] K. Fregene and C. L. Bolden, “Dynamics and control of a biomimetic
ground truth trajectory from the OptiTrack are shown in Fig. single-wing nano air vehicle,” in Proceedings of the 2010 American
9. The rms euclidean error during the flight was recorded at Control Conference, June 2010, pp. 51–56.
0.11m. The absolute x− and y− position error shown in Fig. [3] A. Kellas, “The guided samara : design and development of a
controllable single-bladed autorotating vehicle,” Master’s thesis, Mas-
10. The hover flight assumption (i.e. ωx = ωy = 0) and the sachusetts Institute of Technology, Cambridge, 2007.
processing of the SLAM in 2D (i.e. φ = ψ = 0) might have [4] J. Houghton and W. Hoburg, “Fly-by-wire control of a monocopter,”
contributed to the position error. The map generated from in Experimental Projects II Tech. Rep. Massachusetts Institute of
Technology, 2008.
Flydar using Google Cartograhper in 2D is shown in Fig. [5] E. R. Ulrich, D. J. Pines, and J. S. Humbert, “From falling to flying:
11. the path to powered flight of a robotic samara nano air vehicle,”
Bioinspiration & Biomimetics, vol. 5, no. 4, p. 045009, nov 2010.
[6] J. E. Low, L. T. S. Win, D. S. B. Shaiful, C. H. Tan, G. S. Soh, and
IV. C ONCLUSION S. Foong, “Design and dynamic analysis of a transformable hovering
rotorcraft (thor),” in 2017 IEEE International Conference on Robotics
In this paper, a Flydar was demonstrated to perform SLAM and Automation (ICRA), May 2017, pp. 6389–6396.
operation. A EKF-based algorithm was proposed to estimate [7] D. Sufiyan, L. T. S. Win, S. K. H. Win, G. S. Soh, and S. Foong,
the high angular rate of the robot. Significantly, the algorithm “A reinforcement learning approach for control of a nature-inspired
aerial vehicle,” in 2019 International Conference on Robotics and
was demonstrated to estimate beyond the gyro saturation Automation (ICRA), May 2019, pp. 6030–6036.
limit successfully, up to a rms error of 0.0056Hz. The angular [8] S. K. Hla Win, T. H. Goh, J. E. Low, D. S. Bin Shaiful, L. T. Soe
rate was used to output a planar lidar scan from a single- Win, G. S. Soh, and S. Foong, “Direction controlled descent of samara
autorotating wings (saw) with n-wings * research supported by the
point laser, mounted on the rotating Flydar. Flydar achieved sutd-mit international design centre (idc) and by the temasek labora-
a localisation accuracy of 0.11m. tories defence innovation research programme (dirp) igdsp15020141.”
8536
Fig. 11. The final map output from the Google Cartographer SLAM is
shown.
8537