-
Notifications
You must be signed in to change notification settings - Fork 49
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
如果有多段轨迹是否需要进行分段优化? #9
Comments
可以贴一下具体的结果看看哈 |
raw path是混合A*规划的轨迹 分为前后两段, smoothed_trajectory是移植的您的算法,我修改了您的demo文件,直接给出了起始点和终止点,然后从csv文件中读取中间的参考点,求解器返回状态未2也就也是coveraged,修改后demo代码如下: #include // #include <geometry_msgs/PointStamped.h> using namespace PathPlanning; // 从CSV文件读取数据并存储到vector中
} static bool initializeFromImage(const cv::Mat& image, const double resolution, template<typename Type_, int NChannels_> static bool addLayerFromImage(const cv::Mat& image, const std::string& layer, bool isColor = false; cv::Mat imageMono; const float mapValueDifference = upperValue - lowerValue; float maxImageValue; const Type_ alphaTreshold = (Type_)(alphaThreshold * maxImageValue); gridMap.add(layer); for (grid_map::GridMapIterator iterator(gridMap); !iterator.isPastEnd(); ++iterator) {
} return true; int main() {
} |
有没有可视化的结果呢,这么看有点费劲 |
我分别试了两组混合A数据,起始点都是 x=3.81 y= 8.0 theta =3.14, 第一组目标终点为 x=1.25 y= 1.345 theta =1.57, 第二组目标终点为 x=10.25 y= 1.345 theta =1.57。图中蓝色的点是混合A规划的初始路径,红色的是平滑后的路径,第一组平滑后的结果有很大突变,从x=8.7之后就不连续了,第二组好很多,但是theta和y还是有些偏差。 |
是的,这种带折返的分段参考线是得分开优化的,而且这个代码因为是主要做一个行车场景的规划,对终点的位置和角度约束没有严格的约束,要是想做泊车,分段优化的话,需要改一下,对终点加很强的cost |
我没有ros环境,移植了您的代码,使用混合A*的搜索结果为其提供了初始点、终止点击reference point, 可是平滑后的结果很奇怪,只有曲率能满足要求,x,y,theta都与目标值相差很大。
The text was updated successfully, but these errors were encountered: