Robotic Mechanics and Modeling/Dynamics
Dynamics
editThe 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
editFor 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:
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:
%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')
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
editFor 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])
editIn 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
editSeveral 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.
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
editThe 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
editThe 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:
- 10√l⁄g (green)
- 100√l⁄g (red)
- 1000√l⁄g (purple) or
- 10000√l⁄g (blue).
Initial conditions that do not lead to a flip within 10000√l⁄g 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- Double inverted pendulum
- Pendulum (mathematics)
- Mid-20th century physics textbooks use the term "double pendulum" to mean a single bob suspended from a string which is in turn suspended from a V-shaped string. This type of pendulum, which produces Lissajous curves, is now referred to as a Blackburn pendulum.
Notes
edit- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedlegnani1
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedlegnani2
- ↑ "Double pendulum". Wikipedia. 2020-02-27. https://en.wikipedia.org/w/index.php?title=Double_pendulum&oldid=942894518.
- ↑ 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.
- ↑ 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- Meirovitch, Leonard (1986). Elements of Vibration Analysis (2nd ed.). McGraw-Hill Science/Engineering/Math. ISBN 0-07-041342-8.
- Eric W. Weisstein, Double pendulum (2005), ScienceWorld (contains details of the complicated equations involved) and "Double Pendulum" by Rob Morris, Wolfram Demonstrations Project, 2007 (animations of those equations).
- Peter Lynch, Double Pendulum, (2001). (Java applet simulation.)
- Northwestern University, Double Pendulum, (Java applet simulation.)
- Theoretical High-Energy Astrophysics Group at UBC, Double pendulum, (2005).
External links
edit- Animations and explanations of a double pendulum and a physical double pendulum (two square plates) by Mike Wheatland (Univ. Sydney)
- Interactive Open Source Physics JavaScript simulation with detailed equations double pendulum
- Interactive Javascript simulation of a double pendulum
- Double pendulum physics simulation from www.myphysicslab.com using open source JavaScript code
- Simulation, equations and explanation of Rott's pendulum
- Comparison videos of a double pendulum with the same initial starting conditions on YouTube
- Double Pendulum Simulator - An open source simulator written in C++ using the Qt toolkit.
- Online Java simulator of the Imaginary exhibition.
Matrices for Inertia, Momentum, and Loading
editFor 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.
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.