ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.18k stars 9.71k forks source link

planning on Frenet without kinematic constrain #10201

Open stdpython opened 4 years ago

stdpython commented 4 years ago

When planning on Frenet Frame, it seems impossible to add curvature constrain. And when Apollo optimizes the path, it does not add the curvature constrain. Only check whether the trajectory valid after the the trajectory generation. However, it just return an error msg if not valid.

I just want to know that why don't add the kinematic constrain as mentioned above?

PS: Lattice planner works fine with the problem, it generate many trajectories, which pass the kinematic constrain will be chosen.

LiJiangnanBit commented 4 years ago

I think there are constraints on the curvature. In function common::Status PiecewiseJerkPathOptimizer::Process, a vector ddl_bounds is calculated according to the curvature limit of the vehicle. And it is used as a constraint in the optimization process.