Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Apr 12, 2024
1 parent 6c0337b commit 2783d6e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions planning/behavior_velocity_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void BehaviorVelocityPlannerNode::onUnloadPlugin(

// NOTE: argument planner_data must not be referenced for multithreading
bool BehaviorVelocityPlannerNode::isDataReady(
const PlannerData& planner_data, rclcpp::Clock clock) const
const PlannerData & planner_data, rclcpp::Clock clock) const
{
const auto & d = planner_data;

Expand Down Expand Up @@ -434,11 +434,12 @@ autoware_auto_planning_msgs::msg::Path BehaviorVelocityPlannerNode::generatePath
std::make_shared<const PlannerData>(planner_data), *input_path_msg);

// screening
const auto filtered_path = ::behavior_velocity_planner::filterLitterPathPoint(to_path(velocity_planned_path));
const auto filtered_path =
::behavior_velocity_planner::filterLitterPathPoint(to_path(velocity_planned_path));

// interpolation
const auto interpolated_path_msg =
::behavior_velocity_planner::interpolatePath(filtered_path, forward_path_length_, behavior_output_path_interval_);
const auto interpolated_path_msg = ::behavior_velocity_planner::interpolatePath(
filtered_path, forward_path_length_, behavior_output_path_interval_);

// check stop point
output_path_msg = ::behavior_velocity_planner::filterStopPathPoint(interpolated_path_msg);
Expand Down
2 changes: 1 addition & 1 deletion planning/behavior_velocity_planner/src/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@ class BehaviorVelocityPlannerNode : public rclcpp::Node

std::unique_ptr<tier4_autoware_utils::PublishedTimePublisher> published_time_publisher_;
};
} // namespace autoware
} // namespace autoware::behavior_velocity_planner

#endif // NODE_HPP_
2 changes: 1 addition & 1 deletion planning/behavior_velocity_planner/src/planner_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void BehaviorVelocityPlannerManager::removeScenePlugin(
{
auto it = std::remove_if(
scene_manager_plugins_.begin(), scene_manager_plugins_.end(),
[&](const std::shared_ptr<autoware::behavior_velocity_planner::PluginInterface>& plugin) {
[&](const std::shared_ptr<autoware::behavior_velocity_planner::PluginInterface> & plugin) {
return plugin->getModuleName() == name;
});

Expand Down
2 changes: 1 addition & 1 deletion planning/behavior_velocity_planner/src/planner_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ class BehaviorVelocityPlannerManager
pluginlib::ClassLoader<PluginInterface> plugin_loader_;
std::vector<std::shared_ptr<PluginInterface>> scene_manager_plugins_;
};
} // namespace autoware
} // namespace autoware::behavior_velocity_planner

#endif // PLANNER_MANAGER_HPP_

0 comments on commit 2783d6e

Please sign in to comment.