pub struct GraspOperation {
pub phase: Option<GraspPhase>,
pub target_object: Option<ObjectRef>,
pub grasp_type: Option<String>,
pub confidence: Option<f64>,
pub grasp_pose: Option<Pose>,
pub pre_grasp_pose: Option<Pose>,
pub is_stable: Option<bool>,
pub slip_detected: Option<bool>,
pub force_n: Option<f64>,
}Expand description
Grasp operation information.
Fields§
§phase: Option<GraspPhase>Grasp phase
target_object: Option<ObjectRef>Target object
grasp_type: Option<String>Grasp type (e.g., “pinch”, “power”, “precision”)
confidence: Option<f64>Grasp confidence (0-1)
grasp_pose: Option<Pose>Grasp pose
pre_grasp_pose: Option<Pose>Pre-grasp pose
is_stable: Option<bool>Whether grasp is stable
slip_detected: Option<bool>Slip detected
force_n: Option<f64>Force at grasp (N)
Implementations§
Source§impl GraspOperation
impl GraspOperation
Sourcepub fn new(phase: GraspPhase) -> Self
pub fn new(phase: GraspPhase) -> Self
Create a grasp operation.
Sourcepub fn with_target(self, object: ObjectRef) -> Self
pub fn with_target(self, object: ObjectRef) -> Self
Set target object.
Sourcepub fn with_confidence(self, confidence: f64) -> Self
pub fn with_confidence(self, confidence: f64) -> Self
Set confidence.
Trait Implementations§
Source§impl Clone for GraspOperation
impl Clone for GraspOperation
Source§fn clone(&self) -> GraspOperation
fn clone(&self) -> GraspOperation
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 GraspOperation
impl Debug for GraspOperation
Source§impl Default for GraspOperation
impl Default for GraspOperation
Source§fn default() -> GraspOperation
fn default() -> GraspOperation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraspOperation
impl<'de> Deserialize<'de> for GraspOperation
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
Source§impl Serialize for GraspOperation
impl Serialize for GraspOperation
Auto Trait Implementations§
impl Freeze for GraspOperation
impl RefUnwindSafe for GraspOperation
impl Send for GraspOperation
impl Sync for GraspOperation
impl Unpin for GraspOperation
impl UnwindSafe for GraspOperation
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