Skip to content

msjun23/RobotControl-MATLAB-Project

Repository files navigation

RobotControl-MATLAB-Project

Kwangwoon University, Seoul, South Korea
Term project for Robot Control(Second semester, 2021.)

PDF, lecture material is own Kwangwoon Univ.


1. 3-DOF links free fall simulation

Code is here and dynamics modeling using Lagrangian function is here.


2. 2-DOF Dynamics parameter estimation

Code is here and two link dynamics equation is here.

To estimation, two algorithms are available.

2.1 Kalman Filter based parameter estimation algorithm

You can see that every parameters are converge quickly without large overshoot. But also little errors are exist.

2.2 Error minimization algorithm

HW2_2-DOF_dynamics_estimation_minimization_algorithm HW2_2-DOF_dynamics_estimation_minimization_algorithm2

Every parameters are converge very quickly than Kalman algorithm and error is almost zero. But in the beginning, very big overshoot exists.


3.1 1-DOF Joint Space PID CTM Controller

  • Target position: 0 deg -> 90 deg
  • Target velocity: 30 deg/s
  • Use PID controller & Try several gain value

For position controller at critically damped system, P gain Kp is equal to square of system frequency ωn2 and D gain Kd is equal to 2ωn(∵ ζ=1 at critically damped system). If want to decrease steady-state error, we can add I controller.

3.1.1 ωn=5, Kpn2, Kd=2ωn, Ki=0


HW3_1_wn_5_ki_0_pos HW3_1_wn_5_ki_0_vel

3.1.2 ωn=20, Kpn2, Kd=2ωn, Ki=0


HW3_1_wn_20_ki_0_pos HW3_1_wn_20_ki_0_vel

3.1.3 ωn=20, Kpn2, Kd=2ωn, Ki=250


HW3_1_wn_20_ki_250_pos HW3_1_wn_20_ki_250_vel

3.2 2-DOF Cartesian Space PID CTM Controller

  • Target trajectory: radius-0.1m, period-1s, drawing cricle
  • Use PID controller & Try several gain value

Control gain is equal to 3.1.

3.2.1 ωn=5, Kpn2, Kd=2ωn, Ki=0


HW3_2_wn_5_ki_0_pos HW3_2_wn_5_ki_0_vel

3.2.2 ωn=20, Kpn2, Kd=2ωn, Ki=0


HW3_2_wn_20_ki_0_pos HW3_2_wn_20_ki_0_vel

3.2.3 ωn=20, Kpn2, Kd=2ωn, Ki=250


HW3_2_wn_20_ki_250_pos HW3_2_wn_20_ki_250_vel

4.1 3-DOF Joint Space PID CTM Controller

Final goal is extension of 3.1 & 3.2 to 3-DOF

ωn=20, Kpn2, Kd=2ωn, Ki=250


HW4_1_wn_20_ki_250_pos HW4_2_wn_20_ki_250_vel

4.2 3-DOF Cartesian Space PID CTM Controller

ωn=20, Kpn2, Kd=2ωn, Ki=250


HW4_2_wn_20_ki_250_pos HW4_2_wn_20_ki_250_vel

About

Term project for Robot Control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages