Skip to content

Commit

Permalink
fix:unreadVariable
Browse files Browse the repository at this point in the history
Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 committed Aug 5, 2024
1 parent 082ba87 commit 0eb590a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions planning/autoware_path_optimizer/src/mpt_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,9 @@ MPTOptimizer::ConstraintMatrix MPTOptimizer::calcConstraintMatrix(
lb(A_rows_end + i) = ref_steer_angle - mpt_param_.max_steer_rad;
ub(A_rows_end + i) = ref_steer_angle + mpt_param_.max_steer_rad;
}

// cppcheck-suppress unreadVariable
A_rows_end += N_u;
}

return ConstraintMatrix{A, lb, ub};
Expand Down

0 comments on commit 0eb590a

Please sign in to comment.