GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vikashplus/ezgripper_sim: MuJoCo model for EZGripper from SAKE robotics

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
meshes
meshes
 
 
old_tests
old_tests
 
 
.gitignore
.gitignore
 
 
COMPLETE_CHANGE_HISTORY.md
COMPLETE_CHANGE_HISTORY.md
 
 
CORRECTIONS_SUMMARY.md
CORRECTIONS_SUMMARY.md
 
 
EZGRIPPER_CONFIG_HISTORY.md
EZGRIPPER_CONFIG_HISTORY.md
 
 
LICENSE
LICENSE
 
 
MUJOCO_LOG.TXT
MUJOCO_LOG.TXT
 
 
README.md
README.md
 
 
README_TESTS.md
README_TESTS.md
 
 
TENDON_PATH_DIAGRAM.md
TENDON_PATH_DIAGRAM.md
 
 
analyze_collisions.py
analyze_collisions.py
 
 
analyze_forces.py
analyze_forces.py
 
 
analyze_tendon_torque.py
analyze_tendon_torque.py
 
 
calculate_stop_positions.py
calculate_stop_positions.py
 
 
changes_summary.md
changes_summary.md
 
 
check_constraints.py
check_constraints.py
 
 
check_contacts.py
check_contacts.py
 
 
check_final_position.py
check_final_position.py
 
 
check_keyframes.py
check_keyframes.py
 
 
check_model_attrs.py
check_model_attrs.py
 
 
check_stop_positions.py
check_stop_positions.py
 
 
check_tendon_lengths.py
check_tendon_lengths.py
 
 
check_upper_stops.py
check_upper_stops.py
 
 
check_xml_parsing.py
check_xml_parsing.py
 
 
clear_stop_demo.py
clear_stop_demo.py
 
 
comprehensive_sync_test.py
comprehensive_sync_test.py
 
 
corrected_visual_simulation.py
corrected_visual_simulation.py
 
 
create_correct_plane_setup.py
create_correct_plane_setup.py
 
 
create_corrected_planes.py
create_corrected_planes.py
 
 
create_facing_planes.py
create_facing_planes.py
 
 
create_permanent_visualization.py
create_permanent_visualization.py
 
 
create_plane_visualization.py
create_plane_visualization.py
 
 
create_visualization_xml.py
create_visualization_xml.py
 
 
create_zaxis_planes.py
create_zaxis_planes.py
 
 
debug_collision_details.py
debug_collision_details.py
 
 
debug_contact_interface.py
debug_contact_interface.py
 
 
debug_contact_physics.py
debug_contact_physics.py
 
 
debug_geometry.py
debug_geometry.py
 
 
debug_spring_behavior.py
debug_spring_behavior.py
 
 
debug_spring_correct.py
debug_spring_correct.py
 
 
debug_stops.py
debug_stops.py
 
 
demo_tennis_ball.py
demo_tennis_ball.py
 
 
demo_tennis_ball.xml
demo_tennis_ball.xml
 
 
diagnose_asymmetry.py
diagnose_asymmetry.py
 
 
ezgripper.png
ezgripper.png
 
 
ezgripper.xml
ezgripper.xml
 
 
ezgripper_baseline.xml
ezgripper_baseline.xml
 
 
ezgripper_body.xml
ezgripper_body.xml
 
 
ezgripper_correct_plane_setup.xml
ezgripper_correct_plane_setup.xml
 
 
ezgripper_corrected_planes.xml
ezgripper_corrected_planes.xml
 
 
ezgripper_facing_planes.xml
ezgripper_facing_planes.xml
 
 
ezgripper_final_baseline.xml
ezgripper_final_baseline.xml
 
 
ezgripper_original.xml
ezgripper_original.xml
 
 
ezgripper_permanent_visualization.xml
ezgripper_permanent_visualization.xml
 
 
ezgripper_plane_visualization.xml
ezgripper_plane_visualization.xml
 
 
ezgripper_problematic.xml
ezgripper_problematic.xml
 
 
ezgripper_visualization.xml
ezgripper_visualization.xml
 
 
ezgripper_working_baseline.xml
ezgripper_working_baseline.xml
 
 
ezgripper_zaxis_planes.xml
ezgripper_zaxis_planes.xml
 
 
joint_data_log.csv
joint_data_log.csv
 
 
monitor_joint_limits.py
monitor_joint_limits.py
 
 
run_corrected_planes.py
run_corrected_planes.py
 
 
run_facing_planes.py
run_facing_planes.py
 
 
run_permanent_visualizer.py
run_permanent_visualizer.py
 
 
run_plane_visualization.py
run_plane_visualization.py
 
 
run_plane_visualizer.py
run_plane_visualizer.py
 
 
run_visualizer.py
run_visualizer.py
 
 
run_zaxis_planes.py
run_zaxis_planes.py
 
 
screenshot.png
screenshot.png
 
 
show_stop_positions.py
show_stop_positions.py
 
 
simple_diagnose.py
simple_diagnose.py
 
 
simple_visualization.py
simple_visualization.py
 
 
stop_diagram.py
stop_diagram.py
 
 
tendon_path_front.png
tendon_path_front.png
 
 
tendon_path_side.png
tendon_path_side.png
 
 
tendon_path_top.png
tendon_path_top.png
 
 
tendon_torque_analysis.png
tendon_torque_analysis.png
 
 
test_active_closing.py
test_active_closing.py
 
 
test_active_control.py
test_active_control.py
 
 
test_correct_motion.py
test_correct_motion.py
 
 
test_corrected_physics.py
test_corrected_physics.py
 
 
test_finger_contact.py
test_finger_contact.py
 
 
test_force_after_contact.py
test_force_after_contact.py
 
 
test_force_control.py
test_force_control.py
 
 
test_force_ramp.py
test_force_ramp.py
 
 
test_full_joint_data.py
test_full_joint_data.py
 
 
test_full_motion.py
test_full_motion.py
 
 
test_full_range.py
test_full_range.py
 
 
test_gradual_close.py
test_gradual_close.py
 
 
test_gradual_opening.py
test_gradual_opening.py
 
 
test_grasp_cylinder.py
test_grasp_cylinder.py
 
 
test_gripper.py
test_gripper.py
 
 
test_gripper_motion.py
test_gripper_motion.py
 
 
test_hardstops.py
test_hardstops.py
 
 
test_joint_limits.py
test_joint_limits.py
 
 
test_mechanical_stops.py
test_mechanical_stops.py
 
 
test_minus_90.py
test_minus_90.py
 
 
test_motor_control.py
test_motor_control.py
 
 
test_no_tendon.py
test_no_tendon.py
 
 

