Skip to content

Commit bfda754

Browse files
authored
Merge pull request #10 from aikkala/fl0fischer-patch-1
Add setup.py, update README
2 parents db8bbe3 + 3bc60cb commit bfda754

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,23 @@ simulator = gym.make("uitb:mobl_arms_index_pointing-v0")
115115
```
116116

117117

118-
## Setup
118+
## Installation / Setup
119119

120120
- The conda environment defined in `conda_env.yml` should contain all required packages. Create a new conda env with `conda env create -f conda_env.yml` and activate it with `conda activate uitb`.
121121

122-
- Tested only with EGL for headless rendering: enable with `export MUJOCO_GL=egl`
122+
- Alternatively, you can install the `uitb` python package from the main directory via
123+
```bash
124+
pip install -e .
125+
```
126+
127+
- **IMPORTANT:** In case of headless rendering (e.g., in Jupyter Notebook/Google Colab files), EGL needs to be set as rendering backend (requires a GPU), either from commmand line:
128+
```bash
129+
export MUJOCO_GL=egl
130+
```
131+
or, using ipython line magic in .ipynb files:
132+
```python
133+
%env MUJOCO_GL=egl
134+
```
123135

124136

125137
## Training

setup.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from setuptools import setup
2+
3+
setup(
4+
name='uitb',
5+
version='0.2.0',
6+
author='Aleksi Ikkala',
7+
author_email='[email protected]',
8+
packages=['uitb'],
9+
url='https://github.com/aikkala/user-in-the-box',
10+
license='LICENSE',
11+
description='Modeling and simulating HCI interaction tasks in MuJoCo',
12+
long_description=open('README.md').read(),
13+
python_requires='>=3.8',
14+
install_requires=[
15+
"gym", #>=0.26.0",
16+
"mujoco>=2.2.0",
17+
"stable_baselines3>=1.4.0", "torch",
18+
"wandb", "tensorboard",
19+
"numpy", "matplotlib", "scipy",
20+
"opencv-python",
21+
"ruamel.yaml",
22+
],
23+
)

0 commit comments

Comments
 (0)