huawei-noah/SMARTS

self._sensor_states[vehicle_id] KeyError

開放

#2,159 建立於 2024年7月11日

 (0 則留言) (0 個反應) (0 位負責人)Python (220 個分叉)auto 404
help wanted

倉庫指標

星標
 (1,129 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南