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

self._sensor_states[vehicle_id] KeyError #2159

Open
hu-hwb opened this issue Jul 11, 2024 · 0 comments
Open

self._sensor_states[vehicle_id] KeyError #2159

hu-hwb opened this issue Jul 11, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@hu-hwb
Copy link

hu-hwb commented Jul 11, 2024

High Level Description

File "/home/hwb/miniconda3/envs/smart/lib/python3.7/site-packages/smarts/core/smarts.py", line 439, in observe_from
self, vehicle_ids, self._traffic_history_provider.done_this_step
File "/home/hwb/miniconda3/envs/smart/lib/python3.7/site-packages/smarts/core/agent_manager.py", line 128, in observe_from
sensor_state = sim.vehicle_index.sensor_state_for_vehicle_id(vehicle.id)
File "/home/hwb/miniconda3/envs/smart/lib/python3.7/site-packages/smarts/core/vehicle_index.py", line 676, in sensor_state_for_vehicle_id
return self._sensor_states[vehicle_id]
KeyError: b'000000000000000$car_type_2-flow-route-edge-east-EW_1_random-edge-west-EW_1_max-8281130465786465659---5506117918186112495--3-1.0'

Version

0.4.18

Operating System

ubuntu

Problems

No response

@hu-hwb hu-hwb added the help wanted Extra attention is needed label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant