Skip to content

Commit

Permalink
docs(autoware_mpc_lateral_controller): update comments for state repr…
Browse files Browse the repository at this point in the history
…esentation and discretization considerations

Signed-off-by: kyoichi-sugahara <kyoichi.sugahara@tier4.jp>
  • Loading branch information
kyoichi-sugahara committed Mar 6, 2025
1 parent d844b62 commit a5bd7e7
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@ MPCTrajectory KinematicsBicycleModel::calculatePredictedTrajectoryInWorldCoordin
const MPCTrajectory & reference_trajectory, const double dt) const
{
// Calculate predicted state in world coordinate since there is modeling errors in Frenet
// Relative coordinate x = [lat_err, yaw_err, steer]
// World coordinate x = [x, y, yaw, steer]
// Relative coordinate state = [lat_err, yaw_err, steer]
// World coordinate state_w = [x, y, yaw]

// Note: Ideally, the first-order delay of the steering should be considered, as in the control
// model. However, significant accuracy degradation was observed when discretizing with a long dt,
// so it has been ignored here. If the accuracy of the discretization improves,an appropriate
// model should be considered.

const auto & t = reference_trajectory;

Expand Down

0 comments on commit a5bd7e7

Please sign in to comment.