Skip to content

Commit

Permalink
fixing pep257 problems introduced by #334 (#384) (#392)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
(cherry picked from commit b504059)
  • Loading branch information
ct2034 authored Jul 22, 2024
1 parent d8fef69 commit f92c157
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@


class HDMonitor(Node):
"""Diagnostic node checking the remaining space on the specified hard drive.
"""
Diagnostic node checking the remaining space on the specified hard drive.
Three ROS parameters:
- path: Path on the filesystem to check (string, default: home directory)
Expand All @@ -90,7 +91,8 @@ def __init__(self):
self._updater.add(f'{hostname} HD Usage', self.check_disk_usage)

def callback_config(self, params: List[rclpy.Parameter]):
"""Retrieve ROS parameters.
"""
Retrieve ROS parameters.
see the class documentation for declared parameters.
"""
Expand All @@ -108,7 +110,8 @@ def callback_config(self, params: List[rclpy.Parameter]):
return SetParametersResult(successful=True)

def check_disk_usage(self, diag: DiagnosticStatus) -> DiagnosticStatus:
"""Compute the disk usage and derive a status from it.
"""
Compute the disk usage and derive a status from it.
Task periodically ran by the diagnostic updater.
"""
Expand Down

0 comments on commit f92c157

Please sign in to comment.