Jump to content

Robotic Mechanics and Modeling/Dynamics

From Wikiversity

Dynamics

[edit | edit source]

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

[edit | edit source]
Balance of moments for simple pendulum

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

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

For small angles of displacement, we have:

Using the standard form for 2nd-order ODEs, we can determine the natural frequency (rad/s) for small angles to be the following:

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.

where is an amplitude, 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 while also determining responses to initial conditions for initial conditions.

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

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

Code
%reset -f
import numpy as np
import matplotlib
import matplotlib.pyplot as plt

theta0=0.1;
g=9.8 # m/s^2
L=3*g/(8*np.pi**2)
omega_n=np.sqrt(3*g/(2*L))
phi=np.pi/2;
num_periods=3
t=np.linspace(0,num_periods*2*np.pi/omega_n,num=100)
theta=theta0*np.sin(omega_n*t+phi)
thetadot=theta0*omega_n*np.cos(omega_n*t+phi)
thetadotdot=-theta0*omega_n**2*np.sin(omega_n*t+phi)

fig=plt.figure()
ax=fig.add_subplot(311)    
plt.plot(t,theta,'bo-')
ax.set_xlim([0, num_periods*2*np.pi/omega_n])
ax.set_ylim([-theta0, theta0])
ax.set_ylabel('Theta',size=12)
ax.set_autoscale_on(False)
ax.set_title('Omega_n= '+str(np.round(2*np.pi/omega_n,1))+
             ' s; Theta_0='+str(np.round(theta0,1)))
ax=fig.add_subplot(312)
plt.plot(t,thetadot,'ro-')
ax.set_xlim([0, num_periods*2*np.pi/omega_n])
ax.set_ylim([-theta0*omega_n, theta0*omega_n])
ax.set_xlabel('Time (s)',size=12)
ax.set_ylabel('ThetaDot',size=12)
ax.set_autoscale_on(False)
ax.set_xlabel('Time (s)',size=12)
ax=fig.add_subplot(313)
plt.plot(t,thetadotdot,'go-')
ax.set_xlim([0, num_periods*2*np.pi/omega_n])
ax.set_ylim([-theta0*omega_n**2, theta0*omega_n**2])
ax.set_xlabel('Time (s)',size=12)
ax.set_ylabel('ThetaDotDot',size=12)
ax.set_autoscale_on(False)
ax.set_xlabel('Time (s)',size=12)

plt.savefig('Theta_for_rod_pendulum_200303.png',dpi=300, bbox_inches='tight')

Use of Denavit and Hartenberg matrices (Copied from Link)

[edit | edit source]

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 with respect to may be represented by a position matrix indicated with the symbol or

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

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

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

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

where is both the transpose and the inverse of the orthogonal matrix , i.e. .

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

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

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

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

It is also possible to prove that

Velocity and acceleration matrices add up according to the following rules

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 and transform from one frame to another by the following rule

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

Inertia :

where is the mass, represent the position of the center of mass, and the terms represent inertia and are defined as

Action matrix , containing force and torque :

Momentum matrix , containing linear and angular momentum

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

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

Newton's law:

Momentum:

The first of these equations express the Newton's law and is the equivalent of the vector equation (force equal mass times acceleration) plus (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

[edit | edit source]

For a single pendulum, we can write out the D-H transformation matrix is as follows:

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:

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

We can describe the inertia with the following matrix:

We can express an action matrix :

where to account for both the centripetal acceleration of the rod and the weight of the bar.

Using Newton's Law in the form , we should arrive at the following:

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

[edit | edit source]
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

[edit | edit source]

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 l and mass m, 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 I = 1/12ml2 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 θ1 and θ2. 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:

and the center of mass of the second pendulum is at

This is enough information to write out the Lagrangian.

Lagrangian

[edit | edit source]

The Lagrangian is

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

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

These expressions may be inverted to get

The remaining equations of motion are written as

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 θ1 and θ2 as functions of time. It is, however, possible to perform this integration numerically using the Runge Kutta method or similar techniques.

Chaotic motion

[edit | edit source]
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 θ1 ranges along the x-direction from −3 to 3. The initial value θ2 ranges along the y-direction, from −3 to 3. The colour of each pixel indicates whether either pendulum flips within:

  • 10lg (green)
  • 100lg (red)
  • 1000lg (purple) or
  • 10000lg (blue).
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 10000lg are plotted white.

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

Within the region defined by this curve, that is if

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

[edit | edit source]

Notes

[edit | edit source]
  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. "Double pendulum". Wikipedia. 2020-02-27. https://en.wikipedia.org/w/index.php?title=Double_pendulum&oldid=942894518. 
  4. Levien, R. B.; Tan, S. M. (1993). "Double Pendulum: An experiment in chaos". American Journal of Physics 61 (11): 1038. doi:10.1119/1.17335. 
  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.

References

[edit | edit source]
[edit | edit source]

Matrices for Inertia, Momentum, and Loading

[edit | edit source]

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

Inertia :

where is the mass, represent the position of the center of mass, and the terms represent inertia and are defined as

Action matrix , containing force and torque :

Momentum matrix , containing linear and angular momentum

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

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

Newton's law:

Momentum:

The first of these equations express the Newton's law and is the equivalent of the vector equation (force equal mass times acceleration) plus (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))

[edit | edit source]

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

[edit | edit source]