Revision 1797 branches/16299_s10/matlab/visualizeRobots.m
| visualizeRobots.m (revision 1797) | ||
|---|---|---|
| 1 | 1 |
function [mov] = visualizeRobots(f,n,Xs,Ys,Thetas,idx,color,makeMovie,mov,winsize) |
| 2 | 2 |
|
| 3 | 3 |
clf; |
| 4 |
axis([-10 10 -10 10]) |
|
| 4 |
ax = [min(min(Xs))-1, max(max(Xs))+1, min(min(Ys))-1, max(max(Ys))+1]; |
|
| 5 |
|
|
| 6 |
if ax(1) > -10 |
|
| 7 |
ax(1) = -10; |
|
| 8 |
end |
|
| 9 |
if ax(2) < 10 |
|
| 10 |
ax(2) = 10; |
|
| 11 |
end |
|
| 12 |
if ax(3) > -10 |
|
| 13 |
ax(3) = -10; |
|
| 14 |
end |
|
| 15 |
if ax(4) < 10 |
|
| 16 |
ax(4) = 10; |
|
| 17 |
end |
|
| 18 |
|
|
| 19 |
axis(ax); |
|
| 20 |
|
|
| 21 |
%axis([-10 10 -10 10]) |
|
| 22 |
|
|
| 5 | 23 |
axis manual |
| 6 | 24 |
set( gca,'nextplot','add' ); |
| 7 | 25 |
for j = 1:n |
Also available in: Unified diff