4.2

4.2 | 5 ratings Rate this file 17 downloads (last 30 days) File Size: 434.67 KB File ID: #1207

Shark

by Giampiero Campa

 

31 Dec 2001 (Updated 07 Feb 2007)

Code covered by the BSD License  

Nonlinear 6DOF Model of an Underwater Vehicle

Download Now | Watch this File

File Information
Description

Shark is a detailed nonlinear model of an underwater vehicle for MATLAB 5.3 and later (tested on 6.1 as well).

It has a Simulink interface but the source code consists in 10 MATLAB functions, each one being well documented in an enclosed PDF report.

It is possible to modify the functions to simulate different kind of vehicles and, in general, this tool can be seen as an effective way to map the equations of a mechanical system to a working simulation in the MATLAB and
Simulink environment, especially in those cases where the extensive use of a matrix-based formulation in the modeling makes MATLAB (rather than Simulink) the preferred coding environment.

NOTE: After downloading and unzipping the file "shark.zip", please follow the istructions in the file "contents.m".

Giampy, Dec 2001

Required Products Simulink
MATLAB release MATLAB 5.3.1 (R11.1)
Zip File Content  
Other Files
contents.m,
demos/abcdk.mat,
demos/linattk.m,
demos/nlksf.mdl,
demos/oploop.mdl,
demos/xtrlmod.mdl,
demos.m,
doc/shark.pdf,
info.xml,
mex5/a2clcd.c,
mex5/a2clcd.h,
mex5/a2clcdxc.c,
mex5/a2clcdxc.h,
mex5/rpy2j.c,
mex5/rpy2j.h,
mex5/rpy2r_eb.c,
mex5/rpy2r_eb.h,
mex5/tau_cor.c,
mex5/tau_cor.h,
mex5/tau_damp.c,
mex5/tau_damp.h,
mex5/tau_rest.c,
mex5/tau_rest.h,
mex5/vp.c,
mex5/vp.h,
mex5/vxdot.c,
mex5/vxdot.dll,
mex5/vxdot.h,
mex5/vxdot_mex.c,
mex6/a2clcd.c,
mex6/a2clcd.h,
mex6/a2clcdxc.c,
mex6/a2clcdxc.h,
mex6/rpy2j.c,
mex6/rpy2j.h,
mex6/rpy2r_eb.c,
mex6/rpy2r_eb.h,
mex6/tau_cor.c,
mex6/tau_cor.h,
mex6/tau_damp.c,
mex6/tau_damp.h,
mex6/tau_rest.c,
mex6/tau_rest.h,
mex6/vp.c,
mex6/vp.h,
mex6/vxdot.c,
mex6/vxdot.dll,
mex6/vxdot.h,
mex6/vxdot_mex.c,
shark.m,
source/a2clcd.m,
source/a2clcdxc.m,
source/rpy2j.m,
source/rpy2r_eb.m,
source/tau_cor.m,
source/tau_damp.m,
source/tau_rest.m,
source/vp.m,
source/vxdot.m,
vehicle.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
06 Mar 2003 farzin radkani  
30 Dec 2003 Dionnys Moran  
15 Sep 2004 Kulic Ranka

I wuld like to check if it is possible to apply behavioral cloning to control vehicle to avoid obstacles.

29 Mar 2005 hugo ferreira

Nice work.
www.dee.isep.ipp.pt/~e980933
www.lsa.isep.ipp.pt
www.fe.up.pt/~lsts

24 May 2005 Gerardo Acosta

There is a problem in the computation of the yaw angle: when computing the tg yaw=Deltay/Deltax, the sign of Deltay is wrong. Then when the yaw goes from 360º to 0º or vice-versa, there is a sudden change in the speed sign, yielding the strange shape of a cardioid in the trajectory (seen from top) instead of a circle when the rudder is fixed with a constant angle.

Please login to add a comment or rating.
Updates
12 Mar 2003

The figures in the PDF manual now have a better resolution.

02 Jun 2003

Updated Signature and info.xml file.

12 May 2005

Renamed everything lowercase

12 May 2005

Removed extra dir info from zip file,
and corrected a small bug.

07 Feb 2007

Changed info.xml file to avoid annoying messages within the last matlab versions.

Tag Activity for this File
Tag Applied By Date/Time
simulation Giampiero Campa 22 Oct 2008 06:40:04
underwater Giampiero Campa 22 Oct 2008 06:40:04
marine Giampiero Campa 22 Oct 2008 06:40:04
submarine Giampiero Campa 22 Oct 2008 06:40:04
vehicle Giampiero Campa 22 Oct 2008 06:40:04
 

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