-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port hd_monitor to ROS2 #334
Conversation
Thanks for your contribution @limaanto :) |
5c0891a
to
c6fb93c
Compare
Hi, I rebased the branch on |
diagnostic_common_diagnostics/diagnostic_common_diagnostics/hd_monitor.py
Show resolved
Hide resolved
diagnostic_common_diagnostics/diagnostic_common_diagnostics/hd_monitor.py
Outdated
Show resolved
Hide resolved
diagnostic_common_diagnostics/diagnostic_common_diagnostics/hd_monitor.py
Outdated
Show resolved
Hide resolved
diagnostic_common_diagnostics/diagnostic_common_diagnostics/hd_monitor.py
Outdated
Show resolved
Hide resolved
Remove useless print, parameter and format strings according to review of ros#334
Remove useless print, parameter and format strings according to review of ros#334
Hi, I included your review remarks, rebased on the latest |
Thanks to https://github.com/limaanto Squashed commit of the following: commit d21cd6d736a1050b185c070af01f10503a24f4df Merge: 861f924 e67a69c Author: Christian Henkel <christian.henkel2@de.bosch.com> Date: Thu Jun 27 10:06:10 2024 +0200 Merge branch 'ros2' into port-hd-monitor Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com> commit 861f924 Author: Antoine Lima <antoine@sagou.in> Date: Mon Jun 3 18:13:56 2024 +0200 Fix hd_monitor test commit b9ecd1e Author: Antoine Lima <antoine@sagou.in> Date: Wed May 29 01:30:40 2024 +0200 Pass black formatter on hd_monitor and associated test commit a7e68ac Author: Antoine Lima <antoine@sagou.in> Date: Wed May 29 01:28:40 2024 +0200 Improve hd_monitor code quality Remove useless print, parameter and format strings according to review of #334 commit 8eba67b Author: Antoine Lima <antoine@sagou.in> Date: Wed May 29 01:26:55 2024 +0200 Implement low and crit parameters in hd_monitor commit 6c60eda Author: Antoine Lima <antoine@sagou.in> Date: Thu Mar 28 12:13:28 2024 +0100 Add launch test for hd_monitor commit b29cacf Author: Antoine Lima <antoine@sagou.in> Date: Thu Mar 28 12:13:10 2024 +0100 Fix execution flag of hd_monitor commit 4cc315d Author: Antoine Lima <antoine@sagou.in> Date: Fri Mar 15 17:46:08 2024 +0100 Adapt documentation and CMakeList to new hd_monitor.py commit 2a4eece Author: Antoine Lima <antoine@sagou.in> Date: Fri Mar 15 17:34:13 2024 +0100 Port hd_monitor.py Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
@limaanto Please rebase branch and fix flake8 errors |
Remove useless print, parameter and format strings according to review of ros#334
861f924
to
2fe0111
Compare
2fe0111
to
0e97de9
Compare
That should be good 👍 |
@limaanto friendly ping |
…ut rclpy parameters
* Port hd_monitor.py * Adapt documentation and CMakeList to new hd_monitor.py * Fix execution flag of hd_monitor * Add launch test for hd_monitor * Implement low and crit parameters in hd_monitor * Improve hd_monitor code quality (cherry picked from commit 05a9645)
* Port hd_monitor.py * Adapt documentation and CMakeList to new hd_monitor.py * Fix execution flag of hd_monitor * Add launch test for hd_monitor * Implement low and crit parameters in hd_monitor * Improve hd_monitor code quality (cherry picked from commit 05a9645)
* Port hd_monitor.py * Adapt documentation and CMakeList to new hd_monitor.py * Fix execution flag of hd_monitor * Add launch test for hd_monitor * Implement low and crit parameters in hd_monitor * Improve hd_monitor code quality (cherry picked from commit 05a9645) # Conflicts: # diagnostic_common_diagnostics/CMakeLists.txt # diagnostic_common_diagnostics/mainpage.dox
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
* Port hd_monitor to ROS2 (#334) * Port hd_monitor.py * Adapt documentation and CMakeList to new hd_monitor.py * Fix execution flag of hd_monitor * Add launch test for hd_monitor * Implement low and crit parameters in hd_monitor * Improve hd_monitor code quality (cherry picked from commit 05a9645) * fixing pep257 problems introduced by #334 (#384) Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com> --------- Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com> Co-authored-by: Antoine Lima <7421319+limaanto@users.noreply.github.com>
* Port hd_monitor to ROS2 (#334) * Port hd_monitor.py * Adapt documentation and CMakeList to new hd_monitor.py * Fix execution flag of hd_monitor * Add launch test for hd_monitor * Implement low and crit parameters in hd_monitor * Improve hd_monitor code quality (cherry picked from commit 05a9645) * fixing pep257 problems introduced by #334 (#384) Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com> --------- Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com> Co-authored-by: Antoine Lima <7421319+limaanto@users.noreply.github.com>
* Port hd_monitor.py * Adapt documentation and CMakeList to new hd_monitor.py * Fix execution flag of hd_monitor * Add launch test for hd_monitor * Implement low and crit parameters in hd_monitor * Improve hd_monitor code quality (cherry picked from commit 05a9645) # Conflicts: # diagnostic_common_diagnostics/CMakeLists.txt # diagnostic_common_diagnostics/mainpage.dox
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
* Port hd_monitor to ROS2 (#334) * Port hd_monitor.py * Adapt documentation and CMakeList to new hd_monitor.py * Fix execution flag of hd_monitor * Add launch test for hd_monitor * Implement low and crit parameters in hd_monitor * Improve hd_monitor code quality (cherry picked from commit 05a9645) # Conflicts: # diagnostic_common_diagnostics/CMakeLists.txt # diagnostic_common_diagnostics/mainpage.dox * adding missing launchtest depdendency Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com> * no changes to ros2 branch Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com> --------- Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com> Co-authored-by: Antoine Lima <7421319+limaanto@users.noreply.github.com>
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 :
shutil.disk_usage
which comes with all python installs seemed like a good choicepath
to configure where the check is ran on. By default this is the home directory but can be changed with a ros paramI 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)