i Source of Acquisition NASA Goddard Space Flight Center Accurate State Estimation and Tracking of a Non-Cooperative Target Vehicle Julie K. Thienel* U.S. Naval Academy, Department of Aerospace Engineering Annapolis, Maryland, 2l4O2, USA John M. VanEepoelt NASA Goddard Space Flight Center, Flight Dynamics Analysis Branch Greenbelt, Maryland, 20771, USA Robert M. Sannert University of Maryland, Aerospace Engineering Department, College Park, Maryland, 20742, USA Autonomous space rendezvous scenarios require knowledge of the target vehicle state in order to safely dock with the chaser vehicle. Ideally, the target vehicle state information is derived from telemetered data, or with the use of known tracking points on the target vehicle. However, if the target vehicle is non-cooperative and does not have the ability to maintain attitude control, or transmit attitude knowledge, the docking becomes more challenging. This work presents a nonlinear approach for estimating the body rates of a non-cooperative target vehicle, and coupling this estimation to a tracking control scheme. The approach is tested with the robotic servicing mission concept for the Hubble Space Telescope (HST). Such a mission would not only require estimates of the HST attitude and rates, but also precision control to achieve the desired rate and maintain the orientation to successfully dock with HST. I. INTRODUCTION Vehicles designed to rendezvous and dock with existing space missions are being considered for a number of scenarios. In-space assembly is considered a fundamental requirement to accomplish space exploration goals.ls2 ‘Space Tug’ concepts are being designed to provide servicing and refuelling for in-flight mission^.^,^ Kimura, et a1 present a demonstration mission for on-orbit maintenance of satellite^.^ In 2004 former NASA Administrator Sean O’Keefe asked the Hubble Space Telescope (HST) program to investigate robotic servicing of the HST to extend the science life.6 In all cases, the chase vehicle must have knowledge of the target vehicle state and must perform precise control in order to safely dock with the target vehicle. When the target vehicle is non-cooperative, meeting the knowledge and control requirements becomes much more challenging. This work applies an approach to estimate the attitude and rates of a non-cooperative target vehicle, and then uses the attitude and rate estimates as the desired state of the chase vehicle tracking control algorithm. The target vehicle attitude estimate is assumed to be provided by a vision or feature-based sensor. The target rate is determined with the nonlinear estimation approach presented in reference 7. The estimator is exponentially stable in the absence of any measurement errors, and remains robust to bounded perturbations resulting from uncertainties in the measured target attitude. The estimator provides the desired rate for the nonlinear passivity-based control scheme presented in reference 8. The nonlinear controller is asymptotically stable in the absence of any disturbances. The actual attitude of the chase vehicle is assumed to be available from an accurate sensor such as a star tracker. The chase vehicle rates are provided by calibrated gyros. The stability of the nonlinear control algorithm, given bounded estimates of the desired state of the chase vehicle, is explored through simulations. We consider the effects of additional error sources, such as second *Aerospace Engineer, [email protected], phone:410-293-6400, and AIAA Member. Aerospace Engineer, [email protected], phone:301-286-9216, and AIAA member. $Professor of Aerospace Engineering, rmsannerOeng.umd.edu, phone:301-405-1928, and AIAA member. 1 of 10 American Institute of Aeronautics and Astronautics to here as the Hubble Robotic Vehicle (HRV), is used as the test scenario. The HRV must be capable of docking with HST, regardless of the orientation or rotation rate of HST, includmg the scenario in which the HST batteries have died and HST is tumbling. The next section gives an overview of the mathematical terms. Then the nonlinear estimation algorithm is summarized, followecl by a summary of the nonlinear control algorithm. We then present the results of several scenarios, applied to the HST-HRV mission concept. Finally conclusions are given along with future considerations. 11. Attitude and Angular Rate Definitions The attitude of a spacecraft can be represented by a quaternion, consisting of a rotation angle and unit rotation vector e, known as the Euler &, and a rotation about this axis so thatg #J [ ] [ ;] e Sin($) q= cos($) = where q is the quaternion, partitioned into a vector part, E, and a scalar part, Q. The target attitude quater- nion is designated as qt, which defines the rotation ffom inertial to the target spacecraft body coordinates. The chase vehicle attitiide quaternion is designated as 4,. The rotation, or attitucle, matrix can be computecl from the quaternion components asg + R = R(q)= (q2- E ~ E ) ~I ~E -E 27~lS( ~) where 13 is a 3x3 identity matrix and S(E)i s a matrix representation of the vector cross product operation. Note also that R(q)E = E. The derivative of R(q) is given asg where w is the angylar velocity in body coordinates. A relative rotation between coordinate frames is computed aslo Using the definition given in equation 2, the relative attitude quaternion from the chase vehicle body coor- dinates to the target body coordinates is then i7ct = qt @ qZ1 (3) The angular velocity of the target vehicle body coordinates with respect to inertial space, resolved in target body coordinates, is designated a~su t.S imilarly the angidar velocity of the chase vehicle in chase vehicle body coordinates is designated as w,. 111. Target Vehicle Nonlinear Angular Velocity Estimator The angular velocity estimator is intended for the scenario in which the target vehicle is non-cooperative. For example, in the HST robotic servicing mission the estimator would be used in the event that the HST batteries have died and no telemetry is available from HST. The chase vehicle is equipped with an accurate quaternion star tracker, which provides ge, and a sensor system which produces a measurement of the relative qiiaternion, Get. The unknown target vehicle angular velocity is estimated in the inertial coordinate system through the estimation of the target vehicle inertial angular momentum. The target vehicle angular velocity 2 of 10 American Institute of Aeronautics and Astronautics in body coordinates is computed by a transformation of the inertial angular velocity. The development and stability analysis of the algorithm are provided in reference 7. The algorithm is summarized here. The system equations cons+k. of the kinematic equation for the target vehicle attitude quaternion and Euler's eqiiation for the target vehicle given in inertial coordinates 1 1 1 & = -2Q (qt)wt = ?Q(qt)Rtwi,t = jQ(qt)IclRthi,t k,t = Ti,t where It is the target vehicle inertia matrix in body coordinates, assumed to be constant. Note that Ii,t = RtTItRt, where Ii,t is the inertia matrix in inertial coordinates and & is the target vehicle attitude matrix defining the transformation from inertial to target body coordinates. Tj,t is the external torque acting on the target vehicle, resolved in inertial coordinates, and + where, by inspection, Ql(qt)= S(Et). The predicted target vehicle quaternion as defined as - - J it=[: The attitude error is defined as the relative orientation between the predicted attitude Gt and the measured attitude, qt, computed from eqiiation 2 hom the measured relative attitude quaternion and the measured chase vehicle attitude quaternion. The estimator attitude error is The state estimators for the HST attitude and angular momentum are defined as The term R(@t)iTn equation 6 transforms the angular velocity terms from the body frame to the predicted attitude frame. The gain k is chosen as a positive constant. Similarly, the learning rate, P, is also a positive et constant. Essentially, is a prediction of the attitude at time t: propagated with the kinematic equation using the estimated angular momentum. The error equations are given as & 1 = ,Q(@t)(ITIRthi,t- IrlR& - kEtsign($)) Let ki,t = hi,t - A+. The derivative of ki,t is Li,t = ---P@ Ir'Etsign(i) . (9) 2 Note that the equilibrium states for 8 and 9 are [ g a$].=[ 0 0 0 fl 0 0 0 1 In the absence of any errors, equations 8 and 9 are exponentially stable, i.e Ot -+ wt exponentially fast.7 3 of 10 American Institute of Aeronautics and Astronautics Reference 7 examhs the stability of the nonlinear estimator given errors in the relative attitude qiiater- nion. The measurement of the relative attitude quaternion from the vision and feature based sensor was the largest source of error for HRV. When the true quaternion is unknown, equations 6 and 7 cannot be implemented. Instead, the erroneous meamred attitude qt,, $ iised in place of qt, resulting in fi,t is the estimated external torque. The estimator, however, remains robust to disturbances in the relative attitude measurement. The acldition of a leakage term ensures that the system remains bounded in the event of unusiidy large distiirbances. IV. Chase Vehicle Control Algorithm Prior to docking with the target vehicle, the chase vehicle control system milst force the chase vehicle to match the attitude and attitude rates of the target vehicle to within some mission specific tolerance. In the non-cooperative scenario considered here, the target vehicle attitude ancl rates are provided by the nonlinear estimator of the previous section. The chase vehicle is equipped with star trackers and calibrated gyros to provide the necessary feedback signals to the control algorithm. In this work we consider the nonlinear adaptive controller of reference 8. The attitnde dynamics of the chase vehicle, modelled as a rigid spacecraft, &e given as (the time depen- dence Ls omitted for clarity) + + IC&, - S(ICW, h,)w, = u h, where I, is the inertia matrix, u is the applied external torque, w, is the angrllar velocity, and h, is the wheel momentum in body coordinates. The goal of the control law is to force the attitude of the chase vehicle, qc to asymptotically track the target vehicle attitude, qt, and the target vehicle rate, wt. The attitude tracking error is compiited with equation 2 as The rate tracking error is given as k c = wc - R(Gt,)wt where R(cT,,) transforms the angular velocity from the target vehicle body frame to the chase vehicle body frame. The control law is given as + + + TL = -Kp~(t) La, - S(ICw, h,)w, KD is any symmetric, positive definite matrix and s is an error defined as + s = Lit, XZt, = w, - w, where X is any positive constant. The reference angular velocity w, is computed as wr = R(Gtc)wt - The derivative of w, is given as a, = Gr = - S(Gc)R(4?tc)wt- XQ1( Gct)kc Asymptotically perfect tracking is obtained with the above control scheme, given noise free measilrements of the states w, and q,. Reference 11 also shows that the control scheme is robust to bgyro bias errors and 4 of 10 American Institute of Aeronautics and Astronautics bounded noise disturbances. (The gyros are assumed to be calibrated for scale factor and misalignment errors prior to the approach and capture phase. Gyro bias errors can be estimated a priori as well.) Ln a typical control application the desired states are well defined. In this work, however, the desired states are estimated with the nonlinear estimator outlined in the previous section. The nonlinear estimator provides continuous estimates of the desired attitude, desired rate, and derivative of the desired rate. The et. desired attitude is provided by the estimator as The control error is then computed as The desired rate, wt in the target body coordinates, is computed from the estimated angular momentum as Wt = I;%(&)&,t The chase vehicle desired angular acceleration, in the target body coordinates, is then + Ljt = I;1[k(4&,t R(a,)R,tl Substituting for A(&) from equation 1 and hz,tf rom equation 11, cjt is written as P + + bt = IFIP(Gt)R(QJk,t R(Q,>(*i,t Z~~,~~’~t,~sign(??t,~))l where Et,,, fjt,rn, and &,m are all calculated using the measured attitude. The goal is to demonstrate that the control algorithm will asymptotically track the estimated states, which are bounded estimates of the true states in the presence of measurement errors. V. Simulation Results The algorithms outlined in the previous sections are tested in two simulation environments. Both sim- ulations are based on an HRV-HST rendezvous scenario. The first simulation is developed in Matlab. The Matlab simulation gives a high level indication of the performance of the combined estimator and control algorithm. Then the simulation is developed in the NASA Goddard Space Flight Center simulation environ- ment known as Freespace (FSP). FSP is a C-based high performance, simulation environment. FSP utilizes shared memory with a modular environment which allows for simultaneous processing and visualization. The results from the Matlab simulation are presented first, followed by results from FSP. The HST (target) inertia is1’ [ I 36046 -706 1491 It= -706 86868 449 k9.m’ 1491 449 93848 The HRV (chase) inertia matrix isi2 [ 1 18748 525 -2197 I,= 525 55903 1366 kg.m’ -2197 1366 53025 The HST truth model simulation includes aerodynamic torque and gravity gradient torque with second order effects.13*l 4 The HST attitude measurements are simulated by rotating the true HST attitude by a random angle about a random unit direction. The random angle is generated from a zero mean, normal distribution, the random unit direction is generated from a zero mean, uniform distribution. The standard deviation of the random angle is first set at 5 degrees, after approximately 30000 seconds the standard deviation is reduced to 1 degree. The vision sensors are expected to improve as the separation between the vehicles decreases. The estimator is initialized with the first attitude measurement. The HRV attitude is initialized at qc = [0,1,0,0]. 5 of 10 American Institute of Aeronautics and Astronautics The initial HRV angular velocity is w, = [0, 0, 01 deg/sec. The HST truth model is initialized with a random attitude, and a random initial angular velocity, generated with a zero mean, normal distribution with a standard deviation of 0.07 deg/sec/axis. Figures 1 through 4 shows the true attitude control error and the ana&ar velocity control error for each axis for 100 test cases. Each case contains a different initial random attitude and rate in the HST truth model, and different random measured attitudes. The top plot of each figure shows the convergence once the controller is started at 5000 seconds. The bottom plot shows the steady state behavior. The ha1 ... ... r . ....:. ..... I.... .I *I....... .....I. ~ 00 " 1 2 3 4 5 time (sec) lo4 Figure 1. True Attitude Control, Transient and Steady State Errors - 1 U <QI 0.5 n ; -0.5 3* -1 5000 6000 7030 8000 9000 10000 11000 12000 0.05 U m m \ P a, 0 k k 0 sX -0.05 1 2 3 4 5 lo4 time (sec) Figure 2. True X Axis Angular Velocity Control Errors, Transient and Steady State average attitude control error for all 100 cases is 0.37 deg. The ha1 average angular velocity control error 6 of 10 American Institute of Aeronautics and Astronautics - 1 I u .......i .. ... ........ :. ......' .....: . ...... ......: . ..,.........: . .........,. 1 I 5000 6000 7000 8000 9000 10000 11000 12000 0.05 V Ql m \P a, 0 & & m ?A-0*05 1 2 3 4 5 time (see) IO* Figure 3. 'Due Y Axis Angular Velocity Control Errors, Transient and Steady State 5000 6000 7000 8000 9000 10000 11000 12000 - 0.05 V Qm) \ tn m a, 0 &I tl tu- 0.05 '1 . 2 3 4 5 time (sec) IO* Figure 4. True Z Axis Angular Velocity Control Errok, -Transient and Steady State 7 of 10 American Institute of Aeronautics and Astronautics for all 100 cases is [ ] -0.00028 k;tt,(ave in deg/sec) = 0.0062 -0.0072 Next, the algorithms are tested in the FSP high fidelity simulator. The Freespace truth model contains gravity gradient and aerodynamic external torques acting on both HST and HRV. The HRV gravity gradient torques are input to the control algorithm as a feed forward torque. The scenario developed for these results places the HRV at the 50m hold point on the HST -V1 axis (boresight axis), which is the point at which the rescue mission would have begun to match the attitude and angular rate of HST for docking. The estimator performance in Freespace compares to the resilts in reference 7, though with a longer convergence time. The attitude of HRV is initially controlled using a coarse attitude control with no roll constraint, imtil 15000 sec (4 h, 10 min) when the target attitude tracking controller is enabled. Figures 5 and 6 show the magnitude of the true attitude control error and the true angular rate error. The magnitudes of the attitude control error converge to 0.02 deg at the end but vary as high as 0.15 deg. The rate error does not have as much variation and converges to 2.8 x low5d eg/sec. Next, sensor noise is added to the relative True Control Error Magnitude between HST and HRV .mti / -U O I L -J u 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 Time [secl lo4 Figure 5. True Attitude Control Errors from Reespace, No Measurement Errors - ,,,-3 True Control Rate Error between HST and HRV --1 .5 2 2.5 3 3.5 ~ 4 4 ~~. 5 5 5.5 6 P Z ‘P 2 s o m -Xrl -21 .5 2 2.5 3 3.5 4 4.5 5 5.5 6 Y io4 $I IO-” m 2 -rl I o N -2 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 Time [secl lo4 Pipe 6. True Rate Control Errors from Freespace, No Measurement Errors 8 of 10 American Institute of Aeronautics and Astronautics quaternion measurement by corrupting the true relative attitude measurement with a randomly generated quaternion with a 3a magtitilde of 10 deg. Figure 7 shows the magnitide of the true attitilde controller error, which converges to 0.75 deg, with only slight variations above 1 deg. Figure 8 shows the convergence . of the true angular rate error, which converges to 0.00091 deg/sec. For a relative quaternion measurement with only 1 deg of error, the controller attitude and rate errors converge to 0.075 deg and 0.0024 cleg/sec, respectively. True Control Error Magnitude between HST and HRV 1.5 2 2.5 3 3.5 4 4.5, 5 5.5 6 Time Csecl x IO4 Figure 7. The Attitude Control Errors from Beespace, 10 deg Measurement Error True Control Rate Error between HST and HRV m -34 0 ;c - -0.02 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 <0 lo4 0.02 a, 2 0 m 2 -0.02 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 h lo4 0.02 m -x4 0 I N -0.02 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 Time [see] x lo4 Figure 8. True Rate Control Errors from Freespace, 10 deg Measurement Error These results confirm the findings of the low fidelity MATLAB simulation, and also enable further experiments to characterize the estimator / controller interaction and behavior under various conditions (i.e. varying the measurement error, the initial target rates, and dynamic model fidelity). VI. Conclusions An approach for estimating the attitude and rates of a non-cooperative target vehicle and then controlling the chase vehicle to match the estiited attitude and rates is presented. The attitude and rates are estimated with a nonlinear estimation algorithm that is robust to measured attitude errors. The nonlinear control algorithm is asymptotically stable in the absence of errors, and remains robiist given bgno measurement 9 of 10 American Institute of Aeronautics and Astronautics errors. The algorithms are applied to the proposed HST robotic servicing mission and are tested fkst with a Natlab simulation which includes random attitude measurements and random initial conditions. A Monte Carlo simulation demonstrates that the combined algorithms are stable and converge to less than 0.4 deg and 0.01 deg/sec in attitude and rate control errors (magnitude), respectively. The algorithms are then tested in a high performance simulation environment known as Freespace. Again, the combined algorithms are stable and converge to hal errors less than 0.075 deg and 0.0024 deg/sec. Future work will expand the simulation scenario in Freespace. The vision sensors will be modelled and used to provide the relative attitude measurement. Additional fidelity will be added to the wheel models and the chase vehicle gyros, along with a star tracker based attitude estimation algorithm for the chase vehicle. References lMachula, M. F. and Sandhoo, G. S., “Rendezvous and Docking for Space Exploration,” 1st Space Exploration conference: Continuing the Voyage of Discovery, No. 2005-2716, Orlando, Florida, January 2005. ‘Zimpfer, D., Kachmar, P., and Tuohy, S., “Autonomous Rendezvous, Capture and In-Space Assembly: Past, Present, and Future,” 1st Space Exploration Conference: Continuing the Voyage of Discovery, No. 2005-2523, Orlando, Florida, January 2005. ”Wingo, D. R., “Orbital Recovery’s Responsive Commercial Space Tug for Life Extension hfissions,” AIAA 2nd Responsive Space Conference, No. 20046118, San Diego, California, January 2004. 4B~un~vGa,. A., Mierry, T. D., and deweck, 0. L., “Search Algorithms for Space Tug Rendezvous: Simulation and Experiment,” 2004 IEEE Aerospace Conference, Big Sky, Montana, March 2004. “imura, S., Nagai, Y., Yamamoto, H., Masuda, K., and Abe, N., “Approach for On-Orbit Maintenance and Experiment Plan Using 15Okg-class Satellites,” 2005 IEEE Aerospace Conference, Big Sky, Montana, March 2005. “Hubble Space Telescope Program, “HST Robotic Servicing Mission Concept Review,” Held at NASA Goddard Space Flight Center, May 2004. 7Thienel, J. K., Queen, S. Z., VanEepoel, J. M., and Sanner, R. At., “HubbleS pace Telescope Angular Velocity Estimation During the Robotic Servicing Mission,” AIAA Guidance, Navigation, and Control Conference, No. 2005-6396, San Francisco, California, August 2005. 8Egeland, 0. and Godhavn, J., “Passivity-Based Adaptive Attitude Control of a Rigid Spacecraft,” IEEE Transactions on Automatic Control, Vol. 39, No. 4, April 1994, pp. 842-846. ”Shuster, M. D., “A Survey of Attitude Representations,” The Journal of Astronautical Sciences, Vol. 41, No. 4, October- December 1993, pp. 439-517. ”Sanner, R. M., “Adaptive Attitude Control Using Fixed and DynamicallyS tructured Neural Networks,” AIAA Guidance, Navigation, and Control Conference, No. 96-3891, San Diego, California, July 1996. llThienel, J., Nonlinear Observer/Controller Designs for Spacecraft Attitude Control System with Uncalibrated Gyros, Ph.D. thesis, University of Maryland, 2004. 12Queen, S., “HRV GNC Peer Review, Flight Performance Analysis,” Tech. rep., NASA Goddard Space Flight Center, 2004. l”Skelton, E. and Ramsey, P., “HST Aerodynamic Torque Model and Algorithm Description Document,” Tech. rep., Mission Operations, Systems Engineering and Software Program, Lockheed Martin Corporation - Space Systems Company, 2004. 14Roithmayr,C . M., “Gravitational hfoment Exerted on a Small Body by an Oblate Body,” AIAA Journal of Guidance, Control, and Dynamics, Vol. 12, No. 3, May-June 1989, pp. 441444. 10 of 10 American Institute of Aeronautics and Astronautics