Expand description
Realtime scheduling helpers — a port of src/control_tools.cpp (libfranka 0.21.2).
A 1 kHz FCI control loop needs SCHED_FIFO and a PREEMPT_RT kernel to keep its deadline.
libfranka checks both before starting a motion; RealtimeConfig selects whether this
crate does the same.
Enums§
- Realtime
Config - Whether a control loop insists on realtime scheduling (mirrors
franka::RealtimeConfig).
Constants§
- NO_
REALTIME_ KERNEL_ MESSAGE - Error text libfranka raises when
RealtimeConfig::Enforcemeets a non-realtime kernel (franka::Robot’s constructor).
Functions§
- check_
realtime - Checks the realtime prerequisites for
config, returning libfranka’s error text. - has_
realtime_ kernel - Whether the running kernel advertises realtime capabilities.
- set_
current_ thread_ scheduler_ priority - Puts the calling thread on
SCHED_FIFOatpriority(1 to 99 on Linux). - set_
current_ thread_ to_ highest_ scheduler_ priority - Raises the calling thread to the highest
SCHED_FIFOpriority.