Control design for a multi-regime 6-DOF underwater vehicle; development of MARIN’s modular AUV

Control design for a multi-regime 6-DOF underwater vehicle; development of MARIN’s modular AUV

Available online at www.sciencedirect.com ScienceDirect IFAC PapersOnLine 52-21 (2019) 230–235 Control design for a multi-regime 6-DOF Control Contr...

710KB Sizes 0 Downloads 50 Views

Available online at www.sciencedirect.com

ScienceDirect IFAC PapersOnLine 52-21 (2019) 230–235

Control design for a multi-regime 6-DOF Control Control design design for for a a multi-regime multi-regime 6-DOF 6-DOF underwater vehicle; development of Control design for a multi-regime 6-DOF underwater vehicle; development of underwater vehicle; development of MARIN’s modular AUV MARIN’s modular AUV underwater vehicle; development of MARIN’s modular AUV ∗ ∗ ∗ MARIN’s modular AUV Bas Bas J. J. de de Kruif Kruif ∗∗ Hans Hans Cozijn Cozijn ∗∗ Haite Haite van van der der Schaaf Schaaf ∗∗

Bas Cozijn van ∗ ∗ ∗ Haite Bas J. J. de de Kruif Kruif ∗∗ Hans Hans Cozijn Haite van der der Schaaf Schaaf ∗∗ ∗ Egbert Ypma ∗ Egbert Ypma ∗ ∗ ∗ ∗ Bas J. de Kruif Hans Cozijn Haite van der Schaaf ∗ Egbert Ypma ∗ ∗ Egbert Ypma (MARIN), ∗ ∗ Maritime Research Institute Institute Netherlands Netherlands (MARIN), The The Netherlands Netherlands ∗ ∗ Maritime Research(e-mail: Maritime Research(e-mail: [email protected]). Netherlands (MARIN), The Netherlands [email protected]). ∗ Maritime Research(e-mail: [email protected]). Netherlands (MARIN), The Netherlands (e-mail: [email protected]). Abstract: Marin Marin is is designing designing and and building building aa modular modular autonomous autonomous underwater underwater vehicle vehicle Abstract: Abstract: Marin is will designing building for a modular autonomous (mAUV). The The vehicle will serve as asand platform for research projects projects to be beunderwater carried out out vehicle in our our (mAUV). vehicle serve aa platform research to carried in model test test The basins. The modular design will enablefor future extensions with additional sensors and Abstract: Marin is modular designing building afuture modular autonomous (mAUV). vehicle will servedesign asand a will platform research projects to additional beunderwater carried sensors out vehicle in and our model basins. The enable extensions with actuators. design of theserve vehicle itsenable control system isprojects aimedwith at combining capabilities (mAUV). vehicle will as aand platform forfuture research to combining be carried sensors out in and our model test The basins. The of modular design will extensions additional actuators. The design the vehicle its control system is aimed at capabilities and for position keeping (zero speed) and track sailing (medium and high speed). The vehicle is model test basins. The modular design will enable future extensions with additional sensors and actuators. The design of the vehicle and its control system is aimed at combining capabilities for position keeping (zero speed) and track sailing (medium and high speed). The vehicle is for positionin keeping (zero and track sailing (medium high speed). Thecapabilities vehicle is controlled in alldesign degrees ofspeed) freedom, without any a-priori a-priori limitations. actuators. The of the vehicle and its control systemlimitations. is and aimed at combining controlled all 66 degrees of freedom, without any Thisposition paperindescribes describes the control control design of the the mAUV. A feedback feedback controller isThe designed and for keeping (zero and without track sailing (medium and high speed).is vehicle is controlled all 6 degrees ofspeed) freedom, any a-priori limitations. This paper the design of mAUV. A controller designed and its robust stability analysed under parametric uncertainty and dynamic uncertainty due to the controlled in all 6 degrees of freedom, without any a-priori limitations. This paper describes the control design of the mAUV. A feedback controller is designed and its robust stability analysed under parametric uncertainty and dynamic uncertainty due to the its robust analysed underdesign parametric dynamic uncertainty due to and the non-linear behaviour of its its thrusters and the manoeuvring characteristics. Asis the the system is This paperstability describes the control of the theuncertainty mAUV. A and feedback controller designed non-linear behaviour of thrusters and manoeuvring characteristics. As system is non-linear behaviour of its thrusters and the manoeuvring characteristics. As the system is not limited to small angles, the attitude is determined with quaternions to avoid singularities. its under parametric uncertainty and dynamic uncertainty due to the notrobust limitedstability to smallanalysed angles, the attitude is determined with quaternions to avoid singularities. Simulations show that the system performs well at keeping its itstotrack, track, but currently non-linear ofthe itscontrolled thrusters andis the manoeuvring characteristics. As the system is not limitedbehaviour to small angles, the attitude determined with at quaternions avoid singularities. Simulations show that system performs well keeping but currently controlled the tracking performance degrades at at higher velocities. not limited to small angles, the attitude is determined with quaternions to avoid singularities. Simulations show that the controlled system performs well at keeping its track, but currently the tracking performance degrades at at higher velocities. the tracking show performance at system at higher velocities. Simulations that thedegrades controlled performs well at keeping its track, but currently Copyright © 2019. The Authors.degrades Published by Elsevier Ltd.velocities. All rights reserved. the tracking performance at at higher Keywords: Autonomous underwater vehicles, robust stability, control design, design, quaternion quaternion Keywords: Autonomous underwater vehicles, robust stability, control feedback Keywords: Autonomous underwater vehicles, robust stability, control design, quaternion feedback feedback Autonomous underwater vehicles, robust stability, control design, quaternion Keywords: feedback 1. INTRODUCTION INTRODUCTION 1. 1. INTRODUCTION The Maritime Maritime Reasearch Reasearch Intstitute Netherlands, Netherlands, Marin, Marin, 1. INTRODUCTION The Intstitute The Maritime Reasearch Intstitute Netherlands, Marin, is designing and building an autonomous underwater vehiis designing and building an autonomous underwater vehiis andReasearch building autonomous underwater vehicledesigning (auv). The vehicle willan serve as aa Netherlands, platform for research research The Maritime Intstitute Marin, cle (auv). The vehicle will serve as platform for cle (auv). vehicle willan as a platform for research projects toThe be carried out inserve our model basins. The project is designing and building autonomous underwater vehiprojects to be carried out in our model basins. The project projects to be carried out in our model basins. The project foreseen with the auv are concerned about i) the hydrodycle (auv). The vehicle will serve as a platform for research foreseen with the auv are concerned about i) the hydrodyforeseen with the auv are concerned about i) the hydrodynamic forces forces acting onout relative small submersible vehicle projects to beacting carried in our model basins. The project namic on aa relative small submersible vehicle namic forces acting on a relative small submersible vehicle over an extended speed range: ii) the influence of the the foreseen with the auv are concerned about i) the hydrodyover an extended speed range: ii) the influence of Fig. 1. A cad drawing of the mAUV over an extended speed range: ii) the influence of the control and actuators on this behaviour, and iii) research namic forces acting on a relative small submersible vehicle control and actuators on this behaviour, and iii) research Fig. Fig. 1. 1. A A cad cad drawing drawing of of the the mAUV mAUV control and actuators on this behaviour, and iii) research on autonomous systems in relation to other (autonomous) over an extended speed range: ii) the influence of the on autonomous systems in relation to other (autonomous) Fig. 1. A cad drawing of the mAUV in our model basins. A common approach for for feedback feedback on autonomous systems relation to other (autonomous) vessels. control and actuators oninthis behaviour, and iii) research in our model basins. A common approach vessels. control of an auv is sliding mode control, among in our model basins. A common approach vessels. seefeedback among on autonomous systems in relation to other (autonomous) control of an auv is sliding mode control,forsee As the intended use and its missions are diverse, the auv others (Yoerger and Slotine, 1985; Breivik and Fossen, in our model basins. A common approach for feedback control of an auv is sliding mode control, see among As the intended use and its missions are diverse, the auv others (Yoerger and Slotine, 1985; Breivik and Fossen, vessels. As the intended use and its missions are diverse, the auv others (Yoerger and Slotine, 1985; Breivik and Fossen, has to be modular in design. The sensors, actuators and 2006). This approach incorporates the non-linear dynamics control of an auv is sliding mode control, see among has to be modular in design. The sensors, actuators and 2006). This approach incorporates the non-linear dynamics has to be modular inand design. The actuators and others configurations ofuse them should be sensors, interchangeable, while As the intended its missions are diverse, thewhile auv into feedback controller. order for approach (Yoerger and Slotine, In 1985; anddynamics Fossen, 2006). This approach incorporates theBreivik non-linear configurations of them should be interchangeable, into the the feedback controller. In order for the the approach configurations of them should besupport interchangeable, while the software software architecture should support this. The hardhardhas to be modular in design. The sensors, actuators and 2006). to the control model to be such This approach incorporates the into the feedback controller. In order forsimplified the dynamics approach the architecture should this. The to work, work, the control model needs needs tonon-linear be simplified such the software architecture should support this. The hardware and software design is detailed in (Cozijn et al., 2019). configurations of them should be interchangeable, while that all the states are measurable (Logan, 1994). A sliding into the feedback controller. In order for the approach to work, the control model needs to be simplified such ware and software design is detailed in (Cozijn et al., 2019). that all the states are measurable (Logan, 1994). A sliding ware and software design isshould detailed in in (Cozijn al., auv 2019). allcontroller the states are show measurable (Logan, 1994). A signals sliding A cad cad drawing of the the system is shown shown in Fig. 1.etThe The auv is that the software architecture support this. The hardmode can chatter in the control to work, the control model needs to be simplified such A drawing of system is Fig. 1. is controller can show chatter in the control signals A cad drawing of the system is shown in Fig. auv is mode slightly longer than meters, and is in moved by1.12 12 thrusters. ware and software design is detailed (Cozijn etThe al., 2019). if tuned incorrectly. As we the nonthat allcontroller the states are show measurable (Logan, 1994). A sliding mode can in to thecounter control signals slightly longer than 33 meters, and is moved by thrusters. if it it is is tuned incorrectly. Aschatter we plan plan to counter the nonslightly longer 3 meters, and is moved by1.12of thrusters. The subject of than this paper is the the control design of theauv auv. A cad drawing of the system is shown indesign Fig. The is mode linearities with aacan feed-forward in future work, showAschatter in to thecounter signals if it is controller tuned incorrectly. wecontroller plan the nonThe subject of this paper is control the auv. linearities with feed-forward controller incontrol future work, The subject of this paper is the control design of the auv. A 2-degree of freedom controller is proposed: a feedback slightly longer than 3 meters, and is moved by 12 thrusters. incorporating them into a sliding mode controller is not if it is tuned incorrectly. As we plan to counter the linearities with a feed-forward controller in future work, A 2-degree of freedom controller is proposed: a feedback incorporating them into a sliding mode controller isnonnot A 2-degree freedom controller isand proposed: a the feedback into a sliding mode the controller not controller toof counter disturbances and give some minimal The subject of this paper is the control design of auv. incorporating needed, aa them simpler controller without of linearities with a feed-forward controller in possibility future is work, controller to counter disturbances give some minimal needed, and and simpler controller without the possibility of controller to counter disturbances and give some minimal performance, even if there are unmodelled dynamics; and a A 2-degree of freedom controller is proposed: a feedback this chatter is preferred. incorporating them into a sliding mode controller is not needed, and a simpler controller without the possibility of performance, even if there are unmodelled dynamics; and a this chatter is preferred. performance, even if there are unmodelled dynamics; and a (future) feed-forward controller to improve the (tracking) controller to counter disturbances and give some minimal needed, and a simpler controller without the possibility of this chatter is preferred. (future) feed-forward controller to improve the (tracking) Furthermore, as the missions can include both track sailing Furthermore, as the missions can include both track sailing (future) feed-forward controller to improve the (tracking) performance (Skogestad and Postlethwaite, 2007). performance, even if there are unmodelled dynamics; and a this chatter is preferred. performance (Skogestad and Postlethwaite, 2007). to and then the this as interest, the missions include both track of sailing to an an object object of of interest, andcan then the assessment assessment of this performance (Skogestad and Postlethwaite, 2007). (future) feed-forward controller to improve the (tracking) Furthermore, The feed-forward controller needs a model of the hydroobject from different angles. The control should be able to Furthermore, as the missions can include both track sailing to an object of interest, and then the assessment of The feed-forward controller needs a model 2007). of the hydro- object from different angles. The control should be ablethis performance (Skogestad and Postlethwaite, to The feed-forward controller needs a model of the hydrodynamic and hydrostatic forces acting on the auv. This accommodate fast sailing and 6 dof low speed hovering. to an object of interest, and then the assessment of this object from different angles. The control should be able to dynamic and hydrostatic forces acting on the auv. This accommodate fast sailing and 6 dof low speed hovering. dynamic andis forces oncollected the auv.during This accommodate and 6 dof lowshould speed hovering. information is hydrostatic yet controller unavailable andacting will be collected during The feed-forward needs a model of the hydroAn of this behaviour might occur at the detection object from different angles. The control able to information yet unavailable and will be An example example of fast this sailing behaviour might occur at thebe detection information yetthe unavailable andacting will be collected during the operation operation of the auv. forces These values will be auv. compared dynamic andis hydrostatic on the This accommodate and recognition of sea-mines. The auv to to andmight 6 dof lowhas speed hovering. An of fast this behaviour occur at the detection the of auv. These values will be compared andexample recognition of sailing sea-mines. The auv has to go go to the the the operation of the auv. These values will be compared to the calculated values with cfd. A feedback controller information is yet unavailable and will be collected during mine, and then inspect the object from all possible angles. An example of this behaviour might occur at the detection and recognition of sea-mines. The auv has to go to the to the calculated values with cfd. A feedback controller mine, and then inspect the object from all possible angles. to the calculated values with cfd. A feedback controller and then inspect thebe object allhas possible angles. is needed such of that the auv can move inwill controlled way mine, theneeded operation the auv. These values be compared Hence, its attitude in Euler angles and recognition of cannot sea-mines. Thefrom auv to go as tothey the is such that the auv can move in aa controlled way its cannot be given given in angles they is such thatvalues the auv move in a controlled way Hence, Hence,and its attitude attitude cannot givenfrom in Euler Euler angles as as they to needed the calculated withcan cfd. A feedback controller mine, then inspect thebe object all possible angles. is2405-8963 neededCopyright such that the auv can move in a controlled its attitude cannot be given in Euler angles as they © 2019. The Authors. Published by Elsevier way Ltd. All Hence, rights reserved. Peer review under responsibility of International Federation of Automatic Control. 10.1016/j.ifacol.2019.12.312



Bas J. de Kruif et al. / IFAC PapersOnLine 52-21 (2019) 230–235

can become singular, known as the gimbal lock. In this work we use quaternions as described by Fossen (2011). In this paper we will describe the design and analysis of a feedback controller that is robustly stable for unmodelled dynamics including the difference in behaviour at different velocities. Although this paper will focus on the design and analysis, the controller needs to be easy to tune when it is used for the actual auv tests in our model basins. In order to come to a controller, we start with the description of our control model in section 2. We want feedback from our global position and attitude, as well as from body fixed angular velocities. This means that we have to map the global forces and torques to body fixed forces and torques. A simple linear model results on which which we base our control design. However, the system under investigation contains uncertainties and we need to analyse these to test if the controller remains stable. Some of these uncertainties stem from unknown parameters, such as added mass and damping. Another source of uncertainty is unmodelled dynamics. The Coriolis/centrifugal forces are dependent on the velocity but we model these as uncertainties. The same holds for the non-linear behaviour of the thrusters. A set of experiments to find an uncertainty model of the thruster is provided in section 3. In section 4 a set of state feedback controllers is designed by means of pole placement. The robust stability of these controllers is tested on the uncertainty model of the auv deduced in the previous section. A set of performance simulations is done on a detailed model to assess the performance of the selected controller.

231

in which the state η contains a position and a quaternion vector p and q, and the state ν is split in a velocity v and angular velocity ω part. Rnb (q) denotes the rotation matrix formed from quaternions, and Tq (q) the transformation from angular velocities to quaternion derivatives. Both matrices are given in (Fossen, 2011). The last equality can be found by comparing the matrix Tq (q) with the quaternion multiplications, see among others (Dam et al., 1998; Jensen and Wisniewski, 2001; Graf, 2008). We define the error for the translational part as: � T � et = (Rnb ) psp − p , (3) then the error dynamics for a constant reference position becomes: � �T� � T ˙n psp − p − (Rnb ) p˙ e˙ t = R b � T� T = S(ω)T(Rnb ) psp − p − (Rnb ) Rnb v = − (ω × et ) − v,

In order to use linear techniques such as pole placement, a linear control model is required and a full state vector. The mAUV’s state vector is available as the global positions are measured with a camera system in our towing tanks (Cozijn et al., 2019). A state feedback controller is used to utilise all this information. If the state is not measured, it can be estimated with a state estimator. The equations of motion for a 6 dof auv are given as (Fossen, 2011): η˙ = Jq (η)ν

(1a) bf

Mν˙ + C(ν)ν + D(ν)ν + g(η) = τ .

(1b)

In these equations, the vector η denotes the global position and attitude in quaternions, ν the body fixed (angular) velocity, and τ bf the body fixed actuator forces and torques. M, C(ν) and D(ν) denote the mass, Coriolis/centripetal and the damping matrix, respectively. The added masses are included in these matrices. The vector g(η) represents the hydrostatic forces. The matrix Jq (η) denotes the attitude dependent transformation matrix specified in quaternions. Eq. (1a) can be split into a part for translations and a part for rotations:   n � � � n � Rb (q)v � � p˙ Rb (q)v η˙ = (2) = = 0 , Tq (q)ω q˙ q ω

(4b) (4c)

in which S(ω) is the cross product matrix. Equivalently, if we define the error for the rotational part as: er = 2P log(¯ q q sp ). (5) In this equation P is a 3×4 matrix that selects the last three elements of the quaternion. For a unit quaternion, the logarithm of a quaternion results in log(q) = [0, αn] (Dam et al., 1998). Rotation of an angle α over the Euler axis n is similar as the rotation provided by the quaternion q. Hence, this error indicates the angle and axis over which the mAUV has to rotate to come to the set point attitude. With this error, the error dynamics become: � � 1 ¯ q sp ¯q˙ q sp ¯q˙ q sp = 2P q ¯ q sp q � � 0 q sp = 2P¯ q sp q¯q˙ q sp = −P¯ q sp ω ef � � 0 = −ω. = −P ω

e˙ r = 2P

2. CONTROL MODEL

(4a)

(6a) (6b) (6c)

ω ef is the earth fixed angular velocity. The body fixed rotation in the set point frame is equal to the rotation in the ship fixed frame for this rotation, as the rotation is around the Euler axis from the ship fixed frame to the set point frame. This allows for the transition from (6b) to (6c). The combined error dynamics become: e˙ =



e˙ t e˙ r



=



(ω × et ) − v −ω



Mν˙ + C(ν)ν + D(ν)ν + g(η) = τ bf

(7a) (7b)

As we will move with relative slow speed and want our damping from the controller, not from the physical damping, the Coriolis/centripetal forces will be neglected, and we will design our controller with the damping matrix set to zero. The first term on the right hand side of (7a) can be compensated for by applying an additional force, and will be therefore ignored for the rest of the work. Finally, the mAUV is designed to have the buoyancy point at the centre of gravity, possible with the help of the ballast tanks. This will result in small gravitational forces. The errors that are introduced by these assumptions are countered by

Bas J. de Kruif et al. / IFAC PapersOnLine 52-21 (2019) 230–235

232

velocity [m/s] or [rad/s] u = [−0.25, 1.0] v = [−0.2, 0.2] w = [−0.2, 0.2] p = [−0.2, 0.2] q = [−0.2, 0.2] r = [−0.2, 0.2]

introducing uncertainty in the model, as will be discussed in the next section. The feedback law can be designed with linear control as τ bf = Ke. The advantage of using the transformed output, is that especially for the rotations, we lost the non-linear term with the unity constraint on its magnitude. 3. UNCERTAINTY MODELLING The state controller does not explicitly incorporate the uncertainty in its design. We want our feedback system stable for uncertain effects, and in the next section the robust stability against the uncertainties is analysed. Two sources of uncertainty are considered: i) parametric uncertainty and ii) dynamic uncertainty. 3.1 parametric uncertainty

101

10% 5% 2% 25% -5%

100

a

101 |ω/I|

damping N/(m·s)] or [N/(rad·s)] Xu = 5 ± 25% Yv = 7.5 ± 25% Zw = 7.5 ± 25% Kp = 5 ± 25% Mq = 7.5 ± 25% Nr = 7.5 ± 25%

100

|F/F r|

added mass [kg] or [kgm2 ] Xu˙ = 40.0 ± 10% Yv˙ = 200 ± 10% Zw˙ = 200 ± 10% Kp˙ = 0.0 − 5.0 Mq˙ = 125.0 ± 10% Nr˙ = 125.0 ± 10%

b

100

10−1

c 100 W (s)∆ [-]

mass [kg] or [kgm2 ] m = 236 m = 236 m = 236 Ixx = 6.6 Iyy = 213 Izz = 213

|F/I|

Table 1. uv properties and velocity range.

10−2

d

The parametric uncertainties can directly be used in the equation of motion. The values of the parameters as well as their assumed uncertainties are given in Table 1. The uncertainty of the mass and added mass is combined in the uncertainty for the added mass. The uncertainty in the damping is chosen to encompass both the linear and the quadratic damping terms. They are modelled as uncertainty, and are not treated as velocity dependent. The controller does not incorporate the actual velocity, but it should be stable for the velocity ranges during operation. The Coriolis matrix C(ν) is velocity dependent, and changes the behaviour of the system due to its velocity. The auvs velocity is therefore modelled as an uncertain parameter that influences the matrix C(ν). Several velocity ranges are used to test at what speed the robust stability becomes a problem. Next to the first range given in the table, the second range sets the maximum surge velocity at 0.25 m/s, the third range bounds all the velocities between -0.1 – 0.1 m/s, and the last range makes all the velocities equal to zero. 3.2 dynamic uncertainty Next to a set of parametric uncertainty, we have a dynamic uncertainty due to the use of thrusters. A set of Blue Robotics T200 thrusters is used to deliver thrust to the auv. These thrusters were equipped with hall sensors to tightly control their angular velocity. The thruster dynamics are dependent on the rotational velocity of the thrusters as well as on the water speed relative to the propeller blades, as noted in (Yoerger and Slotine, 1985; Healey et al., 1995). We want to identify the generated thrust as function of frequency at different rotational

