lgsvl / PythonAPI

Python API for Simulator
Other
58 stars 73 forks source link

Error of TypeError: argument of type 'bool' is not iterable #51

Open zxydi1992 opened 3 years ago

zxydi1992 commented 3 years ago

Hi,

I met an error when run LGSVL PythonAPI. The error happened when I called sim.run(0.04). The stack trace shows line 151 in simulator.py failed with this exception.

Trackback message here: sim.run(lgsvl_control_period) File "/root/.pyenv/versions/3.8.5/lib/python3.8/site-packages/lgsvl-2021.1-py3.8.egg/lgsvl/utils.py", line 23, in new_f return f(*args, **kwargs) File "/root/.pyenv/versions/3.8.5/lib/python3.8/site-packages/lgsvl-2021.1-py3.8.egg/lgsvl/simulator.py", line 107, in run self._process("simulator/run", {"time_limit": time_limit, "time_scale": time_scale}) File "/root/.pyenv/versions/3.8.5/lib/python3.8/site-packages/lgsvl-2021.1-py3.8.egg/lgsvl/simulator.py", line 151, in _process if "events" in j:

hadiTab commented 3 years ago

@zxydi1992 I believe there should be more to the stack trace than what you have provided here.