pub enum RealtimeConfig {
Enforce,
Ignore,
}Expand description
Whether a control loop insists on realtime scheduling (mirrors franka::RealtimeConfig).
Variants§
Enforce
Require a realtime kernel and raise the control thread to the highest SCHED_FIFO
priority; fail with crate::error::FrankaError::Realtime if either is impossible.
This is libfranka’s default.
Ignore
Run anyway on a non-realtime kernel or without the privileges to change the scheduler.
Useful against franka-sim and for exploratory work; the loop will miss cycles under
load, which the robot reports as a falling control_command_success_rate and,
eventually, a communication_constraints_violation reflex.
Trait Implementations§
Source§impl Clone for RealtimeConfig
impl Clone for RealtimeConfig
Source§fn clone(&self) -> RealtimeConfig
fn clone(&self) -> RealtimeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RealtimeConfig
Source§impl Debug for RealtimeConfig
impl Debug for RealtimeConfig
Source§impl Default for RealtimeConfig
impl Default for RealtimeConfig
Source§fn default() -> RealtimeConfig
fn default() -> RealtimeConfig
Returns the “default value” for a type. Read more
impl Eq for RealtimeConfig
Source§impl PartialEq for RealtimeConfig
impl PartialEq for RealtimeConfig
Source§fn eq(&self, other: &RealtimeConfig) -> bool
fn eq(&self, other: &RealtimeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RealtimeConfig
Auto Trait Implementations§
impl Freeze for RealtimeConfig
impl RefUnwindSafe for RealtimeConfig
impl Send for RealtimeConfig
impl Sync for RealtimeConfig
impl Unpin for RealtimeConfig
impl UnsafeUnpin for RealtimeConfig
impl UnwindSafe for RealtimeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.