100

101 frequency [Hz]

Fig. 2. The response of the thrust and the rotational velocity due to driving motor torque. Different offset torques are shown. velocities. Again, the state feedback controller does not incorporate this information, so we model it as uncertainty. A single thruster, disassembled from the mAUV, is connected to a fixed thrust sensor and placed in our basin. The basin’s length of 250 m minimises the chance of residual flow. The thruster is not moving. A constant electrical current, related to a constant motor torque, is applied to the thruster. A set of sinusoid currents are superimposed on this. The amplitude of these sinusoids was chosen as small as possible, but still resulting in a clear response. The direction of rotation did not change during the experiment. The excitation is known as multisines (Pintelon and Schoukens, 2012). The thrust, F , current, I, and angular velocity, ω, were measured at 100 Hz. The amplification at the excitation frequencies for current to thrust and current to rpm were calculated. The results of these amplifications are shown in Fig. 2a and b. The response for several current offsets are shown in this figure. Fig. 2a shows that the thrust at low frequencies is nearly independent from the motor torque, i. e. the motor torque is proportional to the motor current. This behaviour corresponds with the above cited literature. The dry friction will give some small differences though. The thrust is also known to be quadratically related to the angular



Bas J. de Kruif et al. / IFAC PapersOnLine 52-21 (2019) 230–235



 

