TIAN-LEIDA-JIANCE/config/config.yaml

117 lines
3.8 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

=======
# 串口配置 - Ubuntu环境
port: "/dev/ttyUSB0" # Ubuntu环境使用ttyUSB端口
baud: 2000000 # SDK默认波特率
=======
# CLion远程开发配置
remote_development:
enable_auto_detection: true # 自动检测远程环境
optimize_for_network: true # 网络传输优化
reduce_render_quality: true # 降低渲染质量提高传输效率
simplified_grid: true # 使用简化网格
error_recovery: true # 启用错误恢复
max_render_errors: 10 # 最大渲染错误次数
x11_forwarding_check: true # 检查X11转发状态
# 显示配置
point_size: 4.0 # 增大点的大小便于观察
point_color: "red"
line_width: 3.0
show_grid: true
grid_size: 1.0
background_color: [0.0, 0.0, 0.0] # 黑色背景突出红色点云
# 渲染性能配置
rendering:
local_mode:
fps_target: 60 # 本地模式目标FPS
point_size_multiplier: 1.0 # 点大小倍数
enable_intensity_colors: true # 启用强度颜色
grid_density: "full" # 完整网格密度
remote_mode:
fps_target: 20 # 远程模式目标FPS
point_size_multiplier: 0.8 # 点大小倍数
enable_intensity_colors: false # 禁用强度颜色减少传输
grid_density: "simplified" # 简化网格密度
# Ubuntu环境优化
display: true
max_points_per_frame: 50000 # 增加最大点数
update_rate: 30 # 30Hz更新率
# 调试模式
debug_mode: true # 启用调试信息
# 坡面检测配置 - 新策略100米参数预警
slope_detection:
enable: true
crack_threshold: 100.0 # 100米深度阈值
min_crack_length: 100.0 # 100米长度阈值
height_diff_threshold: 0.08 # 保持8cm高度差检测敏感度
scan_width: 2.0 # 保持不变
# 遮挡检测配置 - 新策略20厘米预警
occlusion_detection:
enable: true
alert_distance: 0.20 # 20厘米预警距离0.20m = 20cm
occlusion_threshold: 0.20 # 20厘米遮挡检测阈值
min_occlusion_points: 1 # 降低到1个点即可检测
critical_distance: 0.20 # 20厘米严重遮挡距离
# 预警系统配置
alert:
enable_sound: true # 启用声音预警
enable_visual: true # 启用视觉预警
enable_voice: true # 启用语音播报
critical_flash_rate: 5 # 严重预警闪烁频率(Hz)
warning_flash_rate: 2 # 一般预警闪烁频率(Hz)
# 语音播报配置
voice_alert:
language: "zh-CN" # 中文语音
speed: 1.0 # 播报速度
volume: 0.8 # 音量
engine: "espeak" # 语音引擎 (espeak/festival/pico2wave)
repeat_interval: 3 # 重复播报间隔(秒)
# 图形界面配置
gui:
enable: true
auto_detect_environment: true # 自动检测图形环境
fallback_to_console: true # 图形界面失败时回退到控制台
window_size: [1024, 768] # 窗口大小
fullscreen: false # 是否全屏
# 可视化效果
visualization:
point_size: 2.0
background_color: [0.1, 0.1, 0.2] # 深蓝色背景
coordinate_system: true
grid_display: true
# 颜色方案
colors:
normal_points: [0.8, 0.8, 0.8] # 正常点云:浅灰色
crack_points: [1.0, 0.0, 0.0] # 裂缝点:红色
occlusion_points: [1.0, 0.5, 0.0] # 遮挡点:橙色
# 预警效果
alert_effects:
warning_flash_rate: 2 # 警告闪烁频率
critical_flash_rate: 4 # 严重警告闪烁频率
flash_colors:
warning: [1.0, 1.0, 0.0] # 黄色
critical: [1.0, 0.0, 0.0] # 红色
# 性能配置
performance:
target_fps: 30
max_points_display: 100000
point_cloud_downsampling: 0.01 # 体素滤波大小
# 远程显示优化
remote_display:
enable_compression: true
reduce_quality: true
simplified_rendering: true