LovelyBuggies / sumo-gym

OpenAI-gym like toolkit for developing and comparing reinforcement learning algorithms on SUMO.
Other
30 stars 7 forks source link

decode xml #18

Closed qqqube closed 2 years ago

LovelyBuggies commented 2 years ago

@qqqube Thanks Lauren, we make a new PR based on your branch #20. We still use our original attributes to make the environment properly work. Due to many conflicts, we temporarily close this PR since we already use the effective parts of your decoder. Now you can work based on main branch and test through make-fmpenv-xml.py to see how it works.

Todo

For your XML decoder, we still need some important attributes. Now we are using default values in

  1. https://github.com/LovelyBuggies/sumo-gym/blob/efc7d0fa271ffef7d5c8e195fe9d8193debbbd94/src/sumo_gym/envs/fmp.py#L116
  2. https://github.com/LovelyBuggies/sumo-gym/blob/efc7d0fa271ffef7d5c8e195fe9d8193debbbd94/src/sumo_gym/envs/fmp.py#L132

We still need EV's speed (of moving), capacity (both float) and charging station's location (the id or index of the vertex), charging_speed (maybe similar to your chargingDelay).

Hope you can provide us with them next week!