ω

ω





ω

ω

ω



Fig. 3. scheme to calculate the thrust based on the requested thrust. Gray blocks are known. The lead-lag controller is designed to have a bandwidth of 10 Hz velocity. The angular velocity amplification will therefore be smaller for larger motor torques. This can be observed in Fig. 2b. The dynamic response is measured for a positive and negative direction at 5% of the motor current. These lines fall on top of each other. There is no directional difference in the dynamic response. There was a small difference observed in the steady state response, although these measurements are not shown here. Furthermore, a resonance – anti-resonance can be seen in the transfer from the motor torque to the force at 20 and 30 Hz. This is attributed to the stiffness in the measurement system (Koster et al., 1998). A vibration around that frequency was also observed when the mechanical system was hit before the experiments. The angular velocity of the thrusters will be controlled during the operation of the auv to compensate for the dry friction. The relation between steady state angular velocity and thrust is known to be quadratic, and its coefficient has been measured. The uncertainty between the thrust and requested thrust needs to be determined. Refer to Fig. 3. The grey blocks in this figure were measured. Based on the transfer from current to thrust, |F/I|, and current to rpm, |ω/I|, we can construct the relation between thrust and rpm, |F/ω|, the utmost right white block. This can be done by dividing the magnitude of the transfer function of Fig. 2a by 2b for each frequency fi as:        F (fi )   F (fi )   ω(fi )   =    (8)  ω(fi )   I(fi )   I(fi )  .

