Skip to content

Commit

Permalink
chore: use diagnostic_updater.use_fqn parameter (#217)
Browse files Browse the repository at this point in the history
Signed-off-by: Max SCHMELLER <[email protected]>
Co-authored-by: Kotaro HIHARA <[email protected]>
  • Loading branch information
kotaro-hihara authored and mojomex committed Nov 6, 2024
1 parent 2ea66b6 commit d04eac5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nebula_ros/src/hesai/hw_monitor_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "nebula_ros/common/parameter_descriptors.hpp"

#include <diagnostic_updater/diagnostic_updater.hpp>
#include <nebula_common/nebula_common.hpp>

namespace nebula
Expand All @@ -15,7 +16,8 @@ HesaiHwMonitorWrapper::HesaiHwMonitorWrapper(
const std::shared_ptr<nebula::drivers::HesaiHwInterface> & hw_interface,
std::shared_ptr<const nebula::drivers::HesaiSensorConfiguration> & config)
: logger_(parent_node->get_logger().get_child("HwMonitor")),
diagnostics_updater_(parent_node),
diagnostics_updater_(
(parent_node->declare_parameter<bool>("diagnostic_updater.use_fqn", true), parent_node)),
status_(Status::OK),
hw_interface_(hw_interface),
parent_node_(parent_node)
Expand Down

0 comments on commit d04eac5

Please sign in to comment.