imitation-learning icon indicating copy to clipboard operation
imitation-learning copied to clipboard

KeyError: 'CameraRGB'

Open dingjiangang opened this issue 7 years ago • 1 comments

when i run "python run_CIL.py",some problem happen

ERROR: 'CameraRGB'
Traceback (most recent call last):
  File "run_CIL.py", line 64, in <module>
    results = corl.benchmark_agent(agent, client)
  File "/home/dingjiangang/carla_env/local/lib/python2.7/site-packages/carla/benchmarks/benchmark.py", line 199, in benchmark_agent
    + '.' + str(end_point))
  File "/home/dingjiangang/carla_env/local/lib/python2.7/site-packages/carla/benchmarks/benchmark.py", line 108, in run_navigation_episode
    control = agent.run_step(measurements, sensor_data, target)
  File "/home/dingjiangang/imitation-learning/agents/imitation/imitation_learning.py", line 95, in run_step
    control = self._compute_action(sensor_data['CameraRGB'].data,
KeyError: 'CameraRGB'

dingjiangang avatar Mar 03 '18 14:03 dingjiangang

Hi @dingjiangang,

Which version of CARLA are you using? Recently we have made a few changes in the master branch and the code of this repository is temporarily outdated.

Consider using the stable branch of CARLA.

marcgpuig avatar Mar 05 '18 14:03 marcgpuig