APOLLO规划算法Lattice plan算法学习

    最近在看百度阿波罗的动态规划算法,当前版本主要使用的是lattice plan,2.0版本使用的是EM plan,本篇文章主要记录Lattice plan算法:

Lattice planner程序入口:

Status LatticePlanner::PlanOnReferenceLine(
    const TrajectoryPoint& planning_init_point, Frame* frame,
    ReferenceLineInfo* reference_line_info)

    在lattice_planner.cc文件中,通过for循环进入规划,执行函数为PlanOnReferenceLine.该函数具体执行流程如下:

    1.获得当前参考线(车辆未来轨迹),并通过TodiscretizedReferenceLine进行参考线的离散化.

  auto ptr_reference_line =
      std::make_shared<std::vector<PathPoint>>(ToDiscretizedReferenceLine(
          reference_line_info->reference_line().reference_points()));

    2.使用规划原点匹配第一步离散化后的轨迹,找出匹配点matched_point。

  PathPoint matched_point = PathMatcher::MatchToPath(
      *ptr_reference_line, planning_init_point.path_point().x(),
      planning_init_point.path_point().y());

    3.使用ComputeInitFrenetState计算当前状态下,Frenet坐标系下的点,S和D值,横向速度,纵向速度等。

ComputeInitFrenetState(matched_point, planning_init_point, &init_s, &init_d);

    4.加入感知信息,将之前感知模块内容加入到path_time_grapth,也就是所谓的ST-graph

auto ptr_predictio
  • 9
    点赞
  • 54
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值