Skip to content

Commit c991f03

Browse files
authored
Merge pull request #58 from dfki-ric/fix/disable_mj_gui
Fix/disable mj gui
2 parents 61db082 + 039543a commit c991f03

File tree

8 files changed

+27
-13
lines changed

8 files changed

+27
-13
lines changed

README.md

+20-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
44
# DeformableGym
55

6-
This repository contains a collection of [gymnasium](https://github.com/Farama-Foundation/Gymnasium) environments built with [PyBullet](https://pybullet.org/). In these environments, the agent
7-
needs to learn to grasp deformable object such as shoe insoles or pillows from sparse reward signals.
6+
This repository contains a collection of [gymnasium](https://github.com/Farama-Foundation/Gymnasium) environments built with [PyBullet](https://pybullet.org/) and [MuJoCo](https://github.com/google-deepmind/mujoco).
7+
In these environments, the agent needs to learn to grasp deformable 3D objects such as shoe insoles or pillows from sparse reward signals.
88

99
<p align="center">
1010
<img src="doc/source/_static/defgym.svg"/>
@@ -23,6 +23,22 @@ After cloning the repository, it is recommended to install the library in editab
2323
pip install -e .
2424
```
2525

26+
## Available environments
27+
28+
| Environment Name | PyBullet | MuJoCo |
29+
|---------------------------|:-------------------:|:------------------:|
30+
| FloatingMiaGraspInsole | :heavy_check_mark: | :heavy_check_mark: |
31+
| FloatingShadowGraspInsole | :heavy_check_mark: | :heavy_check_mark: |
32+
| FloatingMiaGraspPillow | :heavy_check_mark: | :x: |
33+
| FloatingShadowGraspPillow | :heavy_check_mark: | :x: |
34+
| URMiaGraspInsole | :heavy_check_mark: | :x: |
35+
| URShadowGraspInsole | :heavy_check_mark: | :x: |
36+
| URMiaGraspPillow | :heavy_check_mark: | :x: |
37+
| URShadowGraspPillow | :heavy_check_mark: | :x: |
38+
39+
40+
41+
2642
### Known Issues
2743

2844
If you use conda, you may experience the error below:
@@ -100,7 +116,7 @@ pip install numpydoc sphinx sphinx-gallery sphinx-bootstrap-theme
100116

101117
If you wish to report bugs, please use the [issue tracker](https://github.com/dfki-ric/deformable_gym/issues). If you would like to contribute to DeformableGym, just open an issue or a
102118
[pull request](https://github.com/dfki-ric/deformable_gym/pulls). The target branch for
103-
merge requests is the development branch. The development branch will be merged to master for new releases. If you have
119+
merge requests is the development branch. The development branch will be merged to main for new releases. If you have
104120
questions about the software, you should ask them in the discussion section.
105121

106122
The recommended workflow to add a new feature, add documentation, or fix a bug is the following:
@@ -133,7 +149,7 @@ url = {https://deformable-workshop.github.io/icra2023/},
133149

134150
### Semantic Versioning
135151

136-
Semantic versioning must be used, that is, the major version number will be
152+
[Semantic versioning](https://semver.org/) must be used, that is, the major version number will be
137153
incremented when the API changes in a backwards incompatible way, the minor
138154
version will be incremented when new functionality is added in a backwards
139155
compatible manner, and the patch version is incremented for bugfixes,

deformable_gym/envs/mujoco/base_mjenv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(
6161
obj_name: str,
6262
observable_object_pos: bool = True,
6363
max_sim_time: float = 5,
64-
gui: bool = True,
64+
gui: bool = False,
6565
init_frame: str | None = None,
6666
):
6767
self.scene = AssetManager().create_scene(robot_name, obj_name)

deformable_gym/envs/mujoco/grasp_env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(
2020
obj_name: str,
2121
observable_object_pos: bool = True,
2222
max_sim_time: float = 5,
23-
gui: bool = True,
23+
gui: bool = False,
2424
init_frame: Optional[str] = None,
2525
**kwargs,
2626
):

deformable_gym/envs/mujoco/mia_grasp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __init__(
99
obj_name: str,
1010
observable_object_pos: bool = True,
1111
max_sim_time: float = 1,
12-
gui: bool = True,
12+
gui: bool = False,
1313
init_frame: str | None = None,
1414
**kwargs,
1515
):

deformable_gym/envs/mujoco/shadow_grasp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(
1010
obj_name: str,
1111
observable_object_pos: bool = True,
1212
max_sim_time: float = 1,
13-
gui: bool = True,
13+
gui: bool = False,
1414
init_frame: str | None = None,
1515
**kwargs,
1616
):

examples/mj_mia_example.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
episode = 0
88
n_episodes = 3
99
observation, info = env.reset()
10-
env.render()
10+
#env.render()
1111
while episode < n_episodes:
1212
action = env.action_space.sample()
1313
observation, reward, terminate, truncated, info = env.step(action)
14-
env.render()
14+
#env.render()
1515
if terminate:
1616
episode += 1
1717
print(f"Episode {episode} finished with reward {reward}")

examples/mj_shadow_example.py

-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
episode = 0
88
n_episodes = 3
99
observation, info = env.reset()
10-
env.render()
1110
while episode < n_episodes:
1211
action = env.action_space.sample()
1312
observation, reward, terminate, truncated, info = env.step(action)
14-
env.render()
1513
if terminate:
1614
episode += 1
1715
print(f"Episode {episode} finished with reward {reward}")

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="deformable_gym",
9-
version="0.4.0",
9+
version="0.4.1",
1010
maintainer="Melvin Laux",
1111
maintainer_email="[email protected]",
1212
description="Gym environments for grasping deformable objects",

0 commit comments

Comments
 (0)