76
HELSINKI UNIVERSITY OF TECHNOLOGY Electrical and Communications Engineering Olli Haavisto Walking robot model and its development a data-based modeling and control Master's thesis, which has been submitted for review scholarship Master of Science degree in Espoo 9/.2/2004. Supervisor Professor Heikki Hyötyniemi

Thesis.fi.En Bipedal Model

  • Upload
    dudufru

  • View
    56

  • Download
    4

Embed Size (px)

Citation preview

Page 1: Thesis.fi.En Bipedal Model

HELSINKI UNIVERSITY OF TECHNOLOGY Electrical and Communications Engineering

Olli Haavisto

Walking robot model and its development a data-based modeling and control

Master's thesis, which has been submitted for review scholarship Master of Science degree in Espoo 9/.2/2004.

Supervisor Professor Heikki Hyötyniemi

Page 2: Thesis.fi.En Bipedal Model

HELSINKI UNIVERSITY OF TECHNOLOGY

Author: Olli Haavisto

Summary of the thesis

Title of thesis: Walking robot model and its development of a data-based modeling and control

Date: 02/09/2004 Number of pages: 72

Department: Electrical and Communications Engineering

Chair: AS-74 Control Engineering

Supervisor: Prof. Heikki Hyötyniemi

Walk through the control of robots is a challenging multivariate methods demanding control problem. This work deals with a two-legged walking robot model- tion and control. Initially derived from the robot model dynamiikkayhtälöt Lagrange mechanics and the development of Matlab / Simulink environment simulation tool model to simulate. Model is obtained by directing it to walk on separate PD controls continuously updated reference signal. PD-Walking collected from the system input and response data on the basis of mal- datapohjaisesti necessary communication to the inverse dynamics of walking, that is, the scanning system holdings in PLCs. As an mallirakenteena are clustered regression, where- same overall model consists of local the pääkomponenttiregressiomalleista. Form dostettua model is a model for controlling the robot so that the walker TI quality of the corresponding regression model ohjausestimaatti connected directly to the oh-walker hedges. It is shown that the regression model in a clustered can be rendered PD-guided walking almost unchanged. On the other hand the control proves to be mel- sensitive to imperfections in question, who drive system from the learned behavior area, instead of focusing on data-based optimization can be carried out.

Keywords: Two-legged, walking, the robot, a data-based modeling, cluster- grated Regression, Principal Components, Lagrange-mechanics

Page 3: Thesis.fi.En Bipedal Model

Helsinki University of Technology Abstract of the Master's Thesis

About the Author: Olli Haavisto

Name of the Thesis: Development of a walking robot model and the ITS data based modeling and control

Date: 02/09/2004 Number of pages: 72

Department: Department of Electrical and Communications Engineering

Professorship: AS-74 Control Engineering

Supervisor: Prof. Heikki Hyötyniemi

The control of walking robots is a Challenging Multivariable problem. This Concerns thesis on the modeling and control of a biped robot. The first aim of the Work Is To Derive The Chosen robot dynamics model using Lagrangian methods and Develop a Matlab / Simulink tool for the simulation of the model. To Make the model walk, separate PD controllers are used to love control the biped According Thurs Continuously updated reference signals. The second aim is Thurs model the inverse dynamics, That Is, the mapping from the system output to the input, of the biped gait using input-output data Collected from the PD-controlled system. The model structure is the Applied clustered regression, Which Combines Several local principal component regression mo- dels. The model is then utilized Thurs control the biped so That the control signal Estimate corresponding to the current system state is the directly used as an input for the system. It is the show That the clustered regression model can repeat the PD-controlled gait with quite good Accuracy. The controlled system is, however, Relatively sensitive Thurs errors Which try to Drive it out of the state space regions Learned and the optimization of the control is NOT POSSIBLE.

Keywords: biped, walking, the robot, a data-based modeling, clustered regression, principal component regression, Lagrangian mechanics

Page 4: Thesis.fi.En Bipedal Model

Introduction

This work has been the University of Technology Control Engineering Laboratory follow-up to the summer of 2002 launched a data-based modeling and control the study.

I thank the supervisor, Professor Heikki benefit the Cape for his national- installed floating guidance and advice as well as the possibility of the thesis TEKE- tion.

I thank all the staff of the laboratory in positive and inspiring working lyilmapiirin creation. I would also like to thank my parents and my brother-saamas tani background support.

Espoo, 02.09.2004

Olli Haavisto

Page 5: Thesis.fi.En Bipedal Model

Contents

List of symbols

1 Introduction

2 Kaksijalkaisten walk to the modeling of robots of 2.1 Modeling. . . . . . . . . . . . . . . . . . . . . . 2.2 A passive dynamic walking. . . . . . . . . . . . . 2.3 Optimal trajectories. . . . . . . . . . . . . . . . . 2.4 Neuroverkkopohjainen control. . . . . . . . . . . . . 2.5 Genetic Programming. . . . . . . . . . . . . . . .

3 walker simulation 3.1 Model. . . . . . . . . . . . . . . 3.2 The model equations. . . . . . . . . . 3.3 Simulink implementation. . . . . . . . 3.3.1 The dynamics of the walker. . 3.3.2 The substrate support forces. . . 3.3.3 The knee angles limiters 3.4 The simulator user interface. . 3.5 walker parameters. . . . . .

4-PD control 4.1 Controls. . . . . . 4.2 of reference signals 4.3 Parameters. . . . . 4.4 Walking Business. . . . . 4.5 Simulink implementation.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

and the control-

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

7 7 7 8 8 9

11 11 13 15 15 16 17 17 18

20 20 20 22 23 24

26 26 27 27 28

30 30 31 31 32 32 33 34

1

3

5

5 Local Learning 5.1 Background. . . . . . . . . . . . . 5.2 Locally Weighted Regression 5.3 Locales models. . . . . . . . . . 5.4 Examples and applications. . .

Clustered 6 regressiosäätö 6.1 Principle. . . . . . . . . . . . . . . . . . . . . . . . . 6.2 In Alien pääkomponenttiregressiomallien formation 6.3 Control of account. . . . . . . . . . . . . . . . . . . 6.4 Optimization. . . . . . . . . . . . . . . . . . . . . . . . 6.4.1 ment is obtained. . . . . . . . . . . . . . . . . . . 6.4.2 Dynamic Programming. . . . . . . . . . . . 6.4.3 clustered regressiorakenteen optimization. .

Page 6: Thesis.fi.En Bipedal Model

6.5 The earlier applications. . . . . . . . . . . . . . . . . . . . . . . 35

37 37 39 40 43 45 45 50 51

53

7 Application of clustered regressiosäätäjän walker to guide- tion 7.1 Controller Implementation in Simulink. . . . . . . . . . . . . . . . . . . . 7.2 The training data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3 Data Clustering. . . . . . . . . . . . . . . . . . . . . . . . . . 7.4 Action points and feature selection in the number of variables. . . 7.5 The points of internal models of teaching. . . . . . . . . . . . 7.6 Lesson walking. . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.7 Adaptive Education. . . . . . . . . . . . . . . . . . . . . . . . 7.8 Teaching play. . . . . . . . . . . . . . . . . . . . . . .

8 Conclusions

A Lagrange mekaniikka58 A.1 The generalized coordinates. . . . . . . . . . . . . . . . . . . . . . . 58 A.2 Lagrange equations. . . . . . . . . . . . . . . . . . . . . . . . . . 58

B. Dynamic Model Equations

C. Multivariate Regression methods Principal Component Analysis C.1. . . . . . . . . . . Principal Components C.2. . . . . . . . . . . C.3 Hebbin and anti-based learning Hebbin regressioalgoritmi (HAH). . . . . . . . . . . C.3.1 neural network structure and function. . C.3.2 Principal Component Analysis. . . . . . . C.3.3 Principal Components. . . . . . .

61

65 . . . . . . . . . . . 65 . . . . . . . . . . . 67 The main component, . . . . . . . . . . . 67 . . . . . . . . . . . 68 . . . . . . . . . . . 71 . . . . . . . . . . . 72

2

Page 7: Thesis.fi.En Bipedal Model

List of symbols

A (q) b (q, q ', M, F ) ˙ pCu pCy D f(Ξ (k), v (k)) F Fqi g G h H IThe J k Kp l l0L 1L2 m m0, M 1, M 2 M The N Np Ncr p p* pPxx q δqr r0And R1And R2 pRxu R (·) sL, SecR T u (k) ureal (K) u(K) u(K) ~ U

Walker dynamics equations inertiamatriisi Walker dynamics equations right-hand side Operating point pplace for state-space Operating point pplace to control space Arbitrary The×Theortogonaalimatriisi The general state of the system transfer function The substrate support forces vector Generalized coordinate qiassociated with a generalized power The gravitational acceleration Regressiokuvaus Diskretoinnin the sample interval A cost is painomatriisi The×The-The size of the unit matrix Cost Criterion Discrete time index p-th the operating point ohjausestimaatin weighting factor The controller ulostulovektorin dimension Members of the lengths of the walker The controller input vector dimension Walker members of the masses Momenttivektori Number of main components Educational Data Number of samples Action at the center prelated to number of training samples Number of action points Operating point of the index The best operating point for the index Feature of the inverse covariance data (the operating point tr) Generalized coordinates vector Coordinate qrparallel to the virtual deviation Walker masses distances joints Signals xand ubetween the cross-covariance (the operating point tr) The robot dynamics model The left (L) and right (R) the value of the leg kosketussensorin The kinetic energy The scaled input vector and the controller nollakeskiarvoistettu System status, or the controller input vector The reconstructed input vector control The controller input vector, with the exception of sensor values The controller syötevektoridata

3

Page 8: Thesis.fi.En Bipedal Model

v (k) wi W δW x (k) (X0, Y0) X y (k) yreal (K) Y z (k) α βL, Β R Δβ γL, Γ R θ Θ λ Λ μk, Μ s φ σ2 2σThe τ ξ (k) 0The

Control i th pääkomponenttivektori Pääkomponenttikanta The virtual work Piirremuuttujavektori Walker upper body center of mass coordinates Plot Variable Data And the scaled control nollakeskiarvoistettu The controller or system control ulostulovektori System control data is Bleached piirremuuttujavektori Walker torso angle Walker on the left and the right leg and thigh angle Thigh angles difference βR-βL Walker on the left and the right leg and knee angle The robot joint angles Matrix formed by eigenvectors I told an oversight Ominaisarvomatriisi Business and static friction coefficients Pääkomponenttikannan transpose of Control estimates the variance of the weighting function Naapuruusfunktion variance The continuous time variable The general state of the system The×The-Sized zero-matrix

4

Page 9: Thesis.fi.En Bipedal Model

1 Introduction

Crawling for guiding a robot has to be typically a good resolution vin challenging problems. Robots to complex mechanical design results in difficult to nonlinear modeling the dynamics equations, the systemic systems the mathematical treatment becomes more difficult. Control problem of walking guiding requires the use of multivariate methods, since the actuators are generally much and the cross effects of different control variables are as powerful.

Alone, two legged walkers have been studied a lot, and a variety of control- methods developed for a lot. More traditional, pre-calculated liikeratoi price-based control algorithms, for example, have joined neuroverk- Koja using a data-based approaches.

Data-based modeling system to model the operation of only the control data of the response, and, when the internal device constructed in s do not need to know. Model structure selection strongly influenced by the model- nuksen, but which also must contain the data used in sufficient information to be rendered.

Complex systems to describe the problem it is usually divided into into smaller units, with a simpler structure remains. The whole system Having a model can be a number, can easily be analyzed in the models in combination. This modeling is scalable: By the same method capable of handling a very simple more complicated to system.

In this work, there are two different modeling methods. The first objective of The aim is to form a two-legged walker dynamic simulation model for las- measured as the system is accurate dynamiikkayhtälöt Lagrange-mechanics. The model si- mulointi implemented in Matlab / Simulink environment.

The simulation model and the associated controller by means of a simple simulated walking and collecting systemic data. The second goal of the study is to investigate piecewise linear regression regressiorakenteen clustered, or the use of potassium velijän dynamic data-based modeling, and thus formed to mal- lin suitability of the system control. In addition, to explore possibilities for control optimization model updating.

Clustered regression is used to inverse dynamics of the system Kamall formation. System and the required space between the controllers connection in a given trajectory is saved directly to the model of the structure, when the mi- tattua space corresponding ohjausestimaattia can be directly used as a control- seen. The control method of a simple structure and a data-based learning regressiosäätöä clustered on the basis of biological systems can be compared with activity: memory on things learned model is a simple measurement of the basic signal-

5

Page 10: Thesis.fi.En Bipedal Model

basis of the situation in an appropriate control. A similar approach has been used for a simple robot comb- sivarren controlling [1], and the results showed the method to work well. Walked- jan shift, however, considerably more challenging problem, because the sys- Teem dynamics is more complex and varies greatly from walking cycle period.

The work is divided into sections so that Chapter 2 presents the literature based on different- variety of methods which have been used for kaksijalkaisten walking robot, mal lintamiseen and control. Figures 3 and 4 describe the work developed in the walker model and PD control. Data modeling is the theory and application model to guide the walker goes through chapters 5-7 and the entire results of the work are grouped together in the summary of Chapter 8.

6

Page 11: Thesis.fi.En Bipedal Model

2 Kaksijalkaisten walking robots for modeling

and Controlling

Kaksijalkaisten walk the robot modeling and control is applicable tu a number of different approaches. The simplest devices are passive ka- velijät, which operate by the system in a suitable mechanical structure and does not require external control signals. Represent the other extreme, for example si Honda-developed by the group's complex and powerful controls require- VAT humanoid, whose movements are trying to mimic human behavior as accurately as possible.

This chapter presents a first modeling kaksijalkaisten walkers and reli- is then review the various methods which have been used for walkers OH durable and reliable repair.

2.1 Modelling

In the modeling is appropriate to focus on the fundamental structures of the robot- seen, and functions. Quite often kaksijalkaisten walkers disability- To facilitate the handling of the theoretical two-dimensional situation in which Walking robot advance of the considered side.

Pedestrian movement can be roughly divided into two parts: Double-Support Phase walker with both feet touching the ground the weight moves taaemmalta of the front foot to. Change in step a support leg touches the ground and the rear leg swings forward. These steps can be described by repeating the entire walking each foot alternately acting as support foot. If you want to mal- lintaa including running, must also take into account the situation in which neither of the the foot is not attached to the country.

Walkers usually used to control the robot's joints to be connected to mo- ment. Execution control is not straightforward, because almost The system is always greater than the degrees of freedom of adjustable-suurei Pub. In addition, the situation makes it difficult system dynamics vary strongly with walker moves from one stage to another walk.

2.2 Passive dynamic walking

Passive dynamic walking is based solely on the walker dynamic ra- traffic utilization. Walking does not require external energy, but the pas- more intensive walkers are able to maintain a stable, repetitive walking motion only slightly downwardly sloping surfaces. These devices walking one foot

7

Page 12: Thesis.fi.En Bipedal Model

to swing freely under its own weight on the second leg supporting the system to the ground. Finally, the swing weight of one foot to move, when one foot turn to swing forward.

McGeer [2, 3] showed that a suitably constructed two-legged device is capable of EV- just improved slightly downhill without an active control. Subsequently, a variety of passive walkers have been built and tested title high (for example, [4, 5]). Walking is a simple device as a "natural" looking - var- zinc, where the walker is the knee joint. For example, he uses ka- velyssään largely benefit the body and legs of a dynamic structure, when walking requires little energy as possible.

Purely passive walkers is a major limitation for their ability to walk on a downhill from there. By increasing the system low-power control can be achieved walker to walk to maintain a stable movement of the flat-top or at a slight slope [6, 7], which is near the minimum energy consumption.

2.3 Optimal movement

Pre-computed optimal trajectories are commonly used walkers control. In this approach, the system aims to control in such a way, et what has been parts of the operators comply with pre-deposited with a reference range of motion. On gelmana equilibrium is disturbed, for example, the vessel bridge or otherwise ideal conditions. Methods to maintain a balance- tion can be divided into two groups: static and dynamic kävelijöi- price. Walkers to remain stationary upright from the fact that the device focus through continuous control and perpendicular to the leg or the cornerstone- casting relatively substrate covered segment. The method requires strong controls and often leads to a slow and awkward gait. On the other hand walker is at steady state, that is, will stand even if the business was shut down.

Dynamic walkers balances in turn, look its base point positions, through which system the total bearing force, vertical tysuora component runs (Zero Moment Point, ZMP). The point of the Deputy- Whenever possible, to the middle of the support surface, and where the support surface moves to a point the edge of the device starts to tip over. For example, Honda robots [8] The balance of main- lyttäminen based on this point, the desired and the actual location of the continuous adjustment.

2.4 Neuroverkkopohjainen control

The strength of neural networks is their ability to model complex epäli- linear sound functions. They must be applied to control kaksijalkaisten walkers

8

Page 13: Thesis.fi.En Bipedal Model

in several studies, usually to perform a specific calculation of the controller inside. Such a task can be, for example the inverse kinematics calculation [9]. Oscillating neural or neuronal (neural oscillator) may be to use the walker model periodic trajectories form [10] or directly calculation of joint moments [11].

Artificial neural networks are used in adaptive systems. Typically, the com- colleagues to teach a non-linear dynamics of the system, which is then utilized the controller in operation [12].

2.5 Genetic Programming

The principle of genetic algorithms mimics evolution in nature pa- claim an ever greater solution to form a specific problem. The solution, for example, set of parameter values, must first be encoded into a string. These solutions his Opinion (individuals) generates a random number of populations, which algorithm is the first space. Goodness of each solution is estimated goodness of funk thio, which gives the solution of goodness value. The higher the quality factor value, it is a better solution.

Population the best individuals to produce the next generation of three different me- the purchase method: copied itself to the new population, are copied to a little converted or produced by a pair of two offspring, whose structure is a mixture of from each of the original individual. The new population creation are individuals are selected on the basis of values of goodness, but the selection is also random- diversity. This is to avoid hyvyysfunktion lokaaleihin minima drifting.

Genetic programming [13], combined with automatic programming and genetic set algorithms. To develop a series of individual or population are various forms of computer programs, whose goodness is determined by driving the adoption of the tu- control carried out. Two programs in the breed: random parts of the program is changed, with each other, creating a potentially more critical issue, programs.

Since the gradually evolving control algorithms may also provide the robot the structure unsafe controls, you use the goodness values of calculation Usually the first simulator. For example, Sigel simulator [14], possible list of different robot structures simulation and genetic programming, co- keilemisen. By using simulations of real robots, simulation models can be obtained from the control algorithms to move the actual system, the simulator motor is able to describe a robot sufficiently [15].

The control algorithms development of a simulation requires a lot of times, because control of all companies should evaluate the goodness of simulations. Actual physical risks in-

9

Page 14: Thesis.fi.En Bipedal Model

cabbage Systems simulation is generally slow, so find a good control- tyminen can take a long time. In addition, problems arise in the simulation model and differences in the actual system.

10

Page 15: Thesis.fi.En Bipedal Model

3 Walker simulation

In this work, the first objective was to develop a walking robot model, which can be tested by simulating a variety of methods to control and collect käveleväs- PC ON systemic data. The model chosen was a two-legged walker, whose dynamics kayhtälöt derived from Lagrange-mechanics. The actual simulation was performed Matlab Simulink environment, and the simulation results of the examination was developed graphical user interface.

The following describes the first accurate model of the system as well as dynamiikkayhtälöi- the formation. After this, go through the model in Simulink implementation and parameter values used in the simulations. A more detailed description of the Simulink model as well as a graphical user interface is included in separate documentation [16].

3.1 Model

Used in the work system model to describe strongly simplified two- legged walker. Simulation to speed up and facilitate the calculation carried out in a two-dimensional model, the flow direction of the lateral business could be ignored. Model of identical legs consist of rigid leg- and the leg parts which are connected to the knee joints. Upper body composed of one rigid body, which adheres to the feet hip joints. Figure 1 (a) above tetty walker structure and state of the system to describe the parameters used.

(A) (B)

Figure 1: System variables and constants (a) as well as external forces and momen- tit (b).

11

Page 16: Thesis.fi.En Bipedal Model

The considered system and the position of the place to describe a two-dimensional coordinate system is at least seven of the variable, ie the system has a seven degrees of freedom. Of coordinates (x0, Y0) To determine the upper body mass and the angular position sakeskipisteen αdeviation from the y-axis direction. The left man (L) and right (R) foot postures are described in relation to the upper body, hip and knee joint angles (βL, ΒR, ΓL, ΓR).

Walker, and on the thighs and the torso or leg are determined by the lengths of Figure 1 (a) accordance with the parameters l0L1and l2. The upper body center of mass (mass m0) within the pelvis is r0. Each of the thigh center of mass (mass m1) assumed to be hip and knee straight line passing through a distance r1 hip joints. Similarly, the leg by the average score (the m2) Are located in the knee and the foot over the tip of a straight line passing from the r2the knee.

The substrate for the modeling of the two walking legs, or at the ends, it is possible to affects the horizontal and the vertical external force (FLx , FLy , FRx , FRy )-JOL I created different platform materials and uneven use of the simulation platform is a simple (Figure 1 (b)). External forces are formed adjuster, a push-type after ambient foot hits the top of the substrate. The regular model, control signals are upper body and thighs, between moments (ML1 , MR1 ), And knee joints momen- tit (ML2 , MR2 ).

Feet of interaction with the substrate will therefore be implemented with separate external can- how, when the same model describes the dynamics of the pedestrian at all times. This allows the use of a simulation model of arbitrary movements of the simulation. Addition to- si dynamics model is holonominen; or any part of the system can not meet moving in an external mechanical restrictions. Another possible approach Presentation 'would be to use separate models of the feet touching the ground, depending on the lu- the number of contacts, and to assume that the ground is not touching the foot from slipping off. So the necessary models are simpler, but the transitions between models should be calculated separately. The work used a model similar two-legged robot walkers have been studied a lot. Structurally identical to, for example, RABBIT-robot [17], which is derived from a simulation model. In the modeling of the robot is dry however assumed that the walking swing foot hits the ground the other foot will direct the air. Thus a single model could be described as all the walking- Lyn steps, but the support leg to cause the change of each individual is calculated as a stepped change in state of the system. Similarly, a simulation model of activity is repeating steps a limited alternating, and, for example, both jalko THE simultaneous contact with the ground not simulated.

12

Page 17: Thesis.fi.En Bipedal Model

3.2 The model equations

Walker dynamics modeling was carried out Lagrange technique (Appendix A). System status is determined by generalized coordinates

q= [X0, Y0, Α, βL, ΒR, ΓL, ΓR]T (1)

and their time derivatives. Each coordinate associated with the corresponding generalized power: Fq= [Cx0, Fy0, Fα, FβL, FβR, FγL, FγR]T.(2)

Denote the centers of mass of the thighs of places cartesian coordinates (XL1 , YL1 ) And (xR1 , YR1 ). Massakeskipisteitten leg positions are (xL2 , YL2 ) and (xR2 , YR2 ) And the legs päitten coordinates (xLG , YLG ) And (xRG , YRG ). The left Da leg of the coordinates can be expressed in generalized coordinates as follows: xL1 =x0-r0sin α-r1sin (α -βL) yL1 =y0-r0cos α-r1cos (α -βL) xL2 =x0-r0sin α-l1sin (α -βL)-r2sin (α -βL+γL) (3) yL2 =y0-r0cos α-l1cos (α -βL)-r2cos (α -βL+γL) xLG =x0-r0sin α-l1sin (α -βL)-l2sin (α -βL+γL) yLG =y0-r0cos α-l1cos (α -βL)-l2cos (α -βL+γL).

The right foot corresponding to the coordinates obtained by substituting equations (3)-va sive leg angles βLand γLright leg angles βRand γR.

The kinetic energy of the system can be easily pronounce cartesian coordinates different points of the kinetic energies of the sum of:

T= 1 2 m0(x2+y0) + m1(x2+yL1 +x2+yR1 ) ˙ 0˙2˙L1 ˙2˙R1 ˙2

+ M2(x2+yL2 +x2+yR2 ).˙L2 ˙2˙R2 ˙2 (4)

For each generalized coordinate qrthe corresponding generalized force expression Fqr managed by increasing the value of the coordinate the deviation of the virtual δqrver- flow and keeping the other generalized coordinates as constants. All the system the forces acting on the amendment made by the virtual work δWqrdepends on the follow- following equation in accordance with a desired force:

δWqr=Fqrδqr. (5)

Generalized forces, equations of generalized coordinates to be

13

Page 18: Thesis.fi.En Bipedal Model

so

Fx0 F y0 Fα F βL

FγL

=FLx +FRx =- (M0+ 2m1+ 2m2G) + FLy +FRy

=- ( ∂ yL1 m1+∂ yL2 m2+∂ yR1 m1+∂ yR2 m2G) + ∂ α ∂ α ∂ α ∂ α ∂ yRG∂ xLG∂ xRG+∂ α FRy +∂ α FLx +∂ α FRx =- ( ∂ yL1 m1+ ∂ βL =-∂ yL2 m2g ∂ γL

∂ yL2m2G) + ∂ yLG FLy +∂ xLG FLx ∂ βL∂ βL∂ βL +∂ yLG FLy +∂ xLG FLx +ML2 . ∂ γL∂ γL

∂ yLGFLy ∂ α (6)

+ML1

The right leg of the forces is obtained by replacing the left leg forces expressions, variables to the right leg with the corresponding quantities.

Dynamiikkayhtälöitten system to solve the kinetic energy states gy (4) using the generalized coordinates transformation equations (3). The resulting generalized expression as well as forces in the expressions (6) located in the Lagrange-one other equations of the form

d dt

∂ T ∂ qr˙ -

∂ T =Fqr. ∂ qr

(7)

The resulting equation seven secondary differentiaaliyhtälöryhmä can be written as joittaa matrix form

A (q) ¨ =b (q, q ', M, F );q˙

where M= [ML1 , MR1 , ML2 , MR2 ]T

model are affected by external torques and

F= [CLx , FLy , FRx , FRy ]T (10)

(9)

(8)

the chassis support forces resulting from Figure 1 (b). Vector b (q, q ', M, F )containing not more than the first rate, time derivatives of general˙ Particular coordinates. Inertiamatriisi A (q) does not include the generalized coordi- road time derivatives.

Lagrange equations (7) to a mechanical and writing the final liseen shape (8) made of Mathematica software. The obtained expressions A (q)-matrix items, as well as vector b (q, q ', M, F )was then converted˙ Matlab format, so that they could be applied to the simulation.

Inertiamatriisin A (q) and the vector b (q, q ', M, F )alkioitten phrases are members˙ teenä B.

14

Page 19: Thesis.fi.En Bipedal Model

3.3 Simulink implementation

Walker was used to simulate the dynamics of the model in Matlab Simulink environ- ristöä, where the model space and the necessary base for calculating the forces could be collected co- DEKSI values (Figure 2).

Figure 2: Simulink model of the walker consists of dynamic equations, the substrate support forces and knee angles of the stop moments calculation blocks.

Biped model -Block input signal is a vector which contains a model of pro- fault protection for articles (9). The output signal are grouped generalized the coordinates of (1), the first time derivative of each leg the touch sensor value: [Q T, Q, T, SecL, SecR]T. If your foot touches the ground, will rise against-˙ Taava contact with the signal (sL, SecR) To unity. The leg of the air signal value is zero.

And the system will walk contact with the substrate to simulate the permanent statistical same. Control system applicable to discrete explains, adding, however, so the control- diskretoidaan and the output signals of the zero order hold. Block also deposit and the discrete output signal syötesignaalinsa Matlab workspace. The simulation parameters for the walker and the initial state is fed to block the mask dialog box.

3.3.1 Dynamics of the walker

Dynamiikkayhtälöitten (8) for carrying out the simulation of a block is shown in Figure 3 Kos- ka acceleration vector qSolving a closed form does not in practice be-¨

15

Page 20: Thesis.fi.En Bipedal Model

nistu, has to be the matrix A (q) to calculate the inverse matrix, which iteraatioaske Lee separately.

Figure 3: Dynamic model Block simulates the actual walk, dynamiikkayhtälöitä lijän simulation model.

3.3.2 The substrate support forces

Walking modeled shape of the substrate murtoviivana passing as a parameter, an total station. Walker legs to the tips allocated to the separate PD controllers at the support forces when the foot contacts the ground, so in practice, the beginning of the spring acts as a damping system. One-leg support to calculate the forces on foot and place the tip speed projected onto the first platform ratio in normal and tangentiaalikomponentteihin. The normal component of pro- is recognized in the PD controller in such a way that the bearing force perpendicular to the base components, nent FTheare limited to positive values. The foot can not be grasped onto the substrate.

Tangentiaalisuunnassa view of the substrate adhesion properties. When the foot- ka hits the ground, provided the deviations from the landing location of PD control, which is tangential to the output from the power Ft. If, however, the force required to exceeds the maximum friction force

Ft, max =μsFThe, (11)

where μsthe static friction coefficient of the substrate, the foot begins to slip. This tangential NEN support the force is determined by kinetic

Ft=μkFThe,

where μkthe motion of the friction coefficient.

Finally, in normal and tangentiaalivoimat projected back to the vertical and horizontal voimiksi parallel to (10), which are introduced into a dynamic model. Forces calculation takes place in block Ground contact (Figure 2).

16

(12)

Page 21: Thesis.fi.En Bipedal Model

3.3.3 Knee angles limiters

Knee angles restriction is the same principle as the substrate normal parallel to the bearing force calculation. When the knee angle exceeds the maximum or below the minimum permissible angle is called the angle of the PD control on. The controller adds steering systems, directly related to the joint torque value. The minimum knee angle limiter control of the control is limited to positive-worthy price in such a way that it never opposed the knee bending. Similarly, the largest man has no objection to the angle of the knee limiter adjustment. The calculation takes place walker simulation block Knee stopper Sub-blocks (Fig. 2).

3.4 The simulator user interface

Pedestrian modeling in Simulink blocks used by entering the inlet block- flask used for controlling moments. The output of block so on may be pedestrian state, which can be used for example for calculating the control torques. Simulation and visualization of results was developed in Matlab graphical user interface (Fig. 4).

Figure 4: The simulator user interface.

All walked to the ice and the substrate parameters are defined together with the Matlab file, run the simulator before the simulation and animation show- from. Also, any controller or others in the model blocks necessary

17

Page 22: Thesis.fi.En Bipedal Model

scapes the parameter file to run. The model can- be simulated desired period of time. Once the simulation has been carried out, can be walker to examine the behavior of an animation.

3.5 Walker parameters

Parameters used in the work of the walker shown in Table 1 Walkers and- bers chosen relatively small mass compared to the respective lengths, in order to PD-control and control systems to facilitate the implementation of the intensity does not increase unreasonably. Masses were placed in the middle of each member. The legs too slipping walking platform was used to relatively large coefficient of friction values. A flexible platform was chosen to support the forces of falling in PD controllers dynamics rates were sufficiently low level. Hard surfaces simulation tiajat are getting longer, because integrointialgoritmin step size must be reduced, so abrupt dynamics can be solved with sufficient accuracy.

Table 1: The parameter values for the walker and the substrate. Masses (kg): m05 m12 m21 Length (m): l00.8 l10.5 l20.5 Positions of the masses (m): r00.4 r10.25 r20.25 The substrate properties: static friction coefficient μs1.2 coefficient of friction in μk0.6 jousivakio1000 (kg / s2) vaimennuskerroin500 (kg / s) Knee angles limiters parameters: jousivakio1000 (Nm / (rad)) vaimennuskerroin100 (Nms / (rad)) Other parameters are: acceleration of gravity g9.81 (m / s2)

While walking the substrate roughness modeling would have been simulaattoril- Sat possible, the simulations were used on a flat surface. This was facilitated by partici-

18

Page 23: Thesis.fi.En Bipedal Model

the gait control program, with a few uneven surfaces Trials with showing even small variations in height to hinder the walk- which significantly.

19

Page 24: Thesis.fi.En Bipedal Model

4 PD control

Gait-based modeling of the dynamics of the data was collected for systemic input and response data in the execution of optimoimatonta walking motion. Mallika- vely carried out in separate PD-control, and thus it was used as a basis for clustered regressiosäätimen teaching. This chapter describes the control implementation and the parameters used.

4.1 Controls

A model to form a walking pedestrian is controlled by four discrete separate PD controller, which is fed to change the reference signals. Both knee- its control angle is adjusted, and a controller which controls the corners of the thighs the difference = Δβ βR-βL. Thus keeping the torso upright can be separated säätöongelmakseen completely separate into a parallel, which receives the control signal, be the fourth-PD controller.

Knee angles controllers provide the control signals directly to the moments ML2 and MR2 . The angle between the thighs Δβ control signal as a positive impact on the right thigh torque MR1 and the negative torque of the left thigh ML1 . Upper link- Holding the house has been taken in to support the addition of the controller to the control signal to a torque of the thigh, corresponding to a foot touches the ground. Both feet on the ground affected by the control signal as much in both femoral articles.

System is used as the discrete PD-regulators, to a transfer function is of the form D u (kh) =P e (kh) + Δe (kh),(13) h where the time index kdescribes the sample number and the standard hthe sample interval. -Erosignaa li e (kh) calculated by subtracting the adjustable value of the variable reference value. Difference variable change Δe (kh) obtained directly from the current and previous signaaliar- von difference between: Δe (kh) = e (kh) -e((C -1) h).(14)

Parameters of the controller operating ratio control unit and derivaattaosuuden reinforcements Pand D.

4.2 A reference signal

The system is obtained by feeding the legs to walk PD controllers cyclic reference signals. The signals are formed successively by adding, to reduce the

20

Page 25: Thesis.fi.En Bipedal Model

tämällä or by keeping constant references to the values between the sampling sys- Teem's condition. Figure 5 shows a reference signal, the corresponding adjustable parameters and system behavior during one step.

Figure 5: PD-guided walking one step.

A step starts the double support phase, where the references are initially constant. When the upper body center of mass is in the system due to the momentum transfer tynyt sufficiently forward, the rear knee will reference of the angle increases. At the same time the angle between the thighs, is reduced, when the foot is raised transferred to the substrate and change the phase of the system. Swing leg is transferred the front by reducing the angle between the thighs, to a certain constant value as, ti. In order not to hit the foot of the base too soon, bend the knee swing period of time. When the leg is swung forward sufficiently to straighten the knee before the Kos- fox in the country. Oscillation at the beginning of the support leg knee straightened, the swing foot remains a sufficient distance from the base.

The new double-support phase starts only when the leg is swung touched het- ken time to initialize. This is to prevent a new phase transition such as ti- lanteessa, just brushing the foot platform between the swing. Knee angles reference values change in the angle between the femur and the modified reference vastaluvukseen a new step at the start. At the same time status signals are exchanged, to the right and the left leg between, in which case the next step is the track record

21

Page 26: Thesis.fi.En Bipedal Model

the formation of the same as the previous one, even if the walker hi- lahtava foot and leg are interchanged.

Upper angle of the reference value remains constant throughout the period of walking, and the actual tion angle value oscillates around the object reference once in every step of the way. Top body motion dampens the feet crash pad, and helps retain pedestrian- The total required by each pace forward.

4.3 The parameters

PD controllers are used for the various parameters of amplitude and a double-stage support; because the guidance of the forces needed will depend on whether or not the foot of ter- or will you in the air. Thus for example, swing the controller to the foot of the knee reinforcements are weaker than the support leg as swing leg is not needed so much to- much power. Parameters are changed to the legs of the information provided by kosketussensorien just keywords. D parameter changes in PD controller in a single D-term to zero temporarily when the articles there is no possibility of a change basis for any inconvenience.

Table 2 shows the work of the parameters used in the simulation säätäjien a step chain. Values of the parameters and the reference signals Generation tuned by testing logic, since this method does not control had car- koitus otherwise particularly optimized. Overall, controlled by the system It was a pretty sensitive for a tuning of the parameters with respect.

Table 2: PD-down controller parameters are used for walking. P D Double-Support Phase: The angle between the thighs, Δβ60 1 Knee Angles γL, ΓR40 0,5 Torso angle α40 2 Change the Stage: The angle between the thighs, Δβ70 6 The supporting leg polvikulma30 2 Swing leg knee angle of 10 0,1

The aim was that the walker would follow as well formed reference signal and the adjustment occur in a severe vibration. In practice very good reference signal is reached again (Fig. 5), since systemic mi is aliohjattu and strong cross effects of adjustable parameters. In addition, difficulties in producing the transition of support one phase to another, as for example, si on foot hits the ground the system dynamics will change dramatically.

22

Page 27: Thesis.fi.En Bipedal Model

Steering näyteväliksi elected h= 10 ms. At higher values of the sample interval Finding the appropriate parameters for the PD controllers turned out to be a difficult one, and on the other hand the smaller the value selected will be shown on the margins of implementation in real sys- us, it becomes difficult.

4.4 Walking Business

The system was obtained reference signal and the PD controller are to walk with you- a SE remained virtually constant up and repeated the same kävelysekvenssiä. Although the pedestrian initially was simulated trouble-free and flat surface, walking- lyliike never quite fully stabilized, but fell slightly short of a variable. Figure 6 shows the step in the length of the system, ie the distance between the ends of the legs, kaksoistu kivaiheen a function of time at the beginning of a disturbance, for walking. The variations are clearly sporadic, but remains within certain limits.

Figure 6: PD-controlled step length varied randomly.

The PD was collected Walking input and output data, which was used opetusai tisfying clustered regressiosäätäjälle. Variation in the data to increase the feed- signal, namely articles (9) were added to the simulation of a random-normaalija kautunutta noise.

Since walking is symmetric, which is the second step of the way right and left and exchange the roles of the LAN so as to swing each of the left foot. There was thus obtained data, which recurred in the same double-support phases (left foot back), and oscillation phases (left leg swings) in turn.

23

Page 28: Thesis.fi.En Bipedal Model

4.5 Simulink implementation

PD control was implemented in Simulink block, which takes as input the system ti- lan, update it on the basis of reference signal and calculates the difference variable pe- basis of the necessary moments. Figure 7 shows the structural strand in which the refer- renssisignaalien and the actual formation of the PD controller is separated into separate subsectors.

Figure 7: block PD controller comprises a reference signal and the formation of the PD the instrument.

Figure 8 shows the Create references -Block content. The reference signals are calculated, are calculated on the assumption that the swing at the foot of the left and the right leg. Therefore, in- ka in the second step of the way the signals must be changed with each leg of the container prior the steering controller.

Figure 8: The reference signals for updating its own and the state of the system lohkossaan on the basis of the old references.

Controller -Block is calculated first difference variable and adjustable parameters concluded the sensor values, which is going to step in step. The base- basis is chosen the correct parameters for the PD-controllers, and controllers are converted out- income momenttisignaaleiksi guiding system (Figure 9).

PD control block structure is presented in more detail the simulation tool documentation mutations [16].

24

Page 29: Thesis.fi.En Bipedal Model

Figure 9: Controller -Area is calculated actual control signals.

25

Page 30: Thesis.fi.En Bipedal Model

5 Local Learning

Data-based modeling system to a review of collected Tyn input and response data based on. This chapter introduces lokaaleihin mal- duty designs based modeling methods, a local learning (local learning), that provides tools for data-based functions approximation. Local to learning has been applied quite successfully in a single robottisäädössä part of the regulator itself.

The sections below outline some of the local learning methods, with a pe- riaate partly responsible for the work actually used in clustered regression. It also presents a few examples of the local learning applications.

5.1 Background

Robotics robotic model describes the dynamics of R (·), which is connected to the joints coupling ˙ newly issued moments Mthe corresponding positions of the joints θ; speeds θand acceleration ¨ vyyksiin θ. Inverse dynamics of the system gives a state of control- to: ˙ ¨M=R-1 (Θ, θ, θ).(15) If the inverse dynamics model is known, it can take advantage of the robot adjustment. For example, a simple time-and feedback-connect between controller [18] using the inverse dynamics of the model estimate R-1 and controls the a robot in accordance with the reference signals. Reference signal is needed in joints ˙ ¨ ten desired positions, velocities and accelerations (θd, Θd, Θd). The feedback correct- della correct operation by the control error, the whole control, I consists of the expression

¨ ˙ ˙ ˙ ~M=R-1 (Θd, Θd, Θd) + P(Θd-θ) +D (θd-θ). (16)

Data-based modeling of dynamics of the model formed by the systemic collected and the input of response data. This avoids a system of internal more detailed analysis of the structure.

Typically, a data-based modeling systems to form a the global model, which describes the behavior of the entire system. For example neural networks parameters are adjusted as a whole the available da- tajoukkoon, which requires a lot of network neurons, and the structure may become very complicated.

Learning to use the local template to form the opposite approach proach. The objective is to estimate the desired multi-variable non-linear

26

Page 31: Thesis.fi.En Bipedal Model

simple function of several locale a combination of the model. In [19] gives a very full description of the local learning backgrounds, but the follow- raavassa describes some of the main points.

5.2 Locally weighted regression

Locally weighted regression (Locally weighted regression, LWR) based on "Lazy learning" (lazy learning), in which all claims against the data points deposited such a memory. The new entry points corresponding to the model estimate of the las- are calculated by fitting entry point for nearby points on a deposit of a local model for a query is received. Fitting is made from pressure- risk-weighted regression, in which case the closest score the greatest impact resulting from the model and the estimate. Adapted form of the function is not limited, but In order to avoid complexity is normally limited to a linear model.

Locally weighted regression requires a large amount of memory, and calculation of the estimate may be too slow, because the new model needs to be computed for each syötepisteelle new individual. In addition, the data dimension increases, the points The distance between the relevant with regard to (a so-called curse of dimensionality) to give focus becomes more difficult.

5.3 Locales models

Storing all data points in a general sense rather than formation of TAA to specific points in space, ready Locales models, which were then query- points closest to affect the final estimate.

Schaal, and Atkeson Vijayakumar [20, 21] have been developed by application of robotics lettavia local learning methods (Locally weighted learning, LWL), where new models are continuously generated as new data points are collected. If the old models, there is nothing very new to enough data points, create- be a new model. Only these templates I created stored in a memory, when the teaching data can be plenty.

Common to these methods is the fact that the number of data dimensions, small employee repre locally models for. This is based on the finding, Jon optical systems according to which the data is collected korkeaulotteinen typical so far revealed locally up to 5-8 dimensional. Such compression may be carried out. Principal component analysis, principal component regression (Appendix C) or osittaisel- la method of least squares (PLS) [22].

Local learning methods is typically possible to inkre- mental form, in which the new data to which is easy. It was-

27

Page 32: Thesis.fi.En Bipedal Model

Originally based methods is the fact that the model development and day-to- tion in real-time moving the robot to be possible.

5.4 Examples and applications

Local learning is applied in particular korkeaulotteisten descriptions mal- lintamiseen robotics, and the estimation functions. Figure 10 is simplified Example competent modeling non-linear function [23].

Of the original two-dimensional function (Fig. 10 (a)) was chosen as random 500 samples, with a dimension increased by the addition of such noise, and, drying the dependent upon the data to 20-dimensional. At the local trained with data liseen LWPR-based learning algorithm (Locally weighted projection regression) was able to fairly accurately reconstruct the original form of the function- do not (Fig. 10 (b)). Position the algorithm locales models centers evenly photographed in space and adapted to their sphere of influence of the correct shape (Fig. 10 (c)).

Local learning for robotics applications, typically modeled by a ro- bot inverse kinematics or inverse dynamics. For example, the robot- tikäsivarren inverse kinematics of images of the head arm cartesian coordi- joint angles than once. Description of the complex and the same point can be typically achieved by various combinations of the angles. Inverse Kinematics must be familiar with, so that the arm can be controlled to the desired points suitable routes.

LWPR-algorithm of the inverse kinematics can be modeled by collecting da- TAA joint angles robot arm and the head position of the arm-liikkues same. Both the model taught in all the possible solutions to the problem, and a separate cost- tannuskriteerillä is chosen, which is currently the best solution. In [24] LWPR algorithm described in the application of a robot arm of an inverted-Kinema policy modeling. Modeling can gradually better and better, when the arm is in motion to gather more data in teaching and learning progresses.

The inverse dynamics modeling of the local learning methods py- ritään generally describes the dynamics of the entire system. Myötäkytketyllä controller by three of which the model is formed, may then refer-controlled system renssisignaalien accordingly. Since the action space is extremely complex, and wide, we need a lot of templates locales. For example, 7-degree of freedom robot arm inverse dynamics of the shooting at 260 locale model, the description was made 21-dimensional space-space (angles, speeds and accelerations) separately for each of the seven torque [23].

28

Page 33: Thesis.fi.En Bipedal Model

(A) (B)

(C)

Figure 10: Example of a local application of the learning function approksi- mointiin. Model the function of (a) it was possible to reconstruct a good accuracy of Six (b). Locales designs into two regions as the effect and shapes (c). Section images [23].

29

Page 34: Thesis.fi.En Bipedal Model

6 Clustered regressiosäätö

Clustered regressiosäätäjää used in this work-walking motion datapoh icy modeling and the resulting model walker simulation model control- seen. The controller consists of a linear model, ie the operating point, which used for guidance at various stages. Operating points models are formed pel- kästään operation of the collected system data in the statistical properties of PE basis, and control of accounting is used for multiple comparisons set out in Annex C- jaregressiomenetelmää ie principal component regression. This chapter describes the clustered regressiosäätömenetelmän of operation and use the model- structure.

6.1 Principle

The system controlling the mode changes to control the impact of a function of time- Na. Mechanical systems and the continuous case, the state variables change can be represented in space-space trajectory, generally toimintakäyränä. Oh- jauksen For example, a retention system in a given takäyrällä or the desired final state is achieved. Clustered regressiosäätäjä suitable for a situation in which the system must be able to repeat the same operations TAA several times, that is, the whole operation can be described by one toimintakäyrällä.

Walking to repeat the same motion walker liikesykliä every step. Both the control- signal y (k) on condition that the system u (k)1are repeated at standard conditions cyclically, to store a constant sampling rate of the data collected form forms a combined control-state-space, a solid operating curve. Kos- ka walker steps in the right and the left leg of symmetry, also This curve is made up of two symmetrical part and the analysis can be to focus on one of these parts. If walking is a little variation, in- VAT data points at random around the mean operating curve.

Regressiosäätäjässä clustered curve is modeled as operating system, when it is known that the current status of the system u (k), controller to provide an estimate of y(K) space-related counseling y (k). The above local learning ver- pared now focus on the size of the inverse dynamics modeling rather than just toimintakäyrään particular, the specimen size is much smaller. Sa- moin feed is just a description of the system state variables (and their time- derivatives), and the required accelerations.

The main difference between the control solutions, however, is that the clustered regression siosäätäjän given by the control signal is obtained directly from the learned model to give

Entries have been selected controller point of view, so that the system state u (k) is controller input and the control y (k) controller response.

1

30

Page 35: Thesis.fi.En Bipedal Model

Control estimate. The local learning used in a separate time- controller and connected to the reference signal is not needed, but that the desired trajectory is built into the model. This of course limits the system's function Only one business track, which for example, just walking only one kind of implementation of the walking cycle.

Clustered regressiosäätäjässä modeling is based on a system-toimintakäy ran-sharing operating points, around which the curve can be assumed to linear. Assigned to each operating point of the main component, locale regression model, which is the description of the operating point input data of the cluster, roads and responses between. Modeling of the data dimensions, therefore, be reduced to-end kaalisti as well as in certain applications, local learning, in which case, oleel liset dependencies can be made more explicit.

6.2 Locales formed pääkomponenttiregressiomallien

TUS

Operating point of the internal operating point regression model formed the Annex- tyvän data on the basis of the cluster. Entered number of operating points Ncr and the action point p-related data (up, Y p) The number of samples Np. Model at the point pconsisting of training data from statistical characteristics:

p•Cu: The controller's input data upodotusarvovektori ie operating point location state-space.

p•Cy: The controller's response to the data ypodotusarvovektori ie operating point location the control space.

p•Pxx : Plot the Data xpthe inverse covariance matrix.

p•Rxu : Plot and input data ristikovarianssimatriisi.

p•Ryz : Control Data and bleached feature of the data zpristikovarianssimatriisi.

6.3 Guidance for calculating

Controller controls at the time kcalculated by the system state u (k) basis. And automo- ponenttiregression be used to calculate Hebbin set out in Annex C and anti- Hebbin formulas based on the principle pääkomponenttiregressioalgoritmin situation in which the covariance matrices, and regressiorakenteen odotusarvovektorit have converged.

31

Page 36: Thesis.fi.En Bipedal Model

Every model pcalculated estimate of the main component of the first control- regression equation

ppppppyp(K) = Ryz ·Pxx Half ·Pxx ·Rxu ·(U (k) -Cu) + Cy, (17)

which is connected to the formulas (66) and (71). Similarly, for all operating points of las- are calculated cost Jp(U (k)); illustrating the operating point of the model, i.e., pivuutta sample u (k). Cost is defined in the classroom kaaval- sat (29) and the steering case by the formula (30). The preferred operating point p* selected is that which gives the lowest cost.

The whole controller ohjausestimaatti formed by all the models estimates weighted average of the

y(K) = Ncrpypp = 1 K(K) (k) , Ncr Kp(K) p = 1

(18)

where the weights Kp(K) depend on the operating point of the costs associated with as follows: *2 -Jp(U (k)) -Jp(U (k)) Kp(K) = exp.(19) 2σ 2

Increases the cost of an estimate of the operating point, therefore, by weight of small nevertheless edge of the Gaussian function. If the internal distributions of the clusters is assumed normal distribution with a variance of the elements because of simplicity, which is is a constant direction σ2, Corresponds to the situation in the maximum likelihood estimate. Parameter σ2will tell you how many distant functioning score affect the value of the estimate. If the variance is very small, the conversion-toimintapistei between the step-like. On the other hand a larger variance of the value of multi-locale model estimates are combined and the conversion can be implemented smoothly.

6.4 Optimization

Clustered regressiosäätäjä taught to repeat a model used in the system, brought activities. Usually, however, desirable to that the system would behave in a MIE Lessa - for example, control of energy used in relation to - the usual optimum Saturday. The following summarizes some optimisäätöteorian factors, which are then compared with the clustered regressiosäätimen optimization principles.

6.4.1 Ment is

Optimized [25] is to control the system so that it acts as the HA lutussa optimally sense. In general, a discrete non-linear dynamic

32

Page 37: Thesis.fi.En Bipedal Model

system can be described by the equation

ξ (k + 1) = fk(Ξ (k), v (k)); (20)

where ξ (k) is the system state and v (k) control at the time k State transition function fk(Ξ (k), v (k)) gives a moment kand mode control, on the basis of the new tilavek the value of the square. For optimum operation is typically used to define a cost criterion, which is the most frequent form of

T-1

Jt=φ (R, ξ (T )) +

k = t

Lk(Ξ (k), v (k)); (21)

when you consider the time interval is k∈ [T, T]. The cost of the first term in ot- may be disregarded and the final state of the time, the second term will emphasize all- IRRADIATED controls and facilities. The optimal control v* control system facilities ξ* through such a way that the cost criterion (21) is minimized.

By selecting a cost criterion, the shape and priorities can be suitably cost- tannuksen to a minimum to achieve the desired optimal behavior. A typical minimized so far revealed the guidance of the energy used or the time and to the same by you desire to keep the system operating costs by weight is also used in farms.

In the general case, where the system's structure does not impose any restrictions, Calculation of the optimal control is not usually succeed in a closed form. Clauses of the general solution can be extrapolated from the treatment be done constrained optimization problem and applying the Lagrange multipliers. The cost function (21) is minimized so that each time index, kPI MPLIANCEWITH apply in addition to the dynamics equation obtained by a restrictive condition. This minimized function, without limitation, the

T-1

Jt=φ (R, ξ (T )) +

k = t k

Lk(Ξ (k), v (k)) (22)

+ ΛT(K + 1) ·(F (ξ (k), v (k)) -ξ (k + 1)) .

Vector λ (k) consists of the moment kused in the Lagrange multipliers.

The final formulas for iterative solution to the problem is disclosed, for example with reference to Annex [25], but their resolution is successful only in very simple cases.

6.4.2 Dynamic programming

Dynamic programming (eg, [26]) based on the Bellman's optimaalisuusperi- ideals. According to the optimum control feature is that the time k

33

Page 38: Thesis.fi.En Bipedal Model

forward control need to connect to the optimal control v* regardless of al- electrical circuits, controls and facilities.

At the time of kon the type of control does not affect the way in which the current state of ξ (k) is led, as long as the remainder of the optimum control. This leads to dynamic programming algorithm in which the optimization problem will be examined inversely with respect to time. To start at the end of the state ξ (T )and work your way step by step back in time to complete the calculation of the optimal control mode as a function of the whole problem. Optimum of the cost of iterative tive formula

**Jk(Ξ (k)) = min [Lk(Ξ (k), v (k)) +Jk +1 (Ξ (k + 1))], v (k)

(23)

*where the initial value JT(Ξ (T)) used in the final state cost φ (R, ξ (T )). Opti- mum control to provide guidance every step of the v* (K), a cost- minimizing the cost represents.

By minimizing the cost, therefore, locally, each step of the way the system is obtained as a whole to behave optimally.

6.4.3 Clustered regressiorakenteen optimization

Datapohjaisena pure clustered method of operating regressiosäätäjän s is based on only the data used in teaching. The idea is to start with simply carried out by pattern control, which may be far from the optimistic. After this initial state has been taught to the controller, will update the model structure the new data, which controls the operation more effectively. This controller gradually learns to better control and approaches the desired optimum.

Regressiosäätäjässä clustered dynamic optimization may be treated optimization of the starting points: If The last a steering operating point of the optical paint, it is sufficient to optimize the activity the previous point. When this is factory- ty, can move to the previous operating point again and continue the optimization. This proceeding back in time to provide the entire operation piecewise -optimaalisek si. If in addition to action points in place in India will be updated, the overall optimum solution is gradually achieved.

Cyclic operation, such as just walking in steering, can not be separated "five- Us "function points. Optimization policy to gradually upgrade all operating points and their position, giving the weather brought ice-taught mintakäyrä is deformed and enters the state-space more-optimal activities to match.

Data-based approach, learned models will be updated a little early that coming in a special data, the controller when the system becomes a new data

34

Page 39: Thesis.fi.En Bipedal Model

direction. In order to adaptoituminen occur toward the desired optimum, it should new the training data, therefore, represents a more "better" activity. This is achieved, be as simple as "trial and error" basis, which in practice based on random search. The method may be made in stages as follows:

1. Taught clustered regressiosäätäjä optimize non-behavior- iN collected in the teaching data.

2. Calculate the control of the original cost Jopt (In cyclic operation The average cost / cycle).

3. Carry out a random time instant control of random change and taught in the thus obtained a new data point regulator.

4. Calculate an updated cost function Jopt and compares it to the old the cost. If

•Jopt > Jopt : A new model is rejected and return to the old days.

•Jopt ≤Jopt : To adopt a new model and the updated cost Jopt ←Jopt .

5. Go back to step 3, until a clear optimoitumista is no longer used, pahdu or the desired number of iterations have been completed.

The method, therefore, is testing a random change in the guidance of, and agrees, if the result is a better ratio of the selected cost. This update is done only For optimal operation of the direction.

The random search-based methods is a weakness of their inertia, and the mi- not inhibit the operation of the inflow into the cost function lokaaliin minimum. On the the other hand, the optimization algorithm is the most universal and the UN simply. Optimization of the cost criterion can be selected any time by how same, as long as the calculation of the potential for systemic collected data based on basis. The structure of the system does not need to know or be able to more precisely analyze that, as long as the simulation of the hand or right, and redirecting the data in The collection is successful.

6.5 The earlier applications

Regressiosäätäjää clustered in the past has been applied, the robot kaksinivelisen tikäsivarren to control your Chunk of control [1]. From controller, we used methods differed slightly now presented, but the basic idea, however, was the same Monday. The only difference was that Chunk of control -Controller did not distinguish between state-

35

Page 40: Thesis.fi.En Bipedal Model

and ohjausdatoja, but the principal component in the combined data-directed into space.

The results obtained were very good, because the controller is able to reproduce as a model for used by individual PID controller tuning and optimization activities successfully. Provide a process, however, was compared with the very simple structure, na this work on walking system.

36

Page 41: Thesis.fi.En Bipedal Model

7 Clustered application regressiosäätäjän

walker to control

Regressiosäätimen clustered to form the basis for operation of the adjustable system status and control signals between the description of the modeling. As luvus- same was found to 6, a system modeled by a regressiosäätäjään activity curve, which mimics the first controller is used for the arbitrary and mallisäätäjää learned to repeat guidance. Thus a separate reference signal is not needed, but the operating the system is limited to what has been learned toimintakäyrälle.

Clustered regressiosäätimen application aimed at the control ra- tures could be updated on an ongoing basis. At first controller would mallisäätimen activities, and learned enough to self-manage system. Thereafter, control adaptoituisi to changing conditions and to optimize the cost-selected walking tannuskriteerin accordingly. Thus, for example walking speed ratio is used in the energy to progressively maximize the operation is in progress.

In this work use was clustered regressiosäätimen clearly into two parts. Taught in the first stage of the controller, an initial introduced mintakäyrä PD controller systemic control from collected data. In the second stage was studied in controller models upgrade to Annex C, as shown Hebbin and anti-based learning Hebbin pääkomponenttiregressioalgoritmilla.

Controller used in teaching the Matlab source code and Simulink models is pre- treated in more detail in reference [16].

7.1 Controller implemented in Simulink

Clustered regressiosäätäjän Simulink implementation of the design is based on the earlier- semmissa applications used in the solutions as well as specialized work [27] developed- TYY model fitting block. The whole controller functions to bring together the strands, whose input is the system state vector and the response to a learned model of the pro- CONTROLS. Figure 11 shows the block structure, including a controller to-eat tesignaalin treatment, the actual results of computation and ohjausrekonstruktion post-processing.

Controller is constituted by Clustered regression Block. Taught model is given in this block parameter dialog box, Matlab "structu- re array "variable of type, which contains all the operating points of matrices (see section 6.2). Block structure is dynamically updated mal- lirakenteen with in such a way that for every operating point of each block containing MPLIANCEWITH one PCR sub-block (Figure 12). These sub-block, each performing its own operating point within the required principal component regression and costs

37

Page 42: Thesis.fi.En Bipedal Model

Figure 11: clustered regressiosäätäjän Simulink model.

its calculation. Finally, all the blocks from reconstructions and calculated Formula (18) according to a weighted average, which gives the actual model output, of income.

Figure 12: Clustered regression Block contains the automatically operating points regressionlaskentalohkoja equivalent amount.

38

Page 43: Thesis.fi.En Bipedal Model

Since regressiolohkon structure is a dynamic regulator can be used simply by varying the number of operating points and the amounts of P-controlled model of RA kenteeseen have to manually make changes. The PCR-blocks number is updated an- netun sample structure at the beginning of the simulation Clustered regression Alustuskomennoilla block mask. Connections between the blocks are formed Simulink Goto and From-segments, of separate lines on which the coupling is not required.

As in the PD-adjustment, the legs of a clustered regressiosäätäjässä signals must be replaced with each other on every other step of the way. This is because the a block that controls the alternating left and right foot steps in the host potassium velijää, but the model has been taught only a step in which the left foot and swing the right is supporting leg. Exchange controls Switch-signal, which is converted to-nollas s number one or vice versa, always double-support phase begins. Input Signals change Switch legs Block and control signals Switch controls Block (Figure 11).

7.2 The training data

Teaching phase, were based on the PD-Walking collected da- TAA. Prior to the actual models for the calculation of the premises and the control data nollakeskiar- voistettiin, and all components were scaled to the variances of ones. This is justified in that the input data includes for example. and the values of the angular-kulmanopeuk acteristics which variances and mean values can differ significantly. Feed values of the sensor is handled at all, and it was left off the locale models calculated. Enter the next simulation time kfrom the state vector

ureal (K) = [x0(K), y0(K), α (k), βL(K), βR(K), γL(K), γR(K), ˙x0(K), y0(K), α (k), βL(K), β˙R(K), γL(K), γR(K), ˙ ˙ ˙ ˙ ˙ sL(K), sR(K)]T.

(24)

Before the regression model for the use of the state vector is removed x0-Coordinate, and nollakeskiarvoistetaan components, and are scaled in such a way that the variance, then are the ones. Denote the state vector thus obtained u (k). Further, syötevekto- RIA, which is further removed from the sensor values, denoted u(K). A control signal or~ response regulator in turn, consists of items of the system:

yreal (K) = [ML1 (K), MR1 (K), ML2 (K), MR2 (K)]T.

Denote zero-mean, and scaled control signal y (k).

(25)

39

Page 44: Thesis.fi.En Bipedal Model

7.3 Data Clustering

Teaching phase, activity score was placed in the data, the system brought- mintakäyrälle appropriately, so that the internal model should provide the structures. Each operating point attached to it are located closest to the data points. The aim was that it created are spread over toimintapisteklusterit brought- mintakäyrälle sequence and the controller is able as far as possible, reconnection struoimaan learned behavior.

At first the steps were divided into training data occurred over time as long-jak spouses, with a mean value points were selected toimintapisteiksi. In this method, each cluster was as much educational materials and action points si- jaitsivat toimintakäyrällä uniformly. However, the simulations showed that the The equal division did not produce a good reconstruction results. This was due to the fact that activity curve was assumed linear in each operating point of the region. However, the in fact each curve is steep bent to near-toimintapis you should invest in more densely, so that the linearity assumption would be true with sufficient accuracy six. On the other hand, in some parts of the operating kävelysykliä has a wider linear regions, the operating points could be fewer.

Higher operating points Attempts were made to carry out positioning by using the self- ganisoituvan map [28]-like competitive learning-based opetusalgorit mia of points to calculate points. Method of operating points are attached to one-dimensional strip in numerical order and the algorithm goes through opetusda- TAA will be shown at a time in random order. Each iteraatiokierrok- Sella kThe following steps are carried out:

1. Selected training samples u (k), y (k) that best matches the operating point p* the cost of Jp(U (k), y (k)) relationship.

2. Deposited in the lecture index kthe best operating point p* cluster- Register.

3. Calculate the coefficients of an oversight

λp(K) = 1 -(1 -λ0) HThe(P; p* ); p= 1; . . . , Ncr (26)

4. Updating all the action points in the formulas

ppCu(K + 1) = λp(K) Cu(K) + (1 -λp(K)) u (k) ppCy(K + 1) = λp(K) Cy(K) + (1 -λp(K)) y (k) . (27)

The whole iteration after the activity score is transferred to the associated datakluste- reitten average score. In the formula (26), Gaussian naapuruusfunktio

hThe(P; p) = Exp * -p-p* 22σThe

2 (28)

40

Page 45: Thesis.fi.En Bipedal Model

greatly appreciates the activity score pand p* are located close to each other, in deksiavaruudessa. On the other hand the points located far from each other is a function 2a small value. Parameter σThedetermines the width of the neighborhood. The minimum cost *nuksen Jp(U (k), y (k)) gave the operating point is updated in the original odds of an oversight λ0, But other units oblivion coefficient approaches the UN group or unit, the cost Jp(U (k), y (k)) is increased.

Naapuruusefekti algorithm tends to draw the units towards one another, but on the other hand, located in different parts of the data units to spread more widely. Thus, introduced mintapisteet konvergoiduttua fitting algorithm in accordance with the data, et PC ON more abundant in areas containing data units is more than a few regions.

As a cost Jp(U (k), y (k)) elected to the weighted sum of the training sample and operating point under consideration pEuclidean distances, the squares and the corresponding input- teavaruudessa:

ppJp(U (k), y (k)) = (U (k) -Cu(K))TH1(U (k) -Cu(K)) pp+ (Y (k) -Cy(K))TH2(Y (k) -Cy(K)). (29)

Painomatriiseilla H1and H2can be affected by the various components, merkittävyyk calculating the cost member.

Instruction controller 4000 using training data sample, which was collected PD-Walking. Data were operating points are fixed to a lower al- length N to 20 times in random order. Parameters used in the examples tetty in Table 3, where the label IThemean The×TheSize-yksikkömat rice and 0Thethe corresponding blank matrix.

Table 3: The parameters used in the placement of points. The parameter value Number of data points N4000 Data of performances Number 20 2Naapuruusfunktion variance σThe0.8 Original oblivion factor λ00.995 I6 07Painomatriisi H1 I2 Painomatriisi H25·I4

Action points to its insertion was thus most strongly account the control- components and the generalized coordinates. Coordinates, velocity values were left used, since they contain many interfering affected by vibrations.

Algorithm konvergoitumista was monitored by calculating the amount of teaching time Winner of the cost of operating points of all training samples over. Always

41

Page 46: Thesis.fi.En Bipedal Model

a new sample presentation time, the start of the amount drawn on the value and reset- added. There was thus obtained the graph, it could be concluded that the behavior of the algorithm konvergoitumisen progress. Figure 13 shows a typical converges- tumiskäyrä.

Figure 13: Action points sijoittelualgoritmin konvergoitumista examined Winner of the unit cost amounts to.

Figure 14 shows the clustered training data projected onto the three-state variables applicant. Clusters, the average score, or score function is described in a different tone of these environ- pyröillä, and include the corresponding data points in the colors of points. Each the cluster center is also connected to one system in the state of operating point.

Teaching data positioning system operation is clearly seen in curve form Thurs projected in space. Walking cycle, the rapid movements during the pedestrian state changes one time interval will be such that consecutive Set the data points are located far from each other. Since the discrete model of walking a reference signal and controls the sample interval is the same as the data collection used in the sample interval, collects training data at the same kävelyliiket the elastic- In th. This is shown in Figure 14 in parallel pistejoukkoina, brought-in levittyvät mintakäyrän against the traveling direction at right angles.

Clustering algorithms is a shared activity score fairly evenly throughout the operating takäyrän trip, and a step of the curve passing through all points. Only in the last four operating point within the data does not seem to be divided in- tisti clusters, but this is probably due to the selected projections.

42

Page 47: Thesis.fi.En Bipedal Model

Figure 14: Clustered training data projected onto the three state variables, activity tapistejako system status and operating points.

7.4 Operating points and the number of feature variables

selection

Activities affected by the number of points in theory, directly clustered regression siosäätäjän on steering accuracy. If the operating points is a more- system, within the linearity assumption is valid in general, and better taught ku- vaus holding system control installations can be replicated in more detail. Secondly using too many of the operating point of training data may not be enough in- kaiselle regression sufficient to form a unit. Similarly, control simulation time increases activity increases, the number of points.

Similarly, the feature of the number of variables explains clearly how closely opetusda- tan dependencies into account. The aim is that the model used, would only essential information is contained in the data and the noise contribution would be modeling without. The more characteristic variables are used, that is, the more automo- nents regressiokuvaukseen will be included in, the more training data optimitilanteessa able to reconstruct.

Figure 15 shows the regulator remaining in teaching the description of the relative

43

Page 48: Thesis.fi.En Bipedal Model

squared reconstruction error of the different operating points and the characteristic parameters of Moravian- la. Errors have been calculated on the basis of teaching used klusterointijaon sum- maamalla all training data points squared reconstruction errors.

Figure 15: Educational Data normalized quadratic control rekonstruointivirhe operating points and the feature of the variables as a function of volume.

Figure 15 is not suitable for operation on the basis of the points and the characteristic quantities of the variables however, possible to select, in practice, since the regulator can not shown, estimoin titarkkuuteen. This is mainly due to the fact that the guidance for calculating the right- aa possible to select the operating point of the instruction as well as the stage, and To calculate the cost there is no control components in the real value- and. The control phase, the operating point for the selection of otherwise-opetusvai phase cost (29) such expression, but the control word was omitted, ie the set H2=04:

ppJp(U (k)) = (u (k) -Cu)TH1(U (k) -Cu). (30)

This proved to be effective and the easiest way to replace ohjauster- The absence min.

In practice, the average reconstruction accuracy is no more important to feel- van, in which kävelysykliä contain errors, and the type they are. At the critical moment occurring inaccuracy in the wrong direction to drive the system

44

Page 49: Thesis.fi.En Bipedal Model

so far opitulta toimintakäyrältä that the controller is unable to continue operations tics. This leads to a walker to fall over.

The results of simulation shows that a suitable number of points, is approximately 20 Similarly, the major components needed regressiokuvauksessa of 7-8 pieces, so that walking motion is repeated.

7.5 Operating points of internal models of teaching

Regression model a given operating point will be determined by just a point Education-related data. The model was not used in forming the feet touch- tussensoreista collected data, it is typically because one introduced remains constant, mintapisteen region. As used syötedatana instruction operating point of p were, therefore, the associated Npvector up(1); . . . , Up(N p); which include general-~ ~ tetyt coordinates and the time derivates of the air x0-Coordinates. Data Response formed the inputs associated with ohjausvektorit y (1). . . , Y (N p).

Feature of the data was obtained by principal component analysis and a description of the feed input vector main components. Section 6.2 The correlation matrix was calculated during the training directly to the covariance equation, that is, for example,

p Rx ~ u

1 =p N

Np pxp(D) (~p(K) -Cu)T, u ~ k = 1

(31)

pwhere xpand upthe operating point prelated data vector and Cuactivity~ ~ tapisteen input data without odotusarvovektori kosketussensorin values. The samples were the number of copies Npsupposed to be kept large enough so that the result is true.

7.6 Learned to walk

Taught clustered regressiosäädin is able to estimate the walker tilasignaa- lin on the basis of its controls. Dry ice is actually stored as a model used in the PD-controller functions: both decrease the measured state of steel-peru sat on the control signal value. Pedestrian can be controlled by changing clustered regressiosäädin PD controller to the scene.

Was able to walk model in a clustered regressiosäätimellä the second number of different laisilla parameter values. Table 4 summarizes the parameters used in the teaching- riarvot, the walk was achieved quite well.

The best operating point selection was also able to control the desired manner. Figure 16 shows the best operating point for the index p* versus time gait progresses. Teaching points 4 and 5 are arranged with each other the wrong way round,

45

Page 50: Thesis.fi.En Bipedal Model

Table 4: clustered regressiosäätäjän the parameters used in teaching. The parameter value Number of action points Ncr20 Plot the number of variables The8 Control estimates the weighting function (19) the variance σ20.05 2His directions for walking model added random noise variance σThe0.01

Figure 16: All the action points will take place in general through every step of the way.

the point 5 will take place prior to 4 points This does not affect the weather draft control operation, since the order of the points in between are no longer relevant.

Figure 16 also shows that a single cycle of the operating point can be should be omitted. In practice, these points still affect the control of, be- will result in the closest operating points are calculated according to the results weighted by the average.

Learned to walk a little different from the model walks. Figure 17 shows the PD-down and learning to walk in a few moments as a function of time during the step. The initial moment (0 s) is selected in such a way that both in the foot from the double support phase. SEL accordingly be seen that the model walking walker to take steps more quickly, and learned walking left behind. On the other hand clustered regressiosäätäjän guided by walking, Lyssa control signals are smoother. In particular, the strong vibrations of the knee the corners of the articles (ML2 ,MR2 ) Have been weakened considerably.

Similarly, Figure 18 shows changes in the coordinates of generalized multi- of both models the walk progresses. The most obvious difference between a walk is still the fact that learned to walk less often proceeds in steps. Walking speed is not very much the same as learning to walk the steps are slightly longer. Walking to-

46

Page 51: Thesis.fi.En Bipedal Model

Figure 17: Opitussa walking (KRS) and the model of walking (PD) used in the moments During a few steps.

47

Page 52: Thesis.fi.En Bipedal Model

Figure 18: Change in the coordinates of the walker walking opitussa (KRS) and model- walking (PD).

lijän upper body y0-Coordinate the behavior is slightly different model for a walk, but other than that learned behavior I play quite accurately.

As the control signal (Figure 17), the generalized coordinates aikade- rivaatoissa (Figure 19) is a model walking the vibrations are attenuated significantly siirryttäes- YOU clustered regressiosäätäjän control. At least on this matter in the head- komponenttiregressio seems to work as intended, and unnecessary between- rähtelyt reduced.

Animated walking motion of the difference between the säätäjien is hardly noticeable. Ku- Vassa 20 are compared in a model of walking, and walking lessons learned by drawing a system state in either case, the 70 millisecond intervals. The horizontal axis shows the premises, price, time.

48

Page 53: Thesis.fi.En Bipedal Model

Figure 19: The coordinates of the walker walking opitussa time derivates (ROW) and walking model (PD).

Figure 20: walker behavior of both control methods.

49

Page 54: Thesis.fi.En Bipedal Model

7.7 Adaptive Education

Model Structure Calculation of pre-collected data set, it is therefore possible. Generating a model, however, more naturally, if you learn- taisiin slowly walking along the way, in which case the model updating of walking changes in the properties of this Chapter.

Originally, the operating points within the model was intended to form in Annex C. Hebbin described Hebbin and anti-based learning algorithm, the recursive ritmilla (HAH). It would have provided a method of adaptive models to calculate seen, and to update the walking. Turned out, however, that the algorithm possible to teach even the models of PD walking with data collected from teaching the required al- battery space is achieved. The problems caused by the fact that the data in less space constitute the main components of the variances were very small, which made it difficult HAH-konvergoitumista algorithm. Algorithm to show emphasis should be placed- van activities largest principal components.

Table 5 shows one typical operation of the data point variances of the feature vectors in order of magnitude. Determination of the variances of these found directly responsible for the main components in the importance of pääkomponenttiregres- sion is calculated.

Table 5: Mixed in a typical operating point associated with the data of the main variances of the feature vectors. The main component of Variance 1.0,8264 2.0,2099 3.0,0445 4.0,0124 5.0,0021 6.0,0014 7.0,0007 8.0,0004

Although the significance of the main components in the past seems like a pretty small, teaching- stage, it was clearly established that walking the other can not succeed without them. HAH-konvergoitumista algorithm was examined by drawing a particular subject model varianssiestimaatit by teaching the course. Figure 21 shows the algorithm behavior of the training data used in a single operating point associated with the requirements of data. Varianssiestimaattien converged state should meet the direct- directly from the data, the calculated variances. Distinguishing only the two main main components (the = 2) konvergoitui correctly the algorithm (Fig. 21 (a)). Oblivion- coefficient was used to a rather small value λ=0.99 to konvergoituminen

50

Page 55: Thesis.fi.En Bipedal Model

occurred about a thousand iteration.

(A) (B)

Figure 21: HAH konvergoitui algorithm only when the least significant automo- ponents variances were not too small. Direct data kovarianssimat- rice, the eigenvalues calculated from the "correct" values of variances are drawn in broken line butter.

The addition amount of the three main components to separate, in which case the minimum VA variance is 0.0445, the algorithm does not konvergoitunut. Although the record straight coefficient were grown in value λ=0.9999, teaching dispersed even a significant amount of iteraa- States from (Figure 21 (b)). Clearly, all the eight major components needed for separation of da- This will not be able to HAH-algorithm.

7.8 Teaching Play

Optimization of the conditions was also investigated by teaching clustered regressiosää- Director and again since the things learned walking collected data. The purpose was to find out whether a pedestrian learned enough information about the system The agency Pub. Taught walker acted in the PD-controlled pedestrian so far, the walking motion is never stabilized to repeat exactly the same cycle. The other hand, the range was as small as the PD-walking, so to walk, learning to Lyn His directions were added to the simulation of Gaussian white noise, answered by the variance of the original instruction used in the noise variance.

Regressiosäätäjän clustered control from the data collected systemic proved to be was, however, properties in such a way that walking is one of the longer- successfully won. Different operating points of the control provided by a reconstruction of averaging tusparametria σ2was obtained by adjusting the walker to step a few steps, but- to a permanent walking motion is achieved. Apparently the data is no longer represented the sys-

51

Page 56: Thesis.fi.En Bipedal Model

dynamics Teem comprehensive enough. On the other hand inaccuracies in the model does not had to be large, since the controller is quite sensitive to even small deviations who drive it away opitulta toimintakäyrältä.

52

Page 57: Thesis.fi.En Bipedal Model

8 Conclusions

This work was created initially using Matlab / Simulink environment simulation tool simplified walking robot model. This model describes a two-dimensional, two- sijalkaista robot, which comprise two legs attached to the knee joint the rigid-body and upper body in one piece. The robot model dimensions masses, and can be chosen arbitrarily, as well as the shape of the substrate and the foot Other features.

Despite the fact that the mechanical means of Lagrange formed walker dynamics equations were complex, a model to simulate how the paragraph- reasonably quickly. Also within walking platform for modeling the robot legs coupled- with external support forces turned out to be the ideal, even if the hard substrates decreased the rate of the simulation.

Walkers was developed in the PD-control, which creates a simulation of the cyclic nonyl- sisignaalit joints, corners and guided by separate PD controller walking. Walker guidance, at least in selected parameter values proved to be sensitive to control head- if these parameters change. On the other hand a truly multi-variable system, the weather- of individual adjusters can not generally act in the best-mahdollisel manner. The study also used the walker maintain a balance not to structure, not in theory, it is not easy: for example, the static stability suuden achieved only one foot on the ground is not possible, because the when the walker support surface has shrunk to one point.

PD-Walking collected walker input and response data that is based on basis of pedestrian movement in an inverse dynamics model was datapohjaisesti. Mal- lirakenteena used piecewise-linear pääkomponenttiregressioraken of clustered converted regression. When the model, the necessary correlation was calculated from data in advance of teaching, modeling might be a fairly good precision of Saturday. The obtained model could be used as such by connecting the system control measured based on the state the estimated value of the steering control to direct the walker. The starting point used in the PD-guided walking it was possible to repeat this single- simple regressiorakenteella only slightly modified.

Clustered regressiosäätö was found sensitive to imperfections, which are directed to- taught in the VAT off the path of movement. What is clear is that the controller could have acted very well in areas that were not represented in the training data. As the self-adjustable stabiloinut not be systemic disorders controller does not normally survive very high deviations. On the other hand the control signal could be clustered, regressiosää event, to increase the draft control of the same magnitude as the white noise Model walk the PD-controller, before the walker fell down.

Pedestrian movement modeling adaptively updating regressiorakenteita not tas- in this work a success. Principal component regression required fewer signifi-

53

Page 58: Thesis.fi.En Bipedal Model

warding variances of the major components were so small that the selected head- komponenttiregressioalgoritmi konvergoitunut longer. The optimization of the walking not been tried out in practice.

A further study should focus in particular on the model structure of the adaptive- radioactive update for testing. A suitable pääkomponenttiregressioalgoritmin better able to avoid the major components of small variances due to difficulties. On the other hand it may interfere with the optimization model of degeneration, it was observed that the regression model learned from steering walking de- tracting the data is no longer described process as well as the original data.

54

Page 59: Thesis.fi.En Bipedal Model

References

[1] H. Hyötyniemi. Life-like Control. The book Step 2002 - Intelligence, the Art of Natural and Artificial, ss. 124-139. Finnish Artificial Intelligence Society, 2002.

[2] T. McGeer. Passive dynamic walking. The International Journal of Ro- botics Research, 9 (2) :62-82, April 1990.

[3] by T. McGeer. Passive walking with knees. The book Proceedings of the IEEE the International Conference on Robotics and Automation, ss. 1640-1645. 1990.

[4], Coleman, M. and A. Ruina. An uncontrolled toy That can walk but Can not standstill. Physical Review Letters, 80 (16) :3658-3661, April 1998.

[5] A. Kuo. Stabilization of lateral motion in passive dynamic walking. The International Journal of Robotics Research, 18 (9) :917-930, September 1999.

[6] M. Ogino, K. Hosoda, and M. Asada. Acquiring passive dynamic walking based on ballistic walking. The book Proceedings of the Fifth International Conference on Climbing and Walking Robots (CLAWAR 2002), ss. 139 - 146. In 2002.

[7], H. Ohta, M., K. Furuta Yamakita. From passive to active dynamic wal Thurs- king. The book Proceedings of the 38th Conference on Decision & Control Part 4, pp.. 3883-3885. December 1999.

[8] K. Hirai. Current and future perspective of Honda humanoid robot. Kir- widest in the four Proceedings of the 1997 IEEE / RSJ International Conference on-In Telligent Robots and Systems (iros '97), Part 2, pp.. 500-508. September In 1997.

[9] by S. Kitamura, Y., And Iwata, M. Kurematsu. Motion generation of a biped locomotive robot using an inverted pendulum model and neural networks. The book Proceedings of the 29th IEEE Conference on Decision and Cont- rol, Part 6, ss. 3308-3312. 1990.

[10] Y. Kurematsu, T. Maeda, S., and Kitamura. Autonomous trajectory is generated by the ratio legis of a biped locomotive robot using neuro oscillator. The book IEEE International Conference on Neural Networks, Part 3, pp.. 1961 to 1966. In 1993.

[11] G. Taga, Y., Yamaguchi and H. Shimizu. Self-Organized control of bipedal Locomotion by Neural Oscillators in unpredictable environment. Biological Cybernetics, 65 (3) :147-159, 1991.

[12] J. Hu, G., J. and Pratt, Pratt. Adaptive dynamic control of a bipedal walking robot with radial basis-function neural networks. The book Proceedings of

55

Page 60: Thesis.fi.En Bipedal Model

the 1998 IEEE / RSJ International Conference on Intelligent Robots and Systems, Part 1, pp.. 400-405. In 1998.

[13] J. R. Koza. Genetic Programming: on the Programming of Computers by Means of Natural Selection. The MIT Press, Cambridge, MA, 1992.

[14] Sigel project. http://sourceforge.net/projects/sigel.

[15], Ziegler, J., J. Barnholt, J. W., and Busch Banzhaf. Automatic evolution of control programs for a small humanoid walking robot. The book Procee- dings of the Fifth International Conference on Climbing and Walking Ro- bots (CLAWAR 2002), ss. 109-116. In 2002.

[16] O. Haavisto and H. Hyötyniemi. Simulation tool of a biped walking ro- bot. Technical Report 138, Helsinki University of Technology Laboratory, 2004.

[17] C. Chevallereau, Abba, G., Y., Aoustin, Plestan C., E., R. Westervelt; C. Canudas de Wit and J.-W Grizzle. RABBIT: A testbed for advanced control theory. IEEE Control Systems Magazine, 23 (5) :57-79, October In 2003.

[18] Z. Zografski. Geometric and neuromorphic learning for nonlinear mode ling, control and forecasting. The book Proceedings of the IEEE 1993-In ternational Symposium on Intelligent Control, ss. 158-163. August 1992.

[19] Atkeson C. G. A. W. Moore and P. Schaal. Locally weighted learning. Artificial Intelligence Review, 11:11-73, 1997.

[20] P. Schaal, C. G., and S. Atkeson Vijayakumar. Scalable Locally Weighted statistical techniques for real time robot learning. Applied Intelligence - Special issue is the Scalable Robotic Applications of Neural Networks, 17 (1) :49-60, 2002.

[21] and S. S. Vijayakumar Schaal. Local Adaptive Subspace Regression. Neural Processing Letters, 7 (3) :139-149, 1998.

[22] P. Schaal, S. and C. Vijayakumar Atkeson. Local dimensionality reduction. The book , Advances in Neural Information Processing Systems, 10, ss. 633 - 639. MIT Press, Cambridge, MA, 1998.

[23] S. Vijayakumar, A. D'Souza, S., and Schaal. Incremental online learning in high dimensions. Neural Computation (submitted), In 2003. http://www- clmc.usc.edu/sethu/pub_topics.1.html.

[24] S. Vijayakumar, T., Shibata, J. P. Schaal and Conradt. Statistical Learning for humanoid robots. Autonomous Robots, 12 (1) :55-69, 2002.

56

Page 61: Thesis.fi.En Bipedal Model

[25] C. L., Lewis, A. L., Syrmos. Optimal Control, second edition. John Wiley and & Sons, New York, 1995.

[26] S. Haykin. Neural Networks, a Comprehensive Foundation, second edition. Prentice Hall, Upper Saddle River, New Jersey, 1999.

[27] O. Haavisto. Control Engineering, special assignment: Mikstruurimallinsovituslohkon Wed- keeping with the Matlab / Simulink environment. In 2003.

[28] T. Kohonen. Self-Organization and Associative Memory. Springer-Verlag, In 1984.

[29] D. A. Wells. Schaum's Outline of Theory and Problems of Lagrangian Dynamics with a Treatment of Euler's Equations of Motion, Hamilton's Equations and Hamilton's Principle. Schaum Publishing Co.., New York, 1967.

[30] K. I., and S. Y. Diamantras Kung. Principal Component Neural Networks, Theory and Applications. , John Wiley & Sons, New York, 1996.

[31] H. Hyötyniemi. Multivariate regression: Techniques and tools. Technical tion Report 125, Helsinki University of Technology, In 2001.

[32] H. Hyötyniemi. And Anti-Hebbian Hebbian Learning: System theoretic approach. Neural Networks (submitted), In 2003.

57

Page 62: Thesis.fi.En Bipedal Model

A Lagrange-mechanics

Lagrange-mechanics provides a systematic method of system dynamics dynamics equations for the formation and resolution. It is based on Newton's classical mechanics and the concept of virtual work. The following is- an outline of the Lagrange equations and the dynamics of leadership as- löiden formation. Paper used as a source [29].

A.1 The generalized coordinates

The mechanical state of the system can be presented with a variety of co-ordinates help. For example, a simple mass tasoheilurin lausuttavis-position is sa cartesian coordinates (x1, Y1) Or by using the angle of the pendulum arm (Φ). The coordinates of the minimum amount necessary to the system-vapausastei the number of which must be inferred from the structure of the system. The generalized coordi- tops q1, Q,2. . . , Q,srepresent the coordinates of any other, but they are selected independent of each other, this means that every system degrees of freedom per is one of the generalized coordinate.

Many of the mechanical system consisting of the points dealing with Masso- JEN places are usually the easiest way inform karteesissa coordinates (xi, Yi, Zi). The following are restricted to those so-called. holonomisia systeemeitä, JOL- I created cartesian coordinates can be expressed in generalized coordinates as follows: xi=xi(Q1, Q,2. . . , Q,s) (32)y=yi(Q1, Q,2. . . , Q,s) i zi=zi(Q1, Q,2. . . , Q,s).

A.2 Lagrange equations

Application of Newton's second law massapisteelle miGives Fxi=mixi¨ F=miyi¨ yi Fzi=mizi,¨ where Fi= [Cxi, Fyi, Fzi]Tis the mass of the force on.

(33)

It is assumed that the mass iis transferred to an arbitrary, the small different from the virtual- man (Δxi, Δyi, Δzi) Compared. Multiplying equations (33) semi-coordination of each carbonate, anomalies and by summing up all of the equations from NmOf

58

Page 63: Thesis.fi.En Bipedal Model

the point is more than D'Alembert the formula:

Nm Nm

mi(¨iδxi+yiδyi+ziδzi) =x¨ ¨

i = 1 i = 1

(Cxiδxi+Fyiδyi+Fziδzi). (34)

In the formula (34) right-hand side is a joint effort FiTotal by Virtual work δW , And the left side of the system can interpret the kinetic energy of this induced by a small change.

Virtual deviation can be expressed in generalized coordinates using equations (32), for example, when the deviation of δxithe following is obtained follows:

δxi= ∂ xi∂ xi∂ xi δq1+δq2+· · · +δqs. ∂ q1∂ q2∂ qs

(35)

Place in a generalized virtual deviation from the expressions (35) D'Alembert formula (34), and (because the original deviation was arbitrary) selected examined only the first of the generalized coordinate trend towards variation, ie δqi= 0, i> 1.(36)

Re-arranging terms gives a

Nm

δWq1=

i = 1 Nm

mixi¨

Fxi

i = 1

∂ yi∂ zi∂ xi +yi¨ + zi¨ ∂ q1∂ q1∂ q1

δq1

δq1.

(37)

(38) = ∂ yi∂ zi∂ xi +Fyi+Fzi ∂ q1∂ q1∂ q1

Apukaava introduced, which is proven, for example paper [29]:

d ∂ xi xi¨ = ∂ q1dt

∂ x˙ x˙ ∂ q1˙

d ∂ x˙ -x˙ = ∂ q1dt

∂ (x2/ 2)˙ ∂ q1˙

∂ (x2/ 2)˙ -. ∂ q1

(39)

By position the formula (39) and the corresponding parameters yiand ziFormulas can be as- equation (37) right side of the expression:

d ∂ dt ∂ q1˙

Nm

i = 1

mi2 xi+yi+zi2˙ ˙2˙ 2

∂ - ∂ q1

Nm

i = 1

mi2 xi+yi+zi2˙ ˙2˙ 2

δq1. (40)

The clause appearing twice in the sum of the term is directly the entire mass kinetic energy of the system T. Coordinate q1associated with a generalized power Fq1 is obtained on the expression (38), which is of the form Fq1δq1.

59

Page 64: Thesis.fi.En Bipedal Model

The expression (40) applies to any generalized coordinates, and aims to offer la to the equation (37, 38) to write Lagrange equation :

d dt

∂ T ∂ qr˙ -

∂ T =Fqr, ∂ qr

r= 1, 2; . . . P. (41)

Dynamics of the system of equations is therefore needed to form the kinetic energy expression, muunnosyhtälöt (32) and expressions of generalized forces. Follow- given below of the method used in this work coordinate qrof the generalized force Fqrclause to clarify:

1. Attached to all the other generalized coordinates of the constants, but the rest- tetaan coordinates qrvalue + Δqr.

2. Calculate the masses of all the forces at offset by work δWqr.

3. Solve the desired force Fqrgiven by the formula

δWqr=Fqrδqr. (42)

Kinetic energy and generalized forces of the clauses are typically easier to a first bounce karteesisten coordinates and then converts the relationship equations (32) of generalized coordinates functions. By placing the Lagran- Gen. equations (41) is formed dynamiikkayhtälöt system.

60

Page 65: Thesis.fi.En Bipedal Model

B Dynamics of the model equations

Simulations used a two-legged walker dynamics model was written form A (q) ¨ =b (q, q ', M, F ).q˙(43)

Structure of the walker and the parameters used is shown in Figure 1 Vector qconsisted of Come selected generalized coordinates, Fplatform support for the forces and Min joints ten moments. Dynamiikkayhtälöitä formed in the system, vapausastei the generalized coordinates and the amount of the seven tracks. In the following a dynamic equation of the matriisimuotoisen (43) inertia, rice A (q) and the right side b (q, q ', F, M )expressions element by element:˙

A (q):

A11 =m0+ 2m1+ 2m2 A12 = 0 A13 = (-2m1r0-2m2r0) Cos (α) + (l-1m2-m1r1) Cos (α -βL)-l1m2cos (α -βR) -m1r1cos (α -βR)-m2r2cos (α -βL+γL)-m2r2cos (α -βR+γR) A14 = (L1m2+m1r1) Cos (α -βL) + m2r2cos (α -βL+γL) A15 = (L1m2+m1r1) Cos (α -βR) + m2r2cos (α -βR+γR) A16 =-m2r2cos (α -βL+γL) A17 =-m2r2cos (α -βR+γR) A21 = 0 A22 =m0+ 2m1+ 2m2 A23 = (2m1r0+ 2m2r0) Sin (α) + (L1m2+m1r1) Sin (α -βL) + l1m2sin (α -βR) + m1r1sin (α -βR) + m2r2sin (α -βL+γL) + m2r2sin (α -βR+γR) A24 = (L-1m2-m1r1) Sin (α -βL)-m2r2sin (α -βL+γL) A25 = (L-1m2-m1r1) Sin (α -βR)-m2r2sin (α -βR+γR) A26 =m2r2sin (α -βL+γL) A27 =m2r2sin (α -βR+γR) A31 = (-2m1r0-2m2r0) Cos (α) + (l-1m2-m1r1) Cos (α -βL)-l1m2cos (α -βR) -m1r1cos (α -βR)-m2r2cos (α -βL+γL)-m2r2cos (α -βR+γR)

A32 = (2m1r0+ 2m2r0) Sin (α) + (L1m2+m1r1) Sin (α -βL) + l1m2sin (α -βR)

+m1r1sin (α -βR) + m2r2sin (α -βL+γL) + m2r2sin (α -βR+γR)

A33 = 2l12m2+ 2m1r02+ 2m2r02+ 2m1r12+ 2m2r22+ (2l1m2r0 + 2m1r0r1) Cos (βL) + (2l1m2r0+ 2m1r0r1) Cos (βR)

+ 2m2r0r2cos (βL-γL) + 2l1m2r2cos (γL) + 2m2r0r2cos (βR

-γR) + 2l1m2r2cos (γR)

61

Page 66: Thesis.fi.En Bipedal Model

A34 =-l12m2-m1r12-m2r22+ (L-1m2r0-m1r0r1) Cos (βL) -m2r0r2cos (βL-γL)-2l1m2r2cos (γL)

A35 =-l12m2-m1r12-m2r22+ (L-1m2r0-m1r0r1) Cos (βR) -m2r0r2cos (βR-γR)-2l1m2r2cos (γR) A36 =m2r2(R2+r0cos (βL-γL) + l1cos (γL)) A37 =m2r2(R2+r0cos (βR-γR) + l1cos (γR)) A41 = (L1m2+m1r1) Cos (α -βL) + m2r2cos (α -βL+γL) A42 = (L-1m2-m1r1) Sin (α -βL)-m2r2sin (α -βL+γL)

A43 =-l12m2-m1r12-m2r22+r0(-L1m2-m1r1) Cos (βL) -m2r0r2cos (βL-γL)-2l1m2r2cos (γL)

A44 =l12m2+m1r12+m2r22+ 2l1m2r2cos (γL) A45 = 0 A46 =m2r2(R2-l1cos (γL)) A47 = 0 A51 = (L1m2+m1r1) Cos (α -βR) + m2r2cos (α -βR+γR) A52 = (L-1m2-m1r1) Sin (α -βR)-m2r2sin (α -βR+γR)

A53 =-l12m2-m1r12-m2r22+r0(-L1m2-m1r1) Cos (βR) -m2r0r2cos (βR-γR)-2l1m2r2cos (γR) A54 = 0

A55 =l12m2+m1r12+m2r22+ 2l1m2r2cos (γR)

A56 A57 A61 A62 A63 A64 A65

A66 A67 A71 A72 A73 A74 A75 A76

= 0 =m2r2(R2-l1cos (γR)) =-m2r2cos (α -βL+γL) =m2r2sin (α -βL+γL) =m2r2(R2+r0cos (βL-γL) + l1cos (γL)) =m2r2(R2-l1cos (γL)) = 0

=m2r22 = 0 =-m2r2cos (α -βR+γR) =m2r2sin (α -βR+γR) =m2r2(R2+r0cos (βR-γR) + l1cos (γR)) = 0

=m2r2(R2-l1cos (γR)) = 0

A77 =m2r22

62

Page 67: Thesis.fi.En Bipedal Model

b (q, q ', F, M ): ˙

˙2b1=-2α2m1r0sin (α) + FRx -βRm1r1sin (α -βR)-α2l1m2sin (α˙ ˙

-βL) + FLx -γLm2r2sin (α -βL+γL)-α2m1r1sin (α -βR)˙2˙ ˙-β2l1m2sin (α -βR)-α2l1m2sin (α -βR)-γ2m2r2sin (α˙ ˙

R R ˙2˙2 -βR+γR)-βLm2r2sin (α -βL+γL)-βLm1r1sin (α -βL) ˙-β2m2r2sin (α -βR+γR)-α2m1r1sin (α -βL)˙

-

-

R ˙2βLl1m2sin (α -βL)-α2m2r2sin (α -˙ α2m2r2sin (α -βL+γL) + 2αβRl1m2˙ ˙ ˙ βR+γR)

sin (α -βR)

˙ ˙+ 2βRγRm2r2sin (α -βR+γR)-2α ˙ Rm2r2sin (α -βR+γR)˙γ + 2αβLm2r2sin (α -βL+γL) + 2αβLm1r1sin (α -βL)˙ ˙ ˙ ˙

+ 2αβRm2r2sin (α -βR+γR) + 2αβLl1m2sin (α -βL)˙ ˙ ˙ ˙ -2α2m2r0sin (α) + 2αβRm1r1sin (α -βR)˙ ˙ ˙

˙ ˙+ 2βLγLm2r2sin (α -βL+γL)-2α ˙ Lm2r2sin (α -βL+γL)˙γ ˙2˙2b2=-βLm2r2cos (α -βL+γL) + FRy -2GM2-γRm2r2cos (α -βR+γR) ˙ ˙-β2m2r2cos (α -βR+γR)-α2m2r2cos (α -βR+γR)

-

-

R γLm2r2cos (α -βL+γL)-α2m1r1cos (α -βR)˙2˙ ˙2βRm1r1cos (α -βR)-α2(2m1+ 2m2) R0cos (α) -˙

α2l1m2cos (α˙

˙2-βR)-βRl1m2cos (α -βR) + FLy -α2m2r2cos (α -βL+γL)-2GM1˙ ˙ ˙+ 2αβRl1m2cos (α -βR) + 2βRγRm2r2cos (α -βR+γR)˙ ˙

-2α ˙ Rm2r2cos (α -βR+γR) + 2αβRm2r2cos (α -βR+γR)˙γ˙ ˙ ˙ ˙-2α ˙ Lm2r2cos (α -βL+γL) + 2βLγLm2r2cos (α -βL+γL)˙γ

+ 2αβLm2r2cos (α -βL+γL) + 2αβRm1r1cos (α -βR)˙ ˙ ˙ ˙ ˙-(αβL(2l-1m2-2m1r1) + α2(L1m2+m1r1) + β2(L1m2˙

˙ ˙ L +m1r1)) Cos (α -βL)-GM0

63

Page 68: Thesis.fi.En Bipedal Model

b3=γRl1m2r2sin (γR) + FRy l2sin (α -βR+γR)-FLx l1cos (α -βL)˙2 -FRx l1cos (α -βR)-FLx l2cos (α -βL+γL) + FLy r0sin (α) + FRy r0sin (α) + FLy l1sin (α -βL) + FLy l2sin (α -βL+γL)-GM2r2sin (α -βR+γR) ˙-γ2m2r0r2sin (βR-γR)-β2m2r0r2sin (βR-γR)˙

-

-

-

-

R GM2r2sin (α -βL+γL) + γLl1m2r2sin (γL)˙2 ˙2 γLm2r0r2sin (βL-γL)-βRm1r0r1sin (βR)˙2 ˙2˙2 βLm2r0r2sin (βL-γL)-βRl1m2r0sin (βR) ˙2 βLm1r0r1sin (βL)-gl1m2sin (α -βR) + FRy l1

R

sin (α -βR)-GM1r1sin (α ˙2 -βR)-gl1m2sin (α -βL)-GM1r1sin (α -βL)-βLl1m2r0sin (βL) -(CLx r0+FRx r0) Cos (α) -2α ˙ Lm2r0r2sin (βL-γL)˙γ ˙ ˙+ 2βLγLm2r0r2sin (βL-γL) + 2αβLm2r0r2sin (βL˙ ˙

-γL) + 2αβRm1r0r1sin (βR)-2GM2r0sin (α)˙ ˙ + 2α ˙ Rl1m2r2sin (γR) + 2αβRm2r0r2sin (βR-γR)˙γ˙ ˙

-2α ˙ Rm2r0r2sin (βR-γR) + 2α ˙ Ll1m2r2sin (γL)˙γ˙γ ˙ ˙-2βLγLl1m2r2sin (γL)-2GM1r0sin (α)

+ 2αβRl1m2r0sin (βR) + 2αβLl1m2r0sin (βL)˙ ˙ ˙ ˙ ˙ ˙+ 2αβLm1r0r1sin (βL)-2βRγRl1m2r2sin (γR)˙ ˙

˙ ˙+ 2βRγRm2r0r2sin (βR-γR)-FRx l2cos (α -βR+γR)

b4=ML1 +FLx l1cos (α -βL) + FLx l2cos (α -βL+γL)-FLy l1sin (α -βL)

+gl1m2sin (α -βL) + GM1r1sin (α -βL)-α2l1m2r0sin (βL)˙

-α2m1r0r1sin (βL)-α2m2r0r2sin (βL-γL)˙ ˙ ˙ ˙-2α ˙ Ll1m2r2sin (γL) + 2βLγLl1m2r2sin (γL)˙γ

- γLl1m2r2sin (γL)-FLy l2sin (α -βL+γL) + GM2r2sin (α -βL+γL)˙2 b5=MR1 +FRx l1cos (α -βR) + FRx l2cos (α -βR+γR)-FRy l1sin (α -βR)

+gl1m2sin (α -βR) + GM1r1sin (α -βR)-α2l1m2r0sin (βR)˙

-α2m1r0r1sin (βR)-α2m2r0r2sin (βR-γR)˙ ˙ ˙ ˙-2α ˙ Rl1m2r2sin (γR) + 2βRγRl1m2r2sin (γR)˙γ

-γRl1m2r2sin (γR)-FRy l2sin (α -βR+γR) + GM2r2sin (α -βR+γR)˙2

b6=ML2 -FLx l2cos (α -βL+γL) + α2m2r0r2sin (βL-γL)˙ -α2l1m2r2sin (γL) + 2αβLl1m2r2sin (γL)˙ ˙ ˙

˙2 -βLl1m2r2sin (γL) + FLy l2sin (α -βL+γL)-GM2r2sin (α -βL+γL)

b7=MR2 -FRx l2cos (α -βR+γR) + α2m2r0r2sin (βR-γR)˙ -α2l1m2r2sin (γR) + 2αβRl1m2r2sin (γR)˙ ˙ ˙

˙2 -βRl1m2r2sin (γR) + FRy l2sin (α -βR+γR)-GM2r2sin (α -βR+γR)

64

Page 69: Thesis.fi.En Bipedal Model

C Multivariate Regression methods

Multivariate Regression examines the data for statistical dependencies, drank, formed the basis of the description of the response to input from you. This annex is- be through the principal component analysis in which the input data to search for a maximum of VA rianssin suuntavektorit major components, namely, as well as Principal Components already- ka regressiokuvauksen computes a linear response for the main components. In addition to presents an iterative algorithm based on neural which may be carried out so as principal component analysis, regression.

Methods form the basis on which section 6 and presented in this work in- a material used in a data-based modeling tools, namely the clustered regression is built.

C.1 Principal component analysis

The aim of principal component analysis is to describe each other potentially high- reloivat random variables to a smaller number of uncorrelated random female variables. The method can be used for compacting data and internal structure visualization.

Pääkomponenttivektorit are virittäjävektoreita the space to which a data-ku are fully protected. Pääkomponenttivektori shows the first direction in which the random naisvektorin variance is maximum, that is, it tends to describe the greatest possible Lisen part of the data variability. The next pääkomponenttivektorin calculate Data is projected perpendicular to the first pääkomponenttivektoria-oleval le hyper level and find again the maximum variance direction. It may be will continue until the original is formed pääkomponenttivektoreita random naisvektorin dimension corresponding amount.

Figure 22 is shown in a number of two-dimensional random vector values [U1, U2]Tpääkomponenttivektoreitten and both directions. Clearly seen, be the first pääkomponenttivektori w1indicates the maximum va- rianssin direction. Another pääkomponenttivektori w2in turn, is perpendicular to the rassa compared to the first image and the rest of the data variability.

Consider m-dimensional data vector u= [U1, U2. . . , Um]TA-odotusar Vo is the E {u} =0and covariance matrix Rnew =E {newT}. Describes the data vector pääkomponenttivektorien formed by a linear feature-space vector (latenttivektoriksi)

x= (W WT)-1 W u =W u, x∈ RThe. (44)

Kuvausmatriisi W= [W1, W2. . . , WThe]Tis orthogonal to the rows, and containing The normalized TS suuntavektorit the major components that form traits,

65

Page 70: Thesis.fi.En Bipedal Model

Figure 22: a two-dimensional data upääkomponenttivektorit w1and w2.

reavaruuden position. To evaluate the description, since the orthogonal matrix is the case W W T=I.

Compacting the data leaves the last part of the main components of the use of (N <M); when no data is to be described without error. Original reconstruction of the vector into the wild can be directly multiplied by the rule feature of the feature vectors corresponding components in the data:

u=WTx=WTW u. (45)

Major constituents are directed to the corresponding covariance matrix Rnew normalized eigenvectors and associated variances of the eigenvalues. So by arranging the matrix Rnew eigenvalues in descending order of size is obtained vastaavis- eigenvectors directly to the desired projektiosuunnat in order of importance. Will also prove that the matrix Wminimizes the reconstruction error

Je=E {u -u} (46)

and second maximizing the major components of the variances of the above-described in [30].

If the original random variables is a linear correlation with each- the wall, on the last major components of the variances are small. A typical so far revealed characteristic parameters is less than the dimension of the original data of di- mensio, when a data error can be more closely described in the near-plastic dossa by using only the relevant pääkomponenttisuuntia. May be the same,

66

Page 71: Thesis.fi.En Bipedal Model

be found in the data present in the independent variables determined the real- ra.

C.2 Principal Components

Principal component is designed to provide your regressiokuvaus- Anti-subsidy response to input from you. For data entry is done first, principal component analysis si, leaving the last of the main components can be reduced by the use of dimension of the data and potentially reduce the occurrence of noise in the data or- kutusta [31]. This is based on the assumption that the noise is distributed inde- an Independent koordinaattisuuntiin any, between the actual variables listen dependencies will reduce the noise. Finally, piirrevektorida standard is described by linear least-squares multivariate regression to obtain the desired output of the estimate.

Suppose that there are given the training data, which includes Npieces m-dimensional sioisia matrix input vector U= [U (1); u (2). . . , U (N )]Tand related TS l-dimensional vastevektorit matrix Y= [Y (1); y (2). . . , Y (N )]T. At first calculated by the matrix Wlines of feeds TheThe first-pääkomponenttivek square, which is the covariance Rnew eigenvectors. After this, ing are described all the feeds of feature vectors, which occurred in matrix form, Come by the formula X=UW T.(47)

The least-squares linear take monimuuttujaregressiokuvauksen rikuvaus Gfeature vectors for the response can be calculated pseudoinverssillä gas only G= (X TX)-1 XTY.(48)

A new input vector uest response estimate is formed now by using the formula (44), (47) and (48):

yest =GTxest =GTW uest =YTU W T(W UTU W T)-1 W uest . (49)

C.3 And anti-Hebbin Hebbin learning based on the main

komponenttiregressioalgoritmi (HAH)

Neural based on a number of similar units, neurons, jot- ka are able to perform simple calculations. By connecting these units a row side by side and can be implemented with neural networks generated complex descriptions of prior art input from you for the response. Literature [30], a number of

67

Page 72: Thesis.fi.En Bipedal Model

neuraalilaskentaa pääkomponenttialgoritmeja use, typically PE Hebbin are based on the learning rule (eg, [26]).

Hebbin learning the connection between neurons is strengthened when the neurons active tivaatiot correlated with each other and decreases when the correlation is negative. Anti-Hebbin learning cycles will be updated just the opposite, in which case neurons compete with each other. In general, the anti-Hebbin updated learning parallel neurons, when the goal is that only one neuron is activated tuisi in a given feed.

Next Hebbin and anti-Hebbin pääkomponenttiregres-based learning sioalgoritmi is shown in reference [32]. The algorithm allows regressioraken- I continue to update the data for statistical properties of changes versus time.

C.3.1 Structure and function of the neural network

An algorithm for neuraalirakenne consists of parallel-neuroneis s, which is Thepieces. The network is used as input m-dimensional -datavek tors u (k), and all neurons can be made aktivaatiotilat-vektoril la x (τ, k) ∈ RThe. Index krefers to the number of sample presented to the network. The continuous time variable τin turn, whereas neurons the internal dynamic tion structure: When a new sample is shown in neurons, the set-aktivaatioarvo Come take time to build a state of equilibrium. At the time of τsample u (k) the presentation of intraneuronal spaces are thus x (τ, k).

It is assumed that the instantaneous change in neuron depends linearly on the activation of input vector and the neuron state, the dynamics of the entire neural network, may be a matrix form as follows:

dx (Τ; k) =Ax (τ, k) +BU (k). dτ

(50)

Matrices Aand Binclude the connections between the neurons weights. Ku- Vassa 23 shows a dynamic diagram of a network structure.

Neurons in behavior of interest is the result obtained konvergoitumisen be steady state x(K) = limτ→ ∞ x (τ, k), whose expression can be solved¯ by the term change in the formula (50) to zero:

x(K) = A-1 BU (k).¯ (51)

The dynamics of the review can go directly to the outcome of the benefits- tämiseen. Is denoted by the activation of neurons in the stable end-state x (k), when the input is shown u (k).

68

Page 73: Thesis.fi.En Bipedal Model

Figure 23: and an anti-Hebbin Hebbin pääkomponenttiregres-based learning sioalgoritmin the dynamic neural network structure. Integration is performed at the time variable τrelationship.

Now, select weight coefficients

A=-ΜE {xxT} and B=μE {xuT} (52)

where μdetermine the speed of the algorithm konvergoitumisen and expected values E {·} the index is calculated krelationship. So the input weights Bother state- change are determined by the expression Hebbin rule directly on the entry- and status signals, ie the correlation between the covariance matrix of germs. If signals are highly correlated, the equivalent weight is a factor, and vice versa. On the other hand a negative effect on the signal state of the feedback A through a new state of the change complies with the anti-Hebbin learning rule. When a correlation is completed, change the term iteration to the reduction, system.

Steady state is obtained by placing the selections (52) the expression (51):

x (k) =E-1 {XxT{E} xuT} U (k) =φTu (k), (53)

where lineaarikuvausta input for neurons in the farms are marked matriisil- la φT∈ Rn × m .

Referring next to the end space covariance matrix of neurons, which is calculated, are calculated vector x (k) Foreign income expectation value of the formula (53):

E {xxT}=E-1 {XxT{E} xuTE {new}TE} T{XuTE} -1 {XxT}. (54)

The formula is true if the input data is assumed stationary. It is said now mo- from both sides ML-estimate E {xxT} yield:

E3{XxT}=E {xuTE {new}TE} T{XuT}.

Substituting equation (53) x (k) 's clause in the equation transforms to

φTE {newTΦ} 3

(55)

=φTE3{NewTΦ}. (56)

69

Page 74: Thesis.fi.En Bipedal Model

Kuvausmatriisi φis trivial when The=m ie the description is not the case compres- sound. If, however, n <m, should look at the description of the properties in more detail.

Let's move input covariance matrix E {newT}eigenvectors and the eigenvalues, which pääkomponenttivektoreista input data and associated the variances. Ominaisarvohajotelmalla can be written in matrix form toon E {newT}= ΘΛΘ-1 = ΘΛΘT,(57)

where Λand a diagonal ominaisarvomatriisi Θ s columns are summarized in the corresponding eigenvectors. Since the characteristic symmetric covariance matrix vectors form the orthogonal position, can be inverse calculation transposed when to replace.

Selected kuvausmatriisiksi

φ=θD; (58)

where Dis an arbitrary The×TheOrtogonaalimatriisi-size, which is the case DDT=DTD=IThe, And θcomposed of any from among the matrix of E {newT}separate supplements eigenvectors. Substituting equation (56) is on the left side of expression

φTE {newTΦ} 3

=DTθTΘΛΘTθD =DTΛθD D TΛθD =DTΛ3D. θ

3

DTΛθD (59)

Diagonaalimatriisissa Λθdiagonal elements are the position θthe characteristic of selected vectors corresponding to the eigenvalues.

On the other hand the right side of the equation to evaluate the shape of

φTE3{NewTΦ} =DTθTΘΛΘT =DTΛ3D. θ

ΘΛΘT ΘΛΘTθD (60)

Thus, if the kuvausmatriisin φcolumns are selected arbitrary lineaarikombinaa- pating Member States part of the input data pääkomponenttivektoreita, obtained a number of solutions, to equation (56).

Since the final states of neurons is not known in advance, is not necessary to co- variance be directly calculated. Covariances estimates can- however, be gradually updated estimates space by means of which in turn the obtained covariance matrix estimates. It turns out [32] that this a double iteration konvergoiduttuaan actually lead to a situation in which matrix φ=ET{XuTE} -1 {XxT}(61)

tune of the same subspace as Thethe most important input data pääkomponenttivek- the monitor.

70

Page 75: Thesis.fi.En Bipedal Model

If the matrix φcolumns to be selected to correspond exactly to automo- ponenttivektoreita θ; covariance matrix of force to keep the premises diagonaalisek- si. Then the areas which are latenttimuuttujat uncorrelated with each other and PA tea E {xxT}= Λθ.

This is achieved by resetting the iteration alapuoleiset diagonal elements in question, variance E {xxT}neurons in the calculation of the premises on which the first neuron converges the most important main components. The remaining neurons share with each subspace, to the remaining, so that main components of converging to neurons in order. By using the thus-covariance matrix SIA yläkolmiomatriisimuodossa each iteration can be calculated in- pääkomponenttivektorit women, and the neurons in the areas corresponding to the major fiber component, analyzes with latenttimuuttujia.

C.3.2 Principal component analysis

Calculation of work in order to facilitate iteraatiokaavat principal component analysis to calculate in order to update and kovarianssiestimaattien is shown in the following use- tämällä neurons in the dynamics of the final status directly from formula (53). Enter the contin- present in Table kcalculated latenttimuuttujadatan x (k) kovarianssiestimaattia Rxx (K) ∈ Rn × n and latent heat, and feed the data cross-covariance Rxu (K) ∈ Rn × m . Cross-covariance estimate at the time kis updated using the formula

Rxu (K) = λ (k) ·Rxu (D -1) + (1 -λ (k)) ·x (k -1), uT(D -1); (62)

where the parameter λ (k) factor is an oversight. An algorithm is needed to latent timuuttujien inverse covariance matrix Pxx (K), a direct update of tyssääntö can lead to move with the same way as in the formula (62):

-1Pxx (K) = Rxx (K) -1 -1=λ (k) ·Rxx (D -1) + (1 -λ (k)) ·x (k -1) xT(D -1) -1 =λ (k) ·Pxx (D -1) + (1 -λ (k)) ·x (k -1) xT(D -1).

(63)

Now, the application of matriisinkääntölemmaa (e.g. [28])

(A-1 +BC -1 D)-1 =A-AB (DAB +C)-1 DA

obtained from an expression, a settlement of the update rule

Pxx (K) = 1 λ (k)

(64)

Pxx (D -1) - Pxx (K-1) x (k-1) xT(K-1) Pxx (K-1) λ (k)xT(K-1) Pxx (K-1) x (k-1) + 1-λ (k) . (65)

Covariance estimates can be calculated by using the latenttimuuttu- jadatan estimate:

x (k) =triang {Pxx (K)} ·Rxu (K) ·u (k), (66)

71

Page 76: Thesis.fi.En Bipedal Model

where the operation triang argumenttimatriisinsa zero below the diagonal Germ.

Iterating the formulas (66), (62) and (65) converges with the covariance matrix is obtained, duttua calculated on principal component analysis. Pääkomponenttivektorit are described- vausmatriisin (61) columns, so that the above-pääkomponenttikantamat Rice can transpose:

W(K) = φT(K) = Pxx (K) ·Rxu (K).

C.3.3 Principal Components

(67)

Principal Components Algorithm-share calculation is based on the same as the principal components analysis of the foregoing. When starting in received latenttimuuttujadatasta, is the first step to whiter, regressiorakennetta to provide simplification. Bleached latenttimuut- tujadatan z (1), z (2). . . , Z (n )covariance matrix is the identity, JOL- I created regressiokuvauksen final output is given by

y=E {yz T·} z (t). (68)

Denote further bleached latenttimuuttujadatan cross-covariance and response- SIA E {yz T}=Ryz ∈ Rl × n ,(69)

where la response y (1), y (2). . . , Y (N )dimension.

The cross-covariance estimate at the time kupdating the formula (62) corresponding follows: Ryz (K) = λ·Ryz (D -1) + (1 -λ) ·y (k -1) z T(D -1).(70)

Covariance matrix used in the calculation signaaliestimaatit is left- Correspondingly, the covariance estimates using equations (66),

z (k) =diag {Pxx (K)}Half ·x (k) y(K) = Ryz (K) ·z (k). (71)

The operation diag argumenttimatriisinsa to force other elements to zero diagonal lialkioita exception. The upper formula whitens the data by dividing each component of the standard deviation, and calculates the actual lower regression.

Principal component regression response can now be iterating formulas (66), (71), (62), (65) and (70), the covariance matrix estimates are converged. Konvergoitumisen has occurred, an inverse covariance latenttimuuttujadatan matrix Pxx is diagonaalimuodossa, so the formulas (66) and (71) to waste MPLIANCEWITH operators triang and diag redundant off.

72