@@ -127,7 +127,7 @@ void StartPlannerModule::initVariables()
127
127
resetPathReference ();
128
128
debug_marker_.markers .clear ();
129
129
initializeSafetyCheckParameters ();
130
- initializeCollisionCheckDebugMap (start_planner_data_ .collision_check );
130
+ initializeCollisionCheckDebugMap (debug_data_ .collision_check );
131
131
updateDrivableLanes ();
132
132
}
133
133
@@ -592,8 +592,8 @@ void StartPlannerModule::planWithPriority(
592
592
if (findPullOutPath (
593
593
start_pose_candidates[index ], planner, refined_start_pose, goal_pose,
594
594
collision_check_margin)) {
595
- start_planner_data_ .selected_start_pose_candidate_index = index ;
596
- start_planner_data_ .margin_for_start_pose_candidate = collision_check_margin;
595
+ debug_data_ .selected_start_pose_candidate_index = index ;
596
+ debug_data_ .margin_for_start_pose_candidate = collision_check_margin;
597
597
return ;
598
598
}
599
599
}
@@ -851,8 +851,8 @@ void StartPlannerModule::updatePullOutStatus()
851
851
start_pose_candidates, *refined_start_pose, goal_pose, parameters_->search_priority );
852
852
}
853
853
854
- start_planner_data_ .refined_start_pose = *refined_start_pose;
855
- start_planner_data_ .start_pose_candidates = start_pose_candidates;
854
+ debug_data_ .refined_start_pose = *refined_start_pose;
855
+ debug_data_ .start_pose_candidates = start_pose_candidates;
856
856
const auto pull_out_lanes = start_planner_utils::getPullOutLanes (
857
857
planner_data_, planner_data_->parameters .backward_path_length + parameters_->max_back_distance );
858
858
@@ -1200,13 +1200,12 @@ bool StartPlannerModule::isSafePath() const
1200
1200
status_.is_safe_dynamic_objects ? 1.0 : safety_check_params_->hysteresis_factor_expand_rate ;
1201
1201
1202
1202
behavior_path_planner::updateSafetyCheckDebugData (
1203
- start_planner_data_ , filtered_objects, target_objects_on_lane, ego_predicted_path);
1203
+ debug_data_ , filtered_objects, target_objects_on_lane, ego_predicted_path);
1204
1204
1205
1205
return behavior_path_planner::utils::path_safety_checker::checkSafetyWithRSS (
1206
1206
pull_out_path, ego_predicted_path, target_objects_on_lane.on_current_lane ,
1207
- start_planner_data_.collision_check , planner_data_->parameters ,
1208
- safety_check_params_->rss_params , objects_filtering_params_->use_all_predicted_path ,
1209
- hysteresis_factor);
1207
+ debug_data_.collision_check , planner_data_->parameters , safety_check_params_->rss_params ,
1208
+ objects_filtering_params_->use_all_predicted_path , hysteresis_factor);
1210
1209
}
1211
1210
1212
1211
bool StartPlannerModule::isGoalBehindOfEgoInSameRouteSegment () const
@@ -1393,7 +1392,7 @@ void StartPlannerModule::setDebugData()
1393
1392
add (createPoseMarkerArray (status_.pull_out_path .start_pose , " start_pose" , 0 , 0.3 , 0.9 , 0.3 ));
1394
1393
add (createPoseMarkerArray (status_.pull_out_path .end_pose , " end_pose" , 0 , 0.9 , 0.9 , 0.3 ));
1395
1394
add (createFootprintMarkerArray (
1396
- start_planner_data_ .refined_start_pose , vehicle_info_, " refined_start_pose" , 0 , 0.9 , 0.9 , 0.3 ));
1395
+ debug_data_ .refined_start_pose , vehicle_info_, " refined_start_pose" , 0 , 0.9 , 0.9 , 0.3 ));
1397
1396
add (createPathMarkerArray (getFullPath (), " full_path" , 0 , 0.0 , 0.5 , 0.9 ));
1398
1397
add (createPathMarkerArray (status_.backward_path , " backward_driving_path" , 0 , 0.0 , 0.9 , 0.0 ));
1399
1398
@@ -1438,14 +1437,13 @@ void StartPlannerModule::setDebugData()
1438
1437
visualization_msgs::msg::Marker::TEXT_VIEW_FACING, createMarkerScale (0.3 , 0.3 , 0.3 ), purple);
1439
1438
footprint_marker.lifetime = rclcpp::Duration::from_seconds (1.5 );
1440
1439
text_marker.lifetime = rclcpp::Duration::from_seconds (1.5 );
1441
- for (size_t i = 0 ; i < start_planner_data_ .start_pose_candidates .size (); ++i) {
1440
+ for (size_t i = 0 ; i < debug_data_ .start_pose_candidates .size (); ++i) {
1442
1441
footprint_marker.id = i;
1443
1442
text_marker.id = i;
1444
1443
footprint_marker.points .clear ();
1445
1444
text_marker.text = " idx[" + std::to_string (i) + " ]" ;
1446
- text_marker.pose = start_planner_data_.start_pose_candidates .at (i);
1447
- addFootprintMarker (
1448
- footprint_marker, start_planner_data_.start_pose_candidates .at (i), vehicle_info_);
1445
+ text_marker.pose = debug_data_.start_pose_candidates .at (i);
1446
+ addFootprintMarker (footprint_marker, debug_data_.start_pose_candidates .at (i), vehicle_info_);
1449
1447
start_pose_footprint_marker_array.markers .push_back (footprint_marker);
1450
1448
start_pose_text_marker_array.markers .push_back (text_marker);
1451
1449
}
@@ -1489,29 +1487,29 @@ void StartPlannerModule::setDebugData()
1489
1487
1490
1488
// safety check
1491
1489
if (parameters_->safety_check_params .enable_safety_check ) {
1492
- if (start_planner_data_ .ego_predicted_path .size () > 0 ) {
1490
+ if (debug_data_ .ego_predicted_path .size () > 0 ) {
1493
1491
const auto & ego_predicted_path = utils::path_safety_checker::convertToPredictedPath (
1494
- start_planner_data_ .ego_predicted_path , ego_predicted_path_params_->time_resolution );
1492
+ debug_data_ .ego_predicted_path , ego_predicted_path_params_->time_resolution );
1495
1493
add (createPredictedPathMarkerArray (
1496
1494
ego_predicted_path, vehicle_info_, " ego_predicted_path_start_planner" , 0 , 0.0 , 0.5 , 0.9 ));
1497
1495
}
1498
1496
1499
- if (start_planner_data_ .filtered_objects .objects .size () > 0 ) {
1497
+ if (debug_data_ .filtered_objects .objects .size () > 0 ) {
1500
1498
add (createObjectsMarkerArray (
1501
- start_planner_data_ .filtered_objects , " filtered_objects" , 0 , 0.0 , 0.5 , 0.9 ));
1499
+ debug_data_ .filtered_objects , " filtered_objects" , 0 , 0.0 , 0.5 , 0.9 ));
1502
1500
}
1503
1501
1504
- add (showSafetyCheckInfo (start_planner_data_ .collision_check , " object_debug_info" ));
1505
- add (showPredictedPath (start_planner_data_ .collision_check , " ego_predicted_path" ));
1506
- add (showPolygon (start_planner_data_ .collision_check , " ego_and_target_polygon_relation" ));
1502
+ add (showSafetyCheckInfo (debug_data_ .collision_check , " object_debug_info" ));
1503
+ add (showPredictedPath (debug_data_ .collision_check , " ego_predicted_path" ));
1504
+ add (showPolygon (debug_data_ .collision_check , " ego_and_target_polygon_relation" ));
1507
1505
1508
1506
// set objects of interest
1509
- for (const auto & [uuid, data] : start_planner_data_ .collision_check ) {
1507
+ for (const auto & [uuid, data] : debug_data_ .collision_check ) {
1510
1508
const auto color = data.is_safe ? ColorName::GREEN : ColorName::RED;
1511
1509
setObjectsOfInterestData (data.current_obj_pose , data.obj_shape , color);
1512
1510
}
1513
1511
1514
- initializeCollisionCheckDebugMap (start_planner_data_ .collision_check );
1512
+ initializeCollisionCheckDebugMap (debug_data_ .collision_check );
1515
1513
}
1516
1514
1517
1515
// Visualize planner type text
0 commit comments