Giter VIP home page Giter VIP logo

gym-ur5_gripper's Introduction

gym-ur5_gripper

This is a gym environment, using ur5 robot and robotiq 3 finger gripper, in mujoco simulator.

The robot xml file is from http://www.mujoco.org/forum/index.php?resources/universal-robots-ur5-robotiq-s-model-3-finger-gripper.22/

This package includes:

  • Robot environments
    • ur5 env
    • gripper env
  • Task environments
    • UR5GripperCatchBall-v0

Overview


install

$ git clone https://github.com/wangcongrobot/gym-ur5_gripper.git
$ cd gym-ur5_gripper
$ virtualenv env --python=python3
$ pip install -e .
$ python gym-ur5_gripper/tests/test_ur5_gripper_env.py

Robot Environments

UR5 Env

  • Action space:

    • Cartesian space: hand 3D pose (x,y,z)
    • Gripper action: open/close
  • Observation space:

    • arm joint positions
    • end-effector pose
    • end-effector velocity

Task Environments

UR5 Reach Env

Observation space

  • UR5's observation space
  • plus object position and orientation

Reward function

In this environment, the reward function is given by:

  • the distance between the end-effector and the desired position
  • plus a bonus when the end-effector is close to the desired position

Here is the code used to compute the reward function:

Gripper

The Robotiq 3 finger gripper has 11 dof, the control mode includes torque control, position control and so on.

We use position control, and change the 11-dof joint control into a 1-dof open/close action.

def gripper_format_action(self, action):
    """ Given (-1,1) abstract control as np-array return the (-1,1) control signals
    for underlying actuators as 1-d np array
    Args:
        action: 1 => open, -1 => closed
    """
    movement = np.array([0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1])
    return -1 * movement * action

P.S.: 1 => open, 0 => close, (0,1) => grasp

gym-ur5_gripper's People

Contributors

wangcongrobot avatar

Stargazers

lichaox avatar

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.