Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MuJoCo Description Files (MJCF) for OpenArm

image

This repository contains assets for OpenArm v1 (above) and v0.3 (below) simulation in MuJoCo.

Usage

resting_bimanual.mp4
  1. Install MuJoCo and launch a simulation.
  2. Drag the *.xml file into the simulation window.

The motors use torque control, so position and velocity control can be achieved by implementing a simple PD controller in client code.

Collision Visualization

  • To view collision meshes, activate Rendering>Model Elements>Convex Hull and Group Enable>Geom groups>Geom 3 in the left sidebar
  • It may also help to hide the visual meshes by deselecting Geom 2
image

UR5e Grasp RL Demo (Gymnasium + SB3)

The file train_ur5e_grasp_sb3.py provides a full reinforcement-learning grasp demo for universal_robots_ur5e/scene.xml.

Install dependencies:

pip install gymnasium stable-baselines3 mujoco imageio imageio-ffmpeg numpy

Train with PPO:

python train_ur5e_grasp_sb3.py --algo ppo --train --timesteps 120000

Train with SAC:

python train_ur5e_grasp_sb3.py --algo sac --train --timesteps 120000

Run inference and save simulation video:

python train_ur5e_grasp_sb3.py --algo ppo --infer --episodes 3 --video-path videos/ur5e_grasp_ppo.mp4
python train_ur5e_grasp_sb3.py --algo sac --infer --episodes 3 --video-path videos/ur5e_grasp_sac.mp4

You can switch algorithms by changing --algo ppo to --algo sac.

ROS2 Hardware Interface

MuJoCo can be used to simulate realistic hardware interfaces to test low-frequency control without physical hardware.

https://github.com/enactic/openarm_mujoco_hardware

URDF to MJCF Conversion

  • Grippers actuate equally using a tendon and equality constraint, which uses a mimic joint in URDF
  • Off-diagonal inertias are set to zero
  • Motors require ctrlrange limits and joints have additional runtime properties damping and frictionloss

Related links

License

Licensed under the Apache License 2.0. See LICENSE for details.

Copyright 2025 Enactic, Inc.

Code of Conduct

All participation in the OpenArm project is governed by our Code of Conduct.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages