Skip to content

为什么这里一定要在end_psi < 70 * M_PI / 180这种情况下设定这个最后一个路径点的朝向角偏差 #28

@james1kobby

Description

@james1kobby

// 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范围内,能不能把这个给调小一点

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions