|
sas
Modularised monitoring, logging, and control of robots.
|
Variables | |
| clock = Clock(0.001) | |
| param = os.sched_param(os.sched_get_priority_max(os.SCHED_FIFO)) | |
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.