-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码不能到达给定位姿,将注释掉的删除起始点的代码取消注释就可以,这是为啥? #6
Comments
@David3665 |
@wanghuohuo0716 作者好!这个问题我解决了,是第25行与第35行的isok标志位发生混用导致部分路径点被删除,我加了个判断解决了这个问题 |
感谢 @David3665 提供的修改意见, ①关于源代码中isok标志位发生混用问题,完整的修改代码是否如下 while ~isempty(Open)
% pop the least cost node from open to close
[wknode,Open] = PopNode(Open,cfg);
[isok1,idx] = inNodes(wknode,Close);
% 判断是否在Close集合内
if isok1
Close(idx) = wknode;
else
Close = [Close, wknode];
end
% 以wknode为根节点生成搜索树,使用Reeds-Shepp方法基于车辆单轨模型进行运动学解析拓展子结点
[isok2,path] = AnalysticExpantion([wknode.x,wknode.y,wknode.theta],End,veh,cfg);
if isok2
%把wknode从idx移到Close集合最后面
if isok1
Close(end+1) = wknode;
Close(idx) = [];
else
[x,y,th,D,delta] = getFinalPath(path,Close,veh,cfg);
end
break % 如果能直接得到RS曲线,则跳出while循环
end
[Open,Close] = Update(wknode,Open,Close,veh,cfg); % 使用
end ②关于RS曲线的FindRS函数在产生CCCC类的轨迹错误问题,我在测试过程, 下面这句代码
似乎无法运行,提示错误:
不知您可否提交一份完整的测试代码的PR到这个仓库呢? 非常感谢!!! |
@wanghuohuo0716 作者您好,已上传 #8 |
我这样设置的起点和终点:
但是执行的结果目标点的位置是错误的:
如果把此句取消注释再运行:
结果如图:
可见结果基本是对的,请问这是什么原因?
The text was updated successfully, but these errors were encountered: