Explore Kapitza s Pendulum Behavior via Trajectory Optimization. Yifan Hou

Similar documents
Simple and Physical Pendulums Challenge Problem Solutions

Multibody simulation

For a rigid body that is constrained to rotate about a fixed axis, the gravitational torque about the axis is

Level 3 Physics, 2013

Lehrstuhl B für Mechanik Technische Universität München D Garching Germany

2007 Problem Topic Comment 1 Kinematics Position-time equation Kinematics 7 2 Kinematics Velocity-time graph Dynamics 6 3 Kinematics Average velocity

Phys 270 Final Exam. Figure 1: Question 1

Video 3.1 Vijay Kumar and Ani Hsieh

Physics for Scientists and Engineers 4th Edition, 2017

Video Lecture #2 Introductory Conservation of Momentum Problem using Unit Vectors

Manipulator Dynamics 2. Instructor: Jacob Rosen Advanced Robotic - MAE 263D - Department of Mechanical & Aerospace Engineering - UCLA

ME451 Kinematics and Dynamics of Machine Systems

Mechanics Lecture Notes

12. Foundations of Statics Mechanics of Manipulation

16. Friction Mechanics of Manipulation

3 Mathematical modeling of the torsional dynamics of a drill string

Theory and Practice of Rotor Dynamics Prof. Dr. Rajiv Tiwari Department of Mechanical Engineering Indian Institute of Technology Guwahati

LAST TIME: Simple Pendulum:

Axis Balanced Forces Centripetal force. Change in velocity Circular Motion Circular orbit Collision. Conservation of Energy

THE REACTION WHEEL PENDULUM

Constrained motion and generalized coordinates

Rigid bodies - general theory

Rotational Kinetic Energy

Time integration. DVI and HHT time stepping methods in Chrono

The... of a particle is defined as its change in position in some time interval.

Video 2.1a Vijay Kumar and Ani Hsieh

Structural Dynamics Prof. P. Banerji Department of Civil Engineering Indian Institute of Technology, Bombay. Lecture - 1 Introduction

Lecture 9 - Rotational Dynamics

CHAPTER 12 OSCILLATORY MOTION

(W: 12:05-1:50, 50-N202)

Chapter 8 Lecture. Pearson Physics. Rotational Motion and Equilibrium. Prepared by Chris Chiaverina Pearson Education, Inc.

AP PHYSICS 1 Learning Objectives Arranged Topically

Lab 6a: Pole Placement for the Inverted Pendulum

Torque and Rotation Lecture 7

Modeling Friction and Contact in Chrono. Theoretical Background

q 1 F m d p q 2 Figure 1: An automated crane with the relevant kinematic and dynamic definitions.

Robotic manipulation project

University of Utah Electrical & Computer Engineering Department ECE 3510 Lab 9 Inverted Pendulum

1.053J/2.003J Dynamics and Control I Fall Final Exam 18 th December, 2007

Physics I. Unit 1 Methods in Science (Systems of Units) Competencies (Do) Students should be able to demonstrate scientific methods.

Robotics & Automation. Lecture 25. Dynamics of Constrained Systems, Dynamic Control. John T. Wen. April 26, 2007

Lecture Schedule Week Date Lecture (M: 2:05p-3:50, 50-N202)

Lecture 13 REVIEW. Physics 106 Spring What should we know? What should we know? Newton s Laws

Simple Harmonic Motion - MBL

PLANAR KINETIC EQUATIONS OF MOTION (Section 17.2)

Review: control, feedback, etc. Today s topic: state-space models of systems; linearization

27. Impact Mechanics of Manipulation

Chapter 13 Lecture. Essential University Physics Richard Wolfson 2 nd Edition. Oscillatory Motion Pearson Education, Inc.

Figure 5.16 Compound pendulum: (a) At rest in equilibrium, (b) General position with coordinate θ, Freebody

Parametric Resonance and Elastic Pendulums

8.012 Physics I: Classical Mechanics Fall 2008

Lecture Outline Chapter 11. Physics, 4 th Edition James S. Walker. Copyright 2010 Pearson Education, Inc.

Problem Set 9: Momentum and Collision Theory. Nov 1 Hour One: Conservation Laws: Momentum and Collision Theory. Reading: YF

FORCES & MOTION STUDY GUIDE. 1. What does it mean when forces are balanced on an object? (Exploration F)

