From e1e28f3b885b2766dd2a08d6e0dfc6fab5e1888d Mon Sep 17 00:00:00 2001 From: Erik Wijmans <etw@gatech.edu> Date: Mon, 15 Jul 2019 11:26:38 -0700 Subject: [PATCH] Update Habitat-API to allow for no rendering sensors (#139) Update Habitat-API to allow for no rendering sensors --- habitat/sims/habitat_simulator/habitat_simulator.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/habitat/sims/habitat_simulator/habitat_simulator.py b/habitat/sims/habitat_simulator/habitat_simulator.py index b5b896b34..d77e13fac 100644 --- a/habitat/sims/habitat_simulator/habitat_simulator.py +++ b/habitat/sims/habitat_simulator/habitat_simulator.py @@ -189,13 +189,6 @@ class HabitatSim(Simulator): sim_sensor_cfg.sensor_type = sensor.sim_sensor_type # type: ignore sensor_specifications.append(sim_sensor_cfg) - # If there is no sensors specified create a dummy sensor so simulator - # won't throw an error - if not _sensor_suite.sensors.values(): - sim_sensor_cfg = habitat_sim.SensorSpec() - sim_sensor_cfg.resolution = [1, 1] - sensor_specifications.append(sim_sensor_cfg) - agent_config.sensor_specifications = sensor_specifications agent_config.action_space = registry.get_action_space_configuration( self.config.ACTION_SPACE_CONFIG -- GitLab