From 9a64c82695502dde76aa294c3206d07e98ecd5ff Mon Sep 17 00:00:00 2001 From: Abhishek Kadian <abhishekkadiyan@gmail.com> Date: Tue, 3 Sep 2019 16:11:54 -0700 Subject: [PATCH] Placeholder for pyrobot integration --- habitat/sims/pyrobot/__init__.py | 0 habitat/sims/pyrobot/pyrobot.py | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 habitat/sims/pyrobot/__init__.py create mode 100644 habitat/sims/pyrobot/pyrobot.py diff --git a/habitat/sims/pyrobot/__init__.py b/habitat/sims/pyrobot/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/habitat/sims/pyrobot/pyrobot.py b/habitat/sims/pyrobot/pyrobot.py new file mode 100644 index 000000000..26018ec0e --- /dev/null +++ b/habitat/sims/pyrobot/pyrobot.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python3 + +# Copyright (c) Facebook, Inc. and its affiliates. +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + + +from habitat.core.simulator import ( + Config, + SensorSuite, + Simulator, + Space +) + + +class PyRobot(Simulator): + def __init__(self, config: Config) -> None: + raise NotImplementedError + + @property + def sensor_suite(self) -> SensorSuite: + return self._sensor_suite + + @property + def action_space(self) -> Space: + return self._action_space + + def step(self, action): + raise NotImplementedError + + def close(self): + raise NotImplementedError -- GitLab