pub enum Joint {
J1 = 0,
J2 = 1,
J3 = 2,
J4 = 3,
J5 = 4,
J6 = 5,
}Expand description
关节枚举
表示 Piper 机械臂的 6 个关节。使用枚举提供编译期类型安全。
Variants§
J1 = 0
关节 1(基座旋转)
J2 = 1
关节 2(肩部俯仰)
J3 = 2
关节 3(肘部俯仰)
J4 = 3
关节 4(腕部旋转)
J5 = 4
关节 5(腕部俯仰)
J6 = 5
关节 6(末端旋转)
Implementations§
Trait Implementations§
Source§impl<T> Index<Joint> for JointArray<T>
impl<T> Index<Joint> for JointArray<T>
Source§impl<T> IndexMut<Joint> for JointArray<T>
impl<T> IndexMut<Joint> for JointArray<T>
impl Copy for Joint
impl Eq for Joint
impl StructuralPartialEq for Joint
Auto Trait Implementations§
impl Freeze for Joint
impl RefUnwindSafe for Joint
impl Send for Joint
impl Sync for Joint
impl Unpin for Joint
impl UnwindSafe for Joint
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