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 10, 2024
1 parent dedadc4 commit a66b4d4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 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 @@ -476,7 +476,7 @@ void BehaviorVelocityPlannerNode::publishDebugMarker(
}
debug_viz_pub_->publish(output_msg);
}
} // namespace autoware
} // namespace autoware::behavior_velocity_planner

#include <rclcpp_components/register_node_macro.hpp>
RCLCPP_COMPONENTS_REGISTER_NODE(autoware::behavior_velocity_planner::BehaviorVelocityPlannerNode)
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 @@ -129,7 +129,7 @@ class BehaviorVelocityPlannerNode : public rclcpp::Node

// function
geometry_msgs::msg::PoseStamped getCurrentPose();
bool isDataReady(const PlannerData& planner_data, rclcpp::Clock clock) const;
bool isDataReady(const PlannerData & planner_data, rclcpp::Clock clock) const;
autoware_auto_planning_msgs::msg::Path generatePath(
const autoware_auto_planning_msgs::msg::PathWithLaneId::ConstSharedPtr input_path_msg,
const PlannerData & planner_data);
Expand Down
6 changes: 3 additions & 3 deletions planning/behavior_velocity_planner/src/planner_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ std::string json_dumps_pose(const geometry_msgs::msg::Pose & pose)
}

diagnostic_msgs::msg::DiagnosticStatus make_stop_reason_diag(
const std::string& stop_reason, const geometry_msgs::msg::Pose & stop_pose)
const std::string & stop_reason, const geometry_msgs::msg::Pose & stop_pose)
{
diagnostic_msgs::msg::DiagnosticStatus stop_reason_diag;
diagnostic_msgs::msg::KeyValue stop_reason_diag_kv;
Expand Down 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 Expand Up @@ -129,4 +129,4 @@ diagnostic_msgs::msg::DiagnosticStatus BehaviorVelocityPlannerManager::getStopRe
{
return stop_reason_diag_;
}
} // namespace autoware
} // namespace autoware::behavior_velocity_planner
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ std::shared_ptr<BehaviorVelocityPlannerNode> generate_node()
}

void publish_mandatory_topics(
const std::shared_ptr<PlanningInterfaceTestManager>& test_manager,
const std::shared_ptr<BehaviorVelocityPlannerNode>& test_target_node)
const std::shared_ptr<PlanningInterfaceTestManager> & test_manager,
const std::shared_ptr<BehaviorVelocityPlannerNode> & test_target_node)
{
// publish necessary topics from test_manager
test_manager->publishTF(test_target_node, "/tf");
Expand Down

0 comments on commit a66b4d4

Please sign in to comment.