Progress:
Changes

Summary

  1. fix: 空Path取点断言与退化lane segment构造CHECK线上崩溃, 改优雅降级 (details)
  2. fix: Path/DiscretizedPath 空与单点场景既有隐患修复 (details)
Commit 42056f95c73509f3f58d61530894685e20a604d4 by wuyanjun110
fix: 空Path取点断言与退化lane segment构造CHECK线上崩溃, 改优雅降级

- Path::GetIndexFromS/GetSmoothPoint 空路径不再fatal, 返回默认值并记ERROR日志
- PncMapPath lane segment构造函数点数不足2时清空path_points_留无效path,
  下游经IsAvailable安全降级, 不再CHECK崩进程
The file was modifieddata/map/pnc_map/pnc_map_path.cpp
The file was modifieddata/common/path.cpp
Commit 511e2bf053a7c68b76ae177ef28fd9cf9e4ae056 by wuyanjun110
fix: Path/DiscretizedPath 空与单点场景既有隐患修复

- Path::Reset 补清 length_/num_sample_points_, 防复位后陈旧值残留
- path.hpp 给 num_sample_points_/length_ 加类内默认值, 防默认构造读未初始化垃圾
- Path::InitPoints 单点路径不再越界访问 path_pts_[-1]
- DiscretizedPath::GetPathPtFromS/GetPathPtIdxFromS 空容器 front() UB 改空判降级,
  Evaluate/EvaluateReverse 的 CHECK(!empty()) fatal 同步改 LOG(ERROR)+默认点
The file was modifieddata/common/path_point.cpp
The file was modifieddata/common/path.hpp
The file was modifieddata/common/path.cpp