pub struct MitControllerConfig {
pub kp_gains: [f64; 6],
pub kd_gains: [f64; 6],
pub rest_position: Option<[Rad; 6]>,
pub control_rate: f64,
}Expand description
MIT 控制器配置
Fields§
§kp_gains: [f64; 6]PD 控制器 Kp 增益(每个关节独立)
单位:Nm/rad 典型值:3.0 - 10.0
kd_gains: [f64; 6]PD 控制器 Kd 增益(每个关节独立)
单位:Nm/(rad/s) 典型值:0.3 - 1.5
rest_position: Option<[Rad; 6]>休息位置(Drop 时自动移动到此位置)
None 表示不自动移动(仅失能)
control_rate: f64控制循环频率(Hz)
使用绝对时间锚点机制,实际频率将精确锁定在此值。 推荐值:200.0 Hz(与固件更新频率一致)
Trait Implementations§
Source§impl Clone for MitControllerConfig
impl Clone for MitControllerConfig
Source§fn clone(&self) -> MitControllerConfig
fn clone(&self) -> MitControllerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MitControllerConfig
impl Debug for MitControllerConfig
Auto Trait Implementations§
impl Freeze for MitControllerConfig
impl RefUnwindSafe for MitControllerConfig
impl Send for MitControllerConfig
impl Sync for MitControllerConfig
impl Unpin for MitControllerConfig
impl UnwindSafe for MitControllerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more