Commit 1b1b3bcf authored by gianscarpe's avatar gianscarpe
Browse files

Inital commit with examples for habitat-sim!

parents
Pipeline #2230 failed with stages
in 2 minutes and 13 seconds
## c++
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
## python
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
# vscode
.vscode/
.DS_Store
/test.*
/test_semantic.glb
/test_semantic.ply
compile_commands.json
.vimtags
.ycm*
.autoenv*
build_with_utils.sh
run_example
.lvimrc
.ccls-cache/
# Vim swap files
*.swp
tests/17DRP5sb8fy
/data/datasets/
/data/objects/
/data/scene_datasets/
*.zip
habitat_sim/_ext
build_js/
build_corrade-rc/
.setuppy_args_cache.json
# JS
node_modules/
package-lock.json
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.npm/
coverage_js/
# Emacs
\#*\#
*~
\ No newline at end of file
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: isort
name: isort
stages: [commit]
language: system
entry: pipenv run isort
types: [python]
- id: black
name: black
stages: [commit]
language: system
entry: pipenv run black
types: [python]
- id: flake8
name: flake8
stages: [commit]
language: system
entry: pipenv run flake8
types: [python]
exclude: setup.py
- id: mypy
name: mypy
stages: [commit]
language: system
entry: pipenv run mypy event_library
types: [python]
pass_filenames: false
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
attrs = ">=19.1.0"
numba = "*"
numpy = "*"
numpy-quaternion = "*"
pillow = "*"
scipy = ">=1.3.0"
tqdm = "*"
matplotlib = "*"
imageio = "*"
imageio-ffmpeg = "*"
torch = "*"
torchvision = "*"
hydra-core = "*"
GitPython = "*"
[dev-packages]
[requires]
python_version = "3.8"
* Experiments with habitat
** Virtualenv
```
pipenv install
```
** Examples
```
pipenv run python experiments/example.py --example {EXAMPLE_NAME}
```
{
"physics simulator": "bullet",
"timestep": 0.008,
"gravity": [0,-9.8,0],
"friction coefficient": 0.4,
"restitution coefficient": 0.1,
"rigid object paths":[
"objects"
]
}
{
"render mesh": "stage_floor1.glb",
"up":[0,1,0],
"front":[0,0,-1],
"origin":[0,0,0],
"scale":[2,2,2],
"gravity":[0,-9.8,0],
"margin":0.03,
"friction coefficient": 0.3,
"restitution coefficient": 0.3,
"units to meters":1.0,
"requires lighting":true
}
{
"physics simulator": "bullet",
"timestep": 0.0041666666,
"gravity": [0,-9.8,0],
"friction coefficient": 0.4,
"restitution coefficient": 0.1,
"rigid object paths":[
"objects/nested_box"
]
}
yapf
black
twine
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment