This code was specifically designed for the RoboMaster robot competition and serves as my personal learning record. Python was chosen as the main programming language for its fast development efficiency and learning convenience. Please note that due to limited personal energy and time, some of the code may be difficult to read and not fully optimized. Your understanding is greatly appreciated
- 1. Main Functions
- 2. Effect Display
- 3. Environment
- 4. Frame
- 5. Scheme
- 6. Communication Protocol
- 7. Configuration and Debugging
- 8. To Conclude
Functions | |
---|---|
Armor Detector | Find armor of enemy robot |
Rune Detector | Still need to be updated-2023 |
Angle Transformation | get the Angle of aim point |
Camera Driver | The industrial camera driver of Hikvision |
Serial | Communicate with stm32 |
Parameter Configuration | Adjusting internal parameter |
This is a clip of great effect, but the real effect will fluctuate
Hardware | Version |
---|---|
MiniPC | iru-i5 8250u |
Industrial Camera | MV-CA013-A0UMUC |
Lens | 6mm |
Software | Version |
---|---|
OS | Ubuntu18.04 |
Library | pyserial3.5 |
Library | opencv-python4.6.0.66 |
│ ArmorDetector.py (装甲板检测)
│ DataConnect.py (上下位机通讯)
│ DataParam.py (内部参数设置)
│ get_pose.py (获取里程计信息)
│ globalVar.py
│ hik2cv.py (海康相机SDK)
│ hikcam_param.txt (相机参数)
│ launch.py (启动文件)
│ PointTransformation.py (角度解算)
│ readme.md
│ TrackKF_2D.py (卡尔曼)
│ usb2cv.py (普通相机)
|
├─MvImport (海康相机库)
├─TestImage
├─DisplayVideo
Waiting for update
-
Img preprocessing
-
Light strip detection
-
Light strip matching
-
digital recognition
-
Target Armor selection