106 lines
2.8 KiB
YAML
106 lines
2.8 KiB
YAML
enemy_color: "red"
|
||
# enemy_color: "blue"
|
||
|
||
|
||
#####-----神经网络参数-----#####
|
||
yolo_name: yolov5
|
||
classify_model: assets/models/tiny_resnet.onnx
|
||
yolo11_model_path: assets/models/yolo11.xml
|
||
yolov8_model_path: assets/models/yolov8.xml
|
||
yolov5_model_path: assets/models/yolov5.xml
|
||
device: CPU
|
||
min_confidence: 0.8
|
||
use_traditional: true
|
||
|
||
#####-----ROI-----#####
|
||
roi:
|
||
x: 420
|
||
y: 50
|
||
width: 600
|
||
height: 600
|
||
|
||
use_roi: false
|
||
|
||
#####-----工业相机参数-----#####
|
||
rotate_180: false
|
||
camera_name: "mindvision"
|
||
exposure_ms: 8
|
||
gamma: 0.6
|
||
vid_pid: "f622:d13a"
|
||
|
||
#####-----USB相机参数-----#####
|
||
image_width: 640
|
||
image_height: 360
|
||
new_image_width: 1280
|
||
new_image_height: 720
|
||
fov_h: 87.7
|
||
fov_v: 56.7
|
||
new_fov_h: 67
|
||
new_fov_v: 40.9
|
||
usb_frame_rate: 100
|
||
usb_exposure: 315 #1-80000______250
|
||
usb_gamma: 160
|
||
usb_gain: 10 #0-96
|
||
|
||
|
||
#####-----传统方法参数-----#####
|
||
threshold: 150
|
||
max_angle_error: 45 # degree
|
||
min_lightbar_ratio: 1.5
|
||
max_lightbar_ratio: 20
|
||
min_lightbar_length: 8
|
||
min_armor_ratio: 1
|
||
max_armor_ratio: 5
|
||
max_side_ratio: 1.5
|
||
max_rectangular_error: 25 # degree
|
||
min_confidence: 0.8
|
||
|
||
#####-----cboard参数-----#####
|
||
quaternion_canid: 0x001
|
||
bullet_speed_canid: 0x110
|
||
send_canid: 0xff
|
||
can_interface: "can0"
|
||
|
||
#####-----tracker参数-----#####
|
||
min_detect_count: 5
|
||
max_temp_lost_count: 15
|
||
outpost_max_temp_lost_count: 150
|
||
|
||
#####-----aimer参数-----#####
|
||
yaw_offset: 0 # degree -2.5
|
||
pitch_offset: 1.5 # degree 2
|
||
comming_angle: 70 # degree
|
||
leaving_angle: 30 # degree
|
||
min_spin_speed: 2 # rad/s
|
||
decision_speed: 12 # rad/s
|
||
high_speed_delay_time: 0.005 # s
|
||
low_speed_delay_time: 0.005 # s
|
||
|
||
#####-----decider参数-----#####
|
||
mode: 1
|
||
|
||
#####-----shooter参数-----#####
|
||
first_tolerance: 2 # 近距离射击容差,degree
|
||
second_tolerance: 0.8 # 远距离射击容差,degree
|
||
judge_distance: 0.5 #距离判断阈值
|
||
auto_fire: true # 是否由自瞄控制射击
|
||
|
||
#####-----工业相机标定参数-----#####
|
||
R_gimbal2imubody: [1, 0, 0, 0, 1, 0, 0, 0, 1]
|
||
|
||
|
||
# 重投影误差: 0.0898px
|
||
camera_matrix: [1798.7099895400202, 0, 684.19918992969656, 0, 1796.3922446630108, 518.69958730895587, 0, 0, 1]
|
||
distort_coeffs: [-0.071257863313183595, 0.12680911204832926, -0.00040857684893118372, 0.00024631839497110973, 0]
|
||
|
||
# 相机同理想情况的偏角: yaw178.69 pitch-0.94 roll0.93 degree
|
||
# 标定板到世界坐标系原点的水平距离: 1.80 m
|
||
# 标定板同竖直摆放时的偏角: yaw-149.70 pitch4.40 roll4.02 degree
|
||
R_camera2gimbal: [-0.022834689599904982, 0.016744625574604668, -0.99959901683887342, 0.99960655377849394, -0.015908035926893712, -0.023101342732220788, -0.016288480406682074, -0.99973324037330835, -0.016374782402407043]
|
||
t_camera2gimbal: [-0.14646198800830063, -0.05254199849465014, 0.047644612585921703]
|
||
#####-----buff_detector参数-----#####
|
||
model: "assets/yolo11_buff_int8.xml"
|
||
|
||
#####-----buff_aimer参数-----#####
|
||
fire_gap_time: 0.600 # s
|
||
predict_time: 0.090 # s |