As we will control the angular velocity of the thrusters during the operation of the auv, the next step is to determine the response of the rpm to the requested rpm. For this, we fit the response ω/I with a first order response so that we also have the phase of the transfer function. These fits are shown in Fig. 2b as dashed lines. A simple lead-lag controller tuned at 10 Hz is used to control the thruster. The controller is based on the fitted coefficients is: 20s + 20 C(s) = 2 . (9) s + 10.1s + 0.1

Finally, at zero frequency, we know how the thrust is quadratically related to the rpm for each of these offsets, |Fr (0)/ω(0)|. With this relation, the requested torque and the delivered torque can be made identical at steady state conditions. With the closed loop response and the calculated transfer from rpm to thrust, we can calculate the graphs in Fig. 2c for the requested thrust to actual thrust. For the uncertainty analysis the transfer between thrust and requested thrust is modelled as a first order response

233

with multiplicative uncertainty. This fitted Fig. 2b well for a first order transfer function:   F    = 15π (1 + W (s)∆(s)) (10)  Fr  s + 15π The realisations from the measurements for W (s)∆ are shown in Fig. 2d. In this figure we can see that the uncertainty at low frequencies is approximately 5%. The uncertainty at the bandwidth of the controlled system peaks at 75%. After the bandwidth, the uncertainty depends on the surrounding, but for this open water test it remains at 75%. The uncertainty is modelled as: τ s + r0 W (s) = , �∆(s)�∞ ≤ 1, (11) (τ /r∞ )s + 1 with τ = 1/5, r0 = 0.05, r∞ = 0.75. The weighing matrix is plotted in Fig. 2d as a black dashed line. The body fixed forces in the equation of motion are pre-multiplied with this uncertainty model. 4. CONTROL DESIGN The sensors in the auv measure the global position, attitude and body fixed (angular) velocities. We use these signals to design a state feedback controller. The gains are calculated for low speeds, and we want the damping from the controller, so we set the damping matrix in the design model to zero. The thruster dynamics are not used in the design, which will limit the upper bandwidth. The poles are placed with Matlab’s pole placement algorithm. A set of controllers is designed with increasing location of the poles, and hence bandwidth. The poles are located at the same (negative) real location for each individual controller in the set. Although the poles associated with the body fixed velocities deviate 1% as the pole placement algorithm could not handle the multiplicity of the pole location. For each of these controllers the robust stability is tested as described in (Skogestad and Postlethwaite, 2007) with Matlab’s mussv command. The uncertainty is structured, and is treated as such. The model for the equations of motion are pre-multiplied with the uncertainty model of the thrusters. The model equations (7) are used for this. The maximum value of upper bound of the µ-norm for the set of controllers is shown in Fig. 4. The value of the norm should be below one for guaranteed robust stability. If it is larger than one, it is not guaranteed to be stable. The norm is calculated for four velocities as told in section 3.1. The upper bound of the µ-norm as function of frequency at ux = 0.25 is shown in Fig. 5 for some of the controllers. The bold line corresponds to a pole placement at -1, and is below one for all the frequencies. Interesting to note is that there is a minimal needed bandwidth of the controller before the system becomes robustly stable, even if the system is nominally stable. Inspection of Fig. 5 shows two peaks, especially clear for a pole placement at -0.1. These occur at high (forward) velocity. If all the velocities are set to 0.25 [m/s] and 0.25 [rad/s], and the controller poles are placed at 1, then the corresponding output motion can be found from the singular value decomposition of the response at that frequency. The first mode corresponds to a motion in y, and z direction, with an accompanying rotation

Bas J. de Kruif et al. / IFAC PapersOnLine 52-21 (2019) 230–235

234

ux =1 m/s ux =0.25 m/s ux =0.1 m/s ux =0 m/s

5

y [m]

maximum µ-norm

102

101

0

−5 0

10

10−2

10−1 100 101 negated pole location [rad/sec]

102

µ-norm

p p p p

= = = =

-0.01 [rad/s] -0.1 [rad/s] -1 [rad/s] -10 [rad/s]

101

100 10−2

10−1

0

10 x [m]

Fig. 4. maximum µ-norm as function of the pole location. Four settings for forward velocity are used 102

−10

100 frequency [Hz]

101

Fig. 5. µ-norm as function of frequency for several pole placement locations. around these axes. The auv is wagging its tail. The second mode corresponds to a rotation around the x axis. The saturation due to the thrusters’ maximum velocity can further degenerate the performance. The rotation and translation in the y, and z direction can also be explained due to the large negative Munk moment for this hydrodynamic design. The (added) mass in x direction is much smaller than the (added) mass in y, and z-direction. If the velocity is decreased, these vibrational modes become less prominent. A lower bandwidth becomes enough to counter the effect, as can be seen in Fig. 4. On the other hand, if the bandwidth becomes too large, then the uncertainty in the thruster dynamics limits the robust stability. Fig. 5 shows that for higher bandwidths the µnorms maximum value occurs at the frequencies at which the thrusters uncertainty is large. These results lead to a tuning approach for when the auv is tested in the basins: start at low velocities and increase the bandwidth of the controller until the thruster cannot cope with the control signals. Then we can increase the velocity until the auv cannot keep its course. This is the maximum velocity. This tuning can be done when the system is tested in the basins. 5. PERFORMANCE SIMULATION The controller is tested on a simulation model of the auv. The simulation model is a detailed version of the control model. The simulation runs in xmf, an in-house simulation suite for marine vessels and structures with an emphasis

Fig. 6. Top view of the path to test the control performance. After the spiral, the auv decreases its forward velocity while it simultaneously goes up for 1 m. on hydrodynamic validated models (Ypma and Abbing, 2012). The effects that are incorporated in the simulations are the hydrostatics based on the 3d cad design of the auv. Furthermore, the interaction between the flow direction and the thrusters is included (Karlikov and Sholomovich, 1998), as well as the measured thrust and torque for specified angular velocity in an identification experiment. For more details, see (Cozijn et al., 2019). The calculated damping and added mass are estimated based on an empirical manoeuvring model, and are included in the simulation model as well. The path as shown in Fig. 6 is used as desired track for the auv to follow. At each time step, the global positons and body fixed velocities are provided. Along this path, the forward velocity increases linearly, and a lateral velocity is added as if it has to compensate for a global current field. The turning rate is kept constant. After two circles, the auv brakes, and moves one meter in the direction of the surface. This cannot be seen in Fig. 6, but it is shown in the set points as function of time in Fig. 7. The maximal surge velocity is set to 0.5 m/s, the maximum sway velocity to 0.1 m/s and the yaw rate to 2π/100 rad/sec. This track is selected to show the increase in error due to the forward velocity. The controller is tuned by increasing the bandwidth as described in previous section. The poles were placed at -1. For larger values the thrusters had difficulties generating the required thrust in a timely fashion, and the simulation time step started to become prohibitively small to simulate the stiff system. Fig. 7 and 8 show the translational behaviour of the auv and the accompanying error. The dashed lines show the reference signal, and the solid lines the measured signals. The tracking of the path is as expected: at lower velocities the path is tracked correctly, while at higher forward speeds the tracking error increases. The attitude behaviour is not shown here, but behaves similarly. The position as well as the attitude based on the quaternions are tracked and remain stable in this velocity range. A jump in the error can be observed at t ≈ 200 s, which is caused in a jump in the acceleration. 6. CONCLUSION In this paper a feedback controller is designed for the control of an auv. It is based on a pole placement al-



Bas J. de Kruif et al. / IFAC PapersOnLine 52-21 (2019) 230–235

x y z

position [m]

10

0

a u v w

velocity [m/s]

0.4 0.2 0.0

b X Y Z

force [N]

40

for limited velocities the system is robustly stable. For larger velocities it was not guaranteed to be stable, nor guaranteed to be unstable. The bandwidth of the controller is bound from below by the vibrational modes due to the Coriolis/centrifugal forces: the auv starts to wag. The bandwidth of the controller is limited from above due to the uncertainty in the thrusters. This allows for simple tuning of the controller: increase the bandwidth at low velocities until the thrusters cannot cope with the commands any more. The controller is implemented in our in-house simulation environment. Due to the split of the controller and the ship model, we can directly use the developed controller on the real auv. This allows us to start researching the hydrodynamic effect acting on an auv the moment the hardware is finished.

REFERENCES

20 0

c 0

100

200

time [s]

position error [m]

Fig. 7. Translational behaviour of the auv. The dashed lines show the setpoints, and the solid lines denote the measurements.

velocity error [m/s]

235

0.2 0.1 0.0 −0.1

a

err x err y err z

b

err u err v err w

0.000 −0.025 −0.050 0

50

100

150

200

250

time [s]

Fig. 8. Errors in position and velocity accompanying Fig. 7 gorithm and uses the global position and attitude signals to get the system to where it needs to be. It uses the body fixed (angular) velocity signals to realise damping. All the attitude are specified in quaternions, so that all attitudes are possible without the possibility of a gimbal lock. The control has been tested on a detailed simulation model, and the system was capable of tracking its path. The controller will be used when the auv is tested in our basins. One of these tests will be to determine the hydrodynamic coefficients for a feed forward controller. For this aim, it is important that the system is robustly stable for the uncertainties in the model, as well as general unmodelled dynamics. This has been tested, and

Breivik, M. and Fossen, T.I. (2006). A unified control concept for autonomous underwater vehicles. In American Control Conference, 2006, 7—-pp. IEEE. Cozijn, J.L., van der Schaaf, H., de Kruif, B.J., and Ypma, E. (2019). Design of an underwater vehicle for use in basin experiments, development of marin’s modular auv. In CAMS’19, (accepted). Dam, E.B., Koch, M., and Lillholm, M. (1998). Quaternions , Interpolation and Animation. Technical report, University of Copenhagen, Copenhagen. Fossen, T.I. (2011). Handbook of marine craft hydrodynamics and motion control. John Wiley & Sons. Graf, B. (2008). Quaternions and dynamics. -. URL http://arxiv.org/abs/0811.2889. Healey, A.J., Rock, S.M., Cody, S., Miles, D., and Brown, J.P. (1995). Toward an improved understanding of thruster dynamics for underwater vehicles. IEEE Journal of oceanic Engineering, 20(4), 354–361. Jensen, H.C. and Wisniewski, R. (2001). Quaternion feedback control for rigid-body spacecraft. In AIAA Guidance, Navigation, and Control Conference and Exhibit, 4338. Karlikov, V.P. and Sholomovich, G.I. (1998). Some features of body-flow interaction in the presence of transverse jets. Fluid dynamics, 33(3), 313–317. Koster, M.P., van Luenen, W.T.C., and de Vries, T.J.A. (1998). Mechatronica. -. Logan, C.L. (1994). A comparison between H∞/µsynthesis control and sliding-mode control for robust control of a small autonomous underwater vehicle. In AUV’94., 399–416. IEEE. Pintelon, R. and Schoukens, J. (2012). System Identification: A Frequency Domain Approach, Second Edition. IEEE Press, 2nd edition. doi:10.1002/9781118287422. Skogestad, S. and Postlethwaite, I. (2007). Multivariable feedback control: analysis and design, volume 2. Wiley New York. Yoerger, D. and Slotine, J. (1985). Robust trajectory control of underwater vehicles. IEEE Journal of Oceanic Engineering, 10(4), 462–470. Ypma, E. and Abbing, A. (2012). ’XMF’ - A software cooperation platform, a MARIN proposal for the CRS. Technical report, MARIN.