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

三维仿真索引超出数组边界 #3

Closed kourong closed 4 years ago

kourong commented 4 years ago

出错 RRTstar3D>findMinimumPath (line 656) [tmp,idx] = min(connectingNodes(:,dim+2));

出错 RRTstar3D (line 145) path_500 = findMinimumPath(tree_500,end_node,dim);

joris997 commented 4 years ago

Same, this was mentioned in another issue which was closed by the author. However, the supposed solution of having samples >= 4000 does not solve it. Just for convenience:

` Index in position 2 exceeds array bounds.

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

Error in RRTstar3D (line 137) path = findMinimumPath(tree,end_node,dim);

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

kourong commented 4 years ago

Same, this was mentioned in another issue which was closed by the author. However, the supposed solution of having samples >= 4000 does not solve it. Just for convenience:

` Index in position 2 exceeds array bounds.

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

Error in RRTstar3D (line 137) path = findMinimumPath(tree,end_node,dim);

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

I saw it, is there any other solution now? The version of matlab I use is 2019b

joris997 commented 4 years ago

don't think so

adnanmunawar commented 4 years ago

Can you please specify more information about the arguments that you are passing to the code

kourong commented 4 years ago

Can you please specify more information about the arguments that you are passing to the code

I set samples=4000 。But still this problem。

adnanmunawar commented 4 years ago

Please try the latest commit. Now the issue arises from sample being too low for RRT* to have found a path. Instead of throwing error, the code tells you that it didn't find a path but you really should be giving a high number of samples.

kourong commented 4 years ago

OK,I will try it ,Thank you.

在 2020年3月31日,上午6:31,Adnan Munawar notifications@github.com 写道:

Please try the latest commit. Now the issue arises from sample being too low for RRT* to have found a path. Instead of throwing error, the code tells you that it didn't find a path but you really should be giving a high number of samples.

— 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

@joris997 did you get a chance to try the latest commit out?

joris997 commented 4 years ago

Yes, I got it to work and it's now a lot more intuitive as to what is going wrong. Thank you for the help.