Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions matlab_simulation/08-planning/shortest_wavefront_path.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
[-1, 0];
];
case 'box'
test_locations = [ [0, 1];
[1, 1];
[1, 0];
test_locations = [ [1, 1];
[1, -1];
[-1, -1];
[-1, 1];
[0, 1];
[1, 0];
[0, -1];
[1, -1];
[1, 0];
[1, 1];
[-1, 0];
];
otherwise
disp('No valid motion method provided')
Expand Down
14 changes: 7 additions & 7 deletions matlab_simulation/08-planning/wavefront.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
[-1, 0];
];
case 'box'
test_locations = [ [0, 1];
[1, 1];
[1, 0];
test_locations = [ [1, 1];
[1, -1];
[-1, -1];
[-1, 1];
[0, 1];
[1, 0];
[0, -1];
[1, -1];
[1, 0];
[1, 1];
[-1, 0];
];
otherwise
disp('No valid motion method provided')
Expand All @@ -82,7 +82,7 @@

% for each of the neighboring cells check if it has been already
% explored
for i = 1:4
for i = 1:length(wavefrontpnts(:,1))
if (wavefrontmap(wavefrontpnts(i,1),wavefrontpnts(i,2)) ~= -10)
continue;
end
Expand Down