uoe-agents / IGP2

Official Repository for "Interpretable Goal-based Prediction and Planning for Autonomous Driving" (ICRA 2021)
Other
82 stars 18 forks source link

fix some errors happened when running CARLA #3

Closed Kin-Zhang closed 2 years ago

Kin-Zhang commented 2 years ago
  1. miss lib on psutil in environment.yml
  2. sometimes the agent may be None, should add an if to judge
[MainThread:igp2.carla.carla_cli] [DEBUG ]  CARLA step 336.
==========> warning this agent None
Traceback (most recent call last):
  File "scripts/experiments/carla_traffic_manager.py", line 126, in <module>
    main()
  File "scripts/experiments/carla_traffic_manager.py", line 120, in main
    visualiser.run(config["max_iter"])
  File "/home/kin/workspace/GITHUB/IGP2/igp2/carla/visualisation.py", line 1090, in run
    done = self._step(clock, world, display, controller)
  File "/home/kin/workspace/GITHUB/IGP2/igp2/carla/visualisation.py", line 1114, in _step
    world.tick(clock)
  File "/home/kin/workspace/GITHUB/IGP2/igp2/carla/visualisation.py", line 210, in tick
    self.igp2_hud.tick(self, clock)
  File "/home/kin/workspace/GITHUB/IGP2/igp2/carla/visualisation.py", line 582, in tick
    predictions = world.ego.agent.goal_probabilities[agent_id]
KeyError: 397

fix on commit: 5e942153cd62fd3a6420359f9e160cb88c0d1026 with adding id judge

gyevnarb commented 2 years ago

Thanks for spotting the missing dependency.

The agent being None was fixed already on the development branch under commits dev/acc352 and dev/fbe2e5. We will be merging the changes on that branch soon into the main branch.

Kin-Zhang commented 2 years ago

Thanks for letting me know. Here you are, I reset to the commit for miss lib.