Repository navigation
在道路上添加障碍物 - #4503
Merged
Merged
在道路上添加障碍物#4503
Conversation
donghaiwang
approved these changes
Dec 22, 2025
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.
修改概述:
修改的详细描述
主要修改:
添加了spawn_obstacles函数:用于在道路上生成障碍物
支持生成车辆障碍物(静止车辆)
支持生成静态箱子障碍物
障碍物生成在主车辆前方20-50米范围内
随机选择障碍物类型和位置
障碍物类型:
车辆障碍物:vehicle.audi.tt, vehicle.mercedes.coupe, vehicle.nissan.micra等
静态障碍物:static.prop.box(箱子)
障碍物设置:
车辆障碍物设置为静止(刹车状态)
自动避障需要MPC控制器支持,当前版本仅用于碰撞检测
清理障碍物:在模拟结束时,自动销毁所有生成的障碍物
随机化:使用随机选择障碍物类型和位置,增加场景多样性
经过了什么样的测试?
运行效果
动图、视频、截图等
