Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Nov 29, 2022
1 parent 0f6b0c6 commit 5287cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/obstacle_avoidance_planner/src/mpt_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ boost::optional<MPTOptimizer::MPTTrajs> MPTOptimizer::getModelPredictiveTrajecto
// NOTE: Sometimes optimization failed without failed status.
// Therefore, we have to check if optimization was solved correctly by the result.
constexpr double max_lateral_deviation = 3.0;
for (const double lateral_error : debug_data_ptr->lateral_errors) {
for (const double lateral_error : debug_data.lateral_errors) {
if (max_lateral_deviation < std::abs(lateral_error)) {
return boost::none;
}
Expand Down

0 comments on commit 5287cba

Please sign in to comment.