main
Diagnostic worker entry point.
Classes:
-
DiagWorker–Worker that monitors local PTP services and sends graph updates to the diagnostic master.
Functions:
-
main–Entry point for the diagnostic worker.
DiagWorker
Worker that monitors local PTP services and sends graph updates to the diagnostic master.
At least one of ptp4l_units or phc2sys_units must be non-empty.
Parameters:
-
topic(str) –ROS 2 topic to publish graph updates to.
-
ptp4l_units(list[str]) –List of ptp4l systemd unit names to monitor.
-
phc2sys_units(list[str]) –List of phc2sys systemd unit names to monitor.
Raises:
-
RuntimeError–If hostname cannot be determined.
-
ValueError–If no units are specified.
Methods:
-
run–Run the monitor loop, sending graph updates to the diagnostic master.