NCRL
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # State Estimation using Force and Vision [Back to the homepage](https://hackmd.io/jUNv2qU_TKmuVxHbMwMeWA?both) ### **Sensor Fusion and Probabilistic Methods in Contact Detection for Robot Assembly** In robot assembly, **accurate contact detection** is critical for ensuring **precise positioning, force-controlled assembly, and adaptability to variations** in object alignment and surface properties. Unlike quadruped robots that switch between swing and stance phases, an **assembly robot switches between free motion and constrained contact** with its environment. To **reliably detect contact**, robots integrate **contact force measurements and vision-based localization** using **sensor fusion and probabilistic inference**. --- ## **1. Free Motion and Contact Phase Detection** A robotic manipulator or end-effector alternates between two key phases: - **Free motion phase**: The tool or gripper moves freely without external constraints. - **Contact phase**: The tool makes contact with an object or surface, requiring force control. ### **Challenges in Contact Detection:** 1. **Uncertain contact conditions**: The force required for contact varies based on material properties. 2. **Sensor noise**: Force-torque sensors and vision systems have inherent noise and drift. 3. **Slippage and misalignment**: Contact may be unstable due to misalignment, surface roughness, or lubrication. 4. **External disturbances**: Unexpected forces (e.g., vibrations, mispositioning) can influence detection. --- ## **2. Sensor Fusion for Contact Detection** To accurately detect contact, robots integrate multiple sensors: ### **(1) Force-Torque Sensors (FTS)** - Measures **contact forces and torques** at the end-effector. - If **force $F_c > F_{\text{threshold}}$**, the robot is likely in **contact**. - Useful but **may have drift or low sensitivity to small forces**. ### **(2) Vision-Based Localization** - **Stereo cameras, depth sensors, or LiDAR** estimate object pose and contact location. - Tracks the **position and orientation** of the tool relative to the assembly object. - Helps anticipate **contact regions and predict required force adjustments**. ### **(3) Joint Encoders & Motor Current Feedback** - Measures **joint angles and motor torques**. - Detects if the robot is exerting resistance against an obstacle (**contact**) or moving freely. - **Higher torque → likely contact phase**. ### **(4) Acoustic or Tactile Sensors (Optional)** - **Microphones or contact microphones** detect impact sounds. - **Tactile arrays** provide additional surface feedback. ### **Sensor Fusion Process:** By fusing these measurements, the system improves contact detection accuracy: 1. **Extended Kalman Filter (EKF)** - Fuses **force sensor + vision + encoders** to estimate contact state. 2. **Bayesian Inference** - Uses probability models to infer contact likelihood based on noisy data. 3. **Machine Learning / Neural Networks** - Uses **historical force and vision data** to predict contact transitions. --- ## **3. Probabilistic Models for Contact Phase Switching** Since sensor data is noisy and contact conditions vary, **probabilistic models** help infer whether the robot is in free motion or contact. ### **(1) Hidden Markov Model (HMM) for Contact Detection** - The **free/contact phase** is treated as a **hidden state** $S_t$. - Observations $O_t$ come from fused sensor data. - The transition probability $P(S_t | S_{t-1})$ depends on: - Force readings. - Vision-based position error. - Joint torque. **HMM State Transition Matrix Example**: $$P(S_t | S_{t-1}) = \begin{bmatrix} P(\text{contact}|\text{contact}) & P(\text{free}|\text{contact}) \\ P(\text{contact}|\text{free}) & P(\text{free}|\text{free}) \end{bmatrix}$$ ### **(2) Gaussian Mixture Models (GMM)** - **Clusters force-vision data** into **contact** and **free-motion** phases. - Uses **likelihood estimation** to classify the current phase. ### **(3) Reinforcement Learning for Contact Adaptation** - **State $s_t$ → Sensor measurements.** - **Action $a_t$ → Adjust force control strategy.** - The model **learns optimal contact force profiles** for various assembly tasks. --- ## **4. Example: Bayesian Decision Rule for Contact Detection** To determine whether the robot is in contact, we compute: $$P(\text{contact} | O_t) = \frac{P(O_t | \text{contact}) P(\text{contact})}{P(O_t)}$$ Where: - $P(O_t | \text{contact})$ is the **likelihood** of observing the sensor data given contact. - $P(\text{contact})$ is the **prior probability** of contact (e.g., during insertion, contact probability is high). - $P(O_t)$ is the **normalization factor**. **Decision Rule:** - If $P(\text{contact} | O_t) > 0.5$, switch to **contact mode**. - Else, remain in **free motion**. --- ## **5. Implementation in MATLAB** Here’s a **MATLAB example** using **Extended Kalman Filter (EKF) for contact detection**: ```matlab function contact_state = contact_detection(Force, VisionError, Torque) % Define prior probabilities P_contact = 0.7; P_free = 0.3; % Define mean and standard deviation for contact and free motion. Typically, the data are obtained by statistics from experiments mu_Force_contact = 50; sigma_Force_contact = 10; mu_Force_free = 5; sigma_Force_free = 2; mu_Vision_contact = 0.5; sigma_Vision_contact = 0.2; mu_Vision_free = 2.0; sigma_Vision_free = 0.5; mu_Torque_contact = 8; sigma_Torque_contact = 3; mu_Torque_free = 2; sigma_Torque_free = 1; % Compute Gaussian PDF using normpdf L_contact = normpdf(Force, mu_Force_contact, sigma_Force_contact) * ... normpdf(VisionError, mu_Vision_contact, sigma_Vision_contact) * ... normpdf(Torque, mu_Torque_contact, sigma_Torque_contact); L_free = normpdf(Force, mu_Force_free, sigma_Force_free) * ... normpdf(VisionError, mu_Vision_free, sigma_Vision_free) * ... normpdf(Torque, mu_Torque_free, sigma_Torque_free); % Compute posterior probabilities P_contact_given_O = (L_contact * P_contact) / (L_contact + L_free); P_free_given_O = (L_free * P_free) / (L_contact + L_free); % Decision rule if P_contact_given_O > P_free_given_O contact_state = 'Contact'; else contact_state = 'Free Motion'; end end % Example usage Force = 55; VisionError = 0.4; Torque = 9; contact_state = contact_detection(Force, VisionError, Torque); disp(['Predicted state: ', contact_state]); ``` --- ## **6. Summary** ✅ **Sensor Fusion:** Combines **force sensors, vision, and torque feedback** for accurate contact detection. ✅ **Probability Models:** Uses **HMM, Bayesian Inference, and GMM** to infer contact likelihood. ✅ **Adaptive Control:** Machine Learning or Reinforcement Learning adjusts force during assembly. ✅ **Practical Use:** Implemented in **ABB YuMi, KUKA iiwa, and Universal Robots** for high-precision tasks. With **sensor fusion and probabilistic models**, robotic assembly systems achieve **stable, precise, and efficient contact detection**, crucial for automation in manufacturing and assembly. 🚀🔧

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully