5.0

5.0 | 1 rating Rate this file 52 downloads (last 30 days) File Size: 850.59 KB File ID: #16835

Gantry robot simulation

by John Kluza

 

11 Oct 2007 (Updated 15 Oct 2007)

No BSD License  

Supervisory and low level robot tracking control of a 5-bar or articulated gantry using desired posi

Download Now | Watch this File

File Information
Description

Supervisory and low level robot tracking control of a 5-bar or articulated gantry using desired position based on video input processed in real time.

This model simulates a robot in an environment that includes a video camera source that is used for obtaining the desired postion of the robot end effector and a user interface that allows the user to command the robot to pick up the tracked object and bring it back to a home location.

This model demonstrates (from left to right in model):
1. Inputting a video file to Simulink
2. Running an object detection algorithm on the video to find a target point
3. Passing that location to a supervisory controller that filters the input from the video tracking code using a kalman filter
4. The supervisory controller chooses the mode of the robot, the state of the electromagnetic pickup end effector and passes that data to the low level controller
5. The low level controller runs a PD controller that is tuned for the plant chosen (5-bar linkage and articulated robot arm are available in the configurable subsystem block called "gantry plants")
6. The control inputs are fed to a mechanical model of the plant
7. The mechanical model outputs the updated positions of the plant and an estimator is used (analytical and SimMechanics estimators are used for the 5-bar, raw data is used for the robot arm)
8. Those positions are fed back into the supervisory control loop.
9. The whole operation is controlled and visualized by a GUI that displays the video that is being processed, the desired and actual position of the robot end effector, and allows the user to interact with the model to make the robot track the moving target and "pick up" the target using an unmodeled electromagnetic end effector.

Originally created in R14SP2, tested it successfully running in 2007b.

Required Products Control System Toolbox
Image Processing Toolbox
Signal Processing Blockset
Signal Processing Toolbox
SimMechanics
Simscape
Simulink
Stateflow
Video and Image Processing Blockset
MATLAB release MATLAB 7.5 (R2007b)
Other requirements N/A
Zip File Content  
Other Files
hs422.jpg,
ld293hbridge.jpg,
myRobot.wrl,
red_triangle320_240.JPG,
robotarm.jpg,
speend.mat,
sroend.mat,
yellow_square320_240.JPG,
aaa_readme.txt,
ccw_lowres_10fps.avi,
coordConvertParams.mat,
gantry.mdl,
gantry_5bar_init.m,
gantry_gui.fig,
gantry_gui.m,
gantry_msfun_3color.m,
gantry_plant_library.mdl,
gantry_version_history.txt,
gantrypic.JPG,
green_rectangle320_240.JPG
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
15 May 2008 YH Zhang

Great article!

Please login to add a comment or rating.
Updates
15 Oct 2007

Updated EML block to use "eml.extrinsic" to fix a warning in 2007b

Tag Activity for this File
Tag Applied By Date/Time
simulation John Kluza 22 Oct 2008 09:31:21
robot kalman video estimation estimator mode logic state machine John Kluza 22 Oct 2008 09:31:21
robot kalman video estimation estimator mode logic state machine satyamaneesh veerapaneni 09 Jun 2009 06:04:34
simulation satyamaneesh veerapaneni 09 Jun 2009 06:04:36
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com