Skip to content

Commit

Permalink
perf: intersection remove debug verbose
Browse files Browse the repository at this point in the history
Signed-off-by: taikitanaka3 <taiki.tanaka@tier4.jp>
  • Loading branch information
taikitanaka3 committed Jun 26, 2022
1 parent bf71747 commit 4710803
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 4710803

Please sign in to comment.