pub struct MasterSlaveModeCommand {
pub link_setting: LinkSetting,
pub feedback_id_offset: FeedbackIdOffset,
pub control_id_offset: ControlIdOffset,
pub target_id_offset: ControlIdOffset,
}Expand description
随动主从模式设置指令 (0x470)
用于设置机械臂为示教输入臂或运动输出臂,并配置 ID 偏移值。 协议长度:4 字节,但 CAN 帧为 8 字节(后 4 字节保留)。
Fields§
§link_setting: LinkSetting§feedback_id_offset: FeedbackIdOffset§control_id_offset: ControlIdOffset§target_id_offset: ControlIdOffsetImplementations§
Source§impl MasterSlaveModeCommand
impl MasterSlaveModeCommand
Sourcepub fn set_teach_input_arm(
feedback_id_offset: FeedbackIdOffset,
control_id_offset: ControlIdOffset,
target_id_offset: ControlIdOffset,
) -> Self
pub fn set_teach_input_arm( feedback_id_offset: FeedbackIdOffset, control_id_offset: ControlIdOffset, target_id_offset: ControlIdOffset, ) -> Self
创建设置为示教输入臂的指令
Sourcepub fn set_motion_output_arm() -> Self
pub fn set_motion_output_arm() -> Self
创建设置为运动输出臂的指令(恢复常规状态)
Sourcepub fn to_frame(self) -> PiperFrame
pub fn to_frame(self) -> PiperFrame
转换为 CAN 帧
Trait Implementations§
Source§impl Clone for MasterSlaveModeCommand
impl Clone for MasterSlaveModeCommand
Source§fn clone(&self) -> MasterSlaveModeCommand
fn clone(&self) -> MasterSlaveModeCommand
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 MasterSlaveModeCommand
impl Debug for MasterSlaveModeCommand
impl Copy for MasterSlaveModeCommand
Auto Trait Implementations§
impl Freeze for MasterSlaveModeCommand
impl RefUnwindSafe for MasterSlaveModeCommand
impl Send for MasterSlaveModeCommand
impl Sync for MasterSlaveModeCommand
impl Unpin for MasterSlaveModeCommand
impl UnwindSafe for MasterSlaveModeCommand
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