pub struct AlignedMotionState {
pub joint_pos: [f64; 6],
pub joint_vel: [f64; 6],
pub joint_current: [f64; 6],
pub end_pose: [f64; 6],
pub timestamp: u64,
pub time_diff_us: i64,
}Expand description
时间对齐后的运动状态
用于力控算法,确保位置和速度数据的时间戳差异在可接受范围内。
Fields§
§joint_pos: [f64; 6]§joint_vel: [f64; 6]§joint_current: [f64; 6]§end_pose: [f64; 6]§timestamp: u64§time_diff_us: i64Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlignedMotionState
impl RefUnwindSafe for AlignedMotionState
impl Send for AlignedMotionState
impl Sync for AlignedMotionState
impl Unpin for AlignedMotionState
impl UnwindSafe for AlignedMotionState
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> 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