Skip to content

Commit

Permalink
remove pyrobot integration (#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
aclegg3 authored Aug 20, 2024
1 parent 5bebffc commit c93398c
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 444 deletions.
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
]

habitat.sims.__all__ = [
"pyrobot",
"habitat_simulator",
"registration",
]
Expand Down
25 changes: 0 additions & 25 deletions examples/tutorials/nb_python/Habitat_Lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,28 +425,3 @@ def act(self, observations):
# ### Other Examples
#
# [Create a new action space](https://github.com/facebookresearch/habitat-lab/blob/main/examples/new_actions.py)

# %%
# @title Sim2Real with Habitat { display-mode: "form" }

try:
from IPython.display import HTML

HTML(
'<iframe width="560" height="315" src="https://www.youtube.com/embed/Hun2rhgnWLU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
)
except ImportError:
pass

# %% [markdown]
# Deploy habitat-sim trained models on real robots with the [habitat-pyrobot bridge](https://github.com/facebookresearch/habitat-lab/blob/main/habitat-lab/habitat/sims/pyrobot/pyrobot.py)
#
# ```python
# # Are we in sim or reality?
# if args.use_robot: # Use LoCoBot via PyRobot
# config.habitat.simulator.type = "PyRobot-Locobot-v0"
# else: # Use simulation
# config.habitat.simulator.type = "Habitat-Sim-v0"
# ```
#
# Paper: [https://arxiv.org/abs/1912.06321](https://arxiv.org/abs/1912.06321)
39 changes: 3 additions & 36 deletions examples/tutorials/notebooks/Habitat_Lab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"lines_to_next_cell": 2
},
"outputs": [],
"source": [
"# An example agent which can be submitted to habitat-challenge.\n",
Expand Down Expand Up @@ -545,41 +547,6 @@
"\n",
"[Create a new action space](https://github.com/facebookresearch/habitat-lab/blob/main/examples/new_actions.py)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# @title Sim2Real with Habitat { display-mode: \"form\" }\n",
"\n",
"try:\n",
" from IPython.display import HTML\n",
"\n",
" HTML(\n",
" '<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/Hun2rhgnWLU\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>'\n",
" )\n",
"except ImportError:\n",
" pass"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Deploy habitat-sim trained models on real robots with the [habitat-pyrobot bridge](https://github.com/facebookresearch/habitat-lab/blob/main/habitat-lab/habitat/sims/pyrobot/pyrobot.py)\n",
"\n",
"```python\n",
"# Are we in sim or reality?\n",
"if args.use_robot: # Use LoCoBot via PyRobot\n",
" config.habitat.simulator.type = \"PyRobot-Locobot-v0\"\n",
"else: # Use simulation\n",
" config.habitat.simulator.type = \"Habitat-Sim-v0\"\n",
"```\n",
"\n",
"Paper: [https://arxiv.org/abs/1912.06321](https://arxiv.org/abs/1912.06321)"
]
}
],
"metadata": {
Expand Down
27 changes: 0 additions & 27 deletions habitat-lab/habitat/sims/pyrobot/__init__.py

This file was deleted.

Loading

0 comments on commit c93398c

Please sign in to comment.