Code covered by the BSD License
-
flockAlignPnY(P,Y,L,B);
Using simple cooridinate translation and rotation we'll align P to Y
-
flockBaryCenter(F);
This simple function utilazes polygeom
-
flockFindRelLocS(Y,F);
Find followers location relative to Y
-
flockNumOfBots(F);
-
flockRank(me,A)
inputs: Sx sub group of followers locations
-
flockSetY(L,B);
input X1Y1, X2Y2
-
flockSort(A,L,B)
-
flockStep(Ptn, Flwr, Ldr, me)...
flockStep is the main loop the follower execute
-
polygeom( x, y )
POLYGEOM Geometry of a planar polygon
-
flockTest.m
-
View all files
Flocking Algorithm
by Shlomo Segal
28 Aug 2006
(Updated 05 Sep 2006)
A Simple application of a flocking algorithm. Following Gervasi Coordination without Communicatio
|
Watch this File
|
| File Information |
| Description |
A Simple application of a flocking algorithm. Following P. Gervasi, and G. Prencipe, "Coordination without Communication: The Case of the Flocking Problem", Discrete Applied Mathematics, 143: pp. 203-223 2004 |
| MATLAB release |
MATLAB 6.5 (R13)
|
| Other requirements |
requires pplot.m from http://www.ise.ncsu.edu/kay/matlog/ from flocktest ploting. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 20 Feb 2007 |
farshad zeighami
|
|
|
|
Contact us at files@mathworks.com