0% found this document useful (0 votes)
8 views31 pages

Lagrange Mechanics II: 20 February 2023

Lecture 3 of Lagrange Mechanics II covers multibody systems and manipulator equations, emphasizing the calculation of degrees of freedom (DOF) and constraints in mechanical systems. It includes examples such as a bead on a line, Atwood machine, and a triple pendulum, along with homework assignments focused on deriving equations of motion and energy. The lecture also discusses the mass matrix, centrifugal and Coriolis matrices, and the gravity matrix in the context of robotic dynamics.

Uploaded by

dylankuming1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views31 pages

Lagrange Mechanics II: 20 February 2023

Lecture 3 of Lagrange Mechanics II covers multibody systems and manipulator equations, emphasizing the calculation of degrees of freedom (DOF) and constraints in mechanical systems. It includes examples such as a bead on a line, Atwood machine, and a triple pendulum, along with homework assignments focused on deriving equations of motion and energy. The lecture also discusses the mass matrix, centrifugal and Coriolis matrices, and the gravity matrix in the context of robotic dynamics.

Uploaded by

dylankuming1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

Lecture 3:

Lagrange Mechanics II
20 February 2023

Presented by:
Amir Patel
PhD (Mechatronics) Cape Town
Electrical Engineering Department EEE4119F
University of Cape Town Mechatronics II
Overview

• Multibody Systems
• Manipulator
Equation
Sand flea
Constraints Revisited
Y
𝐷𝑂𝐹 = 3 ∗ 𝑁 − 𝑚 X
• 𝑵 is number of bodies and 𝒎 is
number of constraints ρ
• Constraint: 𝑥 2 + 𝑦 2 = 𝜌2 m
• In 𝑥 and 𝑦 but one
constraint! (x,y)
• So, if in 3D the planar pendulum has
constraints:
1. 𝑥 2 + 𝑦 2 = 𝜌2
2. 𝑧 = 0
Examples: Bead on a line

• Bead constrained to m X
move on x-axis

• Constraints: 𝑦 = 0 𝑎𝑛𝑑 𝑧 = 0

• DOF?
• 1→𝑞=𝑥
Examples: Bead line with angle

y
• Bead constrained to
move on x-axis α x

• Constraints: 𝑦 = 𝑥𝑡𝑎𝑛α and 𝑧 = 0

• DOF?
• 1→
• Gen Coords:
• 𝑞 = 𝑥 𝑜𝑟 𝑦 𝑜𝑟 𝑠
Examples: Atwood Machine

• Assume length of rope 𝒍


• Constraints:
𝑧1 + 𝑧2 + 𝜋𝑎 = 𝑙 𝑧1

𝑥1 = 0 𝑎𝑛𝑑𝑦1 = 0
𝑥2 = 0 𝑎𝑛𝑑𝑦2 = 0
• DOF?
• 1
• Gen cords?
• 𝑞 = 𝑧1 or 𝑧2
Homework

• Rigid rod attached


to a string α
• Derive EOM a
b
𝑇
x,y
𝒒= 𝛼 𝛽 β
Homework: Kinematics

• Position
𝑎𝑠𝑖𝑛 𝛼 + 𝑏𝑠𝑖𝑛(𝛽) α
𝒓= a
−𝑎𝑐𝑜𝑠 𝛼 − 𝑏𝑐𝑜𝑠(𝛽)
b
x,y
• Vel β
acos 𝛼 𝛼ሶ + 𝑏𝑐𝑜𝑠(𝛽)𝛽ሶ
𝒓ሶ =
asin 𝛼 𝛼ሶ + 𝑏𝑠𝑖𝑛(𝛽)𝛽ሶ
Homework: Energy

• Kinetic
2 2
𝑚 acos 𝛼 𝛼ሶ + bcos 𝛽 𝛽ሶ 𝑚 asin 𝛼 𝛼ሶ + bsin 𝛽 𝛽ሶ
𝑇𝑡 = +
2 2
𝐼𝐵 2
𝑇𝑟 = 𝛽ሶ
2
𝑇𝑇𝑜𝑡𝑎𝑙 = 𝑇𝑡 + 𝑇𝑟

• Potential
𝑉 = −𝑚𝑔(acos 𝑎𝑙𝑝ℎ𝑎 + 𝑏𝑐𝑜𝑠 𝑏𝑒𝑡𝑎 )
Homework (EOM)

• Eom (𝜶):
𝜕𝐿
= 𝑎𝑚(𝑎𝛼ሶ + 𝑏𝛽ሶ cos 𝛼 − 𝛽 )
𝜕𝛼ሶ

