util
Utility functions for LinuxPTP monitoring.
Functions:
-
get_hostname–Get the system hostname.
-
hostname_to_node_name–Convert a hostname to a valid ROS 2 node name.
get_hostname
get_hostname() -> str
Get the system hostname.
Raises:
-
RuntimeError–If hostname cannot be determined.
Returns:
-
str–The system hostname.