Skip to main content

JointEndVelocityAccelFeedback

Struct JointEndVelocityAccelFeedback 

Source
pub struct JointEndVelocityAccelFeedback {
    pub joint_index: u8,
    pub linear_velocity_m_s_raw: u16,
    pub angular_velocity_rad_s_raw: u16,
    pub linear_accel_m_s2_raw: u16,
    pub angular_accel_rad_s2_raw: u16,
}
Expand description

关节末端速度/加速度反馈 (0x481~0x486)

包含关节末端线速度、角速度、线加速度和角加速度反馈。

  • 线速度单位:0.001m/s(原始值)
  • 角速度单位:0.001rad/s(原始值)
  • 线加速度单位:0.001m/s²(原始值)
  • 角加速度单位:0.001rad/s²(原始值)

注意:这是“末端“速度和加速度,不是关节本身的速度和加速度。

Fields§

§joint_index: u8§linear_velocity_m_s_raw: u16§angular_velocity_rad_s_raw: u16§linear_accel_m_s2_raw: u16§angular_accel_rad_s2_raw: u16

Implementations§

Source§

impl JointEndVelocityAccelFeedback

Source

pub fn linear_velocity_raw(&self) -> u16

获取末端线速度原始值(0.001m/s 单位)

Source

pub fn angular_velocity_raw(&self) -> u16

获取末端角速度原始值(0.001rad/s 单位)

Source

pub fn linear_accel_raw(&self) -> u16

获取末端线加速度原始值(0.001m/s² 单位)

Source

pub fn angular_accel_raw(&self) -> u16

获取末端角加速度原始值(0.001rad/s² 单位)

Source

pub fn linear_velocity(&self) -> f64

获取末端线速度(m/s)

Source

pub fn angular_velocity(&self) -> f64

获取末端角速度(rad/s)

Source

pub fn linear_accel(&self) -> f64

获取末端线加速度(m/s²)

Source

pub fn angular_accel(&self) -> f64

获取末端角加速度(rad/s²)

Trait Implementations§

Source§

impl Clone for JointEndVelocityAccelFeedback

Source§

fn clone(&self) -> JointEndVelocityAccelFeedback

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JointEndVelocityAccelFeedback

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for JointEndVelocityAccelFeedback

Source§

fn default() -> JointEndVelocityAccelFeedback

Returns the “default value” for a type. Read more
Source§

impl TryFrom<PiperFrame> for JointEndVelocityAccelFeedback

Source§

type Error = ProtocolError

The type returned in the event of a conversion error.
Source§

fn try_from(frame: PiperFrame) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for JointEndVelocityAccelFeedback

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.