Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added XArm7 #631

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

EdwardoSunny
Copy link

@EdwardoSunny EdwardoSunny commented Feb 1, 2025

What this does

Added the UFactory XArm7 with gripper using files from mujoco-menagerie

Examples:

Title Label
Adds xarm7 and xarm7 gripper (✨ Feature)

image

How it was tested

Tested using the code inside of scripts/ to ensure compatibility with robosuite and functionality. If anyone wants to do further testing, simply select the robot as XArm7 and run program as usual.

How to checkout & try? (for the reviewer)

Any regular robosuite program, just replace robot with XArm7.

import numpy as np
import robosuite as suite

# create environment instance
env = suite.make(
    env_name="Lift", # try with other tasks like "Stack" and "Door"
    robots="XArm7",  # try with other robots like "Panda", "Sawyer", and "Jaco"
    has_renderer=True,
    has_offscreen_renderer=False,
    use_camera_obs=False,
)

# reset the environment
env.reset()

for i in range(1000):
    action = np.random.randn(*env.action_spec[0].shape) * 0.1
    obs, reward, done, info = env.step(action)  # take action in the environment
    env.render()  # render on display

@kevin-thankyou-lin @zhuyifengzju

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant