Giter Club home page Giter Club logo

Comments (2)

p3jawors avatar p3jawors commented on May 27, 2024

We used to have some examples of the jaco2, but looking at the latest code it looks like its no longer there. However, it's fairly simple to add. The control signal we send, u, can be 9D for the jaco2. You can calculate the first 6 with one of our controllers. The last 3 are the force commands for the 3 fingers of the jaco2. You can change these values to open and close the hand, but we provide no gripper controllers in the repo. Note that if you are planning on using the real jaco2 that the gripper is position based only, but in our mujoco sims they are force based like the other actuators in the arm.

To use this feature just set the use_joint_dyn_addrs to False in the mujoco interface function call send_forces. You can see the docstring here. Then you just add the three force commands you want for the gripper.

from abr_control.

p3jawors avatar p3jawors commented on May 27, 2024

Here is a simple example that oscillates between 4 and -4 Newtons of force every 2 seconds. If you remove the current call to send_forces(... and add this snippet instead:

        period = 2000 # dt is 1ms, making the period 2sec
        max_N = 4 # max number of newtons of force (I believe the units will be Newtons)
        u_gripper = max_N*np.ones(3) * np.sin(count/period * 2* np.pi)
        print(u_gripper)
        u = np.hstack((u, u_gripper))

You can create a controller, or just add a constant force for a set length of time to perform open/close commands given some set of conditions (i.e. if at location X send close command, if at location Y send open command).

from abr_control.

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.