From cfde492741c08051972d6cd7296298c08b4f98ca Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 09:53:32 +0000 Subject: [PATCH] ci(pre-commit): autofix --- nebula_ros/src/hesai/hw_monitor_wrapper.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/nebula_ros/src/hesai/hw_monitor_wrapper.cpp b/nebula_ros/src/hesai/hw_monitor_wrapper.cpp index b52f7bd2..06bbaae9 100644 --- a/nebula_ros/src/hesai/hw_monitor_wrapper.cpp +++ b/nebula_ros/src/hesai/hw_monitor_wrapper.cpp @@ -77,11 +77,18 @@ void HesaiHwMonitorWrapper::InitializeHesaiDiagnostics() diagnostics_updater_.setHardwareID(hardware_id); RCLCPP_INFO_STREAM(logger_, "Hardware ID: " + hardware_id); - diagnostics_updater_.add(std::string(parent_node_->get_namespace()) +" :hesai_status", this, &HesaiHwMonitorWrapper::HesaiCheckStatus); - diagnostics_updater_.add(std::string(parent_node_->get_namespace()) +" :hesai_ptp", this, &HesaiHwMonitorWrapper::HesaiCheckPtp); diagnostics_updater_.add( - std::string(parent_node_->get_namespace()) +" :hesai_temperature", this, &HesaiHwMonitorWrapper::HesaiCheckTemperature); - diagnostics_updater_.add(std::string(parent_node_->get_namespace()) +" :hesai_rpm", this, &HesaiHwMonitorWrapper::HesaiCheckRpm); + std::string(parent_node_->get_namespace()) + " :hesai_status", this, + &HesaiHwMonitorWrapper::HesaiCheckStatus); + diagnostics_updater_.add( + std::string(parent_node_->get_namespace()) + " :hesai_ptp", this, + &HesaiHwMonitorWrapper::HesaiCheckPtp); + diagnostics_updater_.add( + std::string(parent_node_->get_namespace()) + " :hesai_temperature", this, + &HesaiHwMonitorWrapper::HesaiCheckTemperature); + diagnostics_updater_.add( + std::string(parent_node_->get_namespace()) + " :hesai_rpm", this, + &HesaiHwMonitorWrapper::HesaiCheckRpm); current_status_.reset(); current_monitor_.reset();