Skip to content

Commit 55c52af

Browse files
fix(obstacle_stop): add vector size guard (#6254)
* add guard Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
1 parent 74d106e commit 55c52af

File tree

1 file changed

+2
-0
lines changed
  • planning/obstacle_stop_planner/src

1 file changed

+2
-0
lines changed

planning/obstacle_stop_planner/src/node.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1548,6 +1548,8 @@ void ObstacleStopPlannerNode::filterObstacles(
15481548
const PredictedObjects & input_objects, const Pose & ego_pose, const TrajectoryPoints & traj,
15491549
const double dist_threshold, PredictedObjects & filtered_objects)
15501550
{
1551+
if (traj.size() < 2) return;
1552+
15511553
filtered_objects.header = input_objects.header;
15521554

15531555
for (auto & object : input_objects.objects) {

0 commit comments

Comments
 (0)