Skip to content

Commit

Permalink
add node name to diag name of hesai hw_monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
kotaro-hihara committed Nov 6, 2024
1 parent 2ea66b6 commit 2c6f413
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 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,11 @@ void HesaiHwMonitorWrapper::InitializeHesaiDiagnostics()
diagnostics_updater_.setHardwareID(hardware_id);
RCLCPP_INFO_STREAM(logger_, "Hardware ID: " + hardware_id);

diagnostics_updater_.add("hesai_status", this, &HesaiHwMonitorWrapper::HesaiCheckStatus);
diagnostics_updater_.add("hesai_ptp", this, &HesaiHwMonitorWrapper::HesaiCheckPtp);
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(
"hesai_temperature", this, &HesaiHwMonitorWrapper::HesaiCheckTemperature);
diagnostics_updater_.add("hesai_rpm", this, &HesaiHwMonitorWrapper::HesaiCheckRpm);
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 2c6f413

Please sign in to comment.