Skip to content

Commit

Permalink
feat(start_planner): output objects of interest (autowarefoundation#6078
Browse files Browse the repository at this point in the history
)

* feat(start_planner): output objects of interest

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

* style(pre-commit): autofix

---------

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and karishma1911 committed May 28, 2024
1 parent 6550b85 commit a8d6ca2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class StartPlannerModule : public SceneModuleInterface
void onFreespacePlannerTimer();
bool planFreespacePath();

void setDebugData() const;
void setDebugData();
void logPullOutStatus(rclcpp::Logger::Level log_level = rclcpp::Logger::Level::Info) const;
};
} // namespace behavior_path_planner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ void StartPlannerModule::setDrivableAreaInfo(BehaviorModuleOutput & output) cons
}
}

void StartPlannerModule::setDebugData() const
void StartPlannerModule::setDebugData()
{
using marker_utils::addFootprintMarker;
using marker_utils::createFootprintMarkerArray;
Expand Down Expand Up @@ -1432,6 +1432,13 @@ void StartPlannerModule::setDebugData() const
add(showSafetyCheckInfo(start_planner_data_.collision_check, "object_debug_info"));
add(showPredictedPath(start_planner_data_.collision_check, "ego_predicted_path"));
add(showPolygon(start_planner_data_.collision_check, "ego_and_target_polygon_relation"));

// set objects of interest
for (const auto & [uuid, data] : start_planner_data_.collision_check) {
const auto color = data.is_safe ? ColorName::GREEN : ColorName::RED;
setObjectsOfInterestData(data.current_obj_pose, data.obj_shape, color);
}

initializeCollisionCheckDebugMap(start_planner_data_.collision_check);
}

Expand Down

0 comments on commit a8d6ca2

Please sign in to comment.