Skip to content

Commit

Permalink
feat(obstacle_cruise_planner): fix stop condition (tier4#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
purewater0901 authored and boyali committed Oct 19, 2022
1 parent 71d35d2 commit 60289a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/obstacle_cruise_planner/src/planner_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Trajectory PlannerInterface::generateStopTrajectory(
// Get Closest Stop Obstacle
const auto closest_stop_obstacle =
obstacle_cruise_utils::getClosestStopObstacle(planner_data.traj, planner_data.target_obstacles);
if (!closest_stop_obstacle && closest_stop_obstacle->collision_points.empty()) {
if (!closest_stop_obstacle || closest_stop_obstacle->collision_points.empty()) {
// delete marker
const auto markers =
motion_utils::createDeletedStopVirtualWallMarker(planner_data.current_time, 0);
Expand Down

0 comments on commit 60289a9

Please sign in to comment.