image thumbnail
from Multiple Rapidly-exploring Random Tree (RRT) by Gavin
Multiple RRT implementation for mobile robot path planning or C-space manipulator motion planning

Function newPoint

Function newPoint

Description: This function randomly samples the search space. and produces a new node

function new_pnt=newPoint(lim)

% Size of search space
range=abs(lim(:,2)-lim(:,1));

% Randomly generate point
new_pnt=[lim(1,1)+range(1)*rand,...
         lim(2,1)+range(2)*rand,...
         lim(3,1)+range(3)*rand];

Contact us at files@mathworks.com