Automatic Generation and Integration of Equations of Motion for Linked Mechanical Systems D. Todd Griffith, John L. Junkins, James D. Turner Department.

Slides:



Advertisements
Similar presentations
Mechatronics 1 Weeks 5,6, & 7. Learning Outcomes By the end of week 5-7 session, students will understand the dynamics of industrial robots.
Advertisements

© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Physics 430: Lecture 16 Lagrange’s Equations with Constraints
Chris Hall Aerospace and Ocean Engineering
Dynamics of Articulated Robots Kris Hauser CS B659: Principles of Intelligent Robot Motion Spring 2013.
ME 4135 Fall 2011 R. R. Lindeke, Ph. D. Robot Dynamics – The Action of a Manipulator When Forced.
Lagrangian and Hamiltonian Dynamics
Ch. 7: Dynamics.
Ch. 4: Velocity Kinematics
Forward Kinematics.
Dr. Y.P. Daniel Chang Weidong Zhang Velocity Transformation Based Multi-Body Approach for Vehicle Dynamics Abstract: An automobile is a complex close loop.
ME Robotics DIFFERENTIAL KINEMATICS Purpose: The purpose of this chapter is to introduce you to robot motion. Differential forms of the homogeneous.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Inverse Kinematics Jacobian Matrix Trajectory Planning
Introduction to ROBOTICS
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Velocities and Static Force
Definition of an Industrial Robot
Dynamic Analysis-A Finite –Element Approach
STATIC EQUILIBRIUM [4] Calkin, M. G. “Lagrangian and Hamiltonian Mechanics”, World Scientific, Singapore, 1996, ISBN Consider an object having.
ME451 Kinematics and Dynamics of Machine Systems
Dr. Wang Xingbo Fall , 2005 Mathematical & Mechanical Method in Mechanical Engineering.
ME451 Kinematics and Dynamics of Machine Systems Numerical Solution of DAE IVP Newmark Method November 1, 2013 Radu Serban University of Wisconsin-Madison.
Robot Dynamics – Slide Set 10 ME 4135 R. R. Lindeke, Ph. D.
A PPLIED M ECHANICS Lecture 02 Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Dynamics.  relationship between the joint actuator torques and the motion of the structure  Derivation of dynamic model of a manipulator  Simulation.
ME451 Kinematics and Dynamics of Machine Systems Dynamics of Planar Systems December 1, 2011 Solving Index 3 DAEs using Newmark Method © Dan Negrut, 2011.
ME451 Kinematics and Dynamics of Machine Systems
Sect. 3.4: The Virial Theorem Skim discussion. Read details on your own! Many particle system. Positions r i, momenta p i. Bounded. Define G  ∑ i r i.
ME451 Kinematics and Dynamics of Machine Systems Vel. And Acc. of a Fixed Point in Moving Frame Basic Concepts in Planar Kinematics February.
In the Hamiltonian Formulation, the generalized coordinate q k & the generalized momentum p k are called Canonically Conjugate quantities. Hamilton’s.
Ch. 8: Hamilton Equations of Motion Sect. 8.1: Legendre Transformations Lagrange Eqtns of motion: n degrees of freedom (d/dt)[(∂L/∂q i )] - (∂L/∂q i )
ME451 Kinematics and Dynamics of Machine Systems Introduction to Dynamics 6.1 October 09, 2013 Radu Serban University of Wisconsin-Madison.
ME451 Kinematics and Dynamics of Machine Systems Singular Configurations 3.7 October 07, 2013 Radu Serban University of Wisconsin-Madison.
ME451 Kinematics and Dynamics of Machine Systems Review of Differential Calculus 2.5, 2.6 September 11, 2013 Radu Serban University of Wisconsin-Madison.
Some Applications of Automatic Differentiation to Rigid, Flexible, and Constrained Multibody Dynamics D. T. Griffith Sandia National Laboratories J. D.
Texas A&M University, Department of Aerospace Engineering AN EMBEDDED FUNCTION TOOL FOR MODELING AND SIMULATING ESTIMATION PROBLEMS IN AEROSPACE ENGINEERING.
1 Dynamics Differential equation relating input torques and forces to the positions (angles) and their derivatives. Like force = mass times acceleration.
Lagrangian Mechanics A short overview. Introduction Previously studied Kinematics and differential motions of robots Now Dynamic analysis Inertias, masses,
ME451 Kinematics and Dynamics of Machine Systems
Phy 303: Classical Mechanics (2) Chapter 3 Lagrangian and Hamiltonian Mechanics.
Robotics II Copyright Martin P. Aalund, Ph.D.
The Hamiltonian method
Canonical Equations of Motion -- Hamiltonian Dynamics
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
The state of a system of n particles & subject to m constraints connecting some of the 3n rectangular coordinates is completely specified by s = 3n –
Ch. 8: Summary So Far We’re doing the “2 body”, conservative central force problem! 2 bodies (m 1 & m 2 ) with a central force directed along the line.
Syllabus Note : Attendance is important because the theory and questions will be explained in the class. II ntroduction. LL agrange’s Equation. SS.
Chapter 4 Dynamic Analysis and Forces 4.1 INTRODUCTION In this chapters …….  The dynamics, related with accelerations, loads, masses and inertias. In.
Texas A&M University, Department of Aerospace Engineering AUTOMATIC GENERATION AND INTEGRATION OF EQUATIONS OF MOTION BY OPERATOR OVER- LOADING TECHNIQUES.
Flexible gear dynamics modeling in multi-body analysis Alberto Cardona Cimec-Intec (UNL/Conicet) and UTN-FRSF, Santa Fe, Argentina and Didier Granville.
Velocity Propagation Between Robot Links 3/4 Instructor: Jacob Rosen Advanced Robotic - MAE 263D - Department of Mechanical & Aerospace Engineering - UCLA.
Classical Mechanics Lagrangian Mechanics.
Character Animation Forward and Inverse Kinematics
Mathematical & Mechanical Method in Mechanical Engineering
Figure 1. Spring characteristics
Manipulator Dynamics 1 Instructor: Jacob Rosen
Figure 1. Spring characteristics
Yueshi Shen Dept. of Information Engineering
Manipulator Dynamics 4 Instructor: Jacob Rosen
Zaid H. Rashid Supervisor Dr. Hassan M. Alwan
Department of Aerospace Engineering
Manipulator Dynamics 2 Instructor: Jacob Rosen
Advanced Computer Graphics Spring 2008
Engineering Mechanics: Statics
© Sharif University of Technology - CEDRA By: Professor Ali Meghdari
Figure 1. Spring characteristics
CHAPTER 3-2. Planar Cartesian Kinematics
Presentation transcript:

Automatic Generation and Integration of Equations of Motion for Linked Mechanical Systems D. Todd Griffith, John L. Junkins, James D. Turner Department of Aerospace Engineering Texas A&M University College Station, TX {griffith; junkins; presented at 6th International Conference on Dynamics and Control of Systems and Structures in Space 2004 Cinque Terre, Italy July, 2004

Dynamics and Control of Systems and Structures in Space Slide 2 Outline Introduction and previous work Overview of automatic differentiation by OCEA Eqn of motion formulation using automatic differentiation Numerical examples An illustrative two degree of freedom example Open- and closed-chain flexible multi-body systems Conclusions

Dynamics and Control of Systems and Structures in Space Slide 3 Introduction and previous work Work on multibody dynamics dates back to around 1960’s Multibody dynamics is a “mature” field; many papers, codes (e.g., DISCOS, DCAP …) and a few books have been written in the area Numerous methods exist for equation of motion generation. e.g., Lagrange’s equations, Kane’s equations, or Newton/Euler Methods In this paper, we present an approach for automatic generation and solution of Lagrangian equations of motion using automatic differentiation => requires coding only velocity-level kinematics. –Previously, open- and closed-chain topologies of rigid bodies were studied by this method (Griffith, et. al. 2004) => we extend these results herein. We demonstrate the method for several simple multiple flexible- body systems

Dynamics and Control of Systems and Structures in Space Slide 4 Equation of motion formulation using automatic differentiation Lagrange’s equations: subject to Lagrangian: T, V: kinetic and potential energy q: generalized coordinates Q: generalized force C(q): constraint Jacobian matrix : Lagrange multipliers Of course, many choices for equation of motion formulation exist. The OCEA approach is broadly applicable, however, the utility of automatic differentiation can be immediately seen and appreciated for implementing Lagrange’s Equations…

Dynamics and Control of Systems and Structures in Space Slide 5 Overview of automatic differentiation by OCEA (1) OCEA (Object Oriented Coordinate Embedding Method) –Automatic Differentiation (AD) equation manipulation package –Operator-overloading allows for implementation of the OCEA-AD approach in any of the popular programming languages (currently implemented as a FORTRAN90 extension) –Computes first- through fourth-order partial derivatives of ‘any’ differentiable function, in the background without user intervention OCEA Methodology –Aim: Let the computer do the hard part (derive & compute partials)! –Means: Re-define (and code) standard mathematical library functions (e.g. sin, cos, exp) using operator – overloading that automatically computes partial derivatives each time the function is called. Automate (in a general code) once and for all a recursive form of the chain rule for partial differentiation => automate all book-keeping for recursive application of the chain rule

Dynamics and Control of Systems and Structures in Space Slide 6 Overview of automatic differentiation by OCEA (2) –Define new data structure (OCEA second-order method), for example for the function scalar f : –All intrinsic operators ( +, -, *, /, = ) are overloaded to enable, for example, addition and multiplication of OCEA variables. Examples: You code: OCEA computes: –Composite Functions (chain rule, use recursively, numerically!): You code: OCEA computes: –Let’s take a look at an illustrative example….

Dynamics and Control of Systems and Structures in Space Slide 7 Overview of automatic differentiation by OCEA (3) A second-order OCEA example Suppose: OCEA-FORTRAN Type(EBI):: Z(2) Type(EB):: F1, F2, F3 Real(DP):: V_F3, JAC_F3(2), HES_F3(2,2) ! Z(1) = X, Z(2) = Y F1 = Z(1)**3 + Z(2) F2 = sin( Z(1) ) F3 = F1 + F2 V_F3 = F3 ! Extract function JAC_F3 = F3 ! Extract Jacobian (2x1) HES_F3 = F3 ! Extract Hessian (2x2) Declare OCEA inde-pendent variables, type EB Declare OCEA dependent variables, type EB Declare function and partial derivative arrays, type DP Define functions Extract partial derivative information function Jacobian Hessian We desire to compute f 3 and most importantly its partials:

Dynamics and Control of Systems and Structures in Space Slide 8 Implementation of Lagrange’s Equations: A Direct Approach (1) Automatic Differentiation (AD) Specified & coded AD or specified & coded Many numerical methods AD or specified & coded Mass matrix and its time derivative computed by second-order Automatic Differentiation of T …..

Dynamics and Control of Systems and Structures in Space Slide 9 Implementation of Lagrange’s Equations: A Direct Approach (2) Can also compute constraint matrix, C, automatically for holonomic type constraint. Now forming the equations: Accelerations computed after generating or prescribing all terms here. Now, can proceed with numerical integration…….

Dynamics and Control of Systems and Structures in Space Slide 10 Illustrative Example: Spring Pendulum (1) r

Dynamics and Control of Systems and Structures in Space Slide 11 Spring Pendulum (2) SUBROUTINE SPRING_PEND_EQNS( PASS, TIME, X, DXDT, FLAG ) USE EB_HANDLING IMPLICIT NONE **************************************** !.....LOCAL VARIABLES TYPE(EB)::L, T, V! LAGRANGIAN, KINETIC, POTENTIAL REAL(DP):: M, K! MASS AND STIFFNESS VALUES REAL(DP), DIMENSION(NV):: JAC_L REAL(DP), DIMENSION(NV,NV):: HES_L **************************************** ! X(1) = Q(1) = R, X(2) = Q(2) = THETA, X(3) = dR/dt, X(4) = dTHETA/dt R0 = 0.55D0 GRAV = 9.81D0 T = 0.5D0*M*(X(3)**2 + X(1)**2*X(4)**2) ! DEFINE KE V = 0.5D0*K*(X(1)-R0)**2 + M*GRAV*(R0-X(1)*COS(X(2))) ! DEFINE PE L = T – V! DEFINE LAGRANGIAN FUNCTION JAC_L = L! EXTRACT dL/(dq,dqdot) JAC_L_Q = JAC_L(1:NV/2)! EXTRACT dL/dq HES_L = L ! EXTRACT 2nd ORDER PARTIALS OF LAGRANGIAN MASS = HES_L(NV/2+1:NV,NV/2+1:NV)! EXTRACT MASS MATRIX MASSDOT = HES_L(NV/2+1:NV,1:NV/2)! EXTRACT MDOT ! QDOTDOT = INV(MASS)*(- MASSDOT*Q + JAC_L_Q ) ! SEE PAPER … **************************************** DXDT(1)%E = X(3)%E! RDOT DXDT(2)%E = X(4)%E! THETADOT DXDT(3)%E = QDOTDOT(1)! RDOTDOT DXDT(4)%E = QDOTDOT(2)! THETADOTDOT END SUBROUTINE SPRING_PEND_EQNS

Dynamics and Control of Systems and Structures in Space Slide 12 Geometry of Multiple Flexible Link Configuration Note from the figure of a series of deformed links that the local coordinate frames attached to the links are defined such that the elastic deformation vanishes at the endpoints. This choice greatly simplifies the “downstream” velocity expressions.

Dynamics and Control of Systems and Structures in Space Slide 13 Kinetic Energy Generalization Assumed Modes Method used to transform the kinetic energy expression into a form which can be tamed by Lagrange’s Equations. The details can be found in the paper. Along with the potential energy expression, we can define the Lagrangian and proceed to generate the equations of motion…………..

Dynamics and Control of Systems and Structures in Space Slide 14 Example: Three Body Flexible Chain The Lagrangian expressions are developed for each link and summed to form the total system Lagrangian. Initially all links hanging vertically. All additional initial conditions are zero with the exception of and angular velocity (0.5 rad/sec) and the initial midpoint deflection (0.01 m) of the third link. Rigid Body contribution Flexible contribution Kinetic Energy of Link 3

Dynamics and Control of Systems and Structures in Space Slide 15 Example: Closed-chain 5-link Manipulator (1) The Lagrangian expressions are developed for each link and summed to form the total system Lagrangian. Additionally, we specify two holonomic constraints of the form: And, we specify damping at all joints with the exception of the base end of link 5. OCEA automatically generates the equations of motion for the constrained system 5 link manipulator g D

Dynamics and Control of Systems and Structures in Space Slide 16 Example: Closed-chain 5-link Manipulator (2)

Dynamics and Control of Systems and Structures in Space Slide 17 Conclusion OCEA has broad potential in Dynamics and Control. Automating differentiation by operator overloading is a beautiful idea whose time has come – the applications are endless! Ideal for implementing Lagrange’s Equations – the present paper provides some simple illustrations – a few important first steps along the path. No hand derivation effort beyond code specifying the building of the Lagrangian, constraints and external forces is required Requires only second-order OCEA differentiation capability to compute equations of motion & solve them with (kinematics only) coding A generalized code {for dynamics of chain topology systems containing many flexible links, with both open and closed-chain topologies} is presented Future work involves a new approach for validation of codes for flexible systems: Question: How well do discretized approximate numerical solutions (and the corresponding space/time derivatives) satisfy the automatically derived systems of PDEs and BCs corresponding to the same modeling assumptions?