Skip to content

Commit

Permalink
refactor(behavior_velocity_planner): remove unused "findEgoIndex" (#3256
Browse files Browse the repository at this point in the history
)

Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
  • Loading branch information
maxime-clem committed Apr 4, 2023
1 parent c705f49 commit 25c154d
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,6 @@ class SceneModuleInterface
points, p->current_odometry->pose, p->ego_nearest_dist_threshold,
p->ego_nearest_yaw_threshold);
}

template <class T>
size_t findEgoIndex(const std::vector<T> & points) const
{
const auto & p = planner_data_;
return motion_utils::findFirstNearestIndexWithSoftConstraints(
points, p->current_odometry->pose, p->ego_nearest_dist_threshold,
p->ego_nearest_yaw_threshold);
}
};

class SceneModuleManagerInterface
Expand Down Expand Up @@ -310,16 +301,6 @@ class SceneModuleManagerInterface
p->ego_nearest_yaw_threshold);
}

template <class T>
size_t findEgoIndex(
const std::vector<T> & points, const geometry_msgs::msg::Pose & ego_pose) const
{
const auto & p = planner_data_;
return motion_utils::findFirstNearestIndexWithSoftConstraints(
points, p->current_odometry->pose, p->ego_nearest_dist_threshold,
p->ego_nearest_yaw_threshold);
}

std::set<std::shared_ptr<SceneModuleInterface>> scene_modules_;
std::set<int64_t> registered_module_id_set_;

Expand Down

0 comments on commit 25c154d

Please sign in to comment.