sas
Modularised monitoring, logging, and control of robots.
Loading...
Searching...
No Matches
sas_clock_sched_fifo_example_py Namespace Reference

Variables

 clock = Clock(0.001)
 param = os.sched_param(os.sched_get_priority_max(os.SCHED_FIFO))

Detailed Description

Example: use Clock with SCHED_FIFO scheduling (requires privileges).

Attempts to set realtime scheduling (SCHED_FIFO) and runs a 1 ms Clock loop
to demonstrate low-latency timing. Requires appropriate permissions to set
SCHED_FIFO (root or CAP_SYS_NICE); the script catches PermissionError.