pub struct QueryMotorLimitCommand {
pub joint_index: u8,
pub query_type: QueryType,
}Expand description
查询电机限制指令 (0x472)
Fields§
§joint_index: u8§query_type: QueryTypeImplementations§
Source§impl QueryMotorLimitCommand
impl QueryMotorLimitCommand
Sourcepub fn query_angle_and_max_velocity(joint_index: u8) -> Self
pub fn query_angle_and_max_velocity(joint_index: u8) -> Self
创建查询电机角度/最大速度指令
Sourcepub fn query_max_acceleration(joint_index: u8) -> Self
pub fn query_max_acceleration(joint_index: u8) -> Self
创建查询电机最大加速度限制指令
Sourcepub fn to_frame(self) -> PiperFrame
pub fn to_frame(self) -> PiperFrame
转换为 CAN 帧
Trait Implementations§
Source§impl Clone for QueryMotorLimitCommand
impl Clone for QueryMotorLimitCommand
Source§fn clone(&self) -> QueryMotorLimitCommand
fn clone(&self) -> QueryMotorLimitCommand
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 QueryMotorLimitCommand
impl Debug for QueryMotorLimitCommand
impl Copy for QueryMotorLimitCommand
Auto Trait Implementations§
impl Freeze for QueryMotorLimitCommand
impl RefUnwindSafe for QueryMotorLimitCommand
impl Send for QueryMotorLimitCommand
impl Sync for QueryMotorLimitCommand
impl Unpin for QueryMotorLimitCommand
impl UnwindSafe for QueryMotorLimitCommand
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