-
Notifications
You must be signed in to change notification settings - Fork 142
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
为什么这里一定要在end_psi < 70 * M_PI / 180这种情况下设定这个最后一个路径点的朝向角偏差 #28
Comments
这个是因为在frenet坐标系下建模的,要是角度大于90度,可能就需要折返的path,就办不到了,70度就是设置了一个接近90度的数值, |
// Collision. |
还有就是我看你的cost函数里面针对i < precise_planning_size_和i > precise_planning_size_都有设置松弛变量,i > precise_planning_size_的松弛变量,我并没有在约束中看到,你这个的作用是什么呀 |
哦哦,我懂了,你这个i > precise_planning_size_的松弛变量也在约束中体现,只不过系数是1,也只是一个而已,所以不用居正表示 |
// End state.
(*lower_bound)(end_state_idx) = -1.0; //-OsqpEigen::INFTY;
(*upper_bound)(end_state_idx) = 1.0; //OsqpEigen::INFTY;
(*lower_bound)(end_state_idx + 1) = -OsqpEigen::INFTY;
(*upper_bound)(end_state_idx + 1) = OsqpEigen::INFTY;
if (FLAGS_constraint_end_heading && reference_path_.isBlocked() == nullptr) {
double end_psi = constrainAngle(vehicle_state_.getTargetState().heading - ref_states.back().heading);
if (end_psi < 70 * M_PI / 180) {
(*lower_bound)(end_state_idx + 1) = end_psi - 0.087; // 5 degree.
(*upper_bound)(end_state_idx + 1) = end_psi + 0.087;
}
}
大佬咨询以下,为什么这里一定要在end_psi < 70 * M_PI / 180这种情况下设定这个最后一个路径点的朝向角偏差,这个条件有什么作用呀,还有就是最后一个路径点的横向偏差在-1到1范围内,能不能把这个给调小一点
The text was updated successfully, but these errors were encountered: