Skip to content

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

DiagWorker(
    topic: str,
    ptp4l_units: list[str],
    phc2sys_units: list[str],
)

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:

Methods:

  • run

    Run the monitor loop, sending graph updates to the diagnostic master.

run async

run()

Run the monitor loop, sending graph updates to the diagnostic master.

main

main()

Entry point for the diagnostic worker.