Port hd_monitor to ROS2
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_usagewhich comes with all python installs seemed like a good choice - Introduce a new parameter
pathto 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)
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.
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:
Hi, I included your review remarks, rebased on the latest ros2 and passed black.
Cheers :)
@limaanto Please rebase branch and fix flake8 errors
That should be good :+1:
@limaanto friendly ping
💚 All backports created successfully
| Status | Branch | Result |
|---|---|---|
| ✅ | ros2-humble | |
| ✅ | ros2-iron | |
| ✅ | ros2-jazzy |
Questions ?
Please refer to the Backport tool documentation
💚 All backports created successfully
| Status | Branch | Result |
|---|---|---|
| ✅ | ros2-jazzy |
Questions ?
Please refer to the Backport tool documentation