adnanmunawar / matlab-rrt-variants

RRT*, RRT-connect, lazy RRT and RRT extend have been implemented for 2d and 3d c-spaces with visualization
180 stars 67 forks source link

question #2

Closed yijinjing closed 4 years ago

yijinjing commented 4 years ago

hello, [tmp,idx] = min(connectingNodes(:,dim+2)); an error occured,why.

adnanmunawar commented 4 years ago

Can you paste the full error

yijinjing commented 4 years ago

Index exceeds matrix dimension. error RRTstar3D>findMinimumPath (line 647) [tmp,idx] = min(connectingNodes(:,dim+2));

error RRTstar3D (line 131) path = findMinimumPath(tree,end_node,dim);

error benchmarkRRT (line 149) [n_its path_n,run_time] = RRTstar3D(dim,segmentLength,radius,random_world,show_output,samples);

zhangbinchao commented 4 years ago

i have got the same error, Attempted to access connectingNodes(:,5); index out of bounds because size(connectingNodes)=[0,0].

Error in RRTstar3D>findMinimumPath (line 647) [tmp,idx] = min(connectingNodes(:,dim+2));

Error in RRTstar3D (line 136) path_500 = findMinimumPath(tree_500,end_node,dim);

Error in benchmarkRRT (line 149) [n_its path_n,run_time] = RRTstar3D(dim,segmentLength,radius,random_world,show_output,samples);

adnanmunawar commented 4 years ago

Thanks for the detailed info. Can you please suggest what Matlab versions are you using?

yijinjing commented 4 years ago

thanks. 2017 version------------------ 原始邮件 ------------------ 发件人: "Adnan Munawar"notifications@github.com 发送时间: 2020年3月10日(星期二) 上午10:57 收件人: "adnanmunawar/matlab-rrt-variants"matlab-rrt-variants@noreply.github.com; 抄送: "yijinjing"1007275930@qq.com;"Author"author@noreply.github.com; 主题: Re: [adnanmunawar/matlab-rrt-variants] question (#2)

Thanks for the detailed info. Can you please suggest what Matlab versions are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

adnanmunawar commented 4 years ago

Can you verify if the latest commit solves your issue. Please note that you must specify a sample size of >= 4000.

kourong commented 4 years ago

Index exceeds matrix dimension. error RRTstar3D>findMinimumPath (line 647) [tmp,idx] = min(connectingNodes(:,dim+2));

error RRTstar3D (line 131) path = findMinimumPath(tree,end_node,dim);

error benchmarkRRT (line 149) [n_its path_n,run_time] = RRTstar3D(dim,segmentLength,radius,random_world,show_output,samples);

hello,excuse me。Do you solved this problem?