pub struct Gripper {
pub gripper_id: Option<String>,
pub name: Option<String>,
pub gripper_type: Option<String>,
pub state: Option<GripperState>,
pub position_pct: Option<f64>,
pub force_n: Option<f64>,
pub object_detected: Option<bool>,
pub vacuum_kpa: Option<f64>,
pub grip_secure: Option<bool>,
pub status: Option<MotorStatus>,
}Expand description
Gripper information.
Fields§
§gripper_id: Option<String>Gripper ID
name: Option<String>Gripper name
gripper_type: Option<String>Gripper type (parallel, vacuum, magnetic, etc.)
state: Option<GripperState>Current state
position_pct: Option<f64>Position/opening (0-100%)
force_n: Option<f64>Grip force in Newtons
object_detected: Option<bool>Whether object is detected/held
vacuum_kpa: Option<f64>Vacuum pressure (for vacuum grippers) in kPa
grip_secure: Option<bool>Whether grip is secure
status: Option<MotorStatus>Motor status
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gripper
impl<'de> Deserialize<'de> for Gripper
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Gripper
impl RefUnwindSafe for Gripper
impl Send for Gripper
impl Sync for Gripper
impl Unpin for Gripper
impl UnwindSafe for Gripper
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