Skip to content

Commit e3c48cc

Browse files
committed
fix(autoware_behavior_velocity_planner): fix some clang-tidy errors
Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
1 parent 173ed48 commit e3c48cc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

planning/behavior_velocity_planner/src/node.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ rclcpp::SubscriptionOptions createSubscriptionOptions(rclcpp::Node * node_ptr)
5454

5555
namespace autoware::behavior_velocity_planner
5656
{
57+
using ::behavior_velocity_planner::TrafficSignalStamped;
58+
5759
namespace
5860
{
5961

planning/behavior_velocity_planner/src/node.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ using autoware_auto_mapping_msgs::msg::HADMapBin;
5050
using autoware_behavior_velocity_planner::srv::LoadPlugin;
5151
using autoware_behavior_velocity_planner::srv::UnloadPlugin;
5252
using ::behavior_velocity_planner::PlannerData;
53-
using ::behavior_velocity_planner::TrafficSignalStamped;
5453
using tier4_planning_msgs::msg::VelocityLimit;
5554

5655
class BehaviorVelocityPlannerNode : public rclcpp::Node

planning/behavior_velocity_planner/src/planner_manager.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class BehaviorVelocityPlannerManager
5252
const std::shared_ptr<const PlannerData> & planner_data,
5353
const autoware_auto_planning_msgs::msg::PathWithLaneId & input_path_msg);
5454

55-
diagnostic_msgs::msg::DiagnosticStatus getStopReasonDiag() const;
55+
[[nodiscard]] diagnostic_msgs::msg::DiagnosticStatus getStopReasonDiag() const;
5656

5757
private:
5858
diagnostic_msgs::msg::DiagnosticStatus stop_reason_diag_;

0 commit comments

Comments
 (0)