-
Notifications
You must be signed in to change notification settings - Fork 668
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
refactor(goal_planner): reduce call to isSafePath #8812
refactor(goal_planner): reduce call to isSafePath #8812
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
482e910
to
fcbfc60
Compare
Signed-off-by: Mamoru Sobue <[email protected]>
Signed-off-by: Mamoru Sobue <[email protected]>
Signed-off-by: Mamoru Sobue <[email protected]>
Signed-off-by: Mamoru Sobue <[email protected]>
Signed-off-by: Mamoru Sobue <[email protected]>
Signed-off-by: Mamoru Sobue <[email protected]>
9e8dad4
to
bc83821
Compare
Signed-off-by: Mamoru Sobue <[email protected]>
const auto & context_data = context_data_.has_value() | ||
? context_data_.value() | ||
: PullOverContextData(std::make_pair(true, true)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const auto & context_data = context_data_.has_value() | |
? context_data_.value() | |
: PullOverContextData(std::make_pair(true, true)); | |
const auto context_data = context_data_.has_value() | |
? context_data_.value() | |
: PullOverContextData(std::make_pair(true, true)); |
temporary object should not be bound
if ( | ||
hasDeviatedFromLastPreviousModulePath(local_planner_data) && | ||
// TODO(soblin): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please writer the details of todo
@@ -505,6 +516,9 @@ class GoalPlannerModule : public SceneModuleInterface | |||
// TODO(Mamoru Sobue): isSafePath() modifies ThreadSafeData::check_collision, avoid this mutable | |||
mutable ThreadSafeData thread_safe_data_; | |||
|
|||
// TODO(soblin): organize part of thread_safe_data and previous data to PullOverContextData |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree!
struct PreviousPullOverData
{
struct SafetyStatus
{
std::optional<rclcpp::Time> safe_start_time{};
bool is_safe{false};
};
void reset()
{
safety_status = SafetyStatus{};
deciding_path_status = DecidingPathStatusWithStamp{};
}
SafetyStatus safety_status{};
DecidingPathStatusWithStamp deciding_path_status{};
};
is similar to ContextData
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will move PreviousPullOverData later in coming PRs.
if (!context_data_) { | ||
RCLCPP_ERROR(getLogger(), " [pull_over] postProcess() is called without valid context_data"); | ||
} | ||
const auto & context_data = context_data_.has_value() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const auto & context_data = context_data_.has_value() | |
const auto context_data = context_data_.has_value() |
RCLCPP_ERROR( | ||
getLogger(), " [pull_over] planWaitingApproval() is called without valid context_data"); | ||
} | ||
const auto & context_data = context_data_.has_value() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const auto & context_data = context_data_.has_value() | |
const auto context_data = context_data_.has_value() |
Signed-off-by: Mamoru Sobue <[email protected]>
I applied suggestions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8812 +/- ##
==========================================
- Coverage 25.23% 25.22% -0.01%
==========================================
Files 1325 1329 +4
Lines 98827 98878 +51
Branches 39682 39691 +9
==========================================
+ Hits 24939 24943 +4
- Misses 71327 71378 +51
+ Partials 2561 2557 -4
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Description
depends #8795
Related links
How was this PR tested?
https://evaluation.tier4.jp/evaluation/reports/98dbc36e-c79a-53f0-a930-5aac27de1c95?project_id=prd_jt
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.