Skip to content

Commit

Permalink
fix(out_of_lane): fix noConstructor cppcheck warning (#8636)
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 authored Aug 28, 2024
1 parent e5ac1a5 commit 441bfcf
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <lanelet2_core/LaneletMap.h>

#include <memory>
#include <optional>
#include <string>
#include <vector>

Expand Down Expand Up @@ -58,17 +59,17 @@ class OutOfLaneModule : public PluginModuleInterface
out_of_lane::EgoData & ego_data, const PlannerData & planner_data,
std::optional<geometry_msgs::msg::Pose> & previous_slowdown_pose_, const double slow_velocity);

out_of_lane::PlannerParam params_;
out_of_lane::PlannerParam params_{};

inline static const std::string ns_ = "out_of_lane";
std::string module_name_;
rclcpp::Clock::SharedPtr clock_;
std::optional<geometry_msgs::msg::Pose> previous_slowdown_pose_;
rclcpp::Time previous_slowdown_time_;
std::string module_name_{"uninitialized"};
rclcpp::Clock::SharedPtr clock_{nullptr};
std::optional<geometry_msgs::msg::Pose> previous_slowdown_pose_{std::nullopt};
rclcpp::Time previous_slowdown_time_{0};

protected:
// Debug
mutable out_of_lane::DebugData debug_data_;
mutable out_of_lane::DebugData debug_data_{};
};
} // namespace autoware::motion_velocity_planner

Expand Down

0 comments on commit 441bfcf

Please sign in to comment.