Skip to content

Commit

Permalink
Merge pull request autowarefoundation#72 from tier4/chore/cherry-pick…
Browse files Browse the repository at this point in the history
…-bug-fixes

Chore/cherry pick bug fixes
  • Loading branch information
TomohitoAndo authored Jun 23, 2022
2 parents c29682f + 640deb3 commit f2fffee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions planning/obstacle_avoidance_planner/src/mpt_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ std::vector<ReferencePoint> MPTOptimizer::getReferencePoints(
traj_param_.num_sampling_points * mpt_param_.delta_arc_length_for_mpt_points +
tmp_ref_points_margin;
ref_points = points_utils::clipForwardPoints(ref_points, 0, ref_length_with_margin);
if (ref_points.empty()) {
return std::vector<ReferencePoint>{};
}

// set bounds information
calcBounds(ref_points, enable_avoidance, maps, prev_trajs, debug_data_ptr);
Expand Down
4 changes: 4 additions & 0 deletions planning/obstacle_avoidance_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,10 @@ void ObstacleAvoidancePlanner::insertZeroVelocityOutsideDrivableArea(
std::vector<autoware_auto_planning_msgs::msg::TrajectoryPoint> & traj_points,
const CVMaps & cv_maps)
{
if (traj_points.empty()) {
return;
}

stop_watch_.tic(__func__);

const auto & map_info = cv_maps.map_info;
Expand Down

0 comments on commit f2fffee

Please sign in to comment.