pub struct CollisionProtectionState {
pub hardware_timestamp_us: u64,
pub system_timestamp_us: u64,
pub protection_levels: [u8; 6],
}Expand description
碰撞保护状态(冷数据)
更新频率:按需查询(通常只在设置碰撞保护等级后收到反馈) CAN ID:0x47B 同步机制:RwLock(按需查询,更新频率极低)
注意:碰撞保护等级范围是 0-8,其中 0 表示不检测碰撞。
Fields§
§hardware_timestamp_us: u64硬件时间戳(微秒,来自 CAN 帧)
system_timestamp_us: u64系统接收时间戳(微秒)
protection_levels: [u8; 6]各关节碰撞保护等级(0-8)[J1, J2, J3, J4, J5, J6]
注意:
- 0:不检测碰撞
- 1-8:碰撞保护等级(数字越大,保护越严格)
Trait Implementations§
Source§impl Clone for CollisionProtectionState
impl Clone for CollisionProtectionState
Source§fn clone(&self) -> CollisionProtectionState
fn clone(&self) -> CollisionProtectionState
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 CollisionProtectionState
impl Debug for CollisionProtectionState
Source§impl Default for CollisionProtectionState
impl Default for CollisionProtectionState
Source§fn default() -> CollisionProtectionState
fn default() -> CollisionProtectionState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CollisionProtectionState
impl RefUnwindSafe for CollisionProtectionState
impl Send for CollisionProtectionState
impl Sync for CollisionProtectionState
impl Unpin for CollisionProtectionState
impl UnwindSafe for CollisionProtectionState
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