!T = 2# T = 2! " The velocity and acceleration of the object are found by taking the first and second derivative of the position:

Markov Chain Monte Carlo The Metropolis-Hastings Algorithm

Applied Mathematics B Study Guide

Physics 106a, Caltech 4 December, Lecture 18: Examples on Rigid Body Dynamics. Rotating rectangle. Heavy symmetric top

AP Physics C Syllabus

General Physics I. Lecture 8: Rotation of a Rigid Object About a Fixed Axis. Prof. WAN, Xin ( 万歆 )

Chapter 3 Numerical Methods

Course Name: AP Physics. Team Names: Jon Collins. Velocity Acceleration Displacement

kx m x B N 1 C L, M Mg θ

Transitioning to Chaos in a Simple Mechanical Oscillator

8.012 Physics I: Classical Mechanics Fall 2008

Autonomous Systems and Stability

Physics 106b/196b Problem Set 9 Due Jan 19, 2007

AP Physics C Mechanics Objectives

MEAM 520. More Velocity Kinematics

3D revolute joint with clearance in multibody systems

First Year Physics: Prelims CP1 Classical Mechanics: DR. Ghassan Yassin

Rotational & Rigid-Body Mechanics. Lectures 3+4

q HYBRID CONTROL FOR BALANCE 0.5 Position: q (radian) q Time: t (seconds) q1 err (radian)

Simulating Two-Dimensional Stick-Slip Motion of a Rigid Body using a New Friction Model

Lecture Note 12: Dynamics of Open Chains: Lagrangian Formulation

Stabilization of Motion of the Segway 1

Robotics. Dynamics. Marc Toussaint U Stuttgart

DEVIL PHYSICS BADDEST CLASS ON CAMPUS IB PHYSICS

Lecture 1: A Preliminary to Nonlinear Dynamics and Chaos

Dynamics. Dynamics of mechanical particle and particle systems (many body systems)

Complementarity Formulation for Multi-Fingered Hand Manipulation with Rolling and Sliding Contacts

Lecture 19: Calculus of Variations II - Lagrangian

Video 8.1 Vijay Kumar. Property of University of Pennsylvania, Vijay Kumar

Balancing of an Inverted Pendulum with a SCARA Robot

Physics 101 Final Exam Problem Guide

STATICS & DYNAMICS. Engineering Mechanics. Gary L. Gray. Francesco Costanzo. Michael E. Plesha. University of Wisconsin-Madison

STABILITY ANALYSIS AND CONTROL DESIGN

Chapter 8. Rotational Equilibrium and Rotational Dynamics. 1. Torque. 2. Torque and Equilibrium. 3. Center of Mass and Center of Gravity

Linearize a non-linear system at an appropriately chosen point to derive an LTI system with A, B,C, D matrices

Inverted Pendulum. Objectives

Contact Handling for Articulated Rigid Bodies Using LCP

Structural Dynamics Lecture 4. Outline of Lecture 4. Multi-Degree-of-Freedom Systems. Formulation of Equations of Motions. Undamped Eigenvibrations.

Review for 3 rd Midterm

Prehensile Pushing: In-hand Manipulation with Push-Primitives

Numerical Methods for Inverse Kinematics

LECTURE 3 ENERGY AND PENDULUM MOTION. Instructor: Kazumi Tolich

The Two Ball Newton s Cradle. Glendinning, Paul. MIMS EPrint: Manchester Institute for Mathematical Sciences School of Mathematics

APPLIED MATHEMATICS AM 02

Non-Linear Response of Test Mass to External Forces and Arbitrary Motion of Suspension Point

Wilson Area School District Planned Course Guide

Transcription:

1 Introduction 12 course Explore Kapitza s Pendulum Behavior via Trajectory Optimization Project for: Mechanics of Manipulation, 16 741 Yifan Hou Andrew id: yifanh houyf11@gmail.com or yifanh@andrew.cmu.edu Abstract Small amplitude oscilication of pendulum axis could cause the pendulum to rotate, this phenomenon is called Kapitza s Pendulum. In this project I explore method to generate Kapitza s pendulum like behavior using trajectory optimization, rather than manually specify the axis motion. Using Newton dynamics and LCP friction model, the problem is formulated as a nonlinear constrained optimization problem, and is then solved by SNOPT. The results is shown in simulation. Table of Contents Explore Kapitza s Pendulum Behavior via Trajectory Optimization Yifan Hou 1 Introduction 1.1 Kapitza s pendulum 1.2 Trajectory optimization 1.3 Problem Statement 2 Modeling 2.1 Dynamics of a Pendulum 2.2 LCP Friction formulation 2.3 Other quantities 3 Implementation 3.1 Specific problem 3.2 Programming 3.3 Results 3.3.1 Normal results and phenomenon 3.3.2 Generate Kapitza s shaking pendulum 5 Conclusion 6 Acknowledgments Reference