Repository files navigation

EZGripper MuJoCo Simulation

High-fidelity MuJoCo model for the SAKE Robotics EZGripper robotic gripper with realistic tendon-driven physics.

EZGripper MuJoCo simulation

Overview

This repository contains a physics-accurate MuJoCo model of the SAKE Robotics EZGripper Dual (Gen1/Gen2), featuring:

  • ✅ Tendon-driven mechanism - Realistic cable actuation matching real hardware
  • ✅ Under-actuated fingers - Single servo controls 2 opposing fingers
  • ✅ Adaptive grasping - Fingers wrap around objects independently
  • ✅ Accurate meshes - Real STL geometry from SAKE Robotics
  • ✅ MuJoCo 3.0+ compatible - Works with latest MuJoCo versions

Quick Start

Installation

# Install MuJoCo (if not already installed)
pip3 install mujoco

# Clone this repository
git clone https://github.com/SAKErobotics/ezgripper_sim.git
cd ezgripper_sim

# Test the model
python3 test_gripper.py

Interactive Viewer

python3 test_gripper.py

Use the MuJoCo viewer sliders to control the gripper actuator.

EZGripper Specifications

Mechanical Design

Architecture: Under-actuated, tendon-driven

  • Fingers: 2 opposing fingers
  • Links per finger: 2 (proximal + distal)
  • Joints per finger: 2 (~110° range each)
  • Actuation: Single Dynamixel MX-64AR servo

Range of Motion:

  • Full range: 2500 servo units (0 = closed, 2500 = open)
  • Scaled range: 0-100% (used in control interface)
  • Joint angles: ~110° per joint

Control Interface

The EZGripper uses two primary commands:

1. Calibrate

calibrate(servo)
  • Moves gripper to closed position
  • Resets zero position
  • Should be run at startup

2. Goto_Position(effort, position)

goto_position(effort, position)

Position Parameter (0-100):

  • 0: Fully closed (continuous close mode)
  • 1-100: Specific position (% open)
  • 100: Fully open

Effort Parameter (0-100):

  • 0: Torque off (fingers can be back-driven)
  • 1-100: Torque level (% of max)

Control Modes:

  • Position = 0: Torque control mode (best for grasping)
  • Position > 0: Position control mode (best for positioning)

Automatic Back-off Algorithm:

  • Closes until fingers stop moving
  • Drops to 10% torque to maintain grasp
  • Minimizes power and heat

Physics Model

Tendon System:

  • Spatial tendon routing through pulleys
  • Realistic cable mechanics
  • Spring-loaded opening (tendon closes, springs open)

