Hw 02 gesture drone control#5449
Merged
donghaiwang merged 12 commits intoOpenHUTB:mainfrom Apr 18, 2026
Merged
Conversation
新增功能: - 添加 airsim_controller.py: AirSim 无人机控制器 - 添加 main_airsim.py: AirSim 真实模拟器版本 - 更新 README.md: 添加 AirSim 使用说明 功能特性: - 支持连接 Microsoft AirSim 模拟器 - 实现起飞、降落、悬停、移动控制 - 保持原有手势识别功能 - 支持键盘控制(空格/T/L/H/Q) 使用说明: - 本地仿真:python main.py - AirSim 模式:python main_airsim.py - 需要先运行 AirSim 模拟器
新增文档: - 运行指南.md: 详细的中文运行说明 - 运行_本地仿真.bat: 本地仿真一键启动 - 运行_AirSim 版.bat: AirSim 一键启动(含检查) 使用说明: - 新手:双击 运行_本地仿真.bat - AirSim: 双击 运行_AirSim 版.bat - 包含完整的控制说明和故障排除
514081f to
069e2bf
Compare
donghaiwang
approved these changes
Apr 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.
修改概述:
修改的详细描述
main_airsim.py中的手势检测器从EnhancedGestureDetector改为GestureDetector,因为前者在规则检测模式下分类逻辑为空,导致所有手势都返回固定值cv2.flip(frame, 1)),让手势操作更自然detector.get_command(gesture)获取命令映射,确保与仿真逻辑一致run_airsim.bat,移除在PowerShell环境下不兼容的批处理语法经过了什么样的测试?
运行效果
修改前后对比:
截图说明: