Skip to content

Commit

Permalink
ci(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 6, 2024
1 parent 2c6f413 commit cfde492
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions nebula_ros/src/hesai/hw_monitor_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cfde492

Please sign in to comment.