Linear Control of Manipulators
Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.02 Linear Control of Manipulators
9.1. Introduction
9.2. Feedback and Closed-loop control
9.3. Second-order linear systems
9.4. Control of second-order systems
9.5. Control-law partitioning
9.6. Trajectory-following control
9.7. Disturbance rejection
9.8. Continuous vs. Discrete time control
9.9. Modeling and Control of a single joint
9.10. Architecture of an industrial-robot controller
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.03 Linear Control of Manipulators
9.1. INTRODUCTION
• We have calculated joint-position time histories that correspond to
desired end-effector motions through space
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.04 Linear Control of Manipulators
Linear-control technique
• Use of linear-control techniques is valid only when system being studied
can be modeled mathematically by linear differential equations
• Linear methods are the ones most often used in current industrial practice
• Consideration of linear approach will serve as a basis for the more complex
treatment of nonlinear control systems
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.05 Linear Control of Manipulators
Almost always, these torques are determined by using feedback from the
joint sensors to compute the torque required
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.06 Linear Control of Manipulators
Control system
• One possibility is to use dynamic equation of robot to calculate the
torques required for a particular trajectory
• Given 𝚯𝑑 , 𝚯𝑑 , and 𝚯𝑑 by trajectory generator, we can compute torque:
𝝉 = 𝑴 𝚯𝑑 𝚯𝑑 + 𝑽 𝚯𝑑 , 𝚯𝑑 + 𝑮 𝚯𝑑 (9.1)
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.08 Linear Control of Manipulators
Closed-loop system
• Feedback is used to compute any servo error by finding difference
between desired and actual positions (velocities)
𝑬 = 𝚯𝑑 − 𝚯
𝑬 = 𝚯𝑑 − 𝚯
• Control system can then compute how much torque to require of actuators
as some function of servo error
• The basic idea is to compute actuator torques that would tend to reduce
servo errors
• A control system that makes use of feedback is called a closed-loop
system
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.09 Linear Control of Manipulators
Stable system
• A system to be stable if errors remain small when executing various
desired trajectories even in presence of some moderate disturbances
• An improperly designed control system can sometimes result in unstable
performance, servo errors are enlarged instead of reduced
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.10 Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.11 Linear Control of Manipulators
Characteristic motions
• The solution of differential equation (9.3) is a time function 𝑥(𝑡) that
specifies the motion of the block
• This solution will depend on the block’s initial conditions – that is, its
initial position and velocity
• The character of solution depends upon values of parameters 𝑚, 𝑏, 𝑘
For example:
• In case of a very weak spring (𝑘 small) and very heavy friction (𝑏
large), if block were perturbed, it would return to its resting position in a
very slow, sluggish manner
• With a very stiff spring and very low friction, the block might
oscillate several times before coming to rest
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.13 Linear Control of Manipulators
Characteristic equation
• The form of solution of equation (9.3) depends on roots of its
characteristic equation
𝑚𝑠 2 + 𝑏𝑠 + 𝑘 = 0
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.14 Linear Control of Manipulators
Classes of response
We have 3 classes of response to study
1. Real and Unequal Roots: when 𝑏 2 > 4𝑚𝑘 , friction dominates,
sluggish behavior results, called over-damped
2. Complex Roots: when 𝑏 2 < 4𝑚𝑘 , stiffness dominates, oscillatory
behavior results, called under-damped
3. Real and Equal Roots: when 𝑏 2 = 4𝑚𝑘, friction and stiffness are
balanced, yielding the fastest possible non-oscillatory response, called
critically damped
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.15 Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.16 Linear Control of Manipulators
Example 9.1
Determine motion of mass-spring system if parameter values are 𝑚 = 1,
𝑏 = 5, 𝑘 = 6 and block is released from the position 𝑥 = −1 ?
Complex roots
• The characteristic equation has complex roots
𝑠1 = 𝜆 + 𝜇𝑖
𝑠2 = 𝜆 − 𝜇𝑖
• The solution still has the form (9.12)
𝑥 𝑡 = 𝑐1 𝑒 𝑠1 𝑡 + 𝑐2 𝑒 𝑠2 𝑡
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.18 Linear Control of Manipulators
Complex roots
• Then (9.14) can be written in the form
𝑥 𝑡 = 𝑟𝑒 𝜆𝑡 cos(𝜇𝑡 − 𝛿)
Where
𝑟 = 𝑐1 2 + 𝑐2 2
𝛿 = 𝐴𝑡𝑎𝑛2 𝑐2 , 𝑐1
• Resulting motion is an oscillation whose amplitude is exponentially
decreasing toward 0
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.19 Linear Control of Manipulators
Natural frequency
• The parameterization of the characteristic equation given by
𝑠 2 + 2𝜁𝜔𝑛 𝑠 + 𝜔𝑛 2 = 0
Where: 𝜁 is the damping ratio (0 ≤ 𝜁 ≤ 1)
𝜔𝑛 is the natural frequency
• Relationship between poles locations and these parameters are
𝜆 = −𝜁𝜔𝑛
𝜇 = 𝜔𝑛 1 − 𝜁 2
𝜇 is sometimes called damped natural frequency
• For a damped spring-mass system, we have
𝑏
𝜁=
2 𝑘𝑚
𝜔𝑛 = 𝑘
𝑚
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.20 Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.21 Linear Control of Manipulators
Note
For any passive system like a damped spring-mass system, the systems
are stable if mechanical systems have the properties
𝑚>0
𝑏>0
𝑘>0
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.22 Linear Control of Manipulators
Control law
• Assume we have sensors capable of detecting block’s position & velocity
• We now propose a control law which computes the force that should be
applied by the actuator as a function of the sensed feedback (9.35)
𝑓 = −𝑘𝑝 𝑥 − 𝑘𝑣 𝑥
Control Physical
system system
Position-regulation system
• It attempts to maintain the position of the block in one fixed place
regardless of disturbance forces applied to the block
• By equating the open-loop dynamics of (9.34) with the control law of
(9.35), we can derive the closed-loop dynamic as
𝑚𝑥 + 𝑏𝑥 + 𝑘𝑥 = −𝑘𝑝 𝑥 − 𝑘𝑣 𝑥
Or:
𝑚𝑥 + 𝑏 ′ 𝑥 + 𝑘 ′ 𝑥 = 0
Where: 𝑏 ′ = 𝑏 + 𝑘𝑣 and 𝑘 ′ = 𝑘 + 𝑘𝑝
• By setting the control gains, 𝑘𝑣 and 𝑘𝑝 , we can cause the closed-loop
system to appear to have any second system behavior that we wish
• Often, gains would be chosen to obtain critical damping 𝑏 ′ = 2 𝑚𝑘′,
and some desired closed-loop stiffness given direct by 𝑘′
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.25 Linear Control of Manipulators
Example 9.4
If the parameters of the system in Fig. 9.6 are 𝑚 = 1, 𝑏 = 1, and 𝑘 = 1,
find gains 𝑘𝑝 and 𝑘𝑣 for a position-regulation control law that results in the
system’s being critically damped with a closed-loop stiffness of 16.0?
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.26 Linear Control of Manipulators
Mathematical formulation
• Combining (9.40) and (9.41), the system equation is (9.42)
𝑚𝑥 + 𝑏𝑥 + 𝑘𝑥 = 𝛼𝑓 ′ + 𝛽
• To make the system appear as a unit mass from the 𝑓′ input, we should
choose 𝛼 and 𝛽 as follows (9.43)
𝛼=𝑚
𝛽 = 𝑏𝑥 + 𝑘𝑥
• Making these assignments and plugging them into (9.42), we have (9.44)
𝑥 = 𝑓′
This is the equation of motion for a unit mass
• We design a control law to compute 𝑓′, just as we did before
𝑓 ′ = −𝑘𝑣 𝑥 − 𝑘𝑝 𝑥
• Combining this control law with (9.44) yields
𝑥 + 𝑘𝑣 𝑥 + 𝑘𝑝 𝑥 = 0
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.28 Linear Control of Manipulators
Mathematical formulation
• Under this methodology, the setting of the control gains is simple and is
independent of the system parameters, that is
𝑘𝑣 = 2 𝑘𝑝
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.29 Linear Control of Manipulators
• Assume that trajectory is smooth (first two derivatives exist), and that our
trajectory generator provides 𝑥𝑑 , 𝑥𝑑 , and 𝑥𝑑 at all time 𝑡
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.30 Linear Control of Manipulators
Mathematical formulation
• A servo control law that will cause trajectory following is (9.50)
𝑓 ′ = 𝑥𝑑 + 𝑘𝑣 𝑒 + 𝑘𝑝 𝑒
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.31 Linear Control of Manipulators
Trajectory-following controller
• If our model is perfect, and if there is no noise and no initial error, the
block will follow the desired trajectory exactly
• If there is an initial error, it will be suppressed according to (9.52), and
thereafter the system will follow the trajectory exactly
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.32 Linear Control of Manipulators
Mathematical formulation
• An analysis of closed-loop system leads to error equation (9.53)
𝑒 + 𝑘𝑣 𝑒 + 𝑘𝑝 𝑒 = 𝑓𝑑𝑖𝑠𝑡
• Then the solution 𝑒(𝑡) of (9.53) is also bounded due to property of stable
linear systems known as bounded input, bounded output (BIBO) stability
For a large class of possible disturbance, we can at least be assured that
the system remains stable
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.34 Linear Control of Manipulators
Steady-state error
• Let’s consider the simplest kind of disturbance (𝑓𝑑𝑖𝑠𝑡 is a constant)
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.35 Linear Control of Manipulators
𝑓 ′ = 𝑥𝑑 + 𝑘𝑣 𝑒 + 𝑘𝑝 𝑒 + 𝑘𝑖 𝑒𝑑𝑡
𝑒 + 𝑘𝑣 𝑒 + 𝑘𝑝 𝑒 + 𝑘𝑖 𝑒𝑑𝑡 = 𝑓𝑑𝑖𝑠𝑡
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.36 Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.37 Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.38 Linear Control of Manipulators
• The sample rate must be at least twice the bandwidths of reference inputs
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.39 Linear Control of Manipulators
Disturbance rejection
• An upper bound on performance is given by a continuous-time system
• If the sample period is longer than the correlation time of the disturbance
effects, then these disturbances will not be suppressed
• Perhaps a good rule of thump is that the sample period should be 10 times
shorter than the correlation time of the noise
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.40 Linear Control of Manipulators
Antialiasing
• Any time an analog sensor is used in a digital control scheme
There will be a problem with aliasing unless the sensor’s output is
strictly band limited
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.41 Linear Control of Manipulators
Structural resonances
• We have not included bending modes in our characterization of a
manipulator’s dynamics
• All real mechanisms have finite stiffness and so will be subject to various
kinds of vibrations
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.42 Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.43 Linear Control of Manipulators
DC torque motor
• The underlying physical phenomenon that causes a motor to generate a
torque when current passes through the windings can be expressed as
𝐹 = 𝑞𝑉 × 𝐵
Where: charge 𝑞, moving with velocity 𝑉 through a magnetic field 𝐵,
experiences a force 𝐹
• A second motor constant, the back emf constant, describes the voltage
generated for a given rotational velocity
𝑣 = 𝑘𝑒 𝜃𝑚
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.44 Linear Control of Manipulators
Motor-armature inductance
• The circuit is described by a first-order differential equation
𝑙𝑎 𝑖𝑎 + 𝑟𝑎 𝑖𝑎 = 𝑣𝑎 − 𝑘𝑒 𝜃𝑚
Where: voltage source 𝑣𝑎 , inductance of armature windings 𝑙𝑎 , resistance
of armature windings 𝑟𝑎 , the generated back emf 𝑣
Motor-armature inductance
• It is generally desirable to control the torque generated by the motor
(rather than the velocity) with electronic motor driver circuitry
• Our first simplifying assumption is that the inductance of the motor can be
neglected
• We also have assumption that torque ripple is negligible effect
We can essentially command torque directly
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.46 Linear Control of Manipulators
Effective inertia
• The gear ratio 𝜂 cause an increase in the torque seen at the load and a
reduction in a speed of the load, given by (9.66)
𝜏 = 𝜂𝜏𝑚
𝜃 = 1/𝜂 𝜃𝑚
Where: 𝜂 > 1
Effective inertia
• Writing a torque balance for this system in terms of torque at the rotor
yields (9.67)
𝜏𝑚 = 𝐼𝑚 𝜃𝑚 + 𝑏𝑚 𝜃𝑚 + 1/𝜂 𝐼𝜃 + 𝑏𝜃
Where: 𝐼𝑚 and 𝐼 are the inertias of the motor rotor and the load
𝑏𝑚 and 𝑏 are viscous friction coefficients for rotor and load
bearing
• From (9.66) and (9.67), we can write in terms of motor variables as
1 𝑏
𝜏𝑚 = 𝐼𝑚 + 2 𝜃𝑚 + 𝑏𝑚 + 2 𝜃𝑚
𝜂 𝜂
• Or in terms of load variables as
𝜏 = 𝐼 + 𝜂 2 𝐼𝑚 𝜃 + 𝑏 + 𝜂 2 𝑏𝑚 𝜃
The term: 𝐼 + 𝜂 2 𝐼𝑚 is sometimes called the effective inertia
𝑏 + 𝜂 2 𝑏𝑚 can be called the effective damping
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.48 Linear Control of Manipulators
Unmodeled flexibility
• The other major assumption we have made in our model is that the
gearing, the shaft, the bearings, and the driven link are not flexible
• In reality, all of these elements have finite stiffness, and their flexibility
would increase the order of the system
• If the lowest structural resonance is 𝜔𝑟𝑒𝑠 , then we must limit our closed-
loop natural frequency according to
1
𝜔𝑛 ≤ 𝜔𝑟𝑒𝑠
2
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.49 Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.50 Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.51 Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.52 Linear Control of Manipulators
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong
Robotics 9.53 Linear Control of Manipulators
LSI-11 computer
• Each 28 ms, computer sends a new command (set-point) to the joint
microprocessors
• The joint microprocessors are running on a 0.875 ms cycle (interpolate
desired position set-point, compute servo error, compute PID control law,
command a new value of torque to the motors
• Computer carries out all “high-level” operations of overall control system
+ Takes care of interpreting VAL program commands one by one
+ Perform any needed inverse kinematic computations, plan a desired
trajectory, begin generating trajectory via points
• Computer is also interfaced to standard peripherals as
+ Terminal
+ Floppy disk drive
+ Teach pendant
HCM City Univ. of Technology, Faculty of Mechanical Engineering Phung Tri Cong