pub struct SetMotorLimitCommand {
pub joint_index: u8,
pub max_angle_deg: Option<i16>,
pub min_angle_deg: Option<i16>,
pub max_velocity_rad_s: Option<u16>,
}Expand description
电机角度限制/最大速度设置指令 (0x474)
用于设置电机的角度限制和最大速度。 单位:
- 角度限制:0.1°(原始值),无效值:0x7FFF
- 最大关节速度:0.01rad/s(原始值),无效值:0x7FFF
Fields§
§joint_index: u8§max_angle_deg: Option<i16>§min_angle_deg: Option<i16>§max_velocity_rad_s: Option<u16>Implementations§
Trait Implementations§
Source§impl Clone for SetMotorLimitCommand
impl Clone for SetMotorLimitCommand
Source§fn clone(&self) -> SetMotorLimitCommand
fn clone(&self) -> SetMotorLimitCommand
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 SetMotorLimitCommand
impl Debug for SetMotorLimitCommand
impl Copy for SetMotorLimitCommand
Auto Trait Implementations§
impl Freeze for SetMotorLimitCommand
impl RefUnwindSafe for SetMotorLimitCommand
impl Send for SetMotorLimitCommand
impl Sync for SetMotorLimitCommand
impl Unpin for SetMotorLimitCommand
impl UnwindSafe for SetMotorLimitCommand
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