Repository navigation
无人车防泡水系统 - #3892
Closed
shengzhanpeng wants to merge 13 commits into
Closed
无人车防泡水系统#3892shengzhanpeng wants to merge 13 commits into
shengzhanpeng wants to merge 13 commits into
Conversation
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.
修改概述:
给无人车地盘安装一个能测量水深的器件以后。当器件测量水深为0到5厘米时,系统显示安全两个绿色的字。当器件测量水深为五厘米以上,系统显示注意安全,四个红色的字。
修改的详细描述
1.从模拟的水深传感器获取数据(实际项目可替换为硬件串口 / 总线读取逻辑)
2.根据水深阈值(0-5cm 安全,>5cm 预警)切换显示文字内容与颜色
3.在 CARLA 渲染窗口的固定位置绘制可视化文本
经过了什么样的测试?
1.启动 CARLA 模拟器:./CarlaUE4.sh(Linux)或 CarlaUE4.exe(Windows)
2.在 PyCharm 中直接运行该代码
3.窗口会实时显示无人车视角和防泡水状态,水深超过 5cm 时文字变为红色 “注意安全”
运行效果
动图、视频、截图等
2025-12-19.162351.mp4