diagnostics icon indicating copy to clipboard operation
diagnostics copied to clipboard

Port hd_monitor to ROS2

Open limaanto opened this issue 1 year ago • 2 comments

As promised in #319 (though it took quite a while..), here is a ported version of the HD monitor script.

After the discussions of #319, I decided to :

  • drop the temperature check that was not deemed mandatory and would have required significant work
  • use a widely available and windows-compatible tool for the usage check, and shutil.disk_usage which comes with all python installs seemed like a good choice
  • Introduce a new parameter path to configure where the check is ran on. By default this is the home directory but can be changed with a ros param
  • Use only the local hostname as the device_id

I did not take the time to write the test yet, let me know if this is mandatory for merging (or if there is any other point for that matter)

limaanto avatar Mar 15 '24 16:03 limaanto

Thanks for your contribution @limaanto :) Please add also a test. But you should be able to adopt https://github.com/ros/diagnostics/blob/ros2/diagnostic_common_diagnostics/test/systemtest/test_ntp_monitor_launchtest.py directly.

ct2034 avatar Mar 28 '24 09:03 ct2034

Hi, I rebased the branch on ros2 and implemented a successful launch test (based on the recommended ntp_monitor's) Tell me if I'm missing something :smiley:

limaanto avatar Mar 28 '24 11:03 limaanto

Hi, I included your review remarks, rebased on the latest ros2 and passed black. Cheers :)

limaanto avatar May 28 '24 23:05 limaanto

@limaanto Please rebase branch and fix flake8 errors

ct2034 avatar Jun 27 '24 08:06 ct2034

That should be good :+1:

limaanto avatar Jun 27 '24 09:06 limaanto

@limaanto friendly ping

ct2034 avatar Jul 02 '24 13:07 ct2034

💚 All backports created successfully

Status Branch Result
ros2-humble
ros2-iron
ros2-jazzy

Questions ?

Please refer to the Backport tool documentation

ct2034 avatar Jul 03 '24 12:07 ct2034

💚 All backports created successfully

Status Branch Result
ros2-jazzy

Questions ?

Please refer to the Backport tool documentation

ct2034 avatar Jul 17 '24 13:07 ct2034