Skip to content

Commit 1daa0c7

Browse files
committed
refactor: fix cppcheck error
Signed-off-by: Motsu-san <83898149+Motsu-san@users.noreply.github.com>
1 parent 7a02691 commit 1daa0c7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

localization/autoware_ekf_localizer/src/ekf_module.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ EKFModule::EKFModule(std::shared_ptr<Warning> warning, const HyperParameters & p
4444
dim_x_(6), // x, y, yaw, yaw_bias, vx, wz
4545
accumulated_delay_times_(params.extend_state_step, 1.0E15),
4646
params_(params),
47-
last_angular_velocity_(0.0, 0.0, 0.0)
47+
last_angular_velocity_(0.0, 0.0, 0.0),
48+
ekf_dt_(0.0)
4849
{
4950
Eigen::MatrixXd x = Eigen::MatrixXd::Zero(dim_x_, 1);
5051
Eigen::MatrixXd p = Eigen::MatrixXd::Identity(dim_x_, dim_x_) * 1.0E15; // for x & y

localization/autoware_ekf_localizer/src/internal/ekf_localizer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace autoware::ekf_localizer
5454
class EKFLocalizer : public rclcpp::Node
5555
{
5656
public:
57-
explicit EKFLocalizer(const rclcpp::NodeOptions & options);
57+
explicit EKFLocalizer(const rclcpp::NodeOptions & node_options);
5858

5959
// This function is only used in static tools to know when timer callbacks are triggered.
6060
std::chrono::nanoseconds time_until_trigger() const

0 commit comments

Comments
 (0)