Skip to content

Commit

Permalink
fix: remove ScopedTimeTrack which causes goal planner crash
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoyuWang0601 committed Oct 23, 2024
1 parent bad0007 commit f243c1b
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1244,8 +1244,6 @@ bool GoalPlannerModule::hasDecidedPath(
const std::shared_ptr<SafetyCheckParams> & safety_check_params,
const std::shared_ptr<GoalSearcherBase> goal_searcher) const
{
universe_utils::ScopedTimeTrack st(__func__, *time_keeper_);

return checkDecidingPathStatus(
planner_data, occupancy_grid_map, parameters, ego_predicted_path_params,
objects_filtering_params, safety_check_params, goal_searcher)
Expand All @@ -1261,8 +1259,6 @@ bool GoalPlannerModule::hasNotDecidedPath(
const std::shared_ptr<SafetyCheckParams> & safety_check_params,
const std::shared_ptr<GoalSearcherBase> goal_searcher) const
{
universe_utils::ScopedTimeTrack st(__func__, *time_keeper_);

return checkDecidingPathStatus(
planner_data, occupancy_grid_map, parameters, ego_predicted_path_params,
objects_filtering_params, safety_check_params, goal_searcher)
Expand All @@ -1278,8 +1274,6 @@ DecidingPathStatusWithStamp GoalPlannerModule::checkDecidingPathStatus(
const std::shared_ptr<SafetyCheckParams> & safety_check_params,
const std::shared_ptr<GoalSearcherBase> goal_searcher) const
{
universe_utils::ScopedTimeTrack st(__func__, *time_keeper_);

const auto & prev_status = thread_safe_data_.get_prev_data().deciding_path_status;
const bool enable_safety_check = parameters.safety_check_params.enable_safety_check;

Expand Down Expand Up @@ -2375,8 +2369,6 @@ std::pair<bool, bool> GoalPlannerModule::isSafePath(
const std::shared_ptr<ObjectsFilteringParams> & objects_filtering_params,
const std::shared_ptr<SafetyCheckParams> & safety_check_params) const
{
universe_utils::ScopedTimeTrack st(__func__, *time_keeper_);

if (!thread_safe_data_.get_pull_over_path()) {
return {false, false};
}
Expand Down

0 comments on commit f243c1b

Please sign in to comment.