19
19
#include " autoware/behavior_path_planner_common/interface/scene_module_interface.hpp"
20
20
#include " autoware/behavior_path_planner_common/interface/scene_module_visitor.hpp"
21
21
#include " autoware/behavior_path_planner_common/marker_utils/utils.hpp"
22
+ #include " autoware/behavior_path_planner_common/utils/path_safety_checker/safety_check.hpp"
22
23
23
24
#include < autoware_utils/ros/marker_helper.hpp>
24
25
#include < autoware_utils/system/time_keeper.hpp>
@@ -410,9 +411,11 @@ void LaneChangeInterface::updateSteeringFactorPtr(const BehaviorModuleOutput & o
410
411
return PlanningFactor::UNKNOWN;
411
412
});
412
413
414
+ const auto & lane_change_debug = module_type_->getDebugData ();
413
415
planning_factor_interface_->add (
414
416
start_distance, finish_distance, status.lane_change_path .info .shift_line .start ,
415
- status.lane_change_path .info .shift_line .end , planning_factor_direction, SafetyFactorArray{});
417
+ status.lane_change_path .info .shift_line .end , planning_factor_direction,
418
+ utils::path_safety_checker::to_safety_factor_array (lane_change_debug.collision_check_objects ));
416
419
}
417
420
418
421
void LaneChangeInterface::updateSteeringFactorPtr (
@@ -425,9 +428,11 @@ void LaneChangeInterface::updateSteeringFactorPtr(
425
428
return PlanningFactor::SHIFT_RIGHT;
426
429
});
427
430
431
+ const auto & lane_change_debug = module_type_->getDebugData ();
428
432
planning_factor_interface_->add (
429
433
output.start_distance_to_path_change , output.finish_distance_to_path_change ,
430
434
selected_path.info .shift_line .start , selected_path.info .shift_line .end ,
431
- planning_factor_direction, SafetyFactorArray{});
435
+ planning_factor_direction,
436
+ utils::path_safety_checker::to_safety_factor_array (lane_change_debug.collision_check_objects ));
432
437
}
433
438
} // namespace autoware::behavior_path_planner
0 commit comments