pub struct ControlModeCommandFeedback {
pub control_mode: ControlModeCommand,
pub move_mode: MoveMode,
pub speed_percent: u8,
pub mit_mode: MitMode,
pub trajectory_stay_time: u8,
pub install_position: InstallPosition,
}Expand description
主从模式控制模式指令反馈 (0x151)
在主从模式下,示教输入臂会发送控制指令给运动输出臂。 此反馈用于解析从示教输入臂接收到的控制模式指令。
注意:此结构与 ControlModeCommandFrame 相同,但用于接收而非发送。
Fields§
§control_mode: ControlModeCommand§move_mode: MoveMode§speed_percent: u8§mit_mode: MitMode§trajectory_stay_time: u8§install_position: InstallPositionTrait Implementations§
Source§impl Clone for ControlModeCommandFeedback
impl Clone for ControlModeCommandFeedback
Source§fn clone(&self) -> ControlModeCommandFeedback
fn clone(&self) -> ControlModeCommandFeedback
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 ControlModeCommandFeedback
impl Debug for ControlModeCommandFeedback
Source§impl Default for ControlModeCommandFeedback
impl Default for ControlModeCommandFeedback
Source§fn default() -> ControlModeCommandFeedback
fn default() -> ControlModeCommandFeedback
Returns the “default value” for a type. Read more
Source§impl TryFrom<PiperFrame> for ControlModeCommandFeedback
impl TryFrom<PiperFrame> for ControlModeCommandFeedback
Source§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
Source§fn try_from(
frame: PiperFrame,
) -> Result<ControlModeCommandFeedback, <ControlModeCommandFeedback as TryFrom<PiperFrame>>::Error>
fn try_from( frame: PiperFrame, ) -> Result<ControlModeCommandFeedback, <ControlModeCommandFeedback as TryFrom<PiperFrame>>::Error>
Performs the conversion.
impl Copy for ControlModeCommandFeedback
Auto Trait Implementations§
impl Freeze for ControlModeCommandFeedback
impl RefUnwindSafe for ControlModeCommandFeedback
impl Send for ControlModeCommandFeedback
impl Sync for ControlModeCommandFeedback
impl Unpin for ControlModeCommandFeedback
impl UnwindSafe for ControlModeCommandFeedback
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