Contact Dynamics:

  • Mesh-based collision: All finger/palm meshes provide collision surfaces
  • L1-L2 hard stop: Physical mesh collision defines preload position
  • Intra-finger collision: L1 and L2 links collide to create spring preload
  • Grasping surfaces: Palm, L1, L2, and finger tips all participate in grasping
  • Adaptive wrapping: Fingers conform to object shape via under-actuation

Spring Configuration (Preload Mechanism):

The gripper uses collision-based preload to simulate the real hardware behavior:

  1. Palm-L1 Joint:

    • stiffness="0.05114105365" (STRONG spring)
    • springref="-3.14" (-180°, outside joint range)
    • Range: -1.57075 to 0.27 (-90° to 15°)
    • Effect: Constant force pulling joint toward open position
  2. L1-L2 Joint:

    • stiffness="0.02459949416" (WEAK spring)
    • springref="-1.57" (-90°, outside joint range)
    • Range: 0.5236 to 1.7 (30° to 97°)
    • Effect: Constant force pulling joint toward open position
    • Hard stop: L1-L2 mesh collision stops opening at ~30°
    • Preload: Spring compressed against collision creates resting force

Why This Works:

  • MuJoCo doesn't have explicit preload parameters
  • Setting springref outside joint range creates constant force
  • Physical collision between L1 and L2 meshes acts as hard stop
  • Spring force compressed against hard stop = mechanical preload
  • This matches real hardware where springs are pre-compressed at assembly

Under-Actuation Sequence:

  1. Open state: Springs pull joints open until L1-L2 collision stops them
  2. Tendon pull: Overcomes spring preload to close gripper
  3. Contact: L1 contacts object first, stops moving
  4. Wrap: L2 continues closing around object (progressive grasp)

Joint Properties:

  • Damping: 0.005
  • Spring references outside ranges for constant preload force
  • Limited ranges matching real hardware
  • Collision filtering: contype=3 conaffinity=3 for all grasping surfaces

Model Structure

ezgripper.xml           # Main MuJoCo model
├── mount               # Gripper base/mount
├── F1_L1              # Finger 1, Link 1 (proximal)
│   └── F1_L2          # Finger 1, Link 2 (distal)
├── F2_L1              # Finger 2, Link 1 (proximal)
│   └── F2_L2          # Finger 2, Link 2 (distal)
└── flex_tendon        # Tendon connecting all links

meshes/
├── SAKE_Single_Mount.stl
├── SAKE_Palm_IM.stl
├── SAKE_Finger_L1_IM.stl
├── SAKE_Finger_L2_IM.stl
└── SAKE_Finger_Pad_IM.stl

Integration with Robots

Attaching to Robot Arm

To integrate the EZGripper into your robot model:

  1. Include the gripper body (without worldbody):
<include file="ezgripper_body.xml"/>
  1. Attach to your end-effector:
<body name="your_end_effector">
  <body name="ezgripper" pos="0 0 -0.05" quat="...">
    <!-- Include gripper here -->
  </body>
</body>
  1. Orient the gripper:
    • Default: Gripper X-axis points forward
    • Rotate as needed for your application

Example: Minilift SCARA Integration

See examples/minilift_integration.xml for a complete example of integrating the EZGripper with a SCARA arm.

MuJoCo Version Compatibility

  • ✅ MuJoCo 3.0+: Fully tested and supported
  • ✅ MuJoCo 2.x: Should work (not actively tested)

Tested with:

  • MuJoCo 3.3.7 on Ubuntu 24.04
  • Python 3.12

Files

  • ezgripper.xml - Complete standalone model with floor
  • test_gripper.py - Interactive test script
  • meshes/ - STL mesh files
  • ezgripper.png - Preview image

Credits

Original Model: Vikash Kumar (2021) Hardware: SAKE Robotics Maintained by: SAKE Robotics

License

Apache License 2.0 - See LICENSE file

Resources

  • SAKE Robotics: https://sakerobotics.com/
  • EZGripper Hardware: https://sakerobotics.com/products
  • Python Drivers: https://github.com/SAKErobotics/libezgripper
  • ROS 2 Drivers: https://github.com/SAKErobotics/EZGripper_ros2
  • MuJoCo Documentation: https://mujoco.readthedocs.io/

Support

For questions or issues:

  • GitHub Issues: https://github.com/SAKErobotics/ezgripper_sim/issues
  • Email: [email protected]

About

MuJoCo model for EZGripper from SAKE robotics

vikashplus.github.io/

Topics

mujocorobosapienrobotsimualtion

Resources

Readme
Apache-2.0 license
Activity

Stars

3 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.