Skip to content

Commit

Permalink
fix(imu_corrector): fix shadowFunction (#7839)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
  • Loading branch information
veqcc authored Jul 5, 2024
1 parent 7cbf2f5 commit 55bedee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sensing/imu_corrector/src/gyro_bias_estimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ GyroBiasEstimator::GyroBiasEstimator(const rclcpp::NodeOptions & options)
[this](const Odometry::ConstSharedPtr msg) { callback_odom(msg); });
gyro_bias_pub_ = create_publisher<Vector3Stamped>("~/output/gyro_bias", rclcpp::SensorDataQoS());

auto timer_callback = std::bind(&GyroBiasEstimator::timer_callback, this);
auto bound_timer_callback = std::bind(&GyroBiasEstimator::timer_callback, this);
auto period_control = std::chrono::duration_cast<std::chrono::nanoseconds>(
std::chrono::duration<double>(timer_callback_interval_sec_));
timer_ = std::make_shared<rclcpp::GenericTimer<decltype(timer_callback)>>(
this->get_clock(), period_control, std::move(timer_callback),
timer_ = std::make_shared<rclcpp::GenericTimer<decltype(bound_timer_callback)>>(
this->get_clock(), period_control, std::move(bound_timer_callback),
this->get_node_base_interface()->get_context());
this->get_node_timers_interface()->add_timer(timer_, nullptr);

Expand Down

0 comments on commit 55bedee

Please sign in to comment.