Giter VIP home page Giter VIP logo

Comments (4)

mpinol avatar mpinol commented on May 19, 2024

Hey @karthikm-0

It sounds like you want to be able to move the gripper's x,y,z coordinates in the Unity scene and have the robot's joints moved accordingly to accommodate the gripper's new position. Is this correct?

from unity-robotics-hub.

karthikm-0 avatar karthikm-0 commented on May 19, 2024

Hey @mpinol,

Yes, this is correct. I'd like the gripper to move in x, y, z with respect to the base frame. I also want to control the rotation with respect to its own frame. I assumed that modifying the linear and angular velocity of the gripper joint would suffice but I wasn't able to get it to move.

from unity-robotics-hub.

mpinol avatar mpinol commented on May 19, 2024

Hey @karthikm-0

I believe to accomplish this you will need to implement inverse kinematics,
https://medium.com/unity3danimation/overview-of-inverse-kinematics-9769a43ba956

Sadly this is not something we provide 'out of the box'. However, if you are using ROS there are several IK solvers available as ROS packages.

If you decide to go the route of implementing your own IK then this link should be of help once you get to the maths portion,
https://docs.unity3d.com/2021.1/Documentation/ScriptReference/ArticulationBody.GetDenseJacobian.html

I hope this helps!

from unity-robotics-hub.

karthikm-0 avatar karthikm-0 commented on May 19, 2024

Thanks a lot! I decided to use a ROS package to convert controller input to a Twist message and finally to joint angles which I sent over to Unity to move the arm.

from unity-robotics-hub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.