Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: intersection remove debug verbose #1172

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ bool getObjectiveLanelets(
*objective_lanelets_result = objective_lanelets_sequences;
*objective_lanelets_with_margin_result = objective_lanelets_with_margin;

// set this flag true when debugging
const bool is_debug = false;
if (!is_debug) return true;
std::stringstream ss_c, ss_y, ss_e, ss_o, ss_os;
for (const auto & l : conflicting_lanelets) {
ss_c << l.id() << ", ";
Expand All @@ -423,10 +426,10 @@ bool getObjectiveLanelets(
ss_os << ll.id() << ", ";
}
}
RCLCPP_DEBUG(
RCLCPP_INFO(
logger, "getObjectiveLanelets() conflict = %s yield = %s ego = %s", ss_c.str().c_str(),
ss_y.str().c_str(), ss_e.str().c_str());
RCLCPP_DEBUG(
RCLCPP_INFO(
logger, "getObjectiveLanelets() object = %s object_sequences = %s", ss_o.str().c_str(),
ss_os.str().c_str());
return true;
Expand Down