Skip to content
Open
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
6 changes: 3 additions & 3 deletions PRM.m
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,12 @@ function create_roadmap(prm, opt)
end
new = [x; y];

% add it to the graph
vnew = prm.graph.add_node(new);

% find the closest node already in the graph
[d,v] = prm.graph.distances(new);

% add it to the graph
vnew = prm.graph.add_node(new);

% test neighbours in order of increasing distance and check for a clear
% path
for i=1:length(d)
Expand Down