Commit fff02e6
Adds example for gear assembly sim-to-real with UR10e (#4044)
https://github.com/user-attachments/assets/a04cfa6c-3c06-4cb6-8e81-500857c98cb2
# Description
This PR introduces a new **Gear Assembly manipulation task** for
sim-to-real training with the UR10e robot arm. This environment enables
training policies for precise gear insertion tasks using reinforcement
learning, with comprehensive sim-to-real transfer capabilities.
## Summary of Changes
### New Features
- **Gear Assembly Environment**: Complete environment implementation for
gear insertion tasks
- Environment configuration (`gear_assembly_env_cfg.py`)
- UR10e-specific joint position control configuration
(`joint_pos_env_cfg.py`)
- RSL-RL PPO training configuration (`rsl_rl_ppo_cfg.py`)
- **MDP Components**: Task-specific observation, reward, termination,
and event functions
- `mdp/events.py`: Randomization and reset events for robust training
- `mdp/observations.py`: State observation functions
- `mdp/rewards.py`: Reward shaping for gear insertion
- `mdp/terminations.py`: Episode termination conditions
- **Noise Models**: Enhanced noise simulation for domain randomization
- Added configurable noise models (`noise_model.py`, `noise_cfg.py`)
- Integration with observation and action spaces for realistic
sim-to-real transfer
### Documentation
- **Sim-to-Real Training Walkthrough**: Complete guide for training and
deploying the gear assembly task
- Step-by-step training instructions
- Real robot deployment guidelines
- Visual assets (GIFs and screenshots)
### Core Enhancements
- **Training Script**: Enhanced `train.py` with additional logging and
configuration options
- **UR10e Robot Configuration**: Updated `universal_robots.py` with gear
assembly specific parameters
- **Reward System**: Extended core reward functions in
`isaaclab/envs/mdp/rewards.py`
- **RL Configuration**: Updated RSL-RL integration (`rl_cfg.py`,
`setup.py`)
## Type of change
- [x] New feature (non-breaking change which adds functionality)
- [x] Documentation update
## Checklist
- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
## Usage Example
```bash
# Train the gear assembly task
python scripts/reinforcement_learning/rsl_rl/train.py \
--task Isaac-Deploy-GearAssembly-UR10e-2F140-ROS-Inference-v0 \
--num_envs 256 \
--headless
# Run inference with trained policy
python scripts/reinforcement_learning/rsl_rl/play.py \
--task Isaac-Deploy-GearAssembly-UR10e-2F140-ROS-Inference-v0 \
--num_envs 1 \
--checkpoint <checkpoint_path>
```
---------
Signed-off-by: Ashwin Varghese Kuruttukulam <123109010+ashwinvkNV@users.noreply.github.com>
Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>1 parent 20f7707 commit fff02e6
File tree
21 files changed
+3582
-193
lines changed- docs/source
- _static/policy_deployment/02_gear_assembly
- policy_deployment
- 02_gear_assembly
- source
- isaaclab_assets/isaaclab_assets/robots
- isaaclab_tasks
- config
- docs
- isaaclab_tasks/manager_based/manipulation/deploy
- gear_assembly
- config
- ur_10e
- agents
- mdp
21 files changed
+3582
-193
lines changedBinary file not shown.
Lines changed: 605 additions & 0 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
4 | 13 | | |
5 | 14 | | |
6 | 15 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 75 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments