Repository navigation
feat(player): 场景运行输出危险度指标(碰撞/间距/TTC/减速度) - #135
Merged
Merged
Conversation
- play() 返回 metrics:碰撞事件、最小中心距、最小 TTC、 最大减速度、自车末速 - 碰撞通过自车碰撞传感器采集,按实体去重 - summarize() 增加“危险度指标”输出,run_scenario_in_carla 直接复用该文本
以最新 main 为基线重放危险度指标改动,避免 PR diff 反向删除已合并内容。
donghaiwang
approved these changes
Nov 16, 2026
Member
|
危险场景尽量不要自己评价和构造,调用已有的工作更合适 |
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.
改动内容
play()现在除了截图和快照,还会返回一份危险度指标,summarize()对应新增“危险度指标”输出;
run_scenario_in_carla直接返回该文本,MCP 工具层无需改动。验证
occluded_crossing(CARLA 0.9.16,wide_straight):无碰撞,最小中心距 3.80 m、最小 TTC 1.41 s、最大减速度 5.78 m/s²、停于 0.04 m/s
cut_in_then_brake:碰撞识别为 t=7.35 s 与cutter,与人工观察一致