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

Interface with habitat-sim no sliding (#283)

Habitat sim can now disable sliding. This PR wires up habitat-api with that.
parent 85b7907e
Branches
Tags
No related merge requests found
...@@ -247,6 +247,8 @@ _C.SIMULATOR.HABITAT_SIM_V0.GPU_DEVICE_ID = 0 ...@@ -247,6 +247,8 @@ _C.SIMULATOR.HABITAT_SIM_V0.GPU_DEVICE_ID = 0
# Read here: https://pytorch.org/docs/stable/multiprocessing.html#sharing-cuda-tensors # Read here: https://pytorch.org/docs/stable/multiprocessing.html#sharing-cuda-tensors
# for the caveats that results in # for the caveats that results in
_C.SIMULATOR.HABITAT_SIM_V0.GPU_GPU = False _C.SIMULATOR.HABITAT_SIM_V0.GPU_GPU = False
# Whether or not the agent slides on collisions
_C.SIMULATOR.HABITAT_SIM_V0.ALLOW_SLIDING = True
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# PYROBOT # PYROBOT
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
......
...@@ -177,6 +177,7 @@ class HabitatSim(Simulator): ...@@ -177,6 +177,7 @@ class HabitatSim(Simulator):
sim_config = habitat_sim.SimulatorConfiguration() sim_config = habitat_sim.SimulatorConfiguration()
sim_config.scene.id = self.config.SCENE sim_config.scene.id = self.config.SCENE
sim_config.gpu_device_id = self.config.HABITAT_SIM_V0.GPU_DEVICE_ID sim_config.gpu_device_id = self.config.HABITAT_SIM_V0.GPU_DEVICE_ID
sim_config.allow_sliding = self.config.HABITAT_SIM_V0.ALLOW_SLIDING
agent_config = habitat_sim.AgentConfiguration() agent_config = habitat_sim.AgentConfiguration()
overwrite_config( overwrite_config(
config_from=self._get_agent_config(), config_to=agent_config config_from=self._get_agent_config(), config_to=agent_config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment