Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interface to take over social vehicles. #1879

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typing test.
  • Loading branch information
Gamenot committed Feb 22, 2023
commit 8cd57de4e5c13c0871946c2c9d9d9fed00a276bc
5 changes: 2 additions & 3 deletions smarts/core/tests/test_smarts_add_social_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
import math
from itertools import cycle
from typing import Iterator
from typing import Optional

import numpy as np
import pytest
Expand Down Expand Up @@ -80,7 +79,7 @@ def test_smarts_control_actors_with_social_agents(smarts: SMARTS, scenario: Scen
for _ in range(10):
smarts.step({})

provider: Provider = smarts.get_provider_by_type(SumoTrafficSimulation)
provider: Optional[Provider] = smarts.get_provider_by_type(SumoTrafficSimulation)
assert provider.actor_ids
vehicle_ids = set(list(provider.actor_ids)[:5] + ["Agent-007"])
original_social_agent_vehicle_ids = smarts.vehicle_index.agent_vehicle_ids()
Expand Down