Repository navigation
更新README.md #4327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
更新README.md #4327
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
e84d4f5
提交main.py文件
a2350d9
Merge branch 'OpenHUTB:main' into main
Liyang2302 938de18
增加第一人称视角
5f2b01e
增加第一视角
7f5525f
Merge branch 'OpenHUTB:main' into main
Liyang2302 6032ef7
增加车辆状态信息显示
c849192
Merge branch 'OpenHUTB:main' into main
Liyang2302 2218a0f
增加自主控制与路径跟随
f558ec6
Merge branch 'OpenHUTB:main' into main
Liyang2302 b1a8426
解决了多个入口脚本问题
46fca0d
Merge branch 'OpenHUTB:main' into main
Liyang2302 0443fc2
Merge branch 'OpenHUTB:main' into main
Liyang2302 ff2f353
Merge branch 'OpenHUTB:main' into main
Liyang2302 9768bf1
增加自主控制与路径跟随
7bbdf3d
Merge branch 'OpenHUTB:main' into main
Liyang2302 e4c440b
实现弯道自适应转向
c4bcb26
Merge branch 'OpenHUTB:main' into main
Liyang2302 85e2c10
实现弯道自适应转向
8f9ab62
Merge branch 'OpenHUTB:main' into main
Liyang2302 51bb9b3
实现车辆沿道路的自主航点跟踪
b548d08
Merge branch 'OpenHUTB:main' into main
Liyang2302 3edfc11
实现车辆自主道路航点跟随
aaedf77
Merge branch 'OpenHUTB:main' into main
Liyang2302 9c79eec
增加避障控制
939dc5f
Merge branch 'OpenHUTB:main' into main
Liyang2302 3286110
增加了交通信号灯响应
2543c53
Merge branch 'OpenHUTB:main' into main
Liyang2302 914f120
多车辆协同控制
cee1f83
Merge branch 'OpenHUTB:main' into main
Liyang2302 63165f8
更新README.md
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,94 @@ | ||
| CARLA 模拟器和自动驾驶基础算法学习 | ||
| CARLA 模拟器和自动驾驶基础算法学习 | ||
|
|
||
|
|
||
|
|
||
| \# 无人驾驶汽车项目(基于CARLA模拟器) | ||
|
|
||
| \## 项目简介 | ||
|
|
||
| 本项目是基于CARLA开源仿真平台、Python和PyCharm开发的无人驾驶仿真系统,融合计算机视觉、路径规划与控制技术,实现虚拟场景中车辆的自主导航、避障与路径跟踪功能,适用于自动驾驶入门实践。 | ||
|
|
||
|
|
||
|
|
||
| \## 核心功能 | ||
|
|
||
| \- 路径规划:A\*算法、RRT/RRT\*算法实现起点到终点路径生成 | ||
|
|
||
| \- 障碍物检测:YOLOv8+OpenCV实时识别目标,激光雷达点云聚类定位 | ||
|
|
||
| \- 车辆控制:PID控制器实现转向、速度精准控制 | ||
|
|
||
| \- CARLA交互:加载场景、获取传感器数据(摄像头/激光雷达等)、发送控制指令 | ||
|
|
||
| \- 实时可视化:PyGame显示场景、车辆状态与检测结果 | ||
|
|
||
|
|
||
|
|
||
| \## 技术栈 | ||
|
|
||
| | 类别 | 具体技术/工具 | | ||
|
|
||
| |--------------|---------------------------------------| | ||
|
|
||
| | 开发环境 | PyCharm Community Edition 2024+、Windows/Linux | | ||
|
|
||
| | 核心语言 | Python 3.8+ | | ||
|
|
||
| | 仿真平台 | CARLA 0.9.15/0.9.16、CARLA Python API | | ||
|
|
||
| | 计算机视觉 | OpenCV、NumPy、YOLOv8(Ultralytics) | | ||
|
|
||
| | 路径规划 | A\*、RRT/RRT\*算法 | | ||
|
|
||
| | 控制理论 | PID控制器 | | ||
|
|
||
| | 可视化与数据 | PyGame、Matplotlib、Pandas | | ||
|
|
||
|
|
||
|
|
||
| \## 快速开始 | ||
|
|
||
| 1\. 克隆项目到PyCharm,创建Python 3.8+虚拟环境 | ||
|
|
||
| 2\. 安装依赖:`pip install -r requirements.txt`(核心依赖:carla、opencv-python、ultralytics、numpy、pygame) | ||
|
|
||
| 3\. 启动CARLA模拟器(运行`CarlaUE4.exe`/`CarlaUE4.sh`) | ||
|
|
||
| 4\. 运行主程序:`python main.py`,自动连接CARLA并启动自主导航 | ||
|
|
||
|
|
||
|
|
||
| \## 项目结构 | ||
|
|
||
| ``` | ||
|
|
||
| self-driving-car-carla/ | ||
|
|
||
| ├── carla\_client/ # CARLA连接与场景管理 | ||
|
|
||
| ├── perception/ # 目标检测与传感器数据处理 | ||
|
|
||
| ├── planning/ # 路径规划算法实现 | ||
|
|
||
| ├── control/ # PID控制逻辑 | ||
|
|
||
| ├── visualization/ # 实时可视化 | ||
|
|
||
| ├── utils/ # 工具函数 | ||
|
|
||
| ├── main.py # 项目入口 | ||
|
|
||
| └── requirements.txt # 依赖列表 | ||
|
|
||
| ``` | ||
|
|
||
|
|
||
|
|
||
| \## 常见问题 | ||
|
|
||
| \- CARLA连接失败:确保模拟器已启动,Python API版本与CARLA一致 | ||
|
|
||
| \- 检测速度慢:使用YOLOv8n轻量模型,或启用GPU加速 | ||
|
|
||
| \- 控制不稳定:调整PID参数或增加路径平滑处理 | ||
|
|
||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
和实际代码不符