𝑑 𝜕𝐿
= 𝑎𝑚(𝑏𝛽ሶ 2 𝑠𝑖𝑛 𝛼 − 𝛽 − 𝑏𝛼ሶ 𝛽ሶ sin 𝛼 − 𝛽 + 𝑎𝛼ሷ + 𝑏𝛽ሷ cos 𝛼 − 𝛽 )
𝑑𝑡 𝜕𝛼ሶ

𝜕𝐿
= −𝑎𝑚(𝑔𝑠𝑖𝑛 𝛼 + 𝑏𝛼ሶ 𝛽ሶ sin 𝛼 − 𝛽 )
𝜕𝛼

𝑏𝛽ሶ 2 𝑠𝑖𝑛 𝛼 − 𝛽 + 𝑔𝑠𝑖𝑛 𝛼 + 𝑏𝛽cos(𝛼


ሷ − 𝛽)
𝛼ሷ = −
𝑎
Homework (EOM)

• Eom (𝜷):

𝑏𝑚(−a𝛼ሶ 2 sin 𝛼 − 𝛽 + 𝑔𝑠𝑖𝑛 𝛽 + 𝑎𝛼cos(𝛼


ሷ − 𝛽)

𝛽=−
𝑚𝑏 2 + 𝐼
Multibody systems
Lecture 3:
Lagrange II

• Admin

• Multibody • Multibody systems involve multiple


Systems rigid bodies
• Manipulator
• Each with own COM
Equation
• In Lagrange, don’t care about reaction
forces or constraint equations
• Just need to define energy of COM
• Easy ☺
Triple Pendulum
Triple Pendulum

𝑇
𝒒 = 𝜃1 𝜃2 𝜃3
l
sin 𝜃1 𝑙 θ1
𝑟1 =
−𝑐𝑜𝑠 𝜃1 𝑙 m1
l
sin 𝜃1 𝑙 + sin 𝜃1 + 𝜃2 𝑙 θ2
𝑟2 =
−𝑐𝑜𝑠 𝜃1 𝑙 − cos 𝜃1 + 𝜃2 𝑙 m2 l
θ3 m3

sin 𝜃1 𝑙 + sin 𝜃1 + 𝜃2 𝑙 + sin 𝜃1 + 𝜃2 + 𝜃3 𝑙


𝑟3 =
−𝑐𝑜𝑠 𝜃1 𝑙 − cos 𝜃1 + 𝜃2 𝑙 − cos 𝜃1 + 𝜃2 + 𝜃3 𝑙
Triple Pendulum

𝑇
𝒒 = 𝜃1 𝜃2 𝜃3 θ1
l

m1
l
cos 𝜃1 𝑙 𝜃ሶ1 θ2
𝑟1ሶ =
𝑠𝑖𝑛 𝜃1 𝑙 𝜃ሶ1 m2 l
θ3 m3

cos 𝜃1 𝑙 𝜃ሶ1 + cos 𝜃1 + 𝜃2 𝜃ሶ1 + 𝜃ሶ2 𝑙


𝑟2ሶ =
𝑠𝑖𝑛 𝜃1 𝑙 𝜃ሶ1 + sin 𝜃1 + 𝜃2 𝜃ሶ1 + 𝜃ሶ 2 𝑙

cos 𝜃1 𝑙 𝜃ሶ1 + cos 𝜃1 + 𝜃2 𝜃ሶ1 + 𝜃ሶ2 𝑙 + cos 𝜃1 + 𝜃2 + 𝜃3 𝜃ሶ1 + 𝜃ሶ2 + 𝜃ሶ3 𝑙


𝑟3ሶ =
𝑠𝑖𝑛 𝜃1 𝑙 𝜃ሶ1 + sin 𝜃1 + 𝜃2 𝜃ሶ1 + 𝜃ሶ2 𝑙 + sin 𝜃1 + 𝜃2 + 𝜃3 𝜃ሶ1 + 𝜃ሶ2 + 𝜃ሶ3 𝑙
Manipulator Equation
Lecture 3:
Lagrange II

• Admin

• Multibody Systems • Lagrange EOM are straightforward


• Manipulator
but tedious to calculate
Equation
• They also quickly become
unwieldly…
• Is there a more compact way to
express EOM for high DOF systems?
• Yes!
Quick side note on motors
τ3
θ2
θ3

τ2

θ1

𝑑 𝜕𝐿 𝜕𝐿
− = 𝜏𝑖
𝑑𝑡 𝜕𝑞ሶ 𝑖 𝜕𝑞𝑖
Motor torque acting on
generalized coordinate 𝒊
Eg: 2DOF Robot arm

𝑇
𝒒 = 𝜃1 𝜃1
m2
𝑙2 θ2
𝑙1 𝑐𝑜𝑠 𝜃1
𝒓𝟏 = m1
𝑙1 𝑠𝑖𝑛 𝜃1 y 𝑙1
𝑙1 𝑐𝑜𝑠 𝜃1 + 𝑙2 𝑐𝑜𝑠 𝜃1 + 𝜃2 θ1 τ2
𝒓𝟐 =
𝑙1 𝑠𝑖𝑛 𝜃1 + 𝑙2 𝑠𝑖𝑛 𝜃1 + 𝜃2
τ1 x
Eg: 2DOF Robot arm

𝑇 m2
𝒒 = 𝜃1 𝜃1
𝑙2 θ2
m1 𝑙2
y 𝑙1
𝒓𝟏ሶ =
− 𝑙1 𝑠𝑖𝑛 𝜃1 𝜃1ሶ θ1 τ2
𝑙1 𝑐𝑜𝑠 𝜃1 𝜃1ሶ
τ1 x
− 𝑙2 𝑠𝑖𝑛 𝜃1 + 𝜃2 (𝜃1ሶ + 𝜃2ሶ )
𝒓𝟐ሶ = 𝒓𝟏ሶ +
𝑙2 𝑐𝑜𝑠 𝜃1 + 𝜃2 (𝜃1ሶ + 𝜃2ሶ )
Eg: 2DOF Robot arm
m2
EOM
θ2
𝜏1 = (𝑚1 𝑙12 + 𝑚2 (𝑙12 + 2𝑙1 𝑙2 𝑐𝑜𝑠 𝜃2 + 𝑙22 ))𝜃ሷ1 m1
y
+(𝑚2 (𝑙1 𝑙2 𝑐𝑜𝑠 𝜃2 + 𝑙22 )𝜃ሷ 2 θ1 τ2
− (𝑚2 𝑙1 𝑙2 𝑠𝑖𝑛𝜃2 (2𝜃ሶ1 𝜃ሶ2 + 𝜃ሶ22 ) τ1 x
+ 𝑚1 + 𝑚2 𝑙1 𝑔𝑐𝑜𝑠 𝜃1 + 𝑚2 𝑔𝑙2 cos(𝜃1 + 𝜃2 )

𝜏2 = 𝑚2 𝑙1 𝑙2 𝑐𝑜𝑠𝜃2 + 𝑙22 𝜃ሷ 2 + 𝑚2 𝑙22 𝜃ሷ2


+𝑚2 𝑙1 𝑙2 𝜃ሶ12 𝑠𝑖𝑛 𝜃2
+𝑚2 𝑔𝑙2 cos(𝜃1 + 𝜃2 )
Manipulator Equation

𝑴 𝒒 𝒒ሷ + 𝑪 𝒒, 𝒒ሶ + 𝑮 𝒒 = 𝝉
Joint torques
𝒏×𝒏 velocity-product matrix
Mass Matrix
Gravity term
Mass Matrix

• Re-write Kinetic Energy: 𝟏 𝑻


𝑻 = 𝒒ሶ 𝑴(𝒒)𝒒ሶ
𝟐

• Properties:
• Positive definite – Kinetic energy always positive for
non-zero 𝒒ሶ
• Symmetric
• Depends only on 𝒒

• Elements: 𝜕𝑇
𝑀𝑖,𝑗 =
𝜕𝑞ሶ 𝑖 𝜕𝑞ሶ 𝑗
Mass Matrix
Centrifugal &Coriolis Matrix

𝝏𝑻
𝑪 = 𝑴ሶ 𝒒ሶ −
𝝏𝒒
Jacobian

Mulero-Martínez, J. (2009). A new


factorization of the Coriolis/centripetal
matrix. Robotica, 27(5), 689-700.
doi:10.1017/S0263574708005067
Gravity “Matrix”

𝝏𝑽
𝑮=
𝝏𝒒
All potential energy can be
captured here
Exercise
• Derive the dynamics for a single-link inverted pendulum

L m2

y0
F θ
x0
m1
Exercise

L m2
𝒎𝟏 𝒙ሶ 𝟐
𝑻𝒃𝒍𝒐𝒄𝒌 = y0
F θ
𝟐 x0
m1

𝒎𝟐 𝑳𝟐 𝜽ሶ 𝟐 𝒎𝟐 𝑳𝒔𝒊𝒏𝜽𝜽ሶ 𝒙ሶ 𝑰𝜽ሶ 𝟐 + 𝒎𝟐 𝒙ሶ 𝟐
𝑻𝒓𝒐𝒅 = − +
𝟖 𝟐 𝟐
𝒎𝟐 𝒈𝑳𝒔𝒊𝒏𝜽
𝑽𝒓𝒐𝒅 =
𝟐
Tailbot
Homework (Tailbot)
• Derive the dynamics for Tailbot during the flight phase
• Can assume the tail is a point mass
• Use Manipulator Equation form!

mt mb Ib
θb

θt x,y
τin
y

x
The end.

• Next lecture:
• 3D Systems

You might also like