Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Vin committed Nov 4, 2024
1 parent df47b2e commit 8fb5c28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/metsr/test.scenic
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ param startTime = 0
param map = "CARLA_TOWN5"
model scenic.simulators.metsr.model

# TODO: Test distribution as parameter default
# TODO: Ask Zengxiang what benchmark performance is

scenario CustomCommuterTrafficStream(origin, destination):
setup:
num_commuters = Range(100, 200)
Expand Down
2 changes: 2 additions & 0 deletions src/scenic/simulators/metsr/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def __init__(self, host, port, max_connection_attempts=5, timeout=30, verbose=Fa
raise RuntimeError("Could not connect to METS-R Sim")
time.sleep(10)

assert self.ws

# Ensure server is initialized by waiting to receive an initial packet
# (could be ANS_ready or a heartbeat)
self.receive_msg(ignore_heartbeats=False)
Expand Down

0 comments on commit 8fb5c28

Please sign in to comment.