Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Applying gravitational force of an object to robotic arm while picking up

Discussion in 'Physics' started by alimardanov, Apr 7, 2022.

  1. alimardanov

    alimardanov

    Joined:
    May 7, 2020
    Posts:
    6
    I am working on a robotic arm pick-up and place project. I use a haptic device to control the robotic arm. While the robotic arm picks an object, I want to apply the gravitational pull force to the haptic device. The gravitational pull is the force that grabbed object is accelerating down. The simulation needs to be as realistic as possible. So gravity should be applied when an object is lifted from one side while the other side is still on earth. GravityProblemDemo.png

    I want to apply less force when the other side is still on the ground and full force when it is fully lifted. So far I could not be able to find a way to do this.

    My idea is to attach a script to every grabbable object and calculate its gravity force while grabbing. Then I can apply the force to the haptic device to give a feeling of the object pick-up. So far I could not do that.

    Any idea? How can I do that?
     
  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    777
  3. alimardanov

    alimardanov

    Joined:
    May 7, 2020
    Posts:
    6
    Hello. Thanks for the response. I am experimenting with articulation body at the moment. Is there a way to do this with articulation body as well?

    I chose an articulation body over a rigid body because the gripped object is slipping down from the robot arm when it has a rigid body. But an articulation body does not let it. So I think the articulation body is better for pick-up and place by a robotic arm.
     
  4. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    777
    Just to dig into the documentations then, to see which joints is able to return current forces?
    https://docs.unity3d.com/Manual/class-ArticulationBody.html

    But without a load with a rigidbody with a mass I can't se how the physics engine ever could figure out the forces that has to be applied.
     
    alimardanov likes this.