Skip to content

Commit

Permalink
fixing pep257 problems introduced by #334
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Henkel <[email protected]>
  • Loading branch information
ct2034 committed Jul 17, 2024
1 parent 05a9645 commit 1405877
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 1405877

Please sign in to comment.