1 Introduction An recent trending research topic in manipulation is to use extrinsic dexterity to achieve flexible manipulation. A robot arm could use its own DOF as well as gravity, inertia force, contact force, friction and so on, to move an object to expected state. Control of pendulum is one good example: the joint of the pendulum is passive. The robot has to move the pendulum axis with certain acceleration profile, utilizing inertia force to change the orientation of pendulum. Among all kinds of pendulum problem, the Kapitza s pendulum is the one of great interest to me for its special stability property. 1.1 Kapitza s pendulum Kapitza s pendulum is the class of pendulums whose axis is driven periodically in a specific direction. Despite seemingly simplicity, the Kapitza s pendulum could show very complicated nonlinear behavior depending on the frequency and amplitude of its constrained axis oscillation[1]. Some modes of them are very counterintuitive. Specifically, when the frequency is not very high, the inertia force will form two asymptotic stable equilibrium at both poles on the line of oscillation. This phenomenon doesn t require a certain frequence[2], which make it easy to implement. When the pendulum is vertical and inertia force is greater than gravity, the shaky pendulum could be stablized vertically. Experiments on this behavior could be found in [3] and [4]. We are interested in Kapitza s pendulum for its good convergence feature: a pendulum in such oscillation has a large area of attraction. 1.2 Trajectory optimization Trajectory optimization is widely used in contact/friction related motion planning[5][6][7]. Use complimentary condition to model the discontinuous dynamics between contact normal force / normal velocity, as well as tangential force(friction) / slip velocity, the problem of forward simulation could be written as a NCP problem. Furthermore, if the columb friction cone is replaced with a pyramid, the problem could be further simplified into a LCP problem, and solved by solving the equivalent QP problem[5][6]. When control and goals are added to the system, the resulting planning problem has the form of nonlinear constrained optimization, with complimentary constraints from contact, constraints from system dynamics and so on. Compared with traditional control approach, the main merit of trajectory optimization lies in the flexibility in problem formulation, and convenience in making trade off between different goals. So in this work I choose trajectory optimization as the main tool for our problem. 1.3 Problem Statement There are very extensive research on different kinds of pendulum in the control community, including the Kapitza s pendulum. However, to our best knowledge, all of them rely on specific modeling of the axis motion, i.e. explicitly specify that the motion of the axis is a periodical oscillation on a certain direction. This kind of modeling eliminate the flexibility in problem formulation, for example, it s almost impossible to generate a oscillated pendulum motion with specific axis final position. On the other hand, trajectory optimization could generate rich behavior as well as leaving plenty of freedom in problem formulation. However, it is unclear what kind of requirement could result into this behavior. The goal of this work is to find, under what kind of physics constraints and goal, could the trajectory optimization automatically discover the Kapitza s pendulum like oscillation behavior on a pendulum. The key is that we do not specify the periodical oscillation feature of the axis, thus leaving possibility and flexibility for achieving other goals. 2 Modeling 2.1 Dynamics of a Pendulum Consider a planar pendulum with mass and moment of inertia. The distance between axis and center of mass is. Denote as the pendulum angle. The robot control the motion of axis with acceleration, and the resulting velocity and position is denoted and. As shown follows:

Treat the acceleration as the input of the system. The system dynamics is clearer in the non inertia frame fixed on the axis[1]. In this frame, the input is acting on the pendulum as inertia force: where denotes the frictional torque. This is the dynamics of the robot. All the numerical derivatives are implemented as backward Eular for numerical stability. where is length of a time step. 2.2 LCP Friction formulation We need to plug in a friction model to complete the above dynamics. Using LCP formulation introduced in [7], assume constant normal force, we can describe the friction dynamics as where is an slack variable that represents the magnitude of the contact velocity when the friction is non zero, and. 2.3 Other quantities To show the flexibility of trajectory optimization, here we try to achieve multiple goals, including: A. minimizing the pressure acting on the axis, which is described by

