Skip to content

新增激光雷达3D点云可视化(颜色编码) - #4622

Merged
donghaiwang merged 11 commits into
OpenHUTB:mainfrom
Pan-j-l:main
Dec 24, 2025
Merged

donghaiwang merged 11 commits into
OpenHUTB:mainfrom
Pan-j-l:main

Conversation

@Pan-j-l

@Pan-j-l Pan-j-l commented Dec 24, 2025

Copy link
Copy Markdown
Contributor

修改的详细描述

  1. 新增 Lidar3DVisualizer 类,实现激光雷达3D点云的透视投影渲染、鼠标交互(拖拽旋转/滚轮缩放);
  2. 改造 CarlaEnvironment 类的 process_lidar 方法,新增 raw_lidar_queue 保存原始点云数据(x/y/z/intensity),不改动原有2D距离计算逻辑;
  3. 增加距离颜色编码:0-10m(红色/高风险)、10-30m(黄色/中距)、30-50m(绿色/低风险),贴合自动驾驶感知场景。

经过了什么样的测试?

  1. 操作系统:Windows 11 专业版(22H2)
  2. Python版本:3.7.5(VSCode虚拟环境,依赖包版本:gym==0.21.0、carla==0.9.11、pygame==2.1.0、numpy==1.21.6)
  3. CARLA版本:0.9.11(本地模拟器,同步模式开启,60FPS固定帧率)

运行结果:
88e4ed7cec2c42ab14a19a25d12df39e

@donghaiwang
donghaiwang merged commit ed3d78f into OpenHUTB:main Dec 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants