Skip to content
Snippets Groups Projects
Commit e1e28f3b authored by Erik Wijmans's avatar Erik Wijmans Committed by Oleksandr
Browse files

Update Habitat-API to allow for no rendering sensors (#139)

Update Habitat-API to allow for no rendering sensors
parent 782f1f9a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment