pub struct Safety {
pub soft_lower_limit: f64,
pub soft_upper_limit: f64,
pub k_position: f64,
pub k_velocity: f64,
}Expand description
The soft envelope a safety controller holds a joint inside.
The range must be finite and non-inverted, which RobotBuilder::build
checks.
Fields§
§soft_lower_limit: f64Where the controller starts pushing back, at the low end.
soft_upper_limit: f64Where the controller starts pushing back, at the high end.
k_position: f64The position gain the controller pushes back with.
k_velocity: f64The velocity gain the controller pushes back with.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Safety
impl RefUnwindSafe for Safety
impl Send for Safety
impl Sync for Safety
impl Unpin for Safety
impl UnsafeUnpin for Safety
impl UnwindSafe for Safety
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