Robotic Mechanics and Modeling/Dynamics

From testwiki
Jump to navigation Jump to search

Dynamics

The study of dynamics requires that we extend kinematic equations for a system to account for balances of loads or energy to model motion dependent on inertia, loading, energy-storage elements, and energy-dissipating elements.

Simple Swinging Rod (Pendulum) Under Gravity

Balance of moments for simple pendulum

For the figure shown, we can write the kinematic equations as:

xP=Lcosθ

yP=Lsinθ

The equation of motion for this 2nd-order ordinary differential equation (ODE) is:

θ¨+3g2Lsinθ=0

For small angles of displacement, we have:θ¨+3g2Lθ=0

Using the standard form θ¨+2ζωnθ˙+ωn2θ=0 for 2nd-order ODEs, we can determine the natural frequency (rad/s) for small angles to be the following:

ωn=3g2L

For small angles, we can also write and verify a hypothetical solution of the form:

Time profile for angle, angular velocity, and angular acceleration of a simple rod-like pendulum.

θ=Asin(ωt+ϕ)

where A is an amplitude, t is time, and ϕ is a phase angle. Substituting this hypothetical solution into the equation of motion for small angles, we can also determine the natural frequency ωn while also determining responses to initial conditions for initial conditions.

For example, for an initial small angle θ0 with zero initial velocity at t=0, we have the following:

θ=θ0sin(ωnt+π/2)

If we want to know the angular velocity or angular acceleration, we have only to differentiate:

θ˙=θ0ωncos(ωnt+π/2)

θ¨=θ0ωn2sin(ωnt+π/2) Template:Hidden

Use of Denavit and Hartenberg matrices (Copied from Link)

The Denavit and Hartenberg notation gives a standard methodology to write the kinematic equations of a manipulator. This is especially useful for serial manipulators where a matrix is used to represent the pose (position and orientation) of one body with respect to another. See paper1 and paper2.

The position of body n with respect to n1 may be represented by a position matrix indicated with the symbol T or M

n1nT=Mn1,n

This matrix is also used to transform a point from frame n to n1

Mn1,n=[RxxRxyRxzTxRyxRyyRyzTyRzxRzyRzzTz0001]

Where the upper left 3×3 submatrix of M represents the relative orientation of the two bodies, and the upper right 3×1 represents their relative position or more specifically the body position in frame n − 1 represented with element of frame n.

The position of body k with respect to body i can be obtained as the product of the matrices representing the pose of j with respect of i and that of k with respect of j

Mi,k=Mi,jMj,k

An important property of Denavit and Hartenberg matrices is that the inverse is

M1=[RTRTT0001]

where RT is both the transpose and the inverse of the orthogonal matrix R, i.e. Rij1=RijT=Rji.

Further matrices can be defined to represent velocity and acceleration of bodies.[1][2] The velocity of body i with respect to body j can be represented in frame k by the matrix

Wi,j(k)=[0ωzωyvxωz0ωxvyωyωx0vz0000]

where ω is the angular velocity of body j with respect to body i and all the components are expressed in frame k; v is the velocity of one point of body j with respect to body i (the pole). The pole is the point of j passing through the origin of frame i.

The acceleration matrix can be defined as the sum of the time derivative of the velocity plus the velocity squared

Hi,j(k)=W˙i,j(k)+Wi,j(k)2

The velocity and the acceleration in frame i of a point of body j can be evaluated as

P˙=Wi,jP
P¨=Hi,jP

It is also possible to prove that

M˙i,j=Wi,j(i)Mi,j
M¨i,j=Hi,j(i)Mi,j

Velocity and acceleration matrices add up according to the following rules

Wi,k=Wi,j+Wj,k
Hi,k=Hi,j+Hj,k+2Wi,jWj,k

in other words the absolute velocity is the sum of the parent velocity plus the relative velocity; for the acceleration the Coriolis' term is also present.

The components of velocity and acceleration matrices are expressed in an arbitrary frame k and transform from one frame to another by the following rule

W(h)=Mh,kW(k)Mk,h
H(h)=Mh,kH(k)Mk,h

For the dynamics three further matrices are necessary to describe the inertia J, the linear and angular momentum Γ, and the forces and torques Φ applied to a body.

Inertia J:

J=[IxxIxyIxzxgmIyxIyyIyzygmIzxIzyIzzzgmxgmygmzgmm]

where m is the mass, xg,yg,zg represent the position of the center of mass, and the terms Ixx,Ixy, represent inertia and are defined as

Ixx=x2dm
Ixy=xydmIxz=

Action matrix Φ, containing force f and torque t:

Φ=[0tztyfxtz0txfytytx0fzfxfyfz0]

Momentum matrix Γ, containing linear ρ and angular γ momentum

Γ=[0γzγyρxγz0γxρyγyγx0ρzρxρyρz0]

All the matrices are represented with the vector components in a certain frame k. Transformation of the components from frame k to frame h follows the rule

J(h)=Mh,kJ(k)Mh,kTΓ(h)=Mh,kΓ(k)Mh,kTΦ(h)=Mh,kΦ(k)Mh,kT

The matrices described allow the writing of the dynamic equations in a concise way.

Newton's law:

Φk(0)=H0,kJk(0)Jk(0)H0,kT

Momentum:

Γk=WkJkJkWkT

The first of these equations express the Newton's law and is the equivalent of the vector equation f=ma (force equal mass times acceleration) plus t=Jω˙+ω×Jω (angular acceleration in function of inertia and angular velocity); the second equation permits the evaluation of the linear and angular momentum when velocity and inertia are known.

Denavit and Hartenberg Matrices Applied to a Single Pendulum

For a single pendulum, we can write out the D-H transformation matrix is as follows: 01T=M0,1[cosθ1sinθ10a1cosθ1sinθ1cosθ10a1sinθ100100001]

where "body" 0 is the ground reference frame and body 1 is link 1.

The velocity matrix of body 1 with respect to the ground reference frame is:

W0,1(0)=[0θ˙10θ˙1a1sinθ1θ˙100θ˙1a1cosθ100000000]

The acceleration matrix of body 1 with respect to the ground reference frame becomes:

H0,1(0)=W˙0,1(0)+W0,1(0)2=[0θ¨100θ¨100000000000]+[θ˙120000θ˙120000000000]

We can describe the inertia J1 with the following matrix:

J1(1)=[00012mL 000000112mL2012mL 00m]

We can express an action matrix Φ1:

Φ1(1)=[000Fbase 000mgsinθ10000Fbasemgsinθ100]

where Fbase=12mLθ˙12mgcosθ1 to account for both the centripetal acceleration of the rod and the weight of the bar.

Using Newton's Law in the form Φk(0)=H0,kJk(0)Jk(0)H0,kT, we should arrive at the following:

Double Pendulum as a Model System (Pasted Material[3])

A double pendulum consists of two pendulums attached end to end.

In physics and mathematics, in the area of dynamical systems, a double pendulum is a pendulum with another pendulum attached to its end, and is a simple physical system that exhibits rich dynamic behavior with a strong sensitivity to initial conditions.[4] The motion of a double pendulum is governed by a set of coupled ordinary differential equations and is chaotic.

Analysis and interpretation

Several variants of the double pendulum may be considered; the two limbs may be of equal or unequal lengths and masses, they may be simple pendulums or compound pendulums (also called complex pendulums) and the motion may be in three dimensions or restricted to the vertical plane. In the following analysis, the limbs are taken to be identical compound pendulums of length Template:Mvar and mass Template:Mvar, and the motion is restricted to two dimensions.

Double compound pendulum
Motion of the double compound pendulum (from numerical integration of the equations of motion)
Trajectories of a double pendulum

In a compound pendulum, the mass is distributed along its length. If the mass is evenly distributed, then the center of mass of each limb is at its midpoint, and the limb has a moment of inertia of Template:Math about that point.

It is convenient to use the angles between each limb and the vertical as the generalized coordinates defining the configuration of the system. These angles are denoted Template:Math and Template:Math. The position of the center of mass of each rod may be written in terms of these two coordinates. If the origin of the Cartesian coordinate system is taken to be at the point of suspension of the first pendulum, then the center of mass of this pendulum is at:

x1=l2sinθ1y1=l2cosθ1

and the center of mass of the second pendulum is at

x2=l(sinθ1+12sinθ2)y2=l(cosθ1+12cosθ2)

This is enough information to write out the Lagrangian.

Lagrangian

The Lagrangian is

L=kinetic energypotential energy=12m(v12+v22)+12I(θ˙12+θ˙22)mg(y1+y2)=12m(x˙12+y˙12+x˙22+y˙22)+12I(θ˙12+θ˙22)mg(y1+y2)

The first term is the linear kinetic energy of the center of mass of the bodies and the second term is the rotational kinetic energy around the center of mass of each rod. The last term is the potential energy of the bodies in a uniform gravitational field. The dot-notation indicates the time derivative of the variable in question.

Substituting the coordinates above and rearranging the equation gives

L=16ml2(θ˙22+4θ˙12+3θ˙1θ˙2cos(θ1θ2))+12mgl(3cosθ1+cosθ2).

There is only one conserved quantity (the energy), and no conserved momenta. The two momenta may be written as

pθ1=Lθ˙1=16ml2(8θ˙1+3θ˙2cos(θ1θ2))pθ2=Lθ˙2=16ml2(2θ˙2+3θ˙1cos(θ1θ2)).

These expressions may be inverted to get

θ˙1=6ml22pθ13cos(θ1θ2)pθ2169cos2(θ1θ2)θ˙2=6ml28pθ23cos(θ1θ2)pθ1169cos2(θ1θ2).

The remaining equations of motion are written as

p˙θ1=Lθ1=12ml2(θ˙1θ˙2sin(θ1θ2)+3glsinθ1)p˙θ2=Lθ2=12ml2(θ˙1θ˙2sin(θ1θ2)+glsinθ2).

These last four equations are explicit formulas for the time evolution of the system given its current state. It is not possible to go further and integrate these equations analytically, to get formulas for Template:Math and Template:Math as functions of time. It is, however, possible to perform this integration numerically using the Runge Kutta method or similar techniques.

Chaotic motion

Graph of the time for the pendulum to flip over as a function of initial conditions
Long exposure of double pendulum exhibiting chaotic motion (tracked with an LED)

The double pendulum undergoes chaotic motion, and shows a sensitive dependence on initial conditions. The image to the right shows the amount of elapsed time before the pendulum flips over, as a function of initial position when released at rest. Here, the initial value of Template:Math ranges along the Template:Mvar-direction from −3 to 3. The initial value Template:Math ranges along the Template:Mvar-direction, from −3 to 3. The colour of each pixel indicates whether either pendulum flips within:

Three double pendulums with near identical initial conditions diverge over time displaying the chaotic nature of the system.

Initial conditions that do not lead to a flip within Template:Math are plotted white.

The boundary of the central white region is defined in part by energy conservation with the following curve:

3cosθ1+cosθ2=2.

Within the region defined by this curve, that is if

3cosθ1+cosθ2>2,

then it is energetically impossible for either pendulum to flip. Outside this region, the pendulum can flip, but it is a complex question to determine when it will flip. Similar behavior is observed for a double pendulum composed of two point masses rather than two rods with distributed mass.[5]

The lack of a natural excitation frequency has led to the use of double pendulum systems in seismic resistance designs in buildings, where the building itself is the primary inverted pendulum, and a secondary mass is connected to complete the double pendulum.

See also

Notes

Template:Reflist

References

Matrices for Inertia, Momentum, and Loading

For the dynamics three further matrices are necessary to describe the inertia J, the linear and angular momentum Γ, and the forces and torques Φ applied to a body.

Inertia J:

J=[IxxIxyIxzxgmIyxIyyIyzygmIzxIzyIzzzgmxgmygmzgmm]

where m is the mass, xg,yg,zg represent the position of the center of mass, and the terms Ixx,Ixy, represent inertia and are defined as

Ixx=x2dm
Ixy=xydmIxz=

Action matrix Φ, containing force f and torque t:

Φ=[0tztyfxtz0txfytytx0fzfxfyfz0]

Momentum matrix Γ, containing linear ρ and angular γ momentum

Γ=[0γzγyρxγz0γxρyγyγx0ρzρxρyρz0]

All the matrices are represented with the vector components in a certain frame k. Transformation of the components from frame k to frame h follows the rule

J(h)=Mh,kJ(k)Mh,kTΓ(h)=Mh,kΓ(k)Mh,kTΦ(h)=Mh,kΦ(k)Mh,kT

The matrices described allow the writing of the dynamic equations in a concise way.

Newton's law:

Φ=HJJHt

Momentum:

Γ=WJJWt

The first of these equations express the Newton's law and is the equivalent of the vector equation f=ma (force equal mass times acceleration) plus t=Jω˙+ω×Jω (angular acceleration in function of inertia and angular velocity); the second equation permits the evaluation of the linear and angular momentum when velocity and inertia are known.

Static force analysis (Copied from Link))

The principle of virtual work yields a set of linear equations that relate the resultant force-torque six vector, called a wrench, that acts on the end-effector to the joint torques of the robot. If the end-effector wrench is known, then a direct calculation yields the joint torques.

The inverse statics problem seeks the end-effector wrench associated with a given set of joint torques, and requires the inverse of the Jacobian matrix. As in the case of inverse velocity analysis, at singular configurations this problem cannot be solved. However, near singularities small actuator torques result in a large end-effector wrench. Thus near singularity configurations robots have large mechanical advantage.


References

  1. Cite error: Invalid <ref> tag; no text was provided for refs named legnani1
  2. Cite error: Invalid <ref> tag; no text was provided for refs named legnani2
  3. Template:Cite journal
  4. Template:Cite journal
  5. Alex Small, Sample Final Project: One Signature of Chaos in the Double Pendulum, (2013). A report produced as an example for students. Includes a derivation of the equations of motion, and a comparison between the double pendulum with 2 point masses and the double pendulum with 2 rods.