Repository navigation
feat(scenario): 新增前车切出遇静止车辆场景 - #139
Merged
donghaiwang merged 1 commit intoNov 18, 2026
Merged
Conversation
新增 cut_out 模板(AEB cut-out)与语义路由。
Dame-time-0034
force-pushed
the
feat/scenario-cut-out
branch
from
November 17, 2026 11:03
058b0e3 to
30de803
Compare
donghaiwang
approved these changes
Nov 18, 2026
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
依赖
本 PR 以 #137(借道超车遇对向来车)的分支为基线,合并后会自动改指 main。
改动内容
新增场景模板
cut_out:前车变道让出本车道,露出正前方的静止车辆,自车按相对距离制动停车。对应 AEB 的 cut-out 测试。
scenario_templates.pybuild_cut_out:3 实体(ego / lead / stopped)、5 条 behaviors、5 个 triggers;
lead在lc_delay后变道让出本车道,自车与stopped中心距小于
brake_gap时线性制动到 0。_BUILDERS与TEMPLATES,参数区间保证静止车在切出时已进入视野、且制动距离足够停车。
scenario_intents.pycut_out别名(前车切出、变道露出、露出前方、前方停着等)与组合加权(变道+露出、变道+故障车、前方+停着)。
lead_brake。scenario_ir.py/scenario_preflight.pyParamRange新增string类型(自由字符串,如地图roadId),预检对字符串参数放行,不再要求数值范围。
_veh支持road_id;cut_out新增s0、road_id、lane参数,可在
Town03/Town10HD_Opt上指定同向至少两条车道的长直路段。验证
cut_out为 3 实体 / 5 事件。cut_out(53.48);cut_out;lead_brake(17.9),未被抢走。wide_straight,960×540,ClearNoon):road_id=12 / lane=-2 / s0=30构建后 xosc 中roadId="12"、laneId="-2"、s="30"均正确,3 实体 / 5 事件,unsupported=0;预检放行字符串
road_id,lane=-9被拒绝。roadId=1在城市地图上试跑时,Town10HD_Opt 的该路段有路边静态摩托车,自车 1.8 s 被撞停且制动未触发;因此城市路段改由调用方显式指定。