Baidu Apollo代码解析之Lattice Planner

大家好,我已经把CSDN上的博客迁移到了知乎上,欢迎大家在知乎关注我的专栏慢慢悠悠小马车https://zhuanlan.zhihu.com/duangduangduang。希望大家可以多多交流,互相学习。


Apollo中提到了几种轨迹规划方法,这里简要介绍Lattice,主要思路可以参考这一篇博文,我为了自己方便理解代码,于是把代码的步骤和注释整理了。文件路径:apollo\modules\planning\planner\lattice\lattice_planner.cc。

  1. obtain a reference line and transform it to the PathPoint format.
  2. compute the matched point of the init planning point on the reference line.

  3. according to the matched point, compute the init state in Frenet frame.

  4. parse the decision and get the planning target.

  5. generate 1d trajectory bundle for longitudinal and lateral respectively.(Trajectory1dGenerator)

  6. first, evaluate the feasibility of the 1d trajectories according to dynamic constraints. second, evaluate the feasible longitudinal and lateral trajectory pairs and sort them according to the cost.(TrajectoryEvaluator)

  7. always get the best pair of trajectories to combine; return the first collision-free trajectory.(TrajectoryCombiner:combine two 1d trajectories to one 2d trajectory。ConstraintChecker:check longitudinal and lateral acceleration considering trajectory curvatures。CollisionChecker:check collision with other obstacles)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值