B. restriction on final position of axis, which means we don t want the axis to move arbitrarily far away. C. Minimize the magnitude of axis acceleration. This term is necessary for avoiding arbitrary large input, thus ensuring numerical stability. All optimization goals are expressed as a weight sum cost. 3 Implementation 3.1 Specific problem The pendulum begins with zero state. The goal is to rotate it to as fast as possible, then stay there. The axis will go through some kind of swing, and the end position is restricted at the original position, which basically means it has to swing back. Simutaneously, try to minimize the pressure acting on the axis. For all the experiments, I use time step. 3.2 Programming I implement the optimization in Matlab. All codes are in the code folder. To run the optimization, follow the following steps: 1. specify parameters in m1_parameters.m, then run it to save parameters; 2. specify cost weights in m2_solver.m, then run it to call SNOPT solver. This could take several minutes. When done, resulting trajectories are automatically saved in q.mat. 3. run m3_show.m to see drawing of trajectories, and animation. 3.3 Results 3.3.1 Normal results and phenomenon After a few trials for parameter adjustment, the original problem is solved with a smooth, single circle swing, as shown in the green line below:

The change of is shown here: 3.3.2 Generate Kapitza s shaking pendulum Above subsection shows the natural response. To generate more shaky trajectories, I tried many modifications, e.g. adding penalty to axis displacement, decrease penalty on robot acceleration and axis tangential pressure and so on. Finally the most effective method of achieving this is: 1. Constrain axis movement range to a small area. The first one basically is putting an additional constraint on the admittable axis position: where is some user specified constant. This could lead to axis motion quite similar with Kapitza s shaking pendulum:

And the solution successfuly move the pendulum to the goal orientation: 2. Use an informative starting point For non convex optimization, the choice of starting point could have considerable influence on the optimization result. In trajectory optimization, the starting point is the initial trajectory. Here we try to use a shaking initial trajectory to replace the previous zero initial trajectory, hoping this could help the solver exporing a larger region of the energy landscape. The axis movement of the initial trajectory is shown as follows:

This kind of initial trajectory helps to find a better solution, where the desired pendulum orientation angle is achieved: The corresponding trajectory converged nicely:

The axis motion of the solution is shown below. Two things are worth attention: 1. the solution does have Kapitza Compared with the initial trajectory, the solver change both the frequency and amplitude of the axis motion to fit our goal. With an informative starting point, the optimizer is able to find trajectories with better periodical feature. Here is another good results, where we constrain the position of axis to be within a 1cm square, while the goal is to move the pendulum by an right angle. Here is some selected frames from the result:

Corresponding change: 5 Conclusion In this work, we show that we can use trajectory optimization techniques to generate Kapitza s pendulum like behavior, where a small amplitude axis oscillation could effectively move the pendulum to another orientation. The only necessary specification is a constraint on axis position range, and an informative starting point will make thing even better. 6 Acknowledgments Thanks Matt for bring us the excellent lectures. Thanks Sung for his work for this course. Thanks Gilwoo for helpful discussion on trajectory optimization. Reference

[1] Butikov, E. I. (2001). On the dynamic stabilization of an inverted pendulum. American Journal of Physics, 69(7), 755. http://doi.org/10.1119/1.1365403 [2] Mitchell J. Techniques for the Oscillated Pendulum and the Mathieu Equation[J]. [3] Youtube video, https://www.youtube.com/watch?v=rwgazy0nou0 [4] Youtube video, https://www.youtube.com/watch?v=lgi1mha8z90 [5] Stewart, D.., & Trinkle, J. C. (1996). An Implicit Time Stepping Scheme for Rigid Body Dynamics With Inelastic Collisions and Coulomb Friction. International Journal for Numerical, 39(15), 2673 2691. [6] Trinkle, J., & Pang, J. S. (1997). On Dynamic Multi Rigid Body Contact Problems with Coulomb Friction. ZAMM Journal of Applied Mathematics and Mechanics / Zeitschrift Für Angewandte Mathematik Und Mechanik, 77, 267 279. [7] Posa, M., & Tedrake, R. (2013). Direct Trajectory Optimization of Rigid Body Dynamical Systems through Contact. Algorithmic Foundations of Robotics X, 86, 527 542. K