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

fix(behavior_path_planner): fix unnecessary output of behavior_path_planner #1481

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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 @@ -96,9 +96,10 @@ class AvoidanceModule : public SceneModuleInterface
uuid_right_, isExecutionReady(), candidate.distance_to_path_change, clock_->now());
return;
}

RCLCPP_WARN_STREAM(
getLogger(), "Direction is UNKNOWN, distance = " << candidate.distance_to_path_change);
if (candidate.distance_to_path_change > 0.0) {
RCLCPP_WARN_STREAM(
getLogger(), "Direction is UNKNOWN, distance = " << candidate.distance_to_path_change);
}
}

void removeRTCStatus() override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2159,6 +2159,7 @@ CandidateOutput AvoidanceModule::planCandidate() const
{
DEBUG_PRINT("AVOIDANCE planCandidate start");
CandidateOutput output;
output.distance_to_path_change = 0.0;
Copy link
Contributor

@taikitanaka3 taikitanaka3 Aug 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shulanbushangshu
I think this line is not necessary.
because distance_to_path_change is initialized by {std::numeric_limits::lowest()}


auto path_shifter = path_shifter_;
auto debug_data = debug_data_;
Expand Down