mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-03 19:24:09 +05:30
Tweaked diagnostics.py so that rqt_robot_monitor does not complain about missing joint frequencies
This commit is contained in:
parent
be4bb3e219
commit
f5b825c8ee
@ -71,7 +71,9 @@ class DiagnosticsUpdater():
|
||||
self.diag_updater.setHardwareID(self.name)
|
||||
|
||||
# Create a frequency monitor that tracks the publishing frequency for this component
|
||||
# TODO: Need to add frequency check for servo controller (joint_update_rate)
|
||||
if self.component.rate > 0:
|
||||
if "Servo" not in str(self.component):
|
||||
freq_bounds = diagnostic_updater.FrequencyStatusParam({'min': self.component.rate, 'max': self.component.rate}, 0.3, 5)
|
||||
self.freq_diag = diagnostic_updater.HeaderlessTopicDiagnostic(self.component.name + '_freq', self.diag_updater, freq_bounds)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user