tkn-tub / veins-gym

Reinforcement Learning-based VANET simulations
https://www2.tkn.tu-berlin.de/software/veins-gym/
GNU General Public License v2.0
53 stars 8 forks source link

VeinsGym initial connection does not succeed (RuntimeError: Unknown space type) #15

Closed minnie-jo closed 1 year ago

minnie-jo commented 1 year ago

I have a problem that env.reset() is not running.

I have my action and observation space defined as the following:

Screenshot 2023-05-19 at 09 34 21

However, whenever I run the Python file, I get the following error:

Screenshot 2023-05-19 at 09 36 48

It says "Unknown space type", so I checked the line that causes the error:

Screenshot 2023-05-19 at 09 38 08

The space I set seems correct, and little has been changed from the serpentine example. I checked by printing out the values in the following lines:

Screenshot 2023-05-19 at 09 42 26

Any suggestions?