matteosodano / Optimal_Redundancy_Control_of_Robot_Manipulators

University group project concerning the analysis of the redundancy for a planar 3R robot manipulator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimal Redundancy Control of Robot Manipulators

Developed by: M. Sodano, F. Roscia (2019).

Supervisor: prof. D. Iacoviello.

Achievement: Optimal Control exam (partial).

This project is about the optimal redundancy control of robot manipulators. This topic has been tackled by means of the Pontryagin maximum principle. Since only kinematics is considered, the optimal problem is reduced to minimal value searching in a space of as many dimensions as the degrees of redundancy. The formulation is: first to convert the redundancy resolution problem to an optimal control problem, and to obtain the optimal resolution of redundancy by using the necessary conditions of Pontryagin theory.

A planar 3R robot manipulator, shown in the figure below, is considered. In the media folder, videos of the simulation described below are stored.

Application of Pontryagin Maximum Principle

The control problem is to find the optimal joint variable vector and the optimal input vector satisfying the dynamical constraint (i.e., the differential kinematics) and the boundary conditions (i.e., initial and final configurations) and maximizing a performance index defined as

where the first term of the integral accounts for a secondary cost index, and the first term aims to minimize the joint velocities.

Performance Indices

Four different cost indices are considered.

Case 1: no secondary cost index. The considered performance index is

without exploiting the presence of the redundancy. The solution can be obtained in closed form by the inverse differential kinematics equation, since the pseudoinverse aims to minimize the norm of the joint velocity at each step.

Case 2: manipulability measure as secondary cost index. In order to have more dexterous joint variable evolution, the manipulability measure has been considered. It annihilates at singular configurations, then by maximizing it redundancy is exploited to move away from singularities.

Case 3: distance from joint limits as secondary cost index. Defining some joint limits, the maximization aims to keep the joint variables as close as possible to the center of their joint range.

Case 4: hybrid secondary cost index. The aim of this simulation is to produce the joint variables that try to minimize the norm of the joint velocities and to maximize the sum of the manipulability measure and the distance from the joint limits.

Implementation Details

The code is implemented in MATLAB 2018b. Every function uploaded in this repository is described in the file documentation.txt. To run, in init.m, choose:

  • a starting configuration and a velocity for the robot manipulator;
  • the weights for the secondary cost index;
  • the parameter i, that selects the cost index (and related weight);

After the run, you can launch Graphs.m for plotting the error and the joint trajectories and animate.m to record a video using the Matlab Robotics' Toolbox.

If you want to change some other data (e.g., the joint limits) you may need to run again the scripts aux_qdot.m and aux_w.m (see documentation.txt for further details).

Reference

Nakamura, Y., & Hanafusa, H. (1987). Optimal redundancy control of robot manipulators. The International Journal of Robotics Research, 6(1), 32-42.

About

University group project concerning the analysis of the redundancy for a planar 3R robot manipulator.


Languages

Language:MATLAB 96.5%Language:M 3.5%