Skip to content

Commit

Permalink
--add quaternion reference to files missing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner65 committed Dec 17, 2024
1 parent 470a398 commit 1ed4a58
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/tutorials/async_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
back to the main thread by calling sim.get_sensor_observations_async_finish() by default.
"""


# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

import habitat_sim


Expand Down
4 changes: 4 additions & 0 deletions examples/tutorials/stereo_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

import numpy as np

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

import habitat_sim

cv2 = None
Expand Down
4 changes: 4 additions & 0 deletions tests/test_compare_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
from io import StringIO
from unittest.mock import patch

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

from habitat_sim.utils import compare_profiles


Expand Down
4 changes: 4 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

import pytest

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

import habitat_sim.bindings
from utils import run_main_subproc

Expand Down
5 changes: 5 additions & 0 deletions tests/test_greedy_follower.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

import numpy as np
import pytest

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401
import tqdm

import habitat_sim
Expand Down Expand Up @@ -78,6 +82,7 @@ def test_greedy_follower(test_navmesh, move_filter_fn, action_noise, pbar):

scene_graph = habitat_sim.SceneGraph()
agent = habitat_sim.Agent(scene_graph.get_root_node().create_child())
print(f"move_filter_fn : {move_filter_fn} action noise : {action_noise}")
agent.controls.move_filter_fn = getattr(pathfinder, move_filter_fn)

agent.agent_config.action_space["turn_left"].actuation.amount = TURN_DEGREE
Expand Down
4 changes: 4 additions & 0 deletions tests/test_light_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

import habitat_sim
from habitat_sim.gfx import (
DEFAULT_LIGHTING_KEY,
Expand Down
4 changes: 4 additions & 0 deletions tests/test_navmesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
import numpy as np
import pytest

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

import habitat_sim
import habitat_sim.utils.settings

Expand Down
4 changes: 4 additions & 0 deletions tests/test_noise_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
import numpy as np
import pytest

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

import habitat_sim
from habitat_sim.sensors.noise_models import redwood_depth_noise_model
from habitat_sim.sensors.noise_models.redwood_depth_noise_model import (
Expand Down
4 changes: 4 additions & 0 deletions tests/test_physics_benchmarking.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

import pytest

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

import habitat_sim
import habitat_sim.utils.settings

Expand Down
4 changes: 4 additions & 0 deletions tests/test_profiling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

import pytest

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

from habitat_sim.utils import profiling_utils

_ENV_VAR_NAME = "HABITAT_PROFILING"
Expand Down
4 changes: 4 additions & 0 deletions tests/test_random_seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

import habitat_sim
import habitat_sim.utils.settings

Expand Down
4 changes: 4 additions & 0 deletions tests/test_snap_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

import hypothesis
import pytest

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401
from hypothesis import strategies as st

import habitat_sim
Expand Down
4 changes: 4 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# Need to import quaternion library here despite it not being used or else importing
# habitat_sim below will cause an invalid free() when audio is enabled in sim compilation
import quaternion # noqa: F401

from habitat_sim.utils.collect_env import main as collect_env


Expand Down

0 comments on commit 1ed4a58

Please sign in to comment.