Open hu-hwb opened 1 month ago
Modify File "/home/hwb/miniconda3/envs/smart/lib/python3.7/site-packages/smarts/core/smarts.py", line 434, in attach_sensors_to_vehicles self, agent_spec.interface, vehicle_ids with
def attach_sensors_to_vehicles(self, agent_spec, vehicle_ids): self._agent_manager.attach_sensors_to_vehicles( self, agent_spec, vehicle_ids )
The problem can be solved, but another problem raised:
Traceback (most recent call last):
File "test.py", line 142, in
Traceback (most recent call last): File "test.py", line 142, in
testing(args)
File "test.py", line 131, in testing
runner.evaluate_policy_continuously()
File "../envs/runners/off_policy_trainer.py", line 610, in evaluate_policy_continuously
res = self.evaluate_policy(total_steps=0,plot_map_mode=plot_map_mode)
File "../envs/runners/off_policy_trainer.py", line 643, in evaluate_policy
obs,ego,map_s = self.neighbor_obs(obs,test=True)
File "../envs/runners/off_policy_trainer.py", line 190, in neighbor_obs
n_obs = self.process_neighbors(neighbors_id,test)
File "../envs/runners/off_policy_trainer.py", line 179, in process_neighbors
self._test_smarts.attach_sensors_to_vehicles(self.test_neighbor_spec, ids)
File "/home/hwb/miniconda3/envs/smart/lib/python3.7/site-packages/smarts/core/smarts.py", line 434, in attach_sensors_to_vehicles
self, agent_spec.interface, vehicle_ids
AttributeError: 'AgentInterface' object has no attribute 'interface'