The present invention relates generally to vertical axis joint angle estimation for swing boom excavators, and in particular to an IMU (inertial measurement unit) based system for vertical axis joint angle estimation for swing boom excavators.
Guidance and automatic positioning control systems have become increasingly popular in construction, mining, and agricultural machines. For example, in swing boom excavators, guidance systems may increase operator awareness while automatic positioning control systems may ease some complexity in navigating the excavator and positioning the swing boom. To implement such guidance and automatic positioning control systems, it is important to accurately estimate joint angles between each joint of the swing boom.
In one conventional approach, gyroscopes are used to measure motion and determine angles between joints of the boom. However, such conventional gyroscopes suffer from drift due to gyroscope bias. Accelerometers may be used to correct for such drift. However, accelerometers are unable to sufficiently correct gyroscope bias for joints that are vertical or nearly vertical. This is because, unlike axes whose projection on the horizontal axis is large enough, the force output by the accelerometer remains the same even as the joint angle changes.
In accordance with one or more embodiments, systems and methods for determining a swing angle of a swing boom of a vehicle are provided. Sensor data is received from sensors disposed on a swing boom and a body of a vehicle. It is determined whether the swing boom is static or moving relative to the body based on the sensor data. In response to determining that the swing boom is static, the received sensor data is corrected based on an observed swing angle and an estimated swing angle is calculated based on the corrected sensor data. In response to determining that the swing boom is moving, the estimated swing angle is calculated based on the received sensor data. The estimated swing angle is output.
In one embodiment, it is determined whether the swing boom is static or moving relative to the body by calculating an energy of a signal received from the sensors, comparing the calculated energy to one or more thresholds, and determining whether the swing boom is static or moving based on the comparing.
In one embodiment, correcting the received sensor data comprises comparing the observed swing angle with a last estimated swing angle and removing bias from the sensor data based on the comparing.
In one embodiment, it is determined that the estimated swing angle exceeds a swing limit of the vehicle and a Kalman filter used for calculating the estimated swing angle is reset.
In one embodiment, the observed swing angle is calculated by determining rotation axes of the sensors and calculating the observed swing angle based on the determined rotation axes. In another embodiment, the observed swing angle is calculated by determining a swing angle error by transfer alignment and calculating the observed swing angle based on the swing angle error. In another embodiment, the observed swing angle is calculated by calculating the observed swing angle based on a roll and pitch of the vehicle in response to determining that the vehicle is situated on a slope satisfying a slope threshold.
In one embodiment, the sensors are IMUs (inertial measurement units). In one embodiment, the vehicle is an excavator.
These and other advantages of the invention will be apparent to those of ordinary skill in the art by reference to the following detailed description and the accompanying drawings.
Embodiments described herein provide for an IMU (inertial measurement unit) based swing angle estimation system. Using only sensor data from IMUs disposed on a vehicle, a data-fusion swing angle system is provided that combines a plurality of algorithms to estimate the swing angle of the swing boom of a vehicle with respect to a body of the vehicle. Specifically, the algorithms include kinematic angle estimation (where hypothesis testing is used to determine static-dynamic epochs), rotation axis computation, transfer alignment (that uses residual oscillations of the machine), and finally, one that takes advantage of the slope if it is not zero. Also disclosed is an embodiment where an existing sensor disposed on the boom is used, eliminating the need for an additional IMU on the swing link. The estimated swing angle can be used in a guidance and/or automatic control system for an excavator. Knowing this angle is important if the operator is allowed to change the angle, which he should, to take full advantage of excavators equipped with this extra feature. The vehicle may be, for example, a construction machine, a mining machine, an agricultural machine, etc. In one example, the vehicle is an excavator, as shown in
As shown in
In accordance with embodiments described herein, the swing angle at joint 108-D of excavator 100 is determined solely from information from IMUs 110-D and IMU 110-E. The swing angle is the angle formed by swing boom 106 with respect to some reference plane when excavator 100 is viewed from the top down, and is shown in
It should be understood that the number and placement of IMUs 110 on excavator 100 shown in
A common operational scenario of excavator 100 is as follows: 1) align boom swing 106 with a first heading; 2) operate boom swing 106 (e.g., for digging); 3) align boom swing 106 to a second heading; 4) operate boom swing 106 (e.g., for dumping); and 5) return to step 1 and repeat this cycle. This operational scenario may be achieved by: 1) swinging boom swing 106 to a particular arm angle and slewing between the first heading and the second heading while keeping the swing constant, 2) slewing to a particular house angle and singing boom swing 106 between the first heading and the second heading while keeping the slew constant, or 3) a combination of 1 and 2. With a dual-IMU system, the goal is to estimate the swing angle at joint 108-D using solely the information (i.e., the rate of turn around their 3 axes and the specific force along those axes) from IMUs 110-D and 110-E.
The following measurements are of importance: 1) measurements of the positioning of swing boom 304 to align with the front of body 306 (i.e., reset or zero pose), 2) measurements of left and right swing limits of swing boom 304 (e.g., enforced via mechanical stops), and 3) alignment transformation between IMU 308 and IMU 310. Measurement 1 is a prerequisite for measurement 3. Once swing boom 304 is positioned in the reset pose, the rotation matrix aligning IMU 308 with IMU 310 can be estimated accurately.
As shown in workflow 300, initial axes 312 of IMU 308 are calibrated to calibrated axes 316 and initial axes 314 of IMU 310 are calibrated to calibrated axes 318 so that the X axis of IMUs 308 and 310 aligns with the longitudinal (i.e., front/back) axis of excavator 302, the Y axis of IMUs 308 and 310 aligns with the lateral (i.e., left/right) axis of excavator 302, and the Z axis of IMUs 308 and 310 aligns with the vertical (i.e., up/down) axis of excavator 302. Regardless of the alignment of the initial axes 312 and 314, after calibration, the alignment of axes 312 and 314 are the same. It is assumed that the swing motion of swing boom 304 rotates swing IMU 308 around the Z axis, which corresponds to the axis of the single degree of freedom of the joint that connect swing boom 304 and body 306. Formally, a vector {right arrow over (v)}swing expressed in the coordinate frame Fswing of swing IMU 308 can be expressed in the coordinate frame Fbody of body IMU 310 according to the following expression:
{right arrow over (v)}
body
=R
swing
body
{right arrow over (v)}
swing,
where Rswingbody is equal to
where ϑ is the swing angle. In some embodiments, the rotation matrix Rswingbody may account for mechanical tolerances by an error rotation as follows:
R
swing
body
=R
z(ϑ)·ΔRzyx(Δϑ, Δφ, Δψ).
The angles making up the error matrix are small and thus, invoking the property of infinitesimal rotations, it can be treated as additive noise:
R
swing
body
=R
z(ϑ)+ΔRzyx(Δϑ, Δφ, Δψ).
Swing angle estimation system 400 predicts a swing angle estimate ϑ solely based on angular velocity {right arrow over (ω)}body and acceleration {right arrow over (α)}body of the body of the excavator measured by body IMU 404 (e.g., IMU 110-E of
At step 602 of
The sensors may comprise any suitable sensors for measuring angular velocity and linear acceleration. In one embodiment, the sensors are IMUs each comprising a gyroscope and an accelerometer. In another embodiment, the sensors comprise discrete gyroscopes and accelerometers. In one example, as shown in
At step 604 of
The determination of whether the swing boom is static or moving may be cast as a hypothesis testing problem, where one of the following two hypotheses must be chosen:
The Neyman-Pearson theorem can be applied to provide the threshold for the likelihood ratio test (LRT). The likelihood ratio is an indicator of the likelihood of H0 versus H1. For a series of observations z, the likelihood ratio is defined as:
where p(z|Hi) is the probability density function for the corresponding hypothesis. Accordingly to the Neyman-Pearson theorem, to maximize the probability of detection Pr{H1|H1} given the probability of false alarm Pr{H1|H0} being equal to α, H1 must be chosen if L(z)>γ. γ is a threshold determined from Pr{H1|H0}=α since
Pr{H1|H0}=∫{z:L(z)>γ}p(z|H0)
Stasis of the swing boom is not inclusive of all movements. For example, in this application, only the rate of rotation to ωd z,swing of the boom swing around the Z axis and the linear acceleration {right arrow over (ω)}swing×{right arrow over (r)} projected on the plane whose normal is the Z axis are of interest, where {right arrow over (r)}. is the vector from the center of the swing joint to sensor on the swing boom. Moreover, gyroscope signals are normally orders of magnitude better than accelerometer signals in terms of quality and noise characteristics. Accordingly, only velocity data (from gyroscope sensors) will be used to detect movement. Therefore, H1 will be chosen where:
where N is the number of samples. The noise variance σω, of the gyroscope is only a scale factor in this special case and can be ignored. In short, the gyroscope signal energy is computed and it is determined whether the swing joint is moving or static if the computed gyroscope signal energy is below some threshold. If σω, is ignored in the formula, the left hand side of the inequality is the discrete-time energy of the gyroscope signal (in this case ωd z,swing)
Known methods for learning the energy of a signal may be used to determine the value of the threshold. In accordance with such methods, the current (static) energy γnow of a gyroscope signal is calculated using a batch of size N. The threshold γnew may then be updated iteratively through:
γnew=(1−p)γold+p·γnow
where 0<p<1 is the parameter of the first-order filter. To determine p, the last M batches are retained in history. The new batch is then added to the M batches, while the first batch is forgotten to form the new history. The variances of the old (σold) and new (σnew) histories are then compared. In its most general form, a monotonic mapping f:σnew/σold→p can be applied.
In practice, a single threshold is not ideal. The threshold will be more robust if it is replaced with a hysteresis-type threshold.
In one embodiment, in addition to the comparison of the signal energy to the hysteresis-type threshold, in order to handle the situation where the signal energy is increasing not because of motion but due to increase in noise, the zero-crossing rate Zω for a batch of size N is calculated as follows:
Zω is then compared with two thresholds TZCR, low and TZCR, high. The signal is decided as dynamic if Zω>TZCR,high and as static if zω<TZCR,low. The two decisions are combined to form the final decision H0 or H1 as a combination of both energy being low (for the predetermined amount of time) and zero crossing being lower than a threshold.
By determining whether the swing boom is static (i.e., the swing angle is not changing) or moving (i.e., the swing angle is changing), a Kalman filter may calculate an estimated swing angle of the swing boom by either 1) correcting the received sensor data based on an observed swing angle and calculating the estimated swing angled based on the corrected sensor data in response to determining that the swing boom is static (step 606), or 2) calculating the estimated swing angle based on the received sensor data in response to determining that the swing boom is moving (step 608). The calculation of the estimated swing angle based on whether the swing boom is determined to be static or moving is illustrated by state machine 800 of
Corrections work according to a two-state state machine, shown in
At step 606 of
In one example, as shown in
At step 608 of
In some embodiments, where the estimated swing angle ϑ exceeds the swing limits of the vehicle, the Kalman filter may be reset. For example, as shown in
At step 610 of
The current estimated position 906 of the swing boom determined based on the current estimated swing angle and the current observed position 908 of the swing boom determined based on the current observed swing angle are also shown in user interface 900. Various parameters 914 (e.g., Cartesian bucket position) may be updated according to the estimated swing angle. The current observed position 908 of the swing boom is shown as an outline. The current observed position 908 indicates where the system believes the swing boom should be located. As shown in
During operation, the body of the vehicle experiences slight oscillations when the boom swing is moving as a result of, e.g., actuation of the boom, stick, or bucket pitch, as well as bucket tilt. Such oscillations are sufficient for determining observed swing angles observations ϑo. A rotation axis estimation algorithm may be performed by rotation axis estimation module 412 of
According to the assumptions made above, at any given time, at a fixed swing angle, the swing and body IMUs can be considered to be attached to the same rigid body, but one is rotated with respect to the other. The basic idea is to measure, while the rigid body is in motion, an entity that is sensed by both of them but with observable difference in their output, the difference being proportional to the angle. The motion has considerable components orthogonal to the rotation axis. However, there is no legitimate motion of the rigid body (i.e., the excavator cabin). In other words, during operation, the excavator will remain in one place and only the arm will be in motion. The cabin and swing motions are parallel to the rotation axis. Therefore, designed maneuvers cannot be relied upon.
To illustrate,
The rationale behind the test apparatus is to make sure that motion of the platform 1302 only happens around a fixed axis of rotation. Similarity between the signals would then confirm that arm operation causes the excavator body to also oscillate around a more or less fixed rotation axis. It can then be concluded that the IMUs 1308 and 1310 provide information about this axis. However, while the unrotated IMU 1310 will only register motion around its Y axis (the platform's rotation axis), the rotated IMU 1308 will see motion around all of its axes, representing oscillation around the same rotation axis expressed in its own local coordinate frame.
A simple and effective rotation axis estimation algorithm is implemented to identify a constant rotation axis from raw gyroscopic measurements. For a batch of N measurements of the gyroscope rates {right arrow over (ωk)}=(ωx,k ωy,k ωz,k)T, the rotation axis is given by
Averaging calls for fast enough rates works well. However, at close to zero rates, or when crossing zero, the algorithm will not work. A median operation has been proposed, where the normalized sample is first represented in spherical coordinates:
The rotation axis is then computed as
where
The rotation axis estimation algorithm assumes that the rotation axis will stay constant over a certain long enough interval. Although the test apparatus can produce these easily with carefully planned excitation, on a real machine, the signal to noise ratio is low and oscillations overlap random noisy changes in the rotation axis. There are a number of strategies for identification of oscillations in time series.
A number of approaches exist for identifying whether a signal is oscillatory or not, as well as computing amplitudes and frequencies of those vibrations. At interest here is not in the vibrations per se, but in the oscillations as they are the best representation of body motion. In all other times, body motion is at the level of noise. Fourier analysis can, in principle, be used to estimate components of a general signal. However, curve fitting methods are more suited to estimating properties (e.g., amplitude, frequency, phase, damping) of a single sinusoidal component. Such methods try to find parameters of the function of the following form that best matches the given signal (segment):
ƒ(k)=αeλksin(ωk+β) +b Equation (1)
where α, λ, ω, β, and b respectively denote amplitude, damping rate, frequency, phase, and offset. Note that this function does not model the chirp effect and that adding more harmonics might better describe the signal. Other methods that aim to identify parameters (e.g., stiffness k, damping c, and mass m) of the lumped mass-spring-damper physical system (or model thereof) produce the oscillations as follows:
m{umlaut over (x)}(t)+c{dot over (x)}(t)=0.
Note that this equation describes a 1 DOF system. A more realistic model would be a set of these. However, the aim here is not to faithfully model but to identify certain patterns of behavior. No matter what method is used, it certainly helps to pre-process the signal and extract the promising parts for further identification. The following pre-processing steps may performed:
Given the estimate of the rotation axes of both the body and the swing boom of the vehicle, the observed swing angle is calculated as:
The rotation axis estimation algorithm described above is extremely sensitive to noise. In experiments, it has been found that angles less than a certain value (e.g., 25 degrees) cannot be handled by this method as the component of gyroscopic rate on one axis becomes as small as the noise itself. Therefore, in accordance with some embodiments, other approaches for determining of angle observations may be performed.
Error estimation is performed by transfer alignment. Transfer alignment is a set of methods to aligned two sensors such as, e.g., IMUs, one being denoted the master sensor and the other being denoted the slave sensor. Transfer alignment operates by comparing, e.g., comparing angular rates, velocities, accelerations, etc. measured by the master and slave units. Error estimation by transfer alignment will be applied to calculate observed swing angles ϑ0 where 1) angular errors are large (e.g., up to 40 degrees) and not typically considered misalignments, and 2) the vehicle cannot perform any designed maneuvers.
The body sensor disposed on the body will be denoted the master while the swing sensor disposed on the swing boom will be denoted the slave. The alignment error will be defined with respect to the pitch, roll, and yaw of the swing boom relative to the body. Rswingbody evolves according to the following differential equation:
and where Ωswingbody is a skew-symmetric matrix composed of gyroscope rates of the boom swing with respect to the body and
{right arrow over (ω)}swingbody={right arrow over (ω)}swingswing −{right arrow over (ω)}bodybody={right arrow over (ω)}swing−{right arrow over (ω)}body.
Transfer alignment assumes small angle misalignments
R̊swingbody=(I−Ψattitude)Rswingbody (Equation 2)
where I is the identity matrix and Ψattitude is the skew symmetric matrix whose off-diagonal elements are attitude errors:
It can be shown that the errors evolve (propagate) according to the following differential equation:
{right arrow over (ψatt)}=−ωbody×{right arrow over (ψatt)}−Rbodyswing{right arrow over (δω)}swing+{right arrow over (δω)}body
where x denotes the vector cross product operations, {right arrow over (ψatt)}=(δψδφδθ)T is the error vectors, and the gyroscope errors are given by:
{right arrow over (δω)}swing={right arrow over (ω)}swing−{right arrow over (ω)}swing
{right arrow over (δω)}body={circumflex over ({right arrow over (ω)})}body−{right arrow over (ω)}body (Equation 3)
A similar result can be derived using accelerometer readings:
{right arrow over ({acute over (v)})}
body
=R
swing
body{right arrow over ({right arrow over (ƒ)}swing)}−{right arrow over (g)}
where {right arrow over ({acute over (v)})}body is the linear velocity vector of the vehicle (i.e., the tracks), {right arrow over ({right arrow over (ƒ)}swing )}is the specific force measured by the IMU disposed on the swing boom (accelerometer output), and {right arrow over (g)}denotes the gravity vector in the body frame. It can be shown that the following differential equation governs propagation:
{right arrow over (δψ)}vel=ƒbody×{right arrow over (ψ)}vel+Rswingbody{right arrow over (δƒ)}swing
where {right arrow over (δψvel)}=(δvxδvyδvz)T represents errors in the velocity calculation, {right arrow over (ƒ)}swing is the acceleration of the vehicle measured by the IMU disposed on the body of the vehicle, and {right arrow over (δƒ)}swing={right arrow over (ƒ)}swing−{right arrow over (ƒ)}swing is the difference between the true and measured accelerations.
This formulation lends itself to the Kalman filter implementation. For this purpose, the following assumptions are made: 1) body rates errors are assumed to be zero (i.e., {right arrow over (δω)}body=0 ) swing rate errors are modelled as Gaussian white noise (i.e., {right arrow over (δω)}swing˜N(0, σω,swing2I3×3)), and 3) swing accelerometer errors are modelled as Gaussian white noise (i.e., {right arrow over (δƒ)}swing˜N(0, σƒ, swing2I3×3)).
The state space model to be used by the Kalman filter is as follows:
where x=(δψδφδθδvxδvyδvz)T is the state vector, w=(wgxwgywgzWaxwaxwax)T is the gyroscope and accelerometer noise components, and
Discretizing the above results in
x
k+1=Φkxk+wk, w˜N(0, GWGT)
Φk=exp(FkΔtk)=I+ΔtkFk
The Kalman filter operates based on observations of state (velocity and rotation errors):
z
k
=H
k
x
k
−v
k
where vk is a measurement of noise. Based on the observations that are available, Hk may take many forms, including velocity matching and rate matching.
In velocity matching, a direct observation of xδv=(δvxδvyδvz)T is given by:
z
δv
={circumflex over (v)}
swing
−{circumflex over (v)}
body=ωbody×{right arrow over (r)}
where {acute over ({right arrow over (r)})} is the estimate of the vector from the body IMU to the swing IMU. It is a function of the estimated ϑ and fixed machine parameters (e.g., the distance from the body IMU to the swing joint and from the swing joint to the swing IMU). Thus,
H
k=(03×3∨I3×3).
In rate matching, an observation of the difference between vehicle (body) rates, as calculated by the body IMU, and the ones estimated by the swing IMU, is:
z
δω=−Rswingbodyωswing×ψatt−{circumflex over (R)}swingbody{circumflex over (ω)}swing
Using Equations 2 and 3, it can be shown that:
z
δω
=−R
swing
bodyωswing×ψatt−Rswingbodyδωswing
Modelling Rswingbodyδωswing as white Gaussian noise, it can be seen that
Rswingbodyδωswing
In this case, vk also includes flexure. In the context of an excavator, flexure is the unknown and unmodelled uncertainty due to mechanical slop in the swing joint.
Transfer alignment can also be performed based on attitude and acceleration matching. For the application of error estimation of the swing angle for excavators, a number of simplifications can be achieved. First, rate matching is preferred due to the fact that excavators rarely move and when they do move, the movement is not while the swing boom is being operated. Secondly, the Kalman filter is run during the time when the swing boom is not swinging and thus, ωz,swing can be assumed to be almost zero.
Every time an error estimate is available, an observation ϑ0 for the kinematic filter is produced as the current swing angle estimate ϑ plus the error estimate in the Z axis:
ϑ0=ϑ+δθ
The signal quality is not ideal setup. Moreover, oscillations do not come as well-separated chunks. Although transfer alignment is much more robust to noise and does not need to be fed good signals (such as the ones discussed for computing rotation axes), some precautions should be exercised. For example, it is assumed that the result of transfer alignment on a signal with very small magnitude or one that is too short would not be satisfactory and should be discarded. Even with these assumptions in place, the presence of outliers is inevitable. In addition, error variance can drag the estimate around unnecessarily.
It should be noted that the rationale for corrections is basically to prevent the gyroscope estimate from drifting. Therefore, to produce smoother estimates, strategies may be devised to remove outliers and to dynamically adapt the variances by which corrections are applied.
This section explicitly addresses measures that help the system perform more smooth, stable, and robust.
Naturally, there is uncertainty regarding the observed swing angle ϑ0. This uncertainty is reflected in the RMS (root mean square) value ε=σϑ
ϑo+sin(ξ),
where ξ is the width of the uncertainty envelope. In one embodiment, ξ is 2 degrees.
The initial magnitude and duration of the oscillation is a good strategy for weaning out bad quality and potentially dangerous error estimates. It was found that the duration has less effect than magnitude. This is because the tail of a quickly dying oscillation would be at the level of noise itself. However, the oscillation must be long enough to contain at least the first few periods. Minimum values for these parameters can be obtained by studying the raw signals.
As was discussed for rotation axis estimation, extraction of signal intervals that fit a model of a damped oscillation are a guarantee for success of any algorithm working on that signal. Although it is easy to try to match the model to a signal stream and determine if it was a good match or not, it is not trivial to design an efficient algorithm for the parts that resemble the model adequately enough. Moreover, a simple goodness of fit measure such as MSE can be too conservative, throwing away more than it should.
One important feature of the system is the separation of states into moving and static. Initially, the system does not know the true value of the swing angle. In this state, the system chases the true value of the swing angle by applying the error estimates, however large. The system computes statistics (e.g., mean and variance) of the incoming error estimates. Once the mean reaches zero and the variance becomes small enough, there is a high probability that the estimate has latched onto the true swing angle. This requires that the body be rocked enough times by moving the arm. An alternative way is for the operator of the excavator to hit a swing limit. Which method is quicker depends on the window size chosen for statistics computation. The benefit of transitioning into this state is that a lot more restrictions in gating observations can be afforded based on error estimates. The rationale is that, given the characteristic of gyroscope signals, and assuming the joint mechanism acts close enough to a single axis rotary joint, once equal to or close to the true angle, the main factor causing deviation is slow drift due to gyro random walk. In particular, while in this mode, the following safeguards can result in smooth estimates.
In most cases, swing angle observations ϑo fluctuate around the current swing angle estimate {circumflex over (ϑ)}. The closer the swing angle estimate {circumflex over (ϑ)} is to the swing angle observations ϑo, the larger is the probability that the swing angle observations ϑo is actually confirming the correctness of the swing angle estimate {circumflex over (ϑ)}. Based on this intuition, in the system, the correction variance is adaptively changed if the current estimate falls inside [ϑo−ξ, ϑo+ξ]:
where m is the magnitude. Note that half of the width of the uncertainty envelope is equated to 2σ of the normal distribution.
Statistical outlier analysis can help reject spurious corrections if the distribution is known. If the estimated error mean {circumflex over (μ)}δθ and variance {circumflex over (σ)}2δθ are small enough, a normal PDF (probability density function) can be reasonably assumed to reflect the true error disribution. Therefore, the Z-test can be used to reject outliers. More formally, reject any estimated error {circumflex over (δ)}θ is rejected if Zδθ<3, where
Another, much simpler strategy is to cap error magnitude to a limit. If the chosen limit is the same as the uncertainty region width, this effectively amounts to using error sign to center the estimate.
A similar strategy is to use an error deadband with the uncertainty envelope size. No correction will be applied to the filter is the angle estimate as long as it falls within the deadband.
The system works on the principle of continuous excitation. A given error estimate can thus be considered stale after it has been applied for a certain amount of time. This would prevent a stray error estimate from dragging the estimate for too long, especially when the operator stops operation and that particular correction happened to be the last one. Similarly, when the swing angle changes, the current correction (estimated before movement) must stop, and await subsequent observations.
After the initialization phase, where the estimate can be moving without any physical swinging happening, the magnitude of an error estimate must be commensurate with the amount of swing. In other words, the following is expected:
∫t
where t0 and t1 represent two consecutive times when error estimates arrived. Assume that {circumflex over (δ)}θ (t1) is an outlier and{circumflex over (δ)}θ (t0)≈0. The integral is denoted by {circumflex over (θ)}t
ε=σϑ
When the vehicle is positioned on a substantial slope, the observed swing angle ϑ0 can be computed in a more straightforward manner. The observed swing angle ϑ0 can be computed based on slope estimation by slope estimation module 408 of
First, rotation matrix Rswingbody is represented in a way that the axis of rotation of swing is made explicit. To do that, the matrix form of Rodrigues' formula is used:
where {right arrow over (u)}≡{right arrow over (u)}swing is the swing joint axis, θ is the angle of rotation of swing joint, and ×{right arrow over (u)} is the skew-symmetric matrix, and
Denoting the gravity vector by {right arrow over (g)}=(0,0,g)T (g≈−9.81), the output of the accelerometer (at rest) is given by:
The above expression may be expanded for the case of a general direction sensor that is rotated around the vertical axis ({right arrow over (u)}=(0,0,1)T) to show that the first two elements of the measurement (of an arbitrary direction) suffice to calculate the rotation angle, which is also unique inside [−π, π]. The same line of reasoning was followed for an arbitrary rotation (swing) axis and a fixed direction (gravity) to achieve the same result.
The above equation is expanded may be expanded to
where the left-hand side is the accelerometer output. To reduce the above expression into the special (and more manageable) case, a change of basis is performed that maps {right arrow over (u)} into (0,0,1)T. In other words, such a coordinate change maps the 3D space into the 2D dimensional subspace recognized as the plane of rotation whose normal vector is {right arrow over (u)}. Such a transformation would map {right arrow over (g)} into
{right arrow over (g)}{right arrow over (u)}=T{right arrow over (u)}{right arrow over (g)},
where T{right arrow over (u)} is an appropriate linear operator (3 by 3 matrix). It can now be shown that
The above equation can be compactly represented as complex numbers:
a
x
+ia
y
=e
θ(gx,{right arrow over (u)}+igy,{right arrow over (u)}) ,
which implies that
relating θ to the phase of accelerometer data and the initial phase before rotation (or in other words the amount of rotation of the cabin around its axis). Although a convenient formulation to demonstrate non-observability of the swing rotation in the general case, working with raw accelerometer data is difficult (due to noise and linear acceleration) and the above correction can only be applied at certain times when estimated gravity is stable. The effort to estimate gravity can instead be spent to estimate swing IMU pitch and roll, thus leveraging the behavior of the gyroscopes as well. Assuming for now that the IMU pitch and roll is available, the formula
gives direction on a slope, which is equivalent to the swing angle. From the swing angle, the rotation of the cabin is subtracted to provide the observed swing angle ϑο. The slope is given by:
ξ=arcsin(sin2(ø)+cos2(ψ))1/2.
However, for direction (swing) angle to be observable, the magnitudes of either pitch or roll or both should exceed a threshold. The above measure outputs the same value as long as pitch and roll are equal, regardless of magnitude. As the rotation axis approached the vertical, the observability starts to vanish, corresponding to infinite variance.
In some embodiments, the vehicle may already be instrumented with existing sensors (e.g., IMUs). In these embodiments, the kinematic angle estimation module can receive the sensor data from the existing sensors, thereby reducing costs. The formulation of the error estimation will not change. However the complexity will increase and deterioration of the quality of the estimation is possible. This is because the existing sensor on the swing boom will measure two motions: body motion as well as swing boom motion with respect to the body. Thus, the swing to body rotation matrix estimation will no longer be sufficient and should include a pitch component. The challenge will be to extract the common motion where the existing sensors undergo the same pitch motion. Any residual pitch component will add to the error.
The computation of inclination (pitch and roll) for points of interest on the machine, specifically the body, the swing link, and the boom, will first be considered. Attitude estimation may be performed using the unit quaternion representation of rotations and employing a Kalman-type filter as an observer. Other representations (e.g., DCM (direction cosine matrix) and Euler angles) and observers (e.g., complimentary filters and nonlinear observers) may be employed.
Denoting by q =(qw, qx, qy, qz) the unit quaternion encoding the attitude of an IMU, such as the cabin, swing or boom, its time evolution is governed by
where rQ=(0 r)T , r∈3, {right arrow over (ω)} are gyroscope outputs {right arrow over (ω)}body, {right arrow over (ω)}swing or {right arrow over (ω)}boom, b=(bx by bz) are gyro biases, ⊗ denotes quaternion multiplication and
and the equality
q1⊗q2=[q1XQ]q2=[XQq2]Q1
in the last equation. The state of the filter is xn=(qn, bn)T, and the filter estimates biases. Zero order forward integration can be used to derive the discrete time state evolution equation for the extended Kalman filter:
The state transition matrix and the noise matrices are given by
Note that the yaw angle is not of interest and therefore an observation for the yaw angle is not provided for. To correct for pitch and roll, assume for the moment that an estimate of the gravity vector expressed in the IMU local frame ĝ is available. An innovation can be computed by
ĝ−R({circumflex over (q)})T(0 0 g)T,
where R({circumflex over (q)}) is the rotation matrix representation as a function of the quaternion attitude. Thus, the observation matrix is given by
There are two major methods for estimating the gravity vector: static and dynamic.
Static: Only correct the filter during times when the accelerometer output is equal to gravity in local IMU frame. This is the case when the accelerometer output has small enough variance and its magnitude is close enough to g. Then, using the energy-based strategy, the stationary hypothesis (H1) can be decided if both of the following relations hold true:
where σα2 is a scale factor in this special case. The downside to this method is that if the machine does not settle down often enough and long enough, corrections might not be frequent enough. To overcome this limitation, γ can be increased, along with the error variance of correction. A major benefit of this method, besides simplicity, is its independence from knowledge of the kinematics of the machine.
Dynamic: Compensate for linear acceleration and correct the filter all the time. This method is preferred in very dynamic and/or noisy environments. The compensation may be performed by adaptively changing the observation covariance matrix. This may be performed using robust Kalman filters, particularly if the acceleration can be computed with enough accuracy.
Generally, if pimu(t) denotes the position of an IMU in global space, considered as the end point of a serial mechanism whose base is located at pbase(t) (for example, the center of the body), this results in:
P
imu(t)=Pbase(t)+KDH(θ),
where KDH(θ) denotes the kinematic mapping computed using the Denavit-Hartenberg convention and θ is the vector of angles of the joints. Likewise,
v
imu(t)=vbase(t)+J(θ) {dot over (θ)},
where
is the Jacobian of the serial link mechanism and {dot over (θ)} are rates of turn of the corresponding joints. Assuming that the body is static during operation (which is a reasonable assumption barring occasional slippage), the linear acceleration sensed by the sensor is the representation of the acceleration by which the IMU is traveling in space in local sensor frame:
Thus, the local gravity for correcting the attitude filter is estimated as ĝimu=ƒimu−âimu. The above applies to body, swing, and boom IMUs, for which θ will be (θbody), (θbody, θswing), and (θbody, θswing, ϕboom), respectively. Similarly, θ will be (ωz,body), (ωz,body, ωz,swing−ωz,body) and (ωz,body, ωz,swing−ωz,body, ωy,boom−ωy,swing).
The kinematic map and its Jacobian will also be a function of certain lengths that are normally measured up as part of machine calibration. These are: horizontal distance between base and body IMU, horizontal distance between base and swing joint, distance between swing joint and swing IMU, distance between swing joint and boom joint, and distance between boom joint and boom IMU.
Finally, a scheme based on linear acceleration estimation will generally be more robust if some sort of adaptive variance is applied, especially to cover uncertain cases such as when the body slips or starts moving and velocity information is not available (as is the case in this system).
Systems, apparatuses, and methods described herein may be implemented using digital circuitry, or using one or more computers using well-known computer processors, memory units, storage devices, computer software, and other components. Typically, a computer includes a processor for executing instructions and one or more memories for storing instructions and data. A computer may also include, or be coupled to, one or more mass storage devices, such as one or more magnetic disks, internal hard disks and removable disks, magneto-optical disks, optical disks, etc.
Systems, apparatus, and methods described herein may be implemented using computers operating in a client-server relationship. Typically, in such a system, the client computers are located remotely from the server computer and interact via a network. The client-server relationship may be defined and controlled by computer programs running on the respective client and server computers.
Systems, apparatus, and methods described herein may be implemented within a network-based cloud computing system. In such a network-based cloud computing system, a server or another processor that is connected to a network communicates with one or more client computers via a network. A client computer may communicate with the server via a network browser application residing and operating on the client computer, for example. A client computer may store data on the server and access the data via the network. A client computer may transmit requests for data, or requests for online services, to the server via the network. The server may perform requested services and provide data to the client computer(s). The server may also transmit data adapted to cause a client computer to perform a specified function, e.g., to perform a calculation, to display specified data on a screen, etc. For example, the server may transmit a request adapted to cause a client computer to perform one or more of the steps or functions of the methods and workflows described herein, including one or more of the steps or functions of
Systems, apparatus, and methods described herein may be implemented using a computer program product tangibly embodied in an information carrier, e.g., in a non-transitory machine-readable storage device, for execution by a programmable processor; and the method and workflow steps described herein, including one or more of the steps or functions of
A high-level block diagram of an example computer 2002 that may be used to implement systems, apparatus, and methods described herein is depicted in
Processor 2004 may include both general and special purpose microprocessors, and may be the sole processor or one of multiple processors of computer 2002. Processor 2004 may include one or more central processing units (CPUs), for example. Processor 2004, data storage device 2012, and/or memory 2010 may include, be supplemented by, or incorporated in, one or more application-specific integrated circuits (ASICs) and/or one or more field programmable gate arrays (FPGAs).
Data storage device 2012 and memory 2010 each include a tangible non-transitory computer readable storage medium. Data storage device 2012, and memory 2010, may each include high-speed random access memory, such as dynamic random access memory (DRAM), static random access memory (SRAM), double data rate synchronous dynamic random access memory (DDR RAM), or other random access solid state memory devices, and may include non-volatile memory, such as one or more magnetic disk storage devices such as internal hard disks and removable disks, magneto-optical disk storage devices, optical disk storage devices, flash memory devices, semiconductor memory devices, such as erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), digital versatile disc read-only memory (DVD-ROM) disks, or other non-volatile solid state storage devices.
Input/output devices 2008 may include peripherals, such as a printer, scanner, display screen, etc. For example, input/output devices 2008 may include a display device such as a cathode ray tube (CRT) or liquid crystal display (LCD) monitor for displaying information to the user, a keyboard, and a pointing device such as a mouse or a trackball by which the user can provide input to computer 2002.
Any or all of the systems and apparatus discussed herein may be implemented using one or more computers such as computer 2002.
One skilled in the art will recognize that an implementation of an actual computer or computer system may have other structures and may contain other components as well, and that
The foregoing Detailed Description is to be understood as being in every respect illustrative and exemplary, but not restrictive, and the scope of the invention disclosed herein is not to be determined from the Detailed Description, but rather from the claims as interpreted according to the full breadth permitted by the patent laws. It is to be understood that the embodiments shown and described herein are only illustrative of the principles of the present invention and that various modifications may be implemented by those skilled in the art without departing from the scope and spirit of the invention. Those skilled in the art could implement various other feature combinations without departing from the scope and